mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Formspec: Add options to set background color and opacity (fullscreen mode + default mode) (#5493)
* Formspec: Add options to set background color and opacity (fullscreen mode) * Enhance previous comment: Set formspec background when regenerate UI. * This permit to do the calcul only at regen and override it with bgcolor tag * Add a setting for default background color into formspec, separated from fullscreen * Add a little performance gain on formspecs using a const ref instead of copying formspec string
This commit is contained in:
parent
72c09f524b
commit
1b3e4e1736
6 changed files with 83 additions and 19 deletions
|
@ -187,6 +187,10 @@ void set_default_settings(Settings *settings)
|
|||
settings->setDefault("console_height", "1.0");
|
||||
settings->setDefault("console_color", "(0,0,0)");
|
||||
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue