mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Added Buttons and Toolbar
This commit is contained in:
18
expcore/Gui/test.lua
Normal file
18
expcore/Gui/test.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local Gui = require 'expcore.gui'
|
||||
|
||||
Gui.new_toolbar_button('click-1')
|
||||
:on_click(function(player,element,event)
|
||||
player.print('CLICK 1')
|
||||
end)
|
||||
|
||||
Gui.new_toolbar_button('click-2')
|
||||
:set_caption('Click Two')
|
||||
:on_click(function(player,element,event)
|
||||
player.print('CLICK 2')
|
||||
end)
|
||||
|
||||
Gui.new_toolbar_button('click-3')
|
||||
:set_sprites('utility/questionmark')
|
||||
:on_click(function(player,element,event)
|
||||
player.print('CLICK 3')
|
||||
end)
|
||||
Reference in New Issue
Block a user