Make the Cheat Menu size configureable
This commit is contained in:
parent
906845a874
commit
dc67f669e9
@ -2227,6 +2227,12 @@ cheat_menu_selected_font_color (Selected font color) v3f 255, 252, 88
|
||||
|
||||
cheat_menu_selected_font_color_alpha (Selected font color alpha) int 255
|
||||
|
||||
cheat_menu_head_height (Head height) int 50
|
||||
|
||||
cheat_menu_entry_height (Entry height) int 40
|
||||
|
||||
cheat_menu_entry_width (Entry width) int 200
|
||||
|
||||
[Cheats]
|
||||
|
||||
fullbright (Fullbright) bool false
|
||||
|
@ -74,7 +74,10 @@ void set_default_settings(Settings *settings)
|
||||
settings->setDefault("cheat_menu_font_color_alpha", "195");
|
||||
settings->setDefault("cheat_menu_selected_font_color", "(255, 255, 255)");
|
||||
settings->setDefault("cheat_menu_selected_font_color_alpha", "235");
|
||||
|
||||
settings->setDefault("cheat_menu_head_height", "50");
|
||||
settings->setDefault("cheat_menu_entry_height", "40");
|
||||
settings->setDefault("cheat_menu_entry_width", "200");
|
||||
|
||||
// Cheats
|
||||
settings->setDefault("xray", "false");
|
||||
settings->setDefault("xray_nodes", "default:stone,mcl_core:stone");
|
||||
@ -114,7 +117,7 @@ void set_default_settings(Settings *settings)
|
||||
settings->setDefault("enable_node_esp", "false");
|
||||
settings->setDefault("enable_node_tracers", "false");
|
||||
settings->setDefault("entity_esp_color", "(255, 255, 255)");
|
||||
settings->setDefault("player_esp_color", "(0, 255, 0)");
|
||||
settings->setDefault("player_esp_color", "(0, 255, 0)");
|
||||
settings->setDefault("tool_range", "2");
|
||||
settings->setDefault("scaffold", "false");
|
||||
settings->setDefault("killaura", "false");
|
||||
|
@ -68,6 +68,10 @@ CheatMenu::CheatMenu(Client *client) : m_client(client)
|
||||
selected_font_color.X, selected_font_color.Y,
|
||||
selected_font_color.Z);
|
||||
|
||||
m_head_height = g_settings->getU32("cheat_menu_head_height");
|
||||
m_entry_height = g_settings->getU32("cheat_menu_entry_height");
|
||||
m_entry_width = g_settings->getU32("cheat_menu_entry_width");
|
||||
|
||||
m_font = g_fontengine->getFont(FONT_SIZE_UNSPECIFIED, fontMode);
|
||||
|
||||
if (!m_font) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user