Advertisement
Guest User

nebula-test.lua

a guest
Jan 20th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. local nebula = require('nebula')
  2. local nebulaApp = nebula.createApplication("default")
  3.  
  4. local frame = nebulaApp.addChild("frame")
  5. frame.visible = false
  6.  
  7. local label1 = nebulaApp.addChild("label", 2, 2, "Hello World!")
  8. local button1 = nebulaApp.addChild("button", 2, 4, "Click to show a frame", function()
  9.  
  10. end)
  11.  
  12. local label2 = frame.addChild("label", 2, 2, "Hello World!")
  13. local button2 = frame.addChild("button", 2, 4, "Click to show a frame", function()
  14.  
  15. end)
  16.  
  17. nebula.draw()
  18.  
  19. nebula.init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement