2
mirror of https://gitlab.com/jessieh/doghud.git synced 2024-12-21 16:51:47 +00:00

Improve building status UI

This commit is contained in:
Jessie Hildebrandt 2023-01-16 19:07:19 -05:00
parent e363844875
commit 401d1996aa
21 changed files with 412 additions and 139 deletions

View File

@ -0,0 +1,9 @@
"UnlitGeneric"
{
"$baseTexture" "vgui/replay/thumbnails/game/buildingstatus_charge"
"$vertexalpha" "1"
"$alpha" "1"
"$translucent" "1"
"$vertexcolor" "1"
"$no_fullbright" "1"
}

View File

@ -0,0 +1,9 @@
"UnlitGeneric"
{
"$baseTexture" "vgui/replay/thumbnails/game/buildingstatus_kills"
"$vertexalpha" "1"
"$alpha" "1"
"$translucent" "1"
"$vertexcolor" "1"
"$no_fullbright" "1"
}

View File

@ -0,0 +1,9 @@
"UnlitGeneric"
{
"$baseTexture" "vgui/replay/thumbnails/game/buildingstatus_supply"
"$vertexalpha" "1"
"$alpha" "1"
"$translucent" "1"
"$vertexcolor" "1"
"$no_fullbright" "1"
}

View File

@ -0,0 +1,9 @@
"UnlitGeneric"
{
"$baseTexture" "vgui/replay/thumbnails/game/buildingstatus_teleports"
"$vertexalpha" "1"
"$alpha" "1"
"$translucent" "1"
"$vertexcolor" "1"
"$no_fullbright" "1"
}

Binary file not shown.

View File

@ -183,16 +183,16 @@
"xpos" "3"
"ypos" "3"
"zpos" "10"
"wide" "25"
"tall" "25"
"wide" "24"
"tall" "24"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
"icon" "obj_status_icon_sapper"
"scaleImage" "1"
"icon" "obj_status_sapper"
"iconColor" "Black"
"paintbackground" "1"
"bgcolor_override" "Red"
"proportionaltoparent" "1"
"paintbackground" "1"
"bgcolor_override" "Red"
"proportionaltoparent" "1"
}
"Health"
@ -200,9 +200,9 @@
"ControlName" "CBuildingHealthBar"
"fieldName" "Health"
"xpos" "rs1-3"
"ypos" "cs-0.5-1"
"ypos" "cs-0.5"
"wide" "6"
"tall" "28"
"tall" "25"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
@ -211,12 +211,48 @@
"BuildingPanel"
{
"ControlName" "EditablePanel"
"fieldName" "BuildingPanel"
"wide" "0"
"tall" "0"
"visible" "0"
"fieldName" "BuildingPanel"
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "f0"
"visible" "0"
"proportionaltoparent" "1"
"BuildingProgress"
{
"ControlName" "ContinuousProgressBar"
"fieldName" "BuildingProgress"
"xpos" "32"
"ypos" "cs-0.5"
"wide" "0"
"tall" "6"
"visible" "1"
"enabled" "1"
"bgcolor_override" "130 130 130 255"
"proportionaltoparent" "1"
}
"BuildingLabel"
{
"ControlName" "Label"
"fieldName" "BuildingLabel"
"font" "Size 7"
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "30"
"tall" "6"
"visible" "1"
"enabled" "1"
"labelText" "BUILDING"
"textAlignment" "center"
"proportionaltoparent" "1"
"pin_to_sibling" "BuildingProgress"
}
}
"RunningPanel"
{
"ControlName" "EditablePanel"
@ -248,12 +284,12 @@
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "25"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"
"scaleImage" "1"
"image" "replay/thumbnails/game/buildingstatus_ammo"
"image" "replay/thumbnails/game/buildingstatus_supply"
"drawcolor" "Black"
"pin_to_sibling" "Ammo"
@ -282,7 +318,7 @@
"xpos" "0"
"ypos" "0"
"zpos" "3"
"wide" "25"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"

View File

@ -56,7 +56,7 @@
"enabled" "1"
"proportionaltoparent" "1"
"scaleImage" "1"
"icon" "obj_status_icon_sapper"
"icon" "obj_status_sapper"
"iconColor" "Red"
"pin_to_sibling" "IconBackgound"

View File

@ -225,16 +225,16 @@
"xpos" "3"
"ypos" "3"
"zpos" "10"
"wide" "25"
"tall" "25"
"wide" "24"
"tall" "24"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
"icon" "obj_status_icon_sapper"
"scaleImage" "1"
"icon" "obj_status_sapper"
"iconColor" "Black"
"paintbackground" "1"
"bgcolor_override" "Red"
"proportionaltoparent" "1"
"paintbackground" "1"
"bgcolor_override" "Red"
"proportionaltoparent" "1"
}
"Health"
@ -242,9 +242,9 @@
"ControlName" "CBuildingHealthBar"
"fieldName" "Health"
"xpos" "rs1-3"
"ypos" "cs-0.5-1"
"ypos" "cs-0.5"
"wide" "6"
"tall" "28"
"tall" "25"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
@ -253,10 +253,45 @@
"BuildingPanel"
{
"ControlName" "EditablePanel"
"fieldName" "BuildingPanel"
"wide" "0"
"tall" "0"
"visible" "0"
"fieldName" "BuildingPanel"
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "f0"
"visible" "0"
"proportionaltoparent" "1"
"BuildingProgress"
{
"ControlName" "ContinuousProgressBar"
"fieldName" "BuildingProgress"
"xpos" "32"
"ypos" "cs-0.5"
"wide" "0"
"tall" "6"
"visible" "1"
"enabled" "1"
"bgcolor_override" "130 130 130 255"
"proportionaltoparent" "1"
}
"BuildingLabel"
{
"ControlName" "Label"
"fieldName" "BuildingLabel"
"font" "Size 7"
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "30"
"tall" "6"
"visible" "1"
"enabled" "1"
"labelText" "BUILDING"
"textAlignment" "center"
"proportionaltoparent" "1"
"pin_to_sibling" "BuildingProgress"
}
}
"RunningPanel"
@ -275,10 +310,10 @@
"ControlName" "CExLabel"
"fieldName" "KillsLabel"
"font" "Size 10"
"xpos" "32"
"xpos" "42"
"ypos" "3"
"wide" "200"
"tall" "8"
"tall" "7"
"visible" "1"
"enabled" "1"
"labelText" "#Building_hud_sentry_kills_assists"
@ -286,6 +321,22 @@
"drawcolor" "White"
"proportionaltoparent" "1"
}
"KillIcon"
{
"ControlName" "ImagePanel"
"fieldName" "KillIcon"
"xpos" "32"
"ypos" "3"
"zpos" "10"
"wide" "8"
"tall" "8"
"visible" "1"
"enabled" "1"
"scaleImage" "1"
"image" "replay/thumbnails/game/buildingstatus_kills"
"drawcolor" "White"
"proportionaltoparent" "1"
}
"Shells"
{
@ -307,7 +358,7 @@
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "25"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"
@ -340,7 +391,7 @@
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "25"
"wide" "24"
"tall" "6"
"visible" "0"
"enabled" "1"
@ -373,7 +424,7 @@
"xpos" "0"
"ypos" "0"
"zpos" "3"
"wide" "25"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"
@ -386,12 +437,6 @@
"pin_to_sibling_corner" "PIN_CENTER_TOP"
}
"KillIcon"
{
"ControlName" "ImagePanel"
"fieldName" "KillIcon"
"xpos" "9999"
}
}
}

View File

@ -183,12 +183,12 @@
"xpos" "3"
"ypos" "3"
"zpos" "10"
"wide" "25"
"tall" "25"
"wide" "24"
"tall" "24"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
"icon" "obj_status_icon_sapper"
"icon" "obj_status_sapper"
"iconColor" "Black"
"paintbackground" "1"
"bgcolor_override" "Red"
@ -200,9 +200,9 @@
"ControlName" "CBuildingHealthBar"
"fieldName" "Health"
"xpos" "rs1-3"
"ypos" "cs-0.5-1"
"ypos" "cs-0.5"
"wide" "6"
"tall" "28"
"tall" "25"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
@ -211,10 +211,45 @@
"BuildingPanel"
{
"ControlName" "EditablePanel"
"fieldName" "BuildingPanel"
"wide" "0"
"tall" "0"
"visible" "0"
"fieldName" "BuildingPanel"
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "f0"
"visible" "0"
"proportionaltoparent" "1"
"BuildingProgress"
{
"ControlName" "ContinuousProgressBar"
"fieldName" "BuildingProgress"
"xpos" "32"
"ypos" "cs-0.5"
"wide" "0"
"tall" "6"
"visible" "1"
"enabled" "1"
"bgcolor_override" "130 130 130 255"
"proportionaltoparent" "1"
}
"BuildingLabel"
{
"ControlName" "Label"
"fieldName" "BuildingLabel"
"font" "Size 7"
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "30"
"tall" "6"
"visible" "1"
"enabled" "1"
"labelText" "BUILDING"
"textAlignment" "center"
"proportionaltoparent" "1"
"pin_to_sibling" "BuildingProgress"
}
}
"RunningPanel"
@ -233,10 +268,10 @@
"ControlName" "CExLabel"
"fieldName" "KillsLabel"
"font" "Size 10"
"xpos" "32"
"xpos" "42"
"ypos" "3"
"wide" "200"
"tall" "8"
"tall" "7"
"visible" "1"
"enabled" "1"
"labelText" "#Building_hud_sentry_kills_assists"
@ -244,6 +279,22 @@
"drawcolor" "White"
"proportionaltoparent" "1"
}
"KillIcon"
{
"ControlName" "ImagePanel"
"fieldName" "KillIcon"
"xpos" "32"
"ypos" "3"
"zpos" "10"
"wide" "8"
"tall" "8"
"visible" "1"
"enabled" "1"
"scaleImage" "1"
"image" "replay/thumbnails/game/buildingstatus_kills"
"drawcolor" "White"
"proportionaltoparent" "1"
}
"Shells"
{
@ -265,7 +316,7 @@
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "25"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"
@ -278,12 +329,6 @@
"pin_to_sibling_corner" "PIN_CENTER_TOP"
}
"KillIcon"
{
"ControlName" "ImagePanel"
"fieldName" "KillIcon"
"xpos" "9999"
}
}
}

