From 02a5180f7d7bc783e5bcccf91b5a9088654ce6d1 Mon Sep 17 00:00:00 2001 From: conch <76109782+conchkritz@users.noreply.github.com> Date: Sun, 24 Apr 2022 19:31:27 -0500 Subject: [PATCH] #customization ready for 0.2 --- .../BotVoteHud/BotDetectorVoteHUD.res | 508 ++++++++++++++++++ #customizations/BotVoteHud/HOW2INSTALL.txt | 25 + .../BotVoteHud/LANG}/chat_brazilian.txt | Bin .../BotVoteHud/LANG}/chat_english.txt | Bin .../BotVoteHud/LANG}/chat_french.txt | Bin .../BotVoteHud/LANG}/chat_german.txt | Bin .../BotVoteHud/LANG}/chat_italian.txt | Bin .../BotVoteHud/LANG}/chat_polish.txt | Bin .../BotVoteHud/LANG}/chat_russian.txt | Bin .../BotVoteHud/LANG}/chat_spanish.txt | Bin .../BotVoteHud}/clientscheme_votehud.res | 0 #customizations/crosshair.res | 23 + .../extendedtf2fonts.res | 3 + #customizations/hitmarker.res | 24 + #customizations/transparentviewmodel.res | 20 + resource/clientscheme.res | 4 +- resource/ui/controlpointicon.res | 4 +- resource/ui/healthiconpanel.res | 4 +- resource/ui/hudmatchstatus.res | 43 +- resource/ui/revivedialog.res | 2 +- resource/ui/targetid.res | 10 +- resource/ui/votehud.res | 506 +---------------- .../ui/{votehud_OLD.res => votehud_tf2.res} | 2 +- resource/ui/votehud_tf2edits.res | 122 +++++ scripts/hudlayout.res | 88 +-- 25 files changed, 774 insertions(+), 614 deletions(-) create mode 100644 #customizations/BotVoteHud/BotDetectorVoteHUD.res create mode 100644 #customizations/BotVoteHud/HOW2INSTALL.txt rename {resource => #customizations/BotVoteHud/LANG}/chat_brazilian.txt (100%) rename {resource => #customizations/BotVoteHud/LANG}/chat_english.txt (100%) rename {resource => #customizations/BotVoteHud/LANG}/chat_french.txt (100%) rename {resource => #customizations/BotVoteHud/LANG}/chat_german.txt (100%) rename {resource => #customizations/BotVoteHud/LANG}/chat_italian.txt (100%) rename {resource => #customizations/BotVoteHud/LANG}/chat_polish.txt (100%) rename {resource => #customizations/BotVoteHud/LANG}/chat_russian.txt (100%) rename {resource => #customizations/BotVoteHud/LANG}/chat_spanish.txt (100%) rename {resource/scheme => #customizations/BotVoteHud}/clientscheme_votehud.res (100%) create mode 100644 #customizations/crosshair.res rename resource/scheme/customfontfiles.res => #customizations/extendedtf2fonts.res (98%) create mode 100644 #customizations/hitmarker.res create mode 100644 #customizations/transparentviewmodel.res rename resource/ui/{votehud_OLD.res => votehud_tf2.res} (99%) create mode 100644 resource/ui/votehud_tf2edits.res diff --git a/#customizations/BotVoteHud/BotDetectorVoteHUD.res b/#customizations/BotVoteHud/BotDetectorVoteHUD.res new file mode 100644 index 0000000..a309f18 --- /dev/null +++ b/#customizations/BotVoteHud/BotDetectorVoteHUD.res @@ -0,0 +1,508 @@ +#base "votehud_OLD.res" + +"Resource/UI/VoteHud.res" +{ + "VoteActive" + { + "ControlName" "EditablePanel" + "fieldName" "VoteActive" + "xpos" "10" + "ypos" "r340" + "wide" "150" + "tall" "170" + "visible" "0" + "enabled" "1" + // "bgcolor_override" "52 48 45 255" // Remove 2 slashes from beginning of this line to force gray background in active vote panel. + + "Header" // Vote caller - large custom font + { + "ControlName" "Label" + "fieldName" "Header" + "xpos" "10" + "ypos" "5" + "wide" "134" + "tall" "25" + "visible" "1" + "enabled" "1" + "labelText" "%header%" + "textAlignment" "west" + "dulltext" "0" + "brighttext" "0" + "font" "CustomNotoMonoMedium" + "wrap" "1" + "fgcolor_override" "128 128 128 255" + "AllCaps" "0" + } + + "Header_small" // Vote caller - small regular font + { + "ControlName" "Label" + "fieldName" "Header_small" + "xpos" "10" + "ypos" "29" + "wide" "134" + "tall" "20" + "visible" "1" + "enabled" "1" + "labelText" "%header%" + "textAlignment" "north-west" + "dulltext" "0" + "brighttext" "0" + "font" "CustomVerdanaSmall" + "wrap" "1" + "fgcolor_override" "128 128 128 255" + "AllCaps" "0" + } + + "Wants_to_vote" + { + "ControlName" "Label" + "fieldName" "Wants_to_vote" + "xpos" "10" + "ypos" "41" + "wide" "134" + "tall" "20" + "visible" "1" + "enabled" "1" + "labelText" "#TF_custom_font_mod_wants_to_vote" + "textAlignment" "north-west" + "dulltext" "0" + "brighttext" "0" + "font" "CustomVerdanaSmall" + "wrap" "1" + "fgcolor_override" "128 128 128 255" + } + + "Issue" // Kick: + { + "ControlName" "Label" + "fieldName" "Issue" + "xpos" "10" + "ypos" "48" + "wide" "134" + "tall" "20" + "visible" "1" + "enabled" "1" + "labelText" "%voteissue%" + "textAlignment" "north-west" + "dulltext" "0" + "brighttext" "0" + "font" "CustomVerdanaSmall" + "fgcolor_override" "128 128 128 255" + "wrap" "1" + "noshortcutsyntax" "1" + "AllCaps" "0" + } + + "Kick_name_large" // Player to be kicked name - large custom font + { + "ControlName" "Label" + "fieldName" "Kick_name_large" + "xpos" "10" + "ypos" "-123" + "wide" "134" + "tall" "220" + "visible" "1" + "enabled" "1" + "labelText" "%voteissue%" + "textAlignment" "north-west" + "dulltext" "0" + "brighttext" "0" + "font" "CustomNotoMonoMedium" + "fgcolor_override" "255 255 255 255" + "wrap" "1" + "noshortcutsyntax" "1" + "AllCaps" "0" + } + + "Kick_name_small" // Player to be kicked name - small regular font + { + "ControlName" "Label" + "fieldName" "Kick_name_small" + "xpos" "10" + "ypos" "79" + "wide" "134" + "tall" "27" + "visible" "1" + "enabled" "1" + "labelText" "%voteissue%" + "textAlignment" "west" + "dulltext" "0" + "brighttext" "0" + "font" "CustomVerdanaSmall" + "fgcolor_override" "255 255 255 255" + "wrap" "1" + "noshortcutsyntax" "1" + "AllCaps" "0" + } + + "Kick_reason" // Kick reason (or other vote issue strings) + { + "ControlName" "Label" + "fieldName" "Kick_reason" + "xpos" "10" + "ypos" "69" + "wide" "134" + "tall" "30" + "visible" "1" + "enabled" "1" + "labelText" "%voteissue%" + "textAlignment" "south-west" + "dulltext" "0" + "brighttext" "0" + "font" "CustomVerdanaSmall" + "fgcolor_override" "255 255 255 255" + "wrap" "1" + "noshortcutsyntax" "1" + } + + "TargetAvatarImage" + { + "ControlName" "CAvatarImagePanel" + "fieldName" "TargetAvatarImage" + "xpos" "10" + "ypos" "23" + "wide" "16" + "tall" "16" + "visible" "0" + "enabled" "1" + "image" "" + "scaleImage" "1" + "color_outline" "52 48 45 255" + } + + // divider + "Divider" + { + "ControlName" "ImagePanel" + "fieldName" "Divider" + "xpos" "10" + "ypos" "100" + "wide" "130" + "tall" "1" + "fillcolor" "128 128 128 255" + "zpos" "0" + } + + // Temp UI + + "LabelOption1" + { + "ControlName" "Label" + "fieldName" "LabelOption1" + "xpos" "10" + "ypos" "100" + "wide" "130" + "tall" "16" + "zpos" "2" + "visible" "1" + "enabled" "1" + "labelText" "" + "textAlignment" "left" + "dulltext" "0" + "brighttext" "0" + "font" "ScoreboardVerySmall" + "fgcolor_override" "255 255 255 255" + } + + "Option1Background_Selected" + { + "ControlName" "ImagePanel" + "fieldName" "Option1Background_Selected" + "xpos" "8" + "ypos" "100" + "wide" "132" + "tall" "16" + "zpos" "1" + "fillcolor" "145 73 59 50" + "visible" "1" + "paintborder" "1" + "border" "CustomCyanBorderThick" + + } + + "Option1CountLabel" + { + "ControlName" "Label" + "fieldName" "Option1CountLabel" + "xpos" "28" + "ypos" "147" + "wide" "16" + "tall" "16" + "zpos" "2" + "visible" "1" + "enabled" "1" + "labelText" "Yes" + "textAlignment" "center" + "dulltext" "0" + "brighttext" "0" + "font" "ScoreboardSmall" + "fgcolor_override" "255 255 255 255" + } + + "LabelOption2" + { + "ControlName" "Label" + "fieldName" "LabelOption2" + "xpos" "10" + "ypos" "113" + "wide" "130" + "tall" "16" + "zpos" "2" + "visible" "1" + "enabled" "1" + "labelText" "" + "textAlignment" "left" + "dulltext" "0" + "brighttext" "0" + "font" "ScoreboardVerySmall" + "fgcolor_override" "255 255 255 255" + } + + "Option2Background_Selected" + { + "ControlName" "ImagePanel" + "fieldName" "Option2Background_Selected" + "xpos" "10" + "ypos" "113" + "wide" "132" + "tall" "16" + "zpos" "1" + "fillcolor" "145 73 59 50" + "visible" "1" + "paintborder" "1" + "border" "CustomCyanBorderThick" + } + + "Option2CountLabel" + { + "ControlName" "Label" + "fieldName" "Option2CountLabel" + "xpos" "74" + "ypos" "147" + "wide" "16" + "tall" "16" + "zpos" "2" + "visible" "1" + "enabled" "1" + "labelText" "No" + "textAlignment" "center" + "dulltext" "0" + "brighttext" "0" + "font" "ScoreboardSmall" + "fgcolor_override" "255 255 255 255" + } + + "LabelOption3" + { + "ControlName" "Label" + "fieldName" "LabelOption3" + "xpos" "10" + "ypos" "126" + "wide" "130" + "tall" "16" + "zpos" "2" + "visible" "1" + "enabled" "1" + "labelText" "" + "textAlignment" "left" + "dulltext" "0" + "brighttext" "0" + "font" "ScoreboardVerySmall" + "fgcolor_override" "255 255 255 255" + } + + "Option3Background_Selected" + { + "ControlName" "ImagePanel" + "fieldName" "Option3Background_Selected" + "xpos" "10" + "ypos" "126" + "wide" "132" + "tall" "16" + "zpos" "1" + "fillcolor" "145 73 59 50" + "visible" "0" + "paintborder" "1" + "border" "CustomCyanBorderThick" + } + + "LabelOption4" + { + "ControlName" "Label" + "fieldName" "LabelOption4" + "xpos" "10" + "ypos" "139" + "wide" "130" + "tall" "16" + "zpos" "2" + "visible" "1" + "enabled" "1" + "labelText" "" + "textAlignment" "left" + "dulltext" "0" + "brighttext" "0" + "font" "ScoreboardVerySmall" + "fgcolor_override" "255 255 255 255" + } + + "Option4Background_Selected" + { + "ControlName" "ImagePanel" + "fieldName" "Option4Background_Selected" + "xpos" "10" + "ypos" "139" + "wide" "132" + "tall" "16" + "zpos" "1" + "fillcolor" "145 73 59 50" + "visible" "0" + "paintborder" "1" + "border" "CustomCyanBorderThick" + } + + "LabelOption5" + { + "ControlName" "Label" + "fieldName" "LabelOption5" + "xpos" "10" + "ypos" "152" + "wide" "130" + "tall" "16" + "zpos" "2" + "visible" "1" + "enabled" "1" + "labelText" "" + "textAlignment" "left" + "dulltext" "0" + "brighttext" "0" + "font" "ScoreboardVerySmall" + "fgcolor_override" "255 255 255 255" + } + + "Option5Background_Selected" + { + "ControlName" "ImagePanel" + "fieldName" "Option5Background_Selected" + "xpos" "10" + "ypos" "152" + "wide" "132" + "tall" "16" + "zpos" "1" + "fillcolor" "145 73 59 50" + "visible" "0" + "paintborder" "1" + "border" "CustomCyanBorderThick" + } + + // divider + "Divider2" + { + "ControlName" "ImagePanel" + "fieldName" "Divider2" + "xpos" "10" + "ypos" "134" + "wide" "130" + "tall" "1" + "fillcolor" "128 128 128 255" + "zpos" "0" + } + + "VoteCountLabel" + { + "ControlName" "Label" + "fieldName" "VoteCountLabel" + "xpos" "10" + "ypos" "136" + "wide" "140" + "tall" "20" + "visible" "1" + "enabled" "1" + "labelText" "#GameUI_vote_current_vote_count" + "textAlignment" "north-west" + "dulltext" "0" + "brighttext" "0" + "font" "ScoreboardVerySmall" + "fgcolor_override" "128 128 128 255" + } + + // vote bar + "VoteBar" + { + "ControlName" "Panel" + "fieldName" "VoteBar" + "xpos" "11" + "ypos" "147" + "wide" "130" + "tall" "18" + "zpos" "2" + "visible" "1" + "enabled" "1" + "box_size" "16" + "spacer" "6" + "box_inset" "1" + "yes_texture" "vgui/hud/vote_yes" + "no_texture" "vgui/hud/vote_no" + "bgcolor_override" "0 0 0 0" + } + } + + + "VoteSetupDialog" + { + "ControlName" "CVoteSetupDialog" + "fieldName" "VoteSetupDialog" + "xpos" "c-210" + "ypos" "c-150" + "wide" "420" + "tall" "310" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "settitlebarvisible" "0" + + // "bgcolor_override" "52 48 45 255" // Remove 2 slashes from beginning of this line to force gray background in vote setup list. + + "issue_width" "180" + "issue_font" "CustomNotoMonoSmall" + + "parameter_width" "255" + + "VoteSetupList" + { + "ControlName" "SectionedListPanel" + "fieldName" "VoteSetupList" + "xpos" "5" + "ypos" "38" + "zpos" "2" + "wide" "160" + "tall" "200" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "autoresize" "0" + "linespacing" "16" + } + + "VoteParameterList" + { + "ControlName" "SectionedListPanel" + "fieldName" "VoteParameterList" + "xpos" "160" + "ypos" "38" + "zpos" "2" + "wide" "255" + "tall" "200" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "autoresize" "0" + "linespacing" "16" + } + + } +} diff --git a/#customizations/BotVoteHud/HOW2INSTALL.txt b/#customizations/BotVoteHud/HOW2INSTALL.txt new file mode 100644 index 0000000..d711eb5 --- /dev/null +++ b/#customizations/BotVoteHud/HOW2INSTALL.txt @@ -0,0 +1,25 @@ +Take all of the files in the 'LANG' Folder and put them in 'ckHUD/resource' + +Should look like this + +-TF +| -Custom +| -ckHUD +| -resource +| -chat_brazilian.txt +| -chat_english.txt +| -chat_french.txt +| -chat_german.txt +| -chat_italian.txt +| -chat_polish.txt +| -chat_russian.txt +| -chat_spanish.txt + +Then put 'BotDetectorVoteHUD.res' and 'clientscheme_votehud' in the #customization/enabled folder + +**THIS REQUIRES A GAME RESTART TO FUNCTION PROPERLY** + +Original: https://gamebanana.com/mods/26382 + +NOTE: from my benchmarking, this eats up like 1 fps, but its very useful. + diff --git a/resource/chat_brazilian.txt b/#customizations/BotVoteHud/LANG/chat_brazilian.txt similarity index 100% rename from resource/chat_brazilian.txt rename to #customizations/BotVoteHud/LANG/chat_brazilian.txt diff --git a/resource/chat_english.txt b/#customizations/BotVoteHud/LANG/chat_english.txt similarity index 100% rename from resource/chat_english.txt rename to #customizations/BotVoteHud/LANG/chat_english.txt diff --git a/resource/chat_french.txt b/#customizations/BotVoteHud/LANG/chat_french.txt similarity index 100% rename from resource/chat_french.txt rename to #customizations/BotVoteHud/LANG/chat_french.txt diff --git a/resource/chat_german.txt b/#customizations/BotVoteHud/LANG/chat_german.txt similarity index 100% rename from resource/chat_german.txt rename to #customizations/BotVoteHud/LANG/chat_german.txt diff --git a/resource/chat_italian.txt b/#customizations/BotVoteHud/LANG/chat_italian.txt similarity index 100% rename from resource/chat_italian.txt rename to #customizations/BotVoteHud/LANG/chat_italian.txt diff --git a/resource/chat_polish.txt b/#customizations/BotVoteHud/LANG/chat_polish.txt similarity index 100% rename from resource/chat_polish.txt rename to #customizations/BotVoteHud/LANG/chat_polish.txt diff --git a/resource/chat_russian.txt b/#customizations/BotVoteHud/LANG/chat_russian.txt similarity index 100% rename from resource/chat_russian.txt rename to #customizations/BotVoteHud/LANG/chat_russian.txt diff --git a/resource/chat_spanish.txt b/#customizations/BotVoteHud/LANG/chat_spanish.txt similarity index 100% rename from resource/chat_spanish.txt rename to #customizations/BotVoteHud/LANG/chat_spanish.txt diff --git a/resource/scheme/clientscheme_votehud.res b/#customizations/BotVoteHud/clientscheme_votehud.res similarity index 100% rename from resource/scheme/clientscheme_votehud.res rename to #customizations/BotVoteHud/clientscheme_votehud.res diff --git a/#customizations/crosshair.res b/#customizations/crosshair.res new file mode 100644 index 0000000..d6bae76 --- /dev/null +++ b/#customizations/crosshair.res @@ -0,0 +1,23 @@ +"Resource/HudLayout.res" +{ + Crosshair + { + "controlName" "CExLabel" + "fieldName" "Crosshair" + "zpos" "0" + "wide" "f0" + "tall" "f0" + "textAlignment" "center" + "enabled" "1" + + "visible" "1" + + "labelText" "C" // changes to what style you want + "font" "Size:25 | Outline:OFF" // change the size and if it has an outline + + "xpos" "cs-0.5000001" // changes these if the crosshair/hitmarker is off (very sensitive) + "ypos" "cs-0.49999" // cs-0.5 standard, cs-0.4999 default + + "fgcolor" "0 255 0 255" // colors are rgba, red green blue alpha (transparency) + } +} \ No newline at end of file diff --git a/resource/scheme/customfontfiles.res b/#customizations/extendedtf2fonts.res similarity index 98% rename from resource/scheme/customfontfiles.res rename to #customizations/extendedtf2fonts.res index dc9f9e2..93e8e93 100644 --- a/resource/scheme/customfontfiles.res +++ b/#customizations/extendedtf2fonts.res @@ -2,6 +2,9 @@ //Font chacker: https://www.alphabet-type.com/tools/charset-checker/ //created by Jakadak https://github.com/jakadak/TF2-extended-fonts + +// from conch: im not even sure if it works +// also eats up like 1 fps Scheme { CustomFontFiles diff --git a/#customizations/hitmarker.res b/#customizations/hitmarker.res new file mode 100644 index 0000000..bf64b2d --- /dev/null +++ b/#customizations/hitmarker.res @@ -0,0 +1,24 @@ +"Resource/HudLayout.res" +{ + Hitmarker + { + "controlName" "CExLabel" + "fieldName" "Hitmarker" + "zpos" "1" + "wide" "f0" + "tall" "f0" + "textAlignment" "center" + "enabled" "1" + + "visible" "1" + + "labelText" "6" // changes to what style you want + "font" "Size:25 | Outline:OFF" // change the size and if it has an outline + + "xpos" "cs-0.4999" // changes these if the crosshair/hitmarker is off (very sensitive) + "ypos" "cs-0.4999" // cs-0.5 standard, cs-0.4999 default + + "fgcolor" "255 0 0 0" // color determined by scripts/hudanimations_custom + + } +} \ No newline at end of file diff --git a/#customizations/transparentviewmodel.res b/#customizations/transparentviewmodel.res new file mode 100644 index 0000000..9fa2404 --- /dev/null +++ b/#customizations/transparentviewmodel.res @@ -0,0 +1,20 @@ +"Resource/HudLayout.res" // DXLEVEL 90+ +{ + "TransparentViewmodelMask" + { + //alpha doesn't work for this, you need to change the texture's alpha + + "ControlName" "ImagePanel" + "fieldName" "TransparentViewmodelMask" + "xpos" "0" + "ypos" "0" + "zpos" "-100" + "wide" "f0" + "tall" "480" + "enabled" "1" + "image" "replay/thumbnails/REFRACTnormal_transparent" + "scaleImage" "1" + + "visible" "1" + } +} \ No newline at end of file diff --git a/resource/clientscheme.res b/resource/clientscheme.res index f633e13..8862939 100644 --- a/resource/clientscheme.res +++ b/resource/clientscheme.res @@ -1,7 +1,7 @@ #base "scheme/clientscheme_colors.res" -#base "scheme/clientscheme_votehud.res" +#base "../#customizations/enabled/clientscheme_votehud.res" #base "scheme/clientscheme_borders.res" #base "scheme/clientscheme_settings.res" -#base "scheme/customfontfiles.res" +#base "../#customizations/enabled/extendedtf2fonts.res" #base "scheme/clientscheme_fonts.res" #base "scheme/clientscheme_base.res" \ No newline at end of file diff --git a/resource/ui/controlpointicon.res b/resource/ui/controlpointicon.res index 836a1f3..4757375 100644 --- a/resource/ui/controlpointicon.res +++ b/resource/ui/controlpointicon.res @@ -45,7 +45,7 @@ { "ControlName" "Label" "fieldName" "CapNumPlayers" - "font" "hudfont14" + "font" "hudfont14sec" "xpos" "15" "ypos" "1" "zpos" "4" @@ -92,7 +92,7 @@ "dulltext" "0" "brighttext" "0" "wrap" "0" - "font" "ControlPointTimer" + "font" "hudfont10sec" } "CPTimerBG" diff --git a/resource/ui/healthiconpanel.res b/resource/ui/healthiconpanel.res index dcbe4e1..01cc14e 100644 --- a/resource/ui/healthiconpanel.res +++ b/resource/ui/healthiconpanel.res @@ -6,7 +6,7 @@ "fieldName" "HealthIcon" "xpos" "0" "ypos" "0" - "wide" "32" + "wide" "64" "tall" "32" "visible" "1" "enabled" "1" @@ -18,7 +18,7 @@ { "ControlName" "EditablePanel" "fieldName" "SpectatorGUIHealth" - "xpos" "0" + "xpos" "15" "ypos" "0" "wide" "128" "tall" "128" diff --git a/resource/ui/hudmatchstatus.res b/resource/ui/hudmatchstatus.res index 80624e0..54d67dc 100644 --- a/resource/ui/hudmatchstatus.res +++ b/resource/ui/hudmatchstatus.res @@ -395,22 +395,22 @@ "ypos" "3" "zpos" "2" "wide" "f0" - "tall" "25" + "tall" "20" "visible" "1" "enabled" "1" - "max_size" "19" + "max_size" "20" - "6v6_gap" "1" + "6v6_gap" "18" "12v12_gap" "1" "team1_grow_dir" "west" "team1_base_x" "c-45" - "team1_max_expand" "200" + "team1_max_expand" "250" "team2_grow_dir" "east" "team2_base_x" "c47" - "team2_max_expand" "200" + "team2_max_expand" "250" "playerpanels_kv" { @@ -422,13 +422,17 @@ "color_portrait_bg_red" "colorred" "color_portrait_bg_blue" "colorblu" + "color_portrait_bg_red_dead" "colordarkred" "color_portrait_bg_blue_dead" "colordarkblu" + "color_bar_health_high" "75 200 25 255" "color_bar_health_med" "255 200 0 255" - "percentage_health_med" "0.6" "color_bar_health_low" "255 20 0 255" + + "percentage_health_med" "0.6" "percentage_health_low" "0.3" + "color_portrait_blend_dead_red" "255 255 255 255" "color_portrait_blend_dead_blue" "255 255 255 255" @@ -439,8 +443,8 @@ "xpos" "cs-0.5" "ypos" "0" "zpos" "5" - "wide" "20" - "tall" "20" + "wide" "f0" + "tall" "f0" "visible" "1" "enabled" "1" "image" "../hud/class_scoutred" @@ -468,13 +472,13 @@ "ControlName" "ContinuousProgressBar" "fieldName" "healthbar" "xpos" "0" - "ypos" "20" + "ypos" "0" "zpos" "3" "wide" "f0" - "tall" "5" + "tall" "f0" "visible" "1" "enabled" "1" - "bgcolor_override" "colordarkwhite" + "bgcolor_override" "0 0 0 0" "proportionaltoparent" "1" } @@ -483,13 +487,13 @@ "ControlName" "ContinuousProgressBar" "fieldName" "overhealbar" "xpos" "0" - "ypos" "20" + "ypos" "0" "zpos" "4" "wide" "f0" - "tall" "5" + "tall" "f0" "visible" "1" "enabled" "1" - "bgcolor_override" "Blank" + "bgcolor_override" "0 0 0 0" "fgcolor_override" "colorwhite" "proportionaltoparent" "1" } @@ -498,9 +502,9 @@ { "ControlName" "CExLabel" "fieldName" "respawntime" - "font" "hudfont14shadow" + "font" "hudfont14" "xpos" "cs-0.5" - "ypos" "cs-0.6" + "ypos" "cs-0.5" "zpos" "10" "wide" "f0" "tall" "f0" @@ -519,6 +523,7 @@ "fieldName" "playername" "xpos" "9999" } + "HealthIcon" { "ControlName" "EditablePanel" @@ -527,36 +532,42 @@ "visible" "0" "enabled" "0" } + "ReadyBG" { "ControlName" "ScalableImagePanel" "fieldName" "ReadyBG" "xpos" "9999" } + "ReadyImage" { "ControlName" "ImagePanel" "fieldName" "ReadyImage" "xpos" "9999" } + "chargeamount" { "ControlName" "CExLabel" "fieldName" "chargeamount" "xpos" "9999" } + "specindex" { "ControlName" "CExLabel" "fieldName" "specindex" "xpos" "9999" } + "DeathPanel" { "ControlName" "ImagePanel" "fieldName" "DeathPanel" "xpos" "9999" } + "SkullPanel" { "ControlName" "ImagePanel" diff --git a/resource/ui/revivedialog.res b/resource/ui/revivedialog.res index 61356f5..84540a0 100644 --- a/resource/ui/revivedialog.res +++ b/resource/ui/revivedialog.res @@ -91,7 +91,7 @@ { "ControlName" "EditablePanel" "fieldName" "SpectatorGUIHealth" - "xpos" "165" + "xpos" "170" "ypos" "35" "zpos" "20" "wide" "48" diff --git a/resource/ui/targetid.res b/resource/ui/targetid.res index 089869f..901bab1 100644 --- a/resource/ui/targetid.res +++ b/resource/ui/targetid.res @@ -307,15 +307,15 @@ { "ControlName" "CAvatarImagePanel" "fieldName" "AvatarImage" - "xpos" "6" - "ypos" "6" [$WIN32] + "xpos" "4" + "ypos" "3" [$WIN32] "zpos" "99" - "wide" "11" - "tall" "11" + "wide" "15" + "tall" "15" "visible" "1" "enabled" "1" "image" "" "scaleImage" "1" - "color_outline" "52 48 45 255" + "color_outline" "colorwhite" } } diff --git a/resource/ui/votehud.res b/resource/ui/votehud.res index a309f18..38200ec 100644 --- a/resource/ui/votehud.res +++ b/resource/ui/votehud.res @@ -1,508 +1,8 @@ -#base "votehud_OLD.res" +#base "../../#customizations/enabled/BotDetectorVoteHUD.res" +#base "../../resource/ui/votehud_tf2edits.res" +#base "../../resource/ui/votehud_tf2.res" "Resource/UI/VoteHud.res" { - "VoteActive" - { - "ControlName" "EditablePanel" - "fieldName" "VoteActive" - "xpos" "10" - "ypos" "r340" - "wide" "150" - "tall" "170" - "visible" "0" - "enabled" "1" - // "bgcolor_override" "52 48 45 255" // Remove 2 slashes from beginning of this line to force gray background in active vote panel. - - "Header" // Vote caller - large custom font - { - "ControlName" "Label" - "fieldName" "Header" - "xpos" "10" - "ypos" "5" - "wide" "134" - "tall" "25" - "visible" "1" - "enabled" "1" - "labelText" "%header%" - "textAlignment" "west" - "dulltext" "0" - "brighttext" "0" - "font" "CustomNotoMonoMedium" - "wrap" "1" - "fgcolor_override" "128 128 128 255" - "AllCaps" "0" - } - "Header_small" // Vote caller - small regular font - { - "ControlName" "Label" - "fieldName" "Header_small" - "xpos" "10" - "ypos" "29" - "wide" "134" - "tall" "20" - "visible" "1" - "enabled" "1" - "labelText" "%header%" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "font" "CustomVerdanaSmall" - "wrap" "1" - "fgcolor_override" "128 128 128 255" - "AllCaps" "0" - } - - "Wants_to_vote" - { - "ControlName" "Label" - "fieldName" "Wants_to_vote" - "xpos" "10" - "ypos" "41" - "wide" "134" - "tall" "20" - "visible" "1" - "enabled" "1" - "labelText" "#TF_custom_font_mod_wants_to_vote" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "font" "CustomVerdanaSmall" - "wrap" "1" - "fgcolor_override" "128 128 128 255" - } - - "Issue" // Kick: - { - "ControlName" "Label" - "fieldName" "Issue" - "xpos" "10" - "ypos" "48" - "wide" "134" - "tall" "20" - "visible" "1" - "enabled" "1" - "labelText" "%voteissue%" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "font" "CustomVerdanaSmall" - "fgcolor_override" "128 128 128 255" - "wrap" "1" - "noshortcutsyntax" "1" - "AllCaps" "0" - } - - "Kick_name_large" // Player to be kicked name - large custom font - { - "ControlName" "Label" - "fieldName" "Kick_name_large" - "xpos" "10" - "ypos" "-123" - "wide" "134" - "tall" "220" - "visible" "1" - "enabled" "1" - "labelText" "%voteissue%" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "font" "CustomNotoMonoMedium" - "fgcolor_override" "255 255 255 255" - "wrap" "1" - "noshortcutsyntax" "1" - "AllCaps" "0" - } - - "Kick_name_small" // Player to be kicked name - small regular font - { - "ControlName" "Label" - "fieldName" "Kick_name_small" - "xpos" "10" - "ypos" "79" - "wide" "134" - "tall" "27" - "visible" "1" - "enabled" "1" - "labelText" "%voteissue%" - "textAlignment" "west" - "dulltext" "0" - "brighttext" "0" - "font" "CustomVerdanaSmall" - "fgcolor_override" "255 255 255 255" - "wrap" "1" - "noshortcutsyntax" "1" - "AllCaps" "0" - } - - "Kick_reason" // Kick reason (or other vote issue strings) - { - "ControlName" "Label" - "fieldName" "Kick_reason" - "xpos" "10" - "ypos" "69" - "wide" "134" - "tall" "30" - "visible" "1" - "enabled" "1" - "labelText" "%voteissue%" - "textAlignment" "south-west" - "dulltext" "0" - "brighttext" "0" - "font" "CustomVerdanaSmall" - "fgcolor_override" "255 255 255 255" - "wrap" "1" - "noshortcutsyntax" "1" - } - - "TargetAvatarImage" - { - "ControlName" "CAvatarImagePanel" - "fieldName" "TargetAvatarImage" - "xpos" "10" - "ypos" "23" - "wide" "16" - "tall" "16" - "visible" "0" - "enabled" "1" - "image" "" - "scaleImage" "1" - "color_outline" "52 48 45 255" - } - - // divider - "Divider" - { - "ControlName" "ImagePanel" - "fieldName" "Divider" - "xpos" "10" - "ypos" "100" - "wide" "130" - "tall" "1" - "fillcolor" "128 128 128 255" - "zpos" "0" - } - - // Temp UI - - "LabelOption1" - { - "ControlName" "Label" - "fieldName" "LabelOption1" - "xpos" "10" - "ypos" "100" - "wide" "130" - "tall" "16" - "zpos" "2" - "visible" "1" - "enabled" "1" - "labelText" "" - "textAlignment" "left" - "dulltext" "0" - "brighttext" "0" - "font" "ScoreboardVerySmall" - "fgcolor_override" "255 255 255 255" - } - - "Option1Background_Selected" - { - "ControlName" "ImagePanel" - "fieldName" "Option1Background_Selected" - "xpos" "8" - "ypos" "100" - "wide" "132" - "tall" "16" - "zpos" "1" - "fillcolor" "145 73 59 50" - "visible" "1" - "paintborder" "1" - "border" "CustomCyanBorderThick" - - } - - "Option1CountLabel" - { - "ControlName" "Label" - "fieldName" "Option1CountLabel" - "xpos" "28" - "ypos" "147" - "wide" "16" - "tall" "16" - "zpos" "2" - "visible" "1" - "enabled" "1" - "labelText" "Yes" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "font" "ScoreboardSmall" - "fgcolor_override" "255 255 255 255" - } - - "LabelOption2" - { - "ControlName" "Label" - "fieldName" "LabelOption2" - "xpos" "10" - "ypos" "113" - "wide" "130" - "tall" "16" - "zpos" "2" - "visible" "1" - "enabled" "1" - "labelText" "" - "textAlignment" "left" - "dulltext" "0" - "brighttext" "0" - "font" "ScoreboardVerySmall" - "fgcolor_override" "255 255 255 255" - } - - "Option2Background_Selected" - { - "ControlName" "ImagePanel" - "fieldName" "Option2Background_Selected" - "xpos" "10" - "ypos" "113" - "wide" "132" - "tall" "16" - "zpos" "1" - "fillcolor" "145 73 59 50" - "visible" "1" - "paintborder" "1" - "border" "CustomCyanBorderThick" - } - - "Option2CountLabel" - { - "ControlName" "Label" - "fieldName" "Option2CountLabel" - "xpos" "74" - "ypos" "147" - "wide" "16" - "tall" "16" - "zpos" "2" - "visible" "1" - "enabled" "1" - "labelText" "No" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "font" "ScoreboardSmall" - "fgcolor_override" "255 255 255 255" - } - - "LabelOption3" - { - "ControlName" "Label" - "fieldName" "LabelOption3" - "xpos" "10" - "ypos" "126" - "wide" "130" - "tall" "16" - "zpos" "2" - "visible" "1" - "enabled" "1" - "labelText" "" - "textAlignment" "left" - "dulltext" "0" - "brighttext" "0" - "font" "ScoreboardVerySmall" - "fgcolor_override" "255 255 255 255" - } - - "Option3Background_Selected" - { - "ControlName" "ImagePanel" - "fieldName" "Option3Background_Selected" - "xpos" "10" - "ypos" "126" - "wide" "132" - "tall" "16" - "zpos" "1" - "fillcolor" "145 73 59 50" - "visible" "0" - "paintborder" "1" - "border" "CustomCyanBorderThick" - } - - "LabelOption4" - { - "ControlName" "Label" - "fieldName" "LabelOption4" - "xpos" "10" - "ypos" "139" - "wide" "130" - "tall" "16" - "zpos" "2" - "visible" "1" - "enabled" "1" - "labelText" "" - "textAlignment" "left" - "dulltext" "0" - "brighttext" "0" - "font" "ScoreboardVerySmall" - "fgcolor_override" "255 255 255 255" - } - - "Option4Background_Selected" - { - "ControlName" "ImagePanel" - "fieldName" "Option4Background_Selected" - "xpos" "10" - "ypos" "139" - "wide" "132" - "tall" "16" - "zpos" "1" - "fillcolor" "145 73 59 50" - "visible" "0" - "paintborder" "1" - "border" "CustomCyanBorderThick" - } - - "LabelOption5" - { - "ControlName" "Label" - "fieldName" "LabelOption5" - "xpos" "10" - "ypos" "152" - "wide" "130" - "tall" "16" - "zpos" "2" - "visible" "1" - "enabled" "1" - "labelText" "" - "textAlignment" "left" - "dulltext" "0" - "brighttext" "0" - "font" "ScoreboardVerySmall" - "fgcolor_override" "255 255 255 255" - } - - "Option5Background_Selected" - { - "ControlName" "ImagePanel" - "fieldName" "Option5Background_Selected" - "xpos" "10" - "ypos" "152" - "wide" "132" - "tall" "16" - "zpos" "1" - "fillcolor" "145 73 59 50" - "visible" "0" - "paintborder" "1" - "border" "CustomCyanBorderThick" - } - - // divider - "Divider2" - { - "ControlName" "ImagePanel" - "fieldName" "Divider2" - "xpos" "10" - "ypos" "134" - "wide" "130" - "tall" "1" - "fillcolor" "128 128 128 255" - "zpos" "0" - } - - "VoteCountLabel" - { - "ControlName" "Label" - "fieldName" "VoteCountLabel" - "xpos" "10" - "ypos" "136" - "wide" "140" - "tall" "20" - "visible" "1" - "enabled" "1" - "labelText" "#GameUI_vote_current_vote_count" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "font" "ScoreboardVerySmall" - "fgcolor_override" "128 128 128 255" - } - - // vote bar - "VoteBar" - { - "ControlName" "Panel" - "fieldName" "VoteBar" - "xpos" "11" - "ypos" "147" - "wide" "130" - "tall" "18" - "zpos" "2" - "visible" "1" - "enabled" "1" - "box_size" "16" - "spacer" "6" - "box_inset" "1" - "yes_texture" "vgui/hud/vote_yes" - "no_texture" "vgui/hud/vote_no" - "bgcolor_override" "0 0 0 0" - } - } - - - "VoteSetupDialog" - { - "ControlName" "CVoteSetupDialog" - "fieldName" "VoteSetupDialog" - "xpos" "c-210" - "ypos" "c-150" - "wide" "420" - "tall" "310" - "autoResize" "0" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - "settitlebarvisible" "0" - - // "bgcolor_override" "52 48 45 255" // Remove 2 slashes from beginning of this line to force gray background in vote setup list. - - "issue_width" "180" - "issue_font" "CustomNotoMonoSmall" - - "parameter_width" "255" - - "VoteSetupList" - { - "ControlName" "SectionedListPanel" - "fieldName" "VoteSetupList" - "xpos" "5" - "ypos" "38" - "zpos" "2" - "wide" "160" - "tall" "200" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - "autoresize" "0" - "linespacing" "16" - } - - "VoteParameterList" - { - "ControlName" "SectionedListPanel" - "fieldName" "VoteParameterList" - "xpos" "160" - "ypos" "38" - "zpos" "2" - "wide" "255" - "tall" "200" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - "autoresize" "0" - "linespacing" "16" - } - - } } diff --git a/resource/ui/votehud_OLD.res b/resource/ui/votehud_tf2.res similarity index 99% rename from resource/ui/votehud_OLD.res rename to resource/ui/votehud_tf2.res index 89fe7aa..262a646 100644 --- a/resource/ui/votehud_OLD.res +++ b/resource/ui/votehud_tf2.res @@ -552,7 +552,7 @@ "issue_width" "180" "issue_font" "ItemFontNameSmall" "issue_fgcolor" "TanLight" - "issue_fgcolor_disabled" "TanDarkOld" + "issue_fgcolor_disabled" "TanDark" "parameter_width" "200" diff --git a/resource/ui/votehud_tf2edits.res b/resource/ui/votehud_tf2edits.res new file mode 100644 index 0000000..05d1525 --- /dev/null +++ b/resource/ui/votehud_tf2edits.res @@ -0,0 +1,122 @@ +"Resource/UI/VoteHud.res" +{ + "VotePassed" + { + "PassedTitle" + { + "font" "hudfont10sec" + } + + "PassedResult" + { + "font" "hudfont8sec" + } + } + + "VoteActive" + { + "Header" + { + "font" "hudfont8sec" + } + + "Issue" + { + "font" "hudfont10sec" + } + + "LabelOption1" + { + "font" "hudfont8sec" + } + + "Option1CountLabel" + { + "font" "hudfont10sec" + } + + "LabelOption2" + { + "font" "hudfont8sec" + } + + "Option2CountLabel" + { + "font" "hudfont10sec" + } + + "LabelOption3" + { + "font" "hudfont8sec" + } + + "LabelOption4" + { + "font" "hudfont8sec" + } + + "LabelOption5" + { + "font" "hudfont8sec" + } + + "VoteCountLabel" + { + "font" "hudfont8sec" + } + } + + "CallVoteFailed" + { + "FailedTitle" + { + "font" "hudfont10sec" + } + + "FailedReason" + { + "font" "hudfont8sec" + } + } + + "VoteFailed" + { + "FailedTitle" + { + "font" "ScoreboardSmall" + } + + "FailedReason" + { + "font" "hudfont8sec" + } + } + + "VoteSetupDialog" + { + "TitleLabel" + { + "font" "HudFontMediumBold" // fine + } + + "ComboLabel" + { + "font" "HudFontSmallestBold" // fine + } + + "ComboBox" + { + "Font" "HudFontSmallestBold" // fine + } + + "CallVoteButton" + { + "font" "HudFontSmallBold" // fine + } + + "Button1" + { + "font" "HudFontSmallBold" // fine + } + } +} diff --git a/scripts/hudlayout.res b/scripts/hudlayout.res index 25f4053..e302631 100644 --- a/scripts/hudlayout.res +++ b/scripts/hudlayout.res @@ -1,87 +1,11 @@ -"Resource/HudLayout.res" -{ -// =========================================== -// =========================================== -// DXLEVEL 90+ - - "TransparentViewmodelMask" - { - //alpha doesn't work for this, you need to change the texture's alpha - "ControlName" "ImagePanel" - "fieldName" "TransparentViewmodelMask" - "xpos" "0" - "ypos" "0" - "zpos" "-100" - "wide" "f0" - "tall" "480" - "enabled" "1" - "image" "replay/thumbnails/REFRACTnormal_transparent" - "scaleImage" "1" - - "visible" "0" // Change this to "1" to turn on - } - -// =========================================== -// =========================================== - - Hitmarker // sorry if its 1 by default, im stupid - { - "controlName" "CExLabel" - "fieldName" "Hitmarker" - "zpos" "1" - "wide" "f0" - "tall" "f0" - "textAlignment" "center" - "enabled" "1" +#base "../#customizations/enabled/transparentviewmodel.res" +#base "../#customizations/enabled/crosshair.res" +#base "../#customizations/enabled/hitmarker.res" - "visible" "1" // Change this to "1" to turn on - - "labelText" "6" - "font" "Size:25 | Outline:OFF" - - "xpos" "cs-0.4999" // changes these if the crosshair/hitmarker is off (very sensitive) - "ypos" "cs-0.4999" // cs-0.5 standard, cs-0.4999 default - - "fgcolor" "255 0 0 0" - -// =========================================== -// color determined by scripts/hudanimations_custom.txt, looks this this \/ -// =========================================== -// event DamagedPlayer -// { //change these \/ -// Animate Hitmarker fgcolor "255 0 0 255" Linear 0.0 0.0 // when enemy is hit -// Animate Hitmarker fgcolor "255 0 0 0" spline 0.1 0.2 // fade out -// } -// =========================================== - } - -// =========================================== -// =========================================== - - Xhair - { - "controlName" "CExLabel" - "fieldName" "Xhair" - "zpos" "0" - "wide" "f0" - "tall" "f0" - "textAlignment" "center" - "enabled" "1" - - "visible" "0" // Change this to "1" to turn on - - "labelText" "C" - "font" "Size:25 | Outline:OFF" - "fgcolor" "0 255 0 255" // color - - "xpos" "cs-0.5000001" // changes these if the crosshair/hitmarker is off (very sensitive) - "ypos" "cs-0.49999" - } -// =========================================== -// =========================================== +"Resource/HudLayout.res" +{ - HudPlayerStatus { "fieldName" "HudPlayerStatus" @@ -811,7 +735,7 @@ "item_wide" "135" - "show_avatar" "0" + "show_avatar" "1" "show_dead_icon" "1" "dead_xpos" "1"