Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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
- Loading branch information
Showing
with
83 additions
and 19 deletions.
- +12 −0 builtin/settingtypes.txt
- +16 −0 minetest.conf.example
- +4 −0 src/defaultsettings.cpp
- +5 −3 src/game.cpp
- +40 −14 src/guiFormSpecMenu.cpp
- +6 −2 src/guiFormSpecMenu.h