diff --git a/formspecs.lua b/formspecs.lua index 008fbde..2a0fd17 100644 --- a/formspecs.lua +++ b/formspecs.lua @@ -70,7 +70,7 @@ modEUrn.FormSpecs = { myFormSpec = myFormSpec .."hypertext[4.0,0.5;11.25,6.00;htmPanel;" --..minetest.formspec_escape("") - .."" + .."" .."" .."" .."" @@ -78,17 +78,21 @@ modEUrn.FormSpecs = { ..minetest.formspec_escape(body:format(cands[selected], Campaign)) .."]" -- Fim de hypertext[] + myFormSpec = myFormSpec + .."style[btnWhiteVote;bgcolor=white;color=black]" + .."button[4.0,6.75;3.00,1;btnWhiteVote;"..minetest.formspec_escape(modEUrn.translate("WHITE")).."]" + local voterTimePlayed = modEUrn.getVoterPlayedTime(playername) if type(voterTimePlayed)=="number" and voterTimePlayed >= modEUrn.MinPlayedHours * (60*60) then myFormSpec = myFormSpec .."style[btnPresVote;bgimg=;bgimg_pressed=;border=;bgcolor=green]" - .."button[4.0,6.75;8.75,1;btnPresVote;"..modEUrn.translate("VOTE").."]" + .."button[7.10,6.75;5.65,1;btnPresVote;"..minetest.formspec_escape(modEUrn.translate("CONFIRM")).."]" end end myFormSpec = myFormSpec .."style[btnBack;bgimg=;bgimg_pressed=;border=;bgcolor=red]" - .."button[12.85,6.75;2.55,1;btnBack;"..modEUrn.translate("BACK").."]" + .."button[12.85,6.75;2.55,1;btnBack;"..minetest.formspec_escape(modEUrn.translate("CANCEL")).."]" minetest.sound_play("sfx_eurn_button", {to_player=playername, max_hear_distance=5.0,}) minetest.show_formspec(playername, "frmEUrnPresCands", myFormSpec) end, @@ -137,7 +141,7 @@ modEUrn.FormSpecs = { ..minetest.formspec_escape(body) .."]" -- Fim de hypertext[] .."style[btnBack;bgimg=;bgimg_pressed=;border=;bgcolor=red]" - .."button[2.15,5.50;7.55,1;btnBack;"..modEUrn.translate("BACK").."]" + .."button[2.15,5.50;7.55,1;btnBack;"..minetest.formspec_escape(modEUrn.translate("BACK")).."]" minetest.sound_play("sfx_eurn_button", {to_player=playername, max_hear_distance=5.0,}) minetest.show_formspec(playername, "frmEUrnPresElect", myFormSpec) end,