mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Add style[] tag with button support
This commit is contained in:
parent
d1a1c5cbf0
commit
ec3795a55c
7 changed files with 240 additions and 3 deletions
|
@ -102,6 +102,9 @@ local function get_formspec(tabview, name, tabdata)
|
|||
)
|
||||
|
||||
retval = retval ..
|
||||
"style_type[button;bgcolor;#006699]" ..
|
||||
"style[world_delete;bgcolor;red]" ..
|
||||
"style[world_delete;textcolor;yellow]" ..
|
||||
"button[4,3.95;2.6,1;world_delete;".. fgettext("Delete") .. "]" ..
|
||||
"button[6.5,3.95;2.8,1;world_configure;".. fgettext("Configure") .. "]" ..
|
||||
"button[9.2,3.95;2.5,1;world_create;".. fgettext("New") .. "]" ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue