Skip to content

Commit

Permalink
AlertTray Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnootize committed Mar 10, 2024
1 parent b2051a1 commit 373d33c
Show file tree
Hide file tree
Showing 17 changed files with 645 additions and 525 deletions.
Binary file not shown.
Binary file modified materials/vgui/logos/build_icons/eng_status_area_sentry_alrt.vtf
Binary file not shown.
1 change: 1 addition & 0 deletions materials/vgui/logos/build_icons/hud_obj_status_sapper.vmt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
"$alpha" "1"
"$translucent" "1"
"$vertexcolor" "1"
"$no_fullbright" "1"
}
Binary file modified materials/vgui/logos/build_icons/hud_obj_status_sapper.vtf
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"UnlitGeneric"
{
"$baseTexture" "vgui\logos\build_icons\hud_obj_status_sapper_icon"
"$vertexalpha" "1"
"$alpha" "1"
"$translucent" "1"
"$vertexcolor" "1"
}
Binary file not shown.
2 changes: 1 addition & 1 deletion resource/ui/build_menu/base_active.res
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"enabled" "1"
"proportionaltoparent" "1"
"paintbackground" "1"
"border" "Material_Green"
"border" "Material_Transparent_Green_50"
}

"CostLabel"
Expand Down
2 changes: 1 addition & 1 deletion resource/ui/build_menu/base_cant_afford.res
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"Background"
{
"border" "Material_Red"
"border" "Material_Transparent_Red_50"
}
"CantBuildReason"
{
Expand Down
2 changes: 1 addition & 1 deletion resource/ui/build_menu/base_unavailable.res
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"Background"
{
"border" "Material_Red"
"border" "Material_Transparent_Red_50"
}
"CantBuildReason"
{
Expand Down
2 changes: 1 addition & 1 deletion resource/ui/destroy_menu/base_active.res
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"enabled" "1"
"proportionaltoparent" "1"
"paintbackground" "1"
"border" "Material_Red"
"border" "Material_Transparent_Red_50"
}

"DestroyIcon"
Expand Down
225 changes: 126 additions & 99 deletions resource/ui/hud_obj_dispenser.res
Original file line number Diff line number Diff line change
Expand Up @@ -6,95 +6,82 @@
"fieldName" "BuildingStatusItem"
"xpos" "0"
"ypos" "0"
"wide" "110"
"tall" "32"
"visible" "1"
"enabled" "1"
}

"BackgroundCustom"
{
"ControlName" "EditablePanel"
"fieldName" "BackgroundCustom"
"xpos" "0"
"ypos" "-1"
"zpos" "-1"
"wide" "80"
"tall" "34"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"border" "Material_Transparent_50"
}

"IconBackgound"
{
"ControlName" "EditablePanel"
"fieldName" "IconBackgound"
"xpos" "2"
"ypos" "1"
"zpos" "0"
"wide" "30"
"tall" "30"
"tall" "32"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"border" "Material_Transparent_50"
}

"Icon_Dispenser"
{
"ControlName" "CIconPanel"
"fieldName" "Icon_Dispenser"
"xpos" "0"
"ypos" "-5"
"zpos" "1"
"wide" "22"
"tall" "20"
"xpos" "6"
"ypos" "cs-0.5"
"zpos" "10"
"wide" "21"
"tall" "21"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"scaleImage" "1"
"icon" "obj_status_dispenser"
"iconColor" "White"

"pin_to_sibling" "IconBackgound"
"pin_corner_to_sibling" "PIN_CENTER_TOP"
"pin_to_sibling_corner" "PIN_CENTER_TOP"
}

"NotBuiltPanel"
{
"ControlName" "EditablePanel"
"fieldName" "NotBuiltPanel"
"xpos" "34"
"ypos" "1"
"wide" "42"
"tall" "30"
"xpos" "0"
"ypos" "0"
"zpos" "-1"
"wide" "f0"
"tall" "f0"
"visible" "1"
"proportionaltoparent" "1"

"NotBuiltBG"
{
"ControlName" "EditablePanel"
"ControlName" "Panel"
"fieldName" "NotBuiltBG"
"xpos" "9999"
"ypos" "9999"
"wide" "0"
"tall" "0"
"visible" "0"
"enabled" "0"
"xpos" "0"
"ypos" "-1"
"zpos" "-1"
"wide" "f0"
"tall" "34"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"paintBackground" "0"
"paintborder" "1"
"border" "Material_Transparent_50"
}
"IconBackgound"
{
"ControlName" "Panel"
"fieldName" "IconBackgound"
"xpos" "2"
"ypos" "2"
"zpos" "0"
"wide" "30"
"tall" "30"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"paintBackground" "0"
"paintborder" "1"
"border" "Material_Transparent_50"
}

"NotBuiltLabel"
{
"ControlName" "CExLabel"
"fieldName" "NotBuiltLabel"
"font" "Size_9"
"xpos" "cs-0.5"
"xpos" "rs1-5"
"ypos" "cs-0.5"
"wide" "f0"
"tall" "f0"
"wide" "42"
"tall" "f4"
"visible" "1"
"enabled" "1"
"labelText" "#Building_hud_dispenser_not_built"
Expand All @@ -108,23 +95,56 @@
{
"ControlName" "EditablePanel"
"fieldName" "BuiltPanel"
"xpos" "2"
"ypos" "1"
"zpos" "2"
"wide" "106"
"tall" "32"
"xpos" "0"
"ypos" "0"
"zpos" "-1"
"wide" "f0"
"tall" "f0"
"visible" "0"
"proportionaltoparent" "1"

"BuiltBG"
{
"ControlName" "Panel"
"fieldName" "BuiltBG"
"xpos" "0"
"ypos" "-1"
"zpos" "-1"
"wide" "f0"
"tall" "34"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"paintBackground" "0"
"paintborder" "1"
"border" "Material_Transparent_50"
}
"IconBackgound"
{
"ControlName" "Panel"
"fieldName" "IconBackgound"
"xpos" "2"
"ypos" "1"
"zpos" "2"
"wide" "30"
"tall" "30"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
"paintBackground" "0"
"paintborder" "1"
"border" "Material_Transparent_50"
}

"Icon_Upgrade_1"
{
"ControlName" "CIconPanel"
"fieldName" "Icon_Upgrade_1"
"xpos" "20"
"ypos" "20"
"zpos" "1"
"wide" "14"
"tall" "14"
"xpos" "22"
"ypos" "22"
"zpos" "10"
"wide" "13"
"tall" "13"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
Expand All @@ -137,11 +157,11 @@
{
"ControlName" "CIconPanel"
"fieldName" "Icon_Upgrade_2"
"xpos" "20"
"ypos" "20"
"zpos" "1"
"wide" "14"
"tall" "14"
"xpos" "22"
"ypos" "22"
"zpos" "10"
"wide" "13"
"tall" "13"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
Expand All @@ -154,11 +174,11 @@
{
"ControlName" "CIconPanel"
"fieldName" "Icon_Upgrade_3"
"xpos" "20"
"ypos" "20"
"zpos" "1"
"wide" "14"
"tall" "14"
"xpos" "22"
"ypos" "22"
"zpos" "10"
"wide" "13"
"tall" "13"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
Expand All @@ -170,12 +190,12 @@
{
"ControlName" "CBuildingStatusAlertTray"
"fieldName" "AlertTray"
"xpos" "rs1-3"
"ypos" "2"
"xpos" "cs-0.5+1"
"ypos" "cs-0.5+1"
"ypos" "0"
"zpos" "-2"
"wide" "o1"
"tall" "f2"
"wide" "76"
"tall" "30"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
Expand All @@ -185,43 +205,50 @@
{
"ControlName" "CIconPanel"
"fieldName" "WrenchIcon"
"xpos" "rs1-8"
"ypos" "cs-0.5"
"zpos" "1"
"wide" "20"
"tall" "20"
"xpos" "-3"
"ypos" "-4"
"zpos" "10"
"wide" "8"
"tall" "8"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
"proportionaltoparent" "1"
"icon" "obj_status_icon_wrench"
"iconColor" "Black"
"iconColor" "255 200 0 255"

"pin_to_sibling" "IconBackgound"
"pin_corner_to_sibling" "PIN_TOPRIGHT"
"pin_to_sibling_corner" "PIN_TOPRIGHT"
}
"SapperIcon"
{
"ControlName" "CIconPanel"
"fieldName" "SapperIcon"
"xpos" "rs1-5"
"ypos" "cs-0.5"
"zpos" "1"
"wide" "26"
"tall" "26"
"xpos" "-3"
"ypos" "-4"
"zpos" "10"
"wide" "8"
"tall" "8"
"visible" "0"
"enabled" "1"
"scaleImage" "1"
"proportionaltoparent" "1"
"icon" "obj_status_icon_sapper"
"iconColor" "Black"
}
"iconColor" "Blue"

"pin_to_sibling" "IconBackgound"
"pin_corner_to_sibling" "PIN_TOPRIGHT"
"pin_to_sibling_corner" "PIN_TOPRIGHT"
}
"Health"
{
"ControlName" "CBuildingHealthBar"
"fieldName" "Health"
"xpos" "rs1-33"
"ypos" "cs-0.5-2"
"xpos" "rs1-5"
"ypos" "cs-0.5"
"wide" "6"
"tall" "28"
"tall" "26"
"visible" "1"
"enabled" "1"
"proportionaltoparent" "1"
Expand All @@ -243,10 +270,10 @@
{
"ControlName" "EditablePanel"
"fieldName" "RunningPanel"
"xpos" "cs-0.5-6"
"ypos" "cs-0.5-2"
"wide" "f70"
"tall" "f0"
"xpos" "rs1-13"
"ypos" "cs-0.5"
"wide" "36"
"tall" "f4"
"visible" "0"
"proportionaltoparent" "1"

Expand Down
2 changes: 1 addition & 1 deletion resource/ui/hud_obj_sapper.res
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"enabled" "1"
"proportionaltoparent" "1"
"scaleImage" "1"
"icon" "obj_status_icon_sapper"
"icon" "obj_status_sapper"
"iconColor" "Red"

"pin_to_sibling" "IconBackgound"
Expand Down
Loading

0 comments on commit 373d33c

Please sign in to comment.