Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GUI = require("GUI")
- --------------------------------------------------------------------------------
- local application = GUI.application()
- application:addChild(GUI.panel(1, 1, application.width, application.height, 0x2D2D2D))
- local switch1 = application:addChild(GUI.switchAndLabel(2, 2, 25, 8, 0x66DB80, 0x1D1D1D, 0xEEEEEE, 0x999999, "Kyle On/Off:", false))
- local switch2 = application:addChild(GUI.switchAndLabel(2, 4, 25, 8, 0x66DB80, 0x1D1D1D, 0xEEEEEE, 0x999999, "Sample text 2:", false))
- switch2.switch.onStateChanged = function(state)
- GUI.alert("Switch state changed!")
- end
- --------------------------------------------------------------------------------
- application:draw(true)
- application:start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement