Skip to content

Instantly share code, notes, and snippets.

@daftmugi
Created February 5, 2023 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daftmugi/6b295feddf07a54bcd22e99e914f159b to your computer and use it in GitHub Desktop.
Save daftmugi/6b295feddf07a54bcd22e99e914f159b to your computer and use it in GitHub Desktop.
Add blackjack indicator to settings menu
diff --git guis/mainmenu_settings_gameplay.gui guis/mainmenu_settings_gameplay.gui
index e99a820..f20da1a 100644
--- guis/mainmenu_settings_gameplay.gui
+++ guis/mainmenu_settings_gameplay.gui
@@ -257,7 +257,7 @@ windowDef SettingsGameplayCanvas
windowDef SettingGameplayGeneralText10
{
rect TEXT_X_OFFSET, 102+TT_OFFSET_Y, 230, MM_LINE_H
- text "#str_02319" // Show Frob Helper
+ text "Blackjack Helper" // Blackjack Helper
font SETTINGS_FONT
textscale SETTINGS_FONT_SCALE
forecolor SETTINGS_FONT_COLOUR
@@ -267,6 +267,16 @@ windowDef SettingsGameplayCanvas
windowDef SettingGameplayGeneralText11
{
rect TEXT_X_OFFSET, 119+TT_OFFSET_Y, 230, MM_LINE_H
+ text "#str_02319" // Show Frob Helper
+ font SETTINGS_FONT
+ textscale SETTINGS_FONT_SCALE
+ forecolor SETTINGS_FONT_COLOUR
+ visible 1
+ }
+
+ windowDef SettingGameplayGeneralText12
+ {
+ rect TEXT_X_OFFSET, 136+TT_OFFSET_Y, 230, MM_LINE_H
text "#str_02321" // Show Menu Tooltips
font SETTINGS_FONT
textscale SETTINGS_FONT_SCALE
@@ -329,11 +339,20 @@ windowDef SettingsGameplayCanvas
CHOICE_DEF
}
- choiceDef FrobHelper
+ choiceDef BlackjackIndicator
{
rect SETTINGS_X_OFFSET, 102+TT_OFFSET_Y, 80, MM_LINE_H
choices "#str_04221" // No;Yes
values "0;1"
+ cvar "tdm_blackjack_indicate"
+ CHOICE_DEF
+ }
+
+ choiceDef FrobHelper
+ {
+ rect SETTINGS_X_OFFSET, 119+TT_OFFSET_Y, 80, MM_LINE_H
+ choices "#str_04221" // No;Yes
+ values "0;1"
cvar "tdm_frobhelper_active"
CHOICE_DEF
toolTip("#str_menu_frobhelper_tooltip")
@@ -341,7 +360,7 @@ windowDef SettingsGameplayCanvas
choiceDef showTooltips
{
- rect SETTINGS_X_OFFSET, 119+TT_OFFSET_Y, 80, MM_LINE_H
+ rect SETTINGS_X_OFFSET, 136+TT_OFFSET_Y, 80, MM_LINE_H
choices "#str_04221" // No;Yes
values "0;1"
cvar "tdm_show_menu_tooltips"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment