Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fn1()
- print("this is fn1")
- end
- function fn2()
- print("this is fn2")
- end
- os.loadAPI("items")
- items.initialize("right")
- items.mkItem("btn","testBtn","Button #1",20,5,colors.black,colors.white,fn1,{})
- items.mkItem("btn","btn2","Button #2",18,3,colors.white,colors.red,fn2,{})
- screenArray = {{"testBtn",3,3},{"btn2",5,10}}
- items.mkItem("scn","screen1",screenArray,colors.green)
- items.dispItem("screen1")
- while true do
- items.waitEvent()
- end
Advertisement
Add Comment
Please, Sign In to add comment