View File

@ -183,12 +183,12 @@
"xpos" "3"
"ypos" "3"
"zpos" "10"
"wide" "25"
"tall" "25"
"wide" "24"
"tall" "24"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
"icon" "obj_status_icon_sapper"
"icon" "obj_status_sapper"
"iconColor" "Black"
"paintbackground" "1"
"bgcolor_override" "Red"
@ -200,9 +200,9 @@
"ControlName" "CBuildingHealthBar"
"fieldName" "Health"
"xpos" "rs1-3"
"ypos" "cs-0.5-1"
"ypos" "cs-0.5"
"wide" "6"
"tall" "28"
"tall" "25"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
@ -211,10 +211,45 @@
"BuildingPanel"
{
"ControlName" "EditablePanel"
"fieldName" "BuildingPanel"
"wide" "0"
"tall" "0"
"visible" "0"
"fieldName" "BuildingPanel"
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "f0"
"visible" "0"
"proportionaltoparent" "1"
"BuildingProgress"
{
"ControlName" "ContinuousProgressBar"
"fieldName" "BuildingProgress"
"xpos" "32"
"ypos" "cs-0.5"
"wide" "0"
"tall" "6"
"visible" "1"
"enabled" "1"
"bgcolor_override" "130 130 130 255"
"proportionaltoparent" "1"
}
"BuildingLabel"
{
"ControlName" "Label"
"fieldName" "BuildingLabel"
"font" "Size 7"
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "30"
"tall" "6"
"visible" "1"
"enabled" "1"
"labelText" "BUILDING"
"textAlignment" "center"
"proportionaltoparent" "1"
"pin_to_sibling" "BuildingProgress"
}
}
"RunningPanel"
@ -232,50 +267,80 @@
{
"ControlName" "ImagePanel"
"fieldName" "TeleportedIcon"
"xpos" "9999"
"xpos" "32"
"ypos" "3"
"zpos" "10"
"wide" "8"
"tall" "8"
"visible" "1"
"enabled" "1"
"scaleImage" "1"
"image" "replay/thumbnails/game/buildingstatus_teleports"
"drawcolor" "White"
"proportionaltoparent" "1"
}
"ChargingPanel"
{
"ControlName" "EditablePanel"
"fieldName" "ChargingPanel"
"xpos" "32"
"ypos" "cs-0.5"
"wide" "30"
"tall" "6"
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "f0"
"visible" "0"
"proportionaltoparent" "1"
"DummyTimesUsedLabel"
{
"ControlName" "CExLabel"
"fieldName" "DummyTimesUsedLabel"
"font" "Size 10"
"xpos" "42"
"ypos" "1"
"wide" "200"
"tall" "7"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" "..."
"textAlignment" "west"
"drawcolor" "White"
"proportionaltoparent" "1"
}
"Recharge"
{
"ControlName" "ContinuousProgressBar"
"fieldName" "Recharge"
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "f0"
"xpos" "32"
"ypos" "cs-0.5+1"
"wide" "30"
"tall" "6"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"bgcolor_override" "130 130 130 255"
}
"RechargeLabel"
"RechargeIcon"
{
"ControlName" "CExLabel"
"fieldName" "RechargeLabel"
"font" "Size 7"
"xpos" "0"
"ypos" "0"
"zpos" "0"
"wide" "30"
"tall" "6"
"visible" "1"
"enabled" "1"
"labelText" "CHARGE"
"textAlignment" "center"
"fgcolor" "Black"
"AllCaps" "1"
"proportionaltoparent" "1"
"ControlName" "ImagePanel"
"fieldName" "RechargeIcon"
"xpos" "0"
"ypos" "0"
"zpos" "3"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"
"scaleImage" "1"
"image" "replay/thumbnails/game/buildingstatus_charge"
"drawcolor" "Black"
"pin_to_sibling" "Recharge"
"pin_corner_to_sibling" "PIN_CENTER_TOP"
"pin_to_sibling_corner" "PIN_CENTER_TOP"
}
}
@ -283,42 +348,22 @@
{
"ControlName" "EditablePanel"
"fieldName" "FullyChargedPanel"
"xpos" "32"
"ypos" "3"
"wide" "48"
"tall" "10"
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "f0"
"visible" "0"
"proportionaltoparent" "1"
"Used"
{
"ControlName" "CExLabel"
"fieldName" "Used"
"font" "Size 10"
"xpos" "0"
"ypos" "0"
"wide" "40"
"tall" "10"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" "used:"
"textAlignment" "west"
"drawcolor" "White"
"AllCaps" "1"
"proportionaltoparent" "1"
}
"TimesUsedLabel"
{
"ControlName" "CExLabel"
"fieldName" "TimesUsedLabel"
"font" "Size 10"
"xpos" "25"
"ypos" "0"
"wide" "20"
"tall" "10"
"xpos" "42"
"ypos" "3"
"wide" "200"
"tall" "7"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
@ -328,6 +373,40 @@
"drawcolor" "White"
"proportionaltoparent" "1"
}
"DummyRecharge"
{
"ControlName" "ContinuousProgressBar"
"fieldName" "DummyRecharge"
"xpos" "32"
"ypos" "cs-0.5+1"
"wide" "30"
"tall" "6"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"bgcolor_override" "White"
}
"DummyRechargeIcon"
{
"ControlName" "ImagePanel"
"fieldName" "DummyRechargeIcon"
"xpos" "0"
"ypos" "0"
"zpos" "3"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"
"scaleImage" "1"
"image" "replay/thumbnails/game/buildingstatus_charge"
"drawcolor" "Black"
"pin_to_sibling" "DummyRecharge"
"pin_corner_to_sibling" "PIN_CENTER_TOP"
"pin_to_sibling_corner" "PIN_CENTER_TOP"
}
}
"Upgrade"
@ -351,7 +430,7 @@
"xpos" "0"
"ypos" "0"
"zpos" "3"
"wide" "25"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"

View File

@ -183,12 +183,12 @@
"xpos" "3"
"ypos" "3"
"zpos" "10"
"wide" "25"
"tall" "25"
"wide" "24"
"tall" "24"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
"icon" "obj_status_icon_sapper"
"icon" "obj_status_sapper"
"iconColor" "Black"
"paintbackground" "1"
"bgcolor_override" "Red"
@ -200,9 +200,9 @@
"ControlName" "CBuildingHealthBar"
"fieldName" "Health"
"xpos" "rs1-3"
"ypos" "cs-0.5-1"
"ypos" "cs-0.5"
"wide" "6"
"tall" "28"
"tall" "25"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
@ -211,10 +211,45 @@
"BuildingPanel"
{
"ControlName" "EditablePanel"
"fieldName" "BuildingPanel"
"wide" "0"
"tall" "0"
"visible" "0"
"fieldName" "BuildingPanel"
"xpos" "0"
"ypos" "0"
"wide" "f0"
"tall" "f0"
"visible" "0"
"proportionaltoparent" "1"
"BuildingProgress"
{
"ControlName" "ContinuousProgressBar"
"fieldName" "BuildingProgress"
"xpos" "32"
"ypos" "cs-0.5"
"wide" "0"
"tall" "6"
"visible" "1"
"enabled" "1"
"bgcolor_override" "130 130 130 255"
"proportionaltoparent" "1"
}
"BuildingLabel"
{
"ControlName" "Label"
"fieldName" "BuildingLabel"
"font" "Size 7"
"xpos" "0"
"ypos" "0"
"zpos" "1"
"wide" "30"
"tall" "6"
"visible" "1"
"enabled" "1"
"labelText" "BUILDING"
"textAlignment" "center"
"proportionaltoparent" "1"
"pin_to_sibling" "BuildingProgress"
}
}
"RunningPanel"
@ -249,7 +284,7 @@
"xpos" "0"
"ypos" "0"
"zpos" "3"
"wide" "25"
"wide" "24"
"tall" "6"
"visible" "1"
"enabled" "1"

View File

@ -1618,8 +1618,8 @@
"file" "vgui/logos/build icons/hud_obj_status_sapper"
"x" "0"
"y" "0"
"width" "64"
"height" "64"
"width" "128"
"height" "128"
}
"cappoint_progressbar_teardrop"
@ -2061,16 +2061,13 @@
"height" "128"
}
"ico_metal"
{
"file" "vgui\replay\thumbnails\game\buildingstatus_upgrade"
"x" "0"
"y" "0"
"width" "64"
"height" "16"
"width" "128"
"height" "32"
}
"ico_demolish"