1
0
şunun yansıması https://github.com/luanti-org/luanti.git eşitlendi 2025-12-29 01:25:28 +01:00

Formspec: make bgcolor element less confusing and allow setting fullscreen color (#8996)

Bu işleme şunda yer alıyor:
DS
2019-12-08 18:59:30 +01:00
işlemeyi yapan: sfan5
ebeveyn d3255f92d7
işleme 8f73ec6c6c
4 değiştirilmiş dosya ile 42 ekleme ve 16 silme

Dosyayı Görüntüle

@@ -2104,11 +2104,19 @@ Elements
* Show an inventory image of registered item/node
### `bgcolor[<color>;<fullscreen>]`
### `bgcolor[<bgcolor>;<fullscreen>;<fbgcolor>]`
* Sets background color of formspec as `ColorString`
* If `true`, a fullscreen background is drawn and the color is ignored
(does not affect the size of the formspec)
* Sets background color of formspec.
* `bgcolor` and `fbgcolor` (optional) are `ColorString`s, they define the color
of the non-fullscreen and the fullscreen background.
* `fullscreen` (optional) can be one of the following:
* `false`: Only the non-fullscreen background color is drawn. (default)
* `true`: Only the fullscreen background color is drawn.
* `both`: The non-fullscreen and the fullscreen background color are drawn.
* `neither`: No background color is drawn.
* Note: Leave a parameter empty to not modify the value.
* Note: `fbgcolor`, leaving parameters empty and values for `fullscreen` that
are not bools are only available since formspec version 3.
### `background[<X>,<Y>;<W>,<H>;<texture name>]`