From 804b8ea5554a3a105aa0a58c28525bd5d773983f Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 4 Nov 2024 22:41:06 -0500 Subject: [PATCH] [flawhud] Fixed centered vaccinator not working #263 --- src/TF2HUD.Editor/JSON/flawhud.json | 230 ++++++++++++++-------------- 1 file changed, 114 insertions(+), 116 deletions(-) diff --git a/src/TF2HUD.Editor/JSON/flawhud.json b/src/TF2HUD.Editor/JSON/flawhud.json index 21f29506..71bf2793 100644 --- a/src/TF2HUD.Editor/JSON/flawhud.json +++ b/src/TF2HUD.Editor/JSON/flawhud.json @@ -801,115 +801,6 @@ } } }, - { - "Name": "fh_centered_vacc_icon", - "Label": "Center Vaccinator Icon", - "Type": "Checkbox", - "ToolTip": "Position Vaccinator icon towards the center.", - "Value": "false", - "Files": { - "resource/ui/hudmannvsmachinestatus.res": { - "ChargeLabelShadow": { - "visible": { - "true": "1", - "false": "1" - }, - "xpos": { - "true": "c-10", - "false": "-2" - }, - "ypos": { - "true": "c15", - "false": "-2" - }, - "wide": { - "true": "48", - "false": "110" - }, - "tall": { - "true": "27", - "false": "43" - }, - "labelText": { - "true": "#TF_IndividualUberchargesMinHUD", - "false": "" - }, - "bgcolor_override": { - "true": "HudBlack", - "false": "Black" - } - }, - "ChargeMeter1": { - "ypos": { - "true": "-20", - "false": "-2" - }, - "wide": { - "true": "10", - "false": "25" - }, - "tall": { - "true": "5", - "false": "26" - } - }, - "ChargeMeter2": { - "wide": { - "true": "10", - "false": "25" - }, - "tall": { - "true": "5", - "false": "26" - } - }, - "ChargeMeter3": { - "wide": { - "true": "10", - "false": "25" - }, - "tall": { - "true": "5", - "false": "26" - } - }, - "ChargeMeter4": { - "wide": { - "true": "10", - "false": "25" - }, - "tall": { - "true": "5", - "false": "26" - } - }, - "ResistIconAnchor": { - "xpos": { - "true": "0", - "false": "70" - }, - "pin_corner_to_sibling": { - "true": "PIN_TOPRIGHT", - "false": "PIN_CENTER_TOP" - }, - "pin_to_sibling_corner": { - "true": "PIN_TOPLEFT", - "false": "PIN_CENTER_TOP" - } - }, - "ResistIcon": { - "wide": { - "true": "25", - "false": "30" - }, - "tall": { - "true": "25", - "false": "30" - } - } - } - } - }, { "Name": "fh_val_hud_style", "Label": "Cornered Health/Ammo", @@ -979,13 +870,9 @@ } }, "ChargeLabelShadow": { - "textAlignment": { - "true": "east", - "false": "center" - }, - "font": { - "true": "FontBold50", - "false": "FontBold22" + "visible": { + "true": "0", + "false": "1" } }, "IndividualChargesLabel": { @@ -1161,6 +1048,117 @@ } } }, + { + "Name": "fh_centered_vacc_icon", + "Label": "Center Vaccinator Icon", + "Type": "Checkbox", + "ToolTip": "Position Vaccinator icon towards the center.", + "Value": "false", + "Files": { + "resource/ui/hudmediccharge.res": { + "ChargeLabelShadow": { + "visible": { + "true": "0", + "false": "1" + } + }, + "IndividualChargesLabel": { + "xpos": { + "true": "c-10", + "false": "c-55" + }, + "ypos": { + "true": "c15", + "false": "r120" + }, + "wide": { + "true": "48", + "false": "110" + }, + "tall": { + "true": "27", + "false": "30" + }, + "labelText": { + "true": "#TF_IndividualUberchargesMinHUD", + "false": "" + }, + "defaultbgcolor_override": { + "true": "HudBlack", + "false": "Black" + } + }, + "ChargeMeter1": { + "ypos": { + "true": "-20", + "false": "-2" + }, + "wide": { + "true": "10", + "false": "25" + }, + "tall": { + "true": "5", + "false": "26" + } + }, + "ChargeMeter2": { + "wide": { + "true": "10", + "false": "25" + }, + "tall": { + "true": "5", + "false": "26" + } + }, + "ChargeMeter3": { + "wide": { + "true": "10", + "false": "25" + }, + "tall": { + "true": "5", + "false": "26" + } + }, + "ChargeMeter4": { + "wide": { + "true": "10", + "false": "25" + }, + "tall": { + "true": "5", + "false": "26" + } + }, + "ResistIconAnchor": { + "xpos": { + "true": "0", + "false": "70" + }, + "pin_corner_to_sibling": { + "true": "PIN_TOPRIGHT", + "false": "PIN_CENTER_TOP" + }, + "pin_to_sibling_corner": { + "true": "PIN_TOPLEFT", + "false": "PIN_CENTER_TOP" + } + }, + "ResistIcon": { + "wide": { + "true": "25", + "false": "30" + }, + "tall": { + "true": "25", + "false": "30" + } + } + } + } + }, { "Name": "fh_val_damage_values", "Label": "Damage Numbers",