mirror of
https://gitlab.com/lunovox/computing.git
synced 2025-03-15 06:31:22 +00:00
[refact] Refactoring source code for optimization.
This commit is contained in:
parent
1d1a91d9df
commit
189fd39628
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue