aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin/settingtypes.txt25
-rw-r--r--src/defaultsettings.cpp7
-rw-r--r--src/gui/cheatMenu.cpp2
-rw-r--r--src/gui/cheatMenu.h2
4 files changed, 34 insertions, 2 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index f30a16789..ebd0ad621 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -2298,3 +2298,28 @@ autotnt (PlaceOnTop) bool false
replace (Replace) bool false
crystal_pvp (CrystalPvP) bool false
+
+[Cheat Menu]
+
+# Font to use for cheat menu
+cheat_menu_font (MenuFont) enum FM_Standard, FM_Mono, FM_Fallback, FM_Simple, FM_SimpleMono, FM_MaxMode, FM_Unspecified
+
+# (RGB value)
+m_bg_color (Cell background color) v3f 45 45 68
+
+m_bg_color_alpha (Cell background color alpha) int 173
+
+# (RGB value)
+m_active_bg_color (Active cell background color) v3f 0 0 0
+
+m_active_bg_color_alpha (Active cell background color alpha) int 210
+
+# (RGB value)
+m_font_color (Font color) v3f 255 255 255
+
+m_font_color_alpha (Font color alpha) int 195
+
+# (RGB value)
+m_selected_font_color (Selected font color) v3f 255 255 255
+
+m_selected_font_color_alpha (Selected font color alpha) int 235 \ No newline at end of file
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 2899f2509..525f94678 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -63,6 +63,13 @@ void set_default_settings(Settings *settings)
settings->setDefault("max_out_chat_queue_size", "20");
settings->setDefault("pause_on_lost_focus", "false");
settings->setDefault("enable_register_confirmation", "true");
+
+ // Cheat Menu
+ settings->setDefault("cheat_menu_font", "FM_Mono");
+ settings->setDefault("m_bg_color_alpha", "173");
+ settings->setDefault("m_active_bg_color_alpha", "210");
+ settings->setDefault("m_font_color_alpha", "195");
+ settings->setDefault("m_selected_font_color_alpha", "235");
// Cheats
settings->setDefault("xray", "false");
diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp
index 9949becc3..3f44267e1 100644
--- a/src/gui/cheatMenu.cpp
+++ b/src/gui/cheatMenu.cpp
@@ -166,4 +166,4 @@ void CheatMenu::selectConfirm()
if (m_cheat_layer)
script->toggle_cheat(script->m_cheat_categories[m_selected_category]
->m_cheats[m_selected_cheat]);
-}
+} \ No newline at end of file
diff --git a/src/gui/cheatMenu.h b/src/gui/cheatMenu.h
index dfe92798b..6ff8d67c6 100644
--- a/src/gui/cheatMenu.h
+++ b/src/gui/cheatMenu.h
@@ -76,4 +76,4 @@ private:
gui::IGUIFont *m_font = nullptr;
v2u32 m_fontsize;
-};
+}; \ No newline at end of file