These settings are unnecessary. They only apply when formspecs don't have a background/bgcolor set. In practice, most games do theme their GUIs. Removing low value settings simplifies code and improves UX by decluttering the settings menu
Split out from #12140
# Press the autoforward key again or the backwards movement to disable.
continuous_forward (Continuous forward) bool false
-# Formspec default background opacity (between 0 and 255).
-formspec_default_bg_opacity (Formspec Default Background Opacity) int 140 0 255
-
-# Formspec default background color (R,G,B).
-formspec_default_bg_color (Formspec Default Background Color) string (0,0,0)
-
# Whether to show technical names.
# Affects mods and texture packs in the Content and Select Mods menus, as well as
# setting names in All Settings.
# type: bool
# continuous_forward = false
-# Formspec default background opacity (between 0 and 255).
-# type: int min: 0 max: 255
-# formspec_default_bg_opacity = 140
-
-# Formspec default background color (R,G,B).
-# type: string
-# formspec_default_bg_color = (0,0,0)
-
# Whether to show technical names.
# Affects mods and texture packs in the Content and Select Mods menus, as well as
# setting names in All Settings.
# See https://github.com/minetest/irrlicht/blob/master/include/Keycodes.h
# type: key
# keymap_decrease_viewing_range_min = -
-
settings->setDefault("console_alpha", "200");
settings->setDefault("formspec_fullscreen_bg_color", "(0,0,0)");
settings->setDefault("formspec_fullscreen_bg_opacity", "140");
- settings->setDefault("formspec_default_bg_color", "(0,0,0)");
- settings->setDefault("formspec_default_bg_opacity", "140");
settings->setDefault("selectionbox_color", "(0,0,0)");
settings->setDefault("selectionbox_width", "2");
settings->setDefault("node_highlighting", "box");
m_bgfullscreen = false;
m_formspec_version = 1;
-
- {
- v3f formspec_bgcolor = g_settings->getV3F("formspec_default_bg_color");
- m_bgcolor = video::SColor(
- (u8) clamp_u8(g_settings->getS32("formspec_default_bg_opacity")),
- clamp_u8(myround(formspec_bgcolor.X)),
- clamp_u8(myround(formspec_bgcolor.Y)),
- clamp_u8(myround(formspec_bgcolor.Z))
- );
- }
+ m_bgcolor = video::SColor(140, 0, 0, 0);
{
v3f formspec_bgcolor = g_settings->getV3F("formspec_fullscreen_bg_color");