From d827c48c5fd7de1320d9e639bc9cb91f03d7228c Mon Sep 17 00:00:00 2001 From: CriticalFlaw Date: Sat, 3 Apr 2021 23:12:33 -0400 Subject: Added tooltips to main menu buttons --- resource/fonts/Icons.otf | Bin 49608 -> 52340 bytes resource/gamemenu.res | 13 ++++ resource/scheme/clientscheme_colors.res | 4 +- resource/ui/mainmenuoverride.res | 122 ++++++++++++++++++++++++++++++++ 4 files changed, 137 insertions(+), 2 deletions(-) (limited to 'resource') diff --git a/resource/fonts/Icons.otf b/resource/fonts/Icons.otf index 51ce542..ba1c0ec 100644 Binary files a/resource/fonts/Icons.otf and b/resource/fonts/Icons.otf differ diff --git a/resource/gamemenu.res b/resource/gamemenu.res index 4f05308..5b910d6 100644 --- a/resource/gamemenu.res +++ b/resource/gamemenu.res @@ -58,9 +58,22 @@ "OnlyInGame" "1" "tooltip" "#MMenu_ReportPlayer" } + "QuestLogButton" + { + "label" "r" + "command" "questlog" + "tooltip" "#TF_QuestMap_Intro_Title" + } + "MOTD_ShowButtonPanel" + { + "label" "o" + "command" "motd_show" + "tooltip" "#TF_MOTD_Title" + } "RefreshHUDButton" { "label" "." "command" "engine hud_reloadscheme" + "tooltip" "Refresh HUD" } } \ No newline at end of file diff --git a/resource/scheme/clientscheme_colors.res b/resource/scheme/clientscheme_colors.res index dbf1f69..e585bb4 100644 --- a/resource/scheme/clientscheme_colors.res +++ b/resource/scheme/clientscheme_colors.res @@ -100,9 +100,9 @@ Scheme "BrightYellow" "251 235 0 255" "GreenSolid" "76 107 34 255" - "Black" "30 30 30 255" + "Black" "29 29 29 255" "Transparent" "0 0 0 0" - "TransparentBlack" "0 0 0 196" + "TransparentBlack" "0 0 0 200" "TransparentLightBlack" "0 0 0 90" "FooterBGBlack" "52 48 55 255" diff --git a/resource/ui/mainmenuoverride.res b/resource/ui/mainmenuoverride.res index 7cb0566..240e08d 100644 --- a/resource/ui/mainmenuoverride.res +++ b/resource/ui/mainmenuoverride.res @@ -35,4 +35,126 @@ "enabled" "1" "scaleImage" "1" } + + "QuestLogButton" + { + "ControlName" "EditablePanel" + "fieldName" "QuestLogButton" + "xpos" "rs1-10" + "ypos" "65" + "zpos" "1" + "wide" "20" + "tall" "20" + "visible" "1" + "enabled" "1" + + "SubButton" + { + "ControlName" "CExImageButton" + "fieldName" "SubButton" + "xpos" "0" + "ypos" "0" + "wide" "20" + "tall" "20" + "autoResize" "0" + "pinCorner" "3" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "font" "CustomIcons" + "use_proportional_insets" "1" + "textAlignment" "center" + "default" "1" + "actionsignallevel" "2" + "paintbackground" "0" + "paintborder" "0" + "sound_depressed" "UI/buttonclick.wav" + "sound_released" "UI/buttonclickrelease.wav" + "defaultFgColor_override" "235 226 202 255" + "armedFgColor_override" "72 255 255 255" + } + } + + "MOTD_ShowButtonPanel" + { + "ControlName" "EditablePanel" + "fieldName" "MOTD_ShowButtonPanel" + "xpos" "0" + "ypos" "20" + "zpos" "0" + "wide" "20" + "tall" "20" + "visible" "1" + "enabled" "1" + "pin_to_sibling" "QuestLogButton" + "pin_corner_to_sibling" "PIN_BOTTOMLEFT" + "pin_to_sibling_corner" "PIN_BOTTOMLEFT" + + "SubButton" + { + "ControlName" "CExImageButton" + "fieldName" "SubButton" + "xpos" "0" + "ypos" "0" + "wide" "20" + "tall" "20" + "autoResize" "0" + "pinCorner" "3" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "font" "CustomIcons" + "use_proportional_insets" "1" + "textAlignment" "center" + "default" "1" + "actionsignallevel" "2" + "paintbackground" "0" + "paintborder" "0" + "sound_depressed" "UI/buttonclick.wav" + "sound_released" "UI/buttonclickrelease.wav" + "defaultFgColor_override" "235 226 202 255" + "armedFgColor_override" "72 255 255 255" + } + } + + "RefreshHUDButton" + { + "ControlName" "EditablePanel" + "fieldName" "RefreshHUDButton" + "xpos" "0" + "ypos" "20" + "zpos" "1" + "wide" "20" + "tall" "20" + "visible" "1" + "pin_to_sibling" "MOTD_ShowButtonPanel" + "pin_corner_to_sibling" "PIN_BOTTOMLEFT" + "pin_to_sibling_corner" "PIN_BOTTOMLEFT" + + "SubButton" + { + "ControlName" "CExImageButton" + "fieldName" "SubButton" + "xpos" "0" + "ypos" "0" + "wide" "20" + "tall" "20" + "autoResize" "0" + "pinCorner" "3" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "font" "CustomIcons" + "use_proportional_insets" "1" + "textAlignment" "center" + "default" "1" + "actionsignallevel" "2" + "paintbackground" "0" + "paintborder" "0" + "sound_depressed" "UI/buttonclick.wav" + "sound_released" "UI/buttonclickrelease.wav" + "defaultFgColor_override" "235 226 202 255" + "armedFgColor_override" "72 255 255 255" + } + } } -- cgit v1.2.3