Fixed Sytax

This commit is contained in:
Cooldude2606
2017-08-20 20:39:17 +01:00
parent 3a5c73f0a0
commit 324ba6ef7a
7 changed files with 12 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ function add_frame.left(name,default_display,default_tooltip,restriction,vis,eve
if not name then error('Frame requires a name') end
if not event or type(event) ~= 'function' then error('Frame requires a draw function') end
local vis = vis or false
table.insert(frames.left,{name,default_display,event,vis})
table.insert(frames.left,{name=name,display=default_display,event=event,vis=vis})
ExpGui.toolbar.add_button(name,default_display,default_tooltip,restriction,draw_frame.left)
end
--draw the left GUI for the player; called via script, only call manually when update is true and element is the name of the GUI