Add style[] tag with button support

This commit is contained in:
rubenwardy
2019-03-15 19:03:12 +00:00
parent d1a1c5cbf0
commit ec3795a55c
7 changed files with 240 additions and 3 deletions

View File

@@ -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") .. "]" ..