2
mirror of https://gitlab.com/jessieh/doghud.git synced 2024-11-24 15:01:46 +00:00

Improve CTF UI (upstream)

This commit is contained in:
Jessie Hildebrandt 2023-01-15 02:47:13 -05:00
parent 56c230b625
commit 2ebc6fc006
2 changed files with 134 additions and 180 deletions

View File

@ -1,33 +1,32 @@
"Resource/UI/FlagStatus.res" "Resource/UI/FlagStatus.res"
{ {
"Arrow" "Arrow"
{ {
"ControlName" "CTFArrowPanel" "ControlName" "CTFArrowPanel"
"fieldName" "Arrow" "fieldName" "Arrow"
"xpos" "40" "xpos" "cs-0.5"
"ypos" "-5" "ypos" "cs-0.5"
"zpos" "1" "zpos" "1"
"wide" "35" "wide" "f0"
"tall" "35" "tall" "f0"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"scaleImage" "1" "scaleImage" "1"
"proportionaltoparent" "1"
"if_mvm" "if_mvm"
{ {
"xpos" "38" "wide" "40"
"ypos" "-15" "tall" "40"
"wide" "45"
"tall" "45"
} }
} }
"Briefcase" "Briefcase"
{ {
"ControlName" "CTFImagePanel" "ControlName" "CTFImagePanel"
"fieldName" "Briefcase" "fieldName" "Briefcase"
"xpos" "68" "xpos" "cs-0.5"
"ypos" "34" "ypos" "cs-0.5"
"zpos" "2" "zpos" "2"
"wide" "0" "wide" "0"
"tall" "0" "tall" "0"
@ -35,43 +34,32 @@
"enabled" "1" "enabled" "1"
"image" "../hud/objectives_flagpanel_briefcase" "image" "../hud/objectives_flagpanel_briefcase"
"scaleImage" "1" "scaleImage" "1"
"proportionaltoparent" "1"
"if_mvm" "if_mvm"
{ {
"xpos" "50" "wide" "20"
"ypos" "-2" "tall" "20"
"zpos" "2"
"wide" "22"
"tall" "22"
}
"if_specialdelivery"
{
"visible" "0"
} }
} }
"StatusIcon" "StatusIcon"
{ {
"ControlName" "CTFImagePanel" "ControlName" "CTFImagePanel"
"fieldName" "StatusIcon" "fieldName" "StatusIcon"
"xpos" "0" "xpos" "cs-0.5"
"ypos" "-8" "ypos" "cs-0.5-1"
"zpos" "3" "zpos" "3"
"wide" "18" "wide" "f20"
"tall" "18" "tall" "f20"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"image" "../hud/objectives_flagpanel_ico_flag_home" "image" "../hud/objectives_flagpanel_ico_flag_home"
"scaleImage" "1" "scaleImage" "1"
"pin_to_sibling" "Arrow" "proportionaltoparent" "1"
"pin_corner_to_sibling" "PIN_CENTER_TOP"
"pin_to_sibling_corner" "PIN_CENTER_TOP"
"if_mvm" "if_mvm"
{ {
"xpos" "63"
"ypos" "13"
"visible" "0" "visible" "0"
} }
} }

View File

@ -1,47 +1,39 @@
"Resource/UI/HudObjectiveFlagPanel.res" "Resource/UI/HudObjectiveFlagPanel.res"
{ {
"ObjectiveStatusFlagPanel" "ObjectiveStatusFlagPanel"
{ {
"ControlName" "EditablePanel" "ControlName" "EditablePanel"
"fieldName" "ObjectiveStatusFlagPanel" "fieldName" "ObjectiveStatusFlagPanel"
"xpos" "0" "xpos" "0"
"ypos" "0" "ypos" "0"
"zpos" "1" "zpos" "1"
"wide" "f0" "wide" "f0"
"tall" "480" "tall" "480"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"if_hybrid" "if_hybrid"
{ {
"zpos" "-1" "zpos" "-1"
} }
"if_mvm"
{
"xpos" "-7"
"ypos" "-8"
}
} }
"BlackTransparentBG" "BlackTransparentBG"
{ {
"ControlName" "CExImageButton" "ControlName" "EditablePanel"
"fieldName" "BlackTransparentBG" "fieldName" "BlackTransparentBG"
"xpos" "cs-0.5" "xpos" "cs-0.5"
"ypos" "r19" "ypos" "rs1"
"zpos" "1" "zpos" "1"
"wide" "120" "wide" "120"
"tall" "22" "tall" "22"
"autoResize" "0"
"pinCorner" "0"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"PaintBackground" "0"
"border_default" "MaterialTransparent50"
"textinsety" "99"
"proportionaltoparent" "1" "proportionaltoparent" "1"
"PaintBackground" "0"
"paintborder" "1"
"border" "MaterialTransparent50"
"if_hybrid" "if_hybrid"
{ {
"visible" "0" "visible" "0"
@ -62,22 +54,21 @@
"xpos" "0" "xpos" "0"
"ypos" "0" "ypos" "0"
"zpos" "4" "zpos" "4"
"wide" "120" "wide" "110"
"tall" "16" "tall" "16"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"proportionaltoparent" "1"
"labelText" "#TF_PlayingTo" "labelText" "#TF_PlayingTo"
"textAlignment" "center" "textAlignment" "center"
"dulltext" "0"
"brighttext" "0"
"AllCaps" "1" "AllCaps" "1"
"font" "Size 8" "font" "Size 8"
"fgcolor" "White" "fgcolor" "White"
"pin_to_sibling" "BlackTransparentBG" "pin_to_sibling" "BlackTransparentBG"
"pin_corner_to_sibling" "PIN_CENTER_BOTTOM" "pin_corner_to_sibling" "PIN_CENTER_BOTTOM"
"pin_to_sibling_corner" "PIN_CENTER_BOTTOM" "pin_to_sibling_corner" "PIN_CENTER_BOTTOM"
"if_hybrid" "if_hybrid"
{ {
"visible" "0" "visible" "0"
@ -92,22 +83,22 @@
} }
} }
"BlueScoreBG" "BlueScoreBG"
{ {
"ControlName" "CExImageButton" "ControlName" "EditablePanel"
"fieldName" "BlueScoreBG" "fieldName" "BlueScoreBG"
"xpos" "0" "xpos" "0"
"ypos" "-11" "ypos" "-11"
"zpos" "2" "zpos" "2"
"wide" "65" "wide" "63"
"tall" "20" "tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"proportionaltoparent" "1"
"PaintBackground" "0" "PaintBackground" "0"
"border_default" "MaterialBlue" "PaintBorder" "1"
"textinsety" "99" "border" "MaterialBlue"
"pin_to_sibling" "BlackTransparentBG" "pin_to_sibling" "BlackTransparentBG"
"pin_corner_to_sibling" "PIN_BOTTOMLEFT" "pin_corner_to_sibling" "PIN_BOTTOMLEFT"
"pin_to_sibling_corner" "PIN_TOPLEFT" "pin_to_sibling_corner" "PIN_TOPLEFT"
@ -116,18 +107,15 @@
{ {
"visible" "0" "visible" "0"
} }
"if_mvm" "if_mvm"
{ {
"visible" "0" "visible" "0"
} }
"if_specialdelivery" "if_specialdelivery"
{ {
"visible" "0" "visible" "0"
} }
} }
"BlueScore" "BlueScore"
{ {
"ControlName" "CExLabel" "ControlName" "CExLabel"
@ -135,28 +123,28 @@
"xpos" "-5" "xpos" "-5"
"ypos" "0" "ypos" "0"
"zpos" "10" "zpos" "10"
"wide" "59" "wide" "25"
"tall" "20" "tall" "20"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"textAlignment" "west" "proportionaltoparent" "1"
"textAlignment" "west"
"labelText" "%bluescore%" "labelText" "%bluescore%"
"font" "Size 18" "font" "Size 18"
"fgcolor" "White" "fgcolor" "White"
"pin_to_sibling" "BlueScoreBG" "pin_to_sibling" "BlueScoreBG"
"pin_corner_to_sibling" "PIN_CENTER_LEFT" "pin_corner_to_sibling" "PIN_CENTER_LEFT"
"pin_to_sibling_corner" "PIN_CENTER_LEFT" "pin_to_sibling_corner" "PIN_CENTER_LEFT"
"if_hybrid" "if_hybrid"
{ {
"visible" "0" "visible" "0"
} }
"if_mvm" "if_mvm"
{ {
"visible" "0" "visible" "0"
} }
"if_specialdelivery" "if_specialdelivery"
{ {
"visible" "0" "visible" "0"
@ -169,48 +157,47 @@
"xpos" "-1" "xpos" "-1"
"ypos" "-1" "ypos" "-1"
"zpos" "9" "zpos" "9"
"wide" "59" "wide" "25"
"tall" "20" "tall" "20"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"textAlignment" "west" "proportionaltoparent" "1"
"textAlignment" "west"
"labelText" "%bluescore%" "labelText" "%bluescore%"
"font" "Size 18 Blur" "font" "Size 18 Blur"
"fgcolor" "Shadow" "fgcolor" "Shadow"
"pin_to_sibling" "BlueScore" "pin_to_sibling" "BlueScore"
"if_hybrid" "if_hybrid"
{ {
"visible" "0" "visible" "0"
} }
"if_mvm" "if_mvm"
{ {
"visible" "0" "visible" "0"
} }
"if_specialdelivery" "if_specialdelivery"
{ {
"visible" "0" "visible" "0"
} }
} }
"RedScoreBG" "RedScoreBG"
{ {
"ControlName" "CExImageButton" "ControlName" "EditablePanel"
"fieldName" "RedScoreBG" "fieldName" "RedScoreBG"
"xpos" "0" "xpos" "0"
"ypos" "-11" "ypos" "-11"
"zpos" "2" "zpos" "2"
"wide" "65" "wide" "64"
"tall" "20" "tall" "20"
"autoResize" "0"
"pinCorner" "0"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"proportionaltoparent" "1"
"PaintBackground" "0" "PaintBackground" "0"
"border_default" "MaterialRed" "paintborder" "1"
"textinsety" "99" "border" "MaterialRed"
"pin_to_sibling" "BlackTransparentBG" "pin_to_sibling" "BlackTransparentBG"
"pin_corner_to_sibling" "PIN_BOTTOMRIGHT" "pin_corner_to_sibling" "PIN_BOTTOMRIGHT"
"pin_to_sibling_corner" "PIN_TOPRIGHT" "pin_to_sibling_corner" "PIN_TOPRIGHT"
@ -219,18 +206,16 @@
{ {
"visible" "0" "visible" "0"
} }
"if_mvm" "if_mvm"
{ {
"visible" "0" "visible" "0"
} }
"if_specialdelivery" "if_specialdelivery"
{ {
"visible" "0" "visible" "0"
} }
} }
"RedScore" "RedScore"
{ {
"ControlName" "CExLabel" "ControlName" "CExLabel"
@ -238,28 +223,26 @@
"xpos" "-5" "xpos" "-5"
"ypos" "0" "ypos" "0"
"zpos" "10" "zpos" "10"
"wide" "59" "wide" "25"
"tall" "20" "tall" "20"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"textAlignment" "east" "textAlignment" "east"
"labelText" "%redscore%" "labelText" "%redscore%"
"font" "Size 18" "font" "Size 18"
"fgcolor" "White" "fgcolor" "White"
"pin_to_sibling" "RedScoreBG" "pin_to_sibling" "RedScoreBG"
"pin_corner_to_sibling" "PIN_CENTER_RIGHT" "pin_corner_to_sibling" "PIN_CENTER_RIGHT"
"pin_to_sibling_corner" "PIN_CENTER_RIGHT" "pin_to_sibling_corner" "PIN_CENTER_RIGHT"
"if_hybrid" "if_hybrid"
{ {
"visible" "0" "visible" "0"
} }
"if_mvm" "if_mvm"
{ {
"visible" "0" "visible" "0"
} }
"if_specialdelivery" "if_specialdelivery"
{ {
"visible" "0" "visible" "0"
@ -272,26 +255,24 @@
"xpos" "-1" "xpos" "-1"
"ypos" "-1" "ypos" "-1"
"zpos" "9" "zpos" "9"
"wide" "59" "wide" "25"
"tall" "20" "tall" "20"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"textAlignment" "east" "textAlignment" "east"
"labelText" "%redscore%" "labelText" "%redscore%"
"font" "Size 18 Blur" "font" "Size 18 Blur"
"fgcolor" "Shadow" "fgcolor" "Shadow"
"pin_to_sibling" "RedScore" "pin_to_sibling" "RedScore"
"if_hybrid" "if_hybrid"
{ {
"visible" "0" "visible" "0"
} }
"if_mvm" "if_mvm"
{ {
"visible" "0" "visible" "0"
} }
"if_specialdelivery" "if_specialdelivery"
{ {
"visible" "0" "visible" "0"
@ -302,131 +283,128 @@
{ {
"ControlName" "CTFFlagStatus" "ControlName" "CTFFlagStatus"
"fieldName" "BlueFlag" "fieldName" "BlueFlag"
"xpos" "c-74" "xpos" "cs-0.5-17"
"ypos" "r40" "ypos" "rs1-15"
"zpos" "5" "zpos" "5"
"wide" "160" "wide" "35"
"tall" "90" "tall" "35"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"proportionaltoparent" "1"
"if_hybrid_single"
{
"xpos" "c-55"
"ypos" "r40"
}
"if_specialdelivery"
{
"ypos" "r35"
}
"if_no_flags"
{
"visible" "0"
}
"if_hybrid" "if_hybrid"
{ {
"visible" "0" "visible" "0"
} }
"if_mvm"
{
"xpos" "cs-0.5-3"
"ypos" "rs1-17"
}
"if_hybrid_single"
{
"xpos" "cs-0.5"
}
"if_no_flags"
{
"visible" "0"
}
"if_specialdelivery"
{
"ypos" "rs1"
}
} }
"RedFlag" "RedFlag"
{ {
"ControlName" "CTFFlagStatus" "ControlName" "CTFFlagStatus"
"fieldName" "RedFlag" "fieldName" "RedFlag"
"xpos" "c-36" "xpos" "cs-0.5+17"
"ypos" "r40" "ypos" "rs1-15"
"zpos" "5" "zpos" "5"
"wide" "160" "wide" "35"
"tall" "90" "tall" "35"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"proportionaltoparent" "1"
"if_hybrid_single"
{
"xpos" "c-55"
"ypos" "r40"
}
"if_specialdelivery"
{
"visible" "0"
}
"if_hybrid" "if_hybrid"
{ {
"visible" "0" "visible" "0"
} }
"if_hybrid_single"
{
"xpos" "cs-0.5"
}
"if_no_flags" "if_no_flags"
{ {
"visible" "0" "visible" "0"
} }
} "if_specialdelivery"
{
"ypos" "rs1"
}
}
"CaptureFlag" "CaptureFlag"
{ {
"ControlName" "CTFArrowPanel" "ControlName" "CTFArrowPanel"
"fieldName" "CaptureFlag" "fieldName" "CaptureFlag"
"xpos" "cs-0.5" "xpos" "cs-0.5"
"ypos" "r44" "ypos" "rs1-15"
"zpos" "5" "zpos" "5"
"wide" "35" "wide" "35"
"tall" "35" "tall" "35"
"visible" "0" "visible" "0"
"enabled" "1" "enabled" "1"
"proportionaltoparent" "1" "proportionaltoparent" "1"
"if_hybrid"
{
"ypos" "r44"
}
"if_specialdelivery" "if_specialdelivery"
{ {
"visible" "1" "ypos" "rs1"
"ypos" "r44"
"wide" "38"
"tall" "38"
} }
} }
"CarriedImage" "CarriedImage"
{ {
"ControlName" "ImagePanel" "ControlName" "ImagePanel"
"fieldName" "CarriedImage" "fieldName" "CarriedImage"
"xpos" "cs-.5" "xpos" "cs-0.5"
"ypos" "r36" "ypos" "rs1-25"
"zpos" "10" "zpos" "10"
"wide" "18" "wide" "15"
"tall" "18" "tall" "15"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"image" "../hud/objectives_flagpanel_carried_red" "image" "../hud/objectives_flagpanel_carried_red"
"scaleImage" "1" "scaleImage" "1"
"proportionaltoparent" "1" "proportionaltoparent" "1"
"if_hybrid" "if_hybrid"
{ {
"ypos" "r36" "ypos" "r36"
} }
"if_specialdelivery" "if_specialdelivery"
{ {
"visible" "0" "visible" "0"
"ypos" "rs1-7"
"wide" "18"
"tall" "18"
} }
} }
"PoisonIcon" "PoisonIcon"
{ {
"ControlName" "ImagePanel" "ControlName" "ImagePanel"
"fieldName" "PoisonIcon" "fieldName" "PoisonIcon"
"xpos" "cs-0.5" "xpos" "cs-1"
"ypos" "r75" "ypos" "rs1-55"
"zpos" "6" "zpos" "6"
"wide" "40" "wide" "15"
"tall" "o1" "tall" "o1"
"visible" "1" "visible" "1"
"enabled" "1" "enabled" "1"
"proportionaltoparent" "1"
"image" "marked_for_death" "image" "marked_for_death"
"scaleImage" "1" "scaleImage" "1"
} }
@ -434,34 +412,22 @@
{ {
"ControlName" "CExLabel" "ControlName" "CExLabel"
"fieldName" "PoisonTimeLabel" "fieldName" "PoisonTimeLabel"
"xpos" "cs-0.5" "xpos" "5"
"ypos" "r65" "ypos" "0"
"zpos" "6" "zpos" "6"
"wide" "40" "wide" "20"
"tall" "20" "tall" "18"
"visible" "0" "visible" "0"
"enabled" "1" "enabled" "1"
"textAlignment" "center" "proportionaltoparent" "1"
"textAlignment" "west"
"labelText" "%redscore%" "labelText" "%redscore%"
"font" "Size 24" "font" "Size 18"
"fgcolor" "White" "fgcolor" "White"
}
"PoisonTimeLabelShadow" "pin_to_sibling" "PoisonIcon"
{ "pin_corner_to_sibling" "PIN_CENTER_LEFT"
"ControlName" "CExLabel" "pin_to_sibling_corner" "PIN_CENTER_RIGHT"
"fieldName" "PoisonTimeLabelShadow"
"xpos" "-1"
"ypos" "-1"
"zpos" "5"
"wide" "40"
"tall" "20"
"visible" "0"
"enabled" "1"
"textAlignment" "center"
"labelText" "%redscore%"
"font" "Size 24 Blur"
"fgcolor" "Shadow"
"pin_to_sibling" "PoisonTimeLabel"
} }
"OutlineImage" "OutlineImage"
@ -479,13 +445,13 @@
"scaleImage" "1" "scaleImage" "1"
"proportionaltoparent" "1" "proportionaltoparent" "1"
} }
"SpecCarriedImage" "SpecCarriedImage"
{ {
"ControlName" "ImagePanel" "ControlName" "ImagePanel"
"fieldName" "SpecCarriedImage" "fieldName" "SpecCarriedImage"
"xpos" "cs-0.5" "xpos" "cs-0.5"
"ypos" "r95" "ypos" "r85"
"zpos" "10" "zpos" "10"
"wide" "30" "wide" "30"
"tall" "30" "tall" "30"