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 | |
parent | d1a1c5cbf055e7eacbc4aeaa53174749d4c64d87 (diff) | |
download | minetest-ec3795a55c24685ec732fada3d1f5ba75ecd1cd5.tar.gz minetest-ec3795a55c24685ec732fada3d1f5ba75ecd1cd5.tar.bz2 minetest-ec3795a55c24685ec732fada3d1f5ba75ecd1cd5.zip |
Add style[] tag with button support
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/dlg_delete_content.lua | 1 | ||||
-rw-r--r-- | builtin/mainmenu/dlg_delete_world.lua | 1 | ||||
-rw-r--r-- | builtin/mainmenu/tab_local.lua | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/builtin/mainmenu/dlg_delete_content.lua b/builtin/mainmenu/dlg_delete_content.lua index 9d89316a0..a8da2efc7 100644 --- a/builtin/mainmenu/dlg_delete_content.lua +++ b/builtin/mainmenu/dlg_delete_content.lua @@ -22,6 +22,7 @@ local function delete_content_formspec(dialogdata) "size[11.5,4.5,true]" .. "label[2,2;" .. fgettext("Are you sure you want to delete \"$1\"?", dialogdata.content.name) .. "]".. + "style[dlg_delete_content_confirm;bgcolor;red]" .. "button[3.25,3.5;2.5,0.5;dlg_delete_content_confirm;" .. fgettext("Delete") .. "]" .. "button[5.75,3.5;2.5,0.5;dlg_delete_content_cancel;" .. fgettext("Cancel") .. "]" diff --git a/builtin/mainmenu/dlg_delete_world.lua b/builtin/mainmenu/dlg_delete_world.lua index df1091033..003935350 100644 --- a/builtin/mainmenu/dlg_delete_world.lua +++ b/builtin/mainmenu/dlg_delete_world.lua @@ -21,6 +21,7 @@ local function delete_world_formspec(dialogdata) "size[10,2.5,true]" .. "label[0.5,0.5;" .. fgettext("Delete World \"$1\"?", dialogdata.delete_name) .. "]" .. + "style[world_delete_confirm;bgcolor;red]" .. "button[0.5,1.5;2.5,0.5;world_delete_confirm;" .. fgettext("Delete") .. "]" .. "button[7.0,1.5;2.5,0.5;world_delete_cancel;" .. fgettext("Cancel") .. "]" return retval 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") .. "]" .. |