Fixed Admin gui not closing; Gui draw more consistent

This commit is contained in:
Cooldude2606
2018-12-31 13:54:06 +00:00
parent f0b1f51c0b
commit 2d1de044dd
13 changed files with 48 additions and 58 deletions

View File

@@ -206,7 +206,7 @@ end)
ThisModule.Gui = Gui.popup{
name='polls',
caption={'ExpGamingPlayer-polls.name'},
draw=function(frame,data)
draw=function(self,frame,data)
frame.style.right_padding = 5
frame.style.bottom_padding = 5
local uuid = data.uuid
@@ -225,7 +225,7 @@ ThisModule.Gui = Gui.popup{
}:add_left{
caption='utility/item_editor_icon',
tooltip={'ExpGamingPlayer-polls.tooltip'},
draw=function(frame)
draw=function(self,frame)
frame.caption={'ExpGamingPlayer-polls.name'}
frame.add{
type='label',