mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +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
|
@ -762,6 +762,22 @@
|
|||
# type: int min: 0 max: 255
|
||||
# console_alpha = 200
|
||||
|
||||
# Formspec full-screen background opacity (between 0 and 255).
|
||||
# type: int
|
||||
# formspec_fullscreen_bg_opacity = 140
|
||||
|
||||
# Formspec full-screen background color (R,G,B).
|
||||
# type: string
|
||||
# formspec_fullscreen_bg_color = (0,0,0)
|
||||
|
||||
# Formspec default background opacity (between 0 and 255).
|
||||
# type: int
|
||||
# formspec_default_bg_opacity = 140
|
||||
|
||||
# Formspec default background color (R,G,B).
|
||||
# type: string
|
||||
# formspec_default_bg_color = (0,0,0)
|
||||
|
||||
# Selection box border color (R,G,B).
|
||||
# type: string
|
||||
# selectionbox_color = (0,0,0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue