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

@@ -143,7 +143,7 @@ Gui.left{
name='test-left',
caption='Gui Left',
tooltip='just testing',
draw=function(frame)
draw=function(self,frame)
for _,player in pairs(game.connected_players) do
frame.add{type='label',caption=player.name}
end
@@ -166,14 +166,14 @@ end)
Gui.popup{
name='test-popup',
caption='Gui Popup',
draw=function(frame,data)
draw=function(self,frame,data)
frame.add{type='label',caption='Opened by: '..data.player}
frame.add{type='label',caption='Message: '..data.message}
end
}:add_left{
caption='Gui Left w/ Popup',
tooltip='Send a message',
draw=function(frame)
function(self,frame)
text_popup:draw(frame)
send_popup:draw(frame)
end