Fixed Popup

This commit is contained in:
Cooldude2606
2017-07-03 22:15:50 +01:00
parent de5fa86749
commit 8e0df7c543
3 changed files with 36 additions and 20 deletions

View File

@@ -28,5 +28,11 @@ Event.register(-1,function() global.credits = credits end)
ExpGui.add_frame.center('Test','Test','A Simple Gui',5)
ExpGui.add_frame.tab('testing','Long Tab','Just Like any other',5,'Test',function(player,tab) for i=0,100 do tab.add{type='label',name=i,caption=player.name} end end)
ExpGui.add_frame.tab('just_a_tab','A Tab','Just Like any other',5,'Test',function(player,tab) tab.add{type='label',name='temp',caption=player.name} end)
ExpGui.add_frame.left('left_test','Player Name','Just Like any other',5,function(player,frame) for i=0,10 do frame.add{type='label',name=i,caption=player.name..'\n'} end end)
ExpGui.add_frame.popup('Message','Message','Just A ToolTip',5,function(player,frame) frame.add{name='TEST',type='label',caption=player.name} end,function(player,frame,args) frame.add{name='Message',type='label',caption=args[1]..' '..args[2]} end)
ExpGui.add_frame.left('left_test','Player Name','Just Like any other',5,true,function(player,frame) for i=0,10 do frame.add{type='label',name=i,caption=player.name..'\n'} end end)
ExpGui.add_input.button('make_message','Messgaes','Lots of messages',function() for i = 1,10 do ExpGui.draw_frame.popup('Message',{'Just A Message',i}) end end)
ExpGui.add_frame.popup('Message','Message','Just A ToolTip',5,
function(player,frame)
ExpGui.add_input.draw_button(frame,'make_message') end,
function(player,frame,args)
frame.add{name='Message',type='label',caption=args[1]..' '..args[2]}
end)