Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nebula = require('nebula')
- local nebulaApp = nebula.createApplication("default")
- local frame = nebulaApp.addChild("frame")
- frame.visible = false
- local label1 = nebulaApp.addChild("label", 2, 2, "Hello World!")
- local button1 = nebulaApp.addChild("button", 2, 4, "Click to show a frame", function()
- end)
- local label2 = frame.addChild("label", 2, 2, "Hello World!")
- local button2 = frame.addChild("button", 2, 4, "Click to show a frame", function()
- end)
- nebula.draw()
- nebula.init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement