diff --git a/item_smartphone.lua b/item_smartphone.lua index 65ff7ba..69d5074 100644 --- a/item_smartphone.lua +++ b/item_smartphone.lua @@ -3,16 +3,12 @@ modComputing.getFormSmartphone = function(player) local formspec = "" .."formspec_version[6]" - .."size[5.6,10.0,true]" + .."size["..(10*271/484)..",10.0,true]" .."no_prepend[]" - .."bgcolor[#08080844;true]" --Padrão: #080808BB - - --.."bgcolor[#636D76FF;false]" - --..default.gui_bg - --..default.gui_bg_img - --..default.gui_slots - .."background[-0.75,-2.00;8.4,15.0;text_smartphone_271x484.png;true]" - .."button_exit[2.0,4.0;2.0,0.5;btnClose;"..core.formspec_escape("Close Button").."]" + .."bgcolor[#08080844;true]" --Padrão: #080808BB | true = 100% transparente + --.."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]" + .."button_exit[0.75,2.00;1.5,1.5;btnClose;"..core.formspec_escape("Banana\nPhone").."]" return formspec end