]> git.lizzy.rs Git - dragonfireclient.git/commit
Formspec: Add options to set background color and opacity (fullscreen mode + default...
authorLoïc Blot <nerzhul@users.noreply.github.com>
Tue, 29 Aug 2017 17:25:16 +0000 (19:25 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2017 17:25:16 +0000 (19:25 +0200)
commit1b3e4e173624bb2523d4386aeef6987709d9b022
tree5524dc581ac1ccc313a73d4626cea2efe5550507
parent72c09f524b1616dd75bb6e35008196b5ca6351a2
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
builtin/settingtypes.txt
minetest.conf.example
src/defaultsettings.cpp
src/game.cpp
src/guiFormSpecMenu.cpp
src/guiFormSpecMenu.h