Guest User

main

a guest
Mar 22nd, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. function fn1()
  2.   print("this is fn1")
  3. end
  4.  
  5. function fn2()
  6.   print("this is fn2")
  7. end
  8.  
  9. os.loadAPI("items")
  10.  
  11. items.initialize("right")
  12.  
  13. items.mkItem("btn","testBtn","Button #1",20,5,colors.black,colors.white,fn1,{})
  14. items.mkItem("btn","btn2","Button #2",18,3,colors.white,colors.red,fn2,{})
  15.  
  16. screenArray = {{"testBtn",3,3},{"btn2",5,10}}
  17. items.mkItem("scn","screen1",screenArray,colors.green)
  18.  
  19. items.dispItem("screen1")
  20.  
  21. while true do
  22.   items.waitEvent()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment