diff options
| author | rubenwardy <rw@rubenwardy.com> | 2019-03-15 19:03:12 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2019-08-03 19:36:30 +0100 |
| commit | ec3795a55c24685ec732fada3d1f5ba75ecd1cd5 (patch) | |
| tree | c0b9dbcb480f2486c6030b7e989990a69b03d9af /builtin/mainmenu/tab_local.lua | |
| parent | d1a1c5cbf055e7eacbc4aeaa53174749d4c64d87 (diff) | |
| download | minetest-ec3795a55c24685ec732fada3d1f5ba75ecd1cd5.tar.xz | |
Add style[] tag with button support
Diffstat (limited to 'builtin/mainmenu/tab_local.lua')
| -rw-r--r-- | builtin/mainmenu/tab_local.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/mainmenu/tab_local.lua b/builtin/mainmenu/tab_local.lua index 15ef96dc8..512b4f844 100644 --- a/builtin/mainmenu/tab_local.lua +++ b/builtin/mainmenu/tab_local.lua @@ -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") .. "]" .. |
