diff --git a/item_smartphone.lua b/item_smartphone.lua index cbaa0ec..417cbe9 100644 --- a/item_smartphone.lua +++ b/item_smartphone.lua @@ -16,11 +16,11 @@ modComputing.getFormSmartphone = function(player) .."size["..(10*271/484)..",10.0,true]" .."no_prepend[]" .."bgcolor[#08080844;true]" --PadrĂ£o: #080808BB | true = 100% transparente - .."style_type[label;font=mono;font_size=10;textcolor=#FFFFFF]" .."style_type[image_button;font=normal;font_size=11;textcolor=#FFFFFF]" .."style_type[image_button_exit;font=normal;font_size=11;textcolor=#FFFFFF]" --.."background[-0.75,-2.00;"..(10*271/484)..",10.0;text_smartphone_271x484.png;true]" .."image[0,0;"..(10*271/484)..",10.0;text_smartphone_271x484.png;true]" + .."style_type[label;font=mono;font_size=10;textcolor=#FFFFFF]" .."label[0.75,1.975;"..core.formspec_escape(modComputing.getTextClockBar()).."]" --.."button_exit[0.75,2.50;1.5,1.5;btnClose;"..core.formspec_escape(modComputing.translate("Banana\nStore")).."]" @@ -96,6 +96,7 @@ modComputing.getFormSmartphone = function(player) if type(formname)=="string" and formname=="frmSmartphone" then if type(fields)=="table" and type(fields[icon_name])=="string" then on_iconclick(player) + return true --If function returns true, remaining functions are not called end end end)