Colorize the buttons for creating and deleting the world

master
MoNTE48 2019-12-09 22:20:05 +01:00
parent d4f03dc2f3
commit 9eff8f7d01
3 changed files with 5 additions and 2 deletions

View File

@ -58,7 +58,7 @@ local function create_world_formspec()
"dropdown[600.2,6;6.3;games;" .. gamemgr.gamelist() .. ";1]" ..
"button[3.25,3.4;2.5,0.5;world_create_confirm;" .. fgettext("Create") .. "]" ..
"button[3.25,3.4;2.5,0.5;world_create_confirm;" .. mt_green_button .. fgettext("Create") .. "]" ..
"button[5.75,3.4;2.5,0.5;world_create_cancel;" .. fgettext("Cancel") .. "]"
return retval

View File

@ -23,7 +23,7 @@ local function delete_world_formspec(dialogdata)
"bg_dialog.png") .. ";true]" ..
"label[5,1.4;" .. fgettext("Delete World") .. "]" ..
"label[5,1.8;" .. fgettext("\"$1\"?", dialogdata.delete_name) .. "]" ..
"button[3.25,3.4;2.5,0.5;world_delete_confirm;" .. fgettext("Delete") .. "]" ..
"button[3.25,3.4;2.5,0.5;world_delete_confirm;" .. mt_red_button .. fgettext("Delete") .. "]" ..
"button[5.75,3.4;2.5,0.5;world_delete_cancel;" .. fgettext("Cancel") .. "]"
return retval
end

View File

@ -20,6 +20,9 @@ mt_color_blue = "#6389FF"
mt_color_green = "#72FF63"
mt_color_dark_green = "#25C191"
mt_red_button = core.get_color_escape_sequence("#FF3333")
mt_green_button = core.get_color_escape_sequence("#00CC00")
--for all other colors ask sfan5 to complete his work!
local menupath = core.get_mainmenu_path()