Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("GuiAPI")
- local monitor
- function Start()
- print("Init")
- monitor = GuiAPI.initMonitor()
- GuiAPI.initEventHandler(EventHandler, Main)
- end
- function EventHandler()
- while true do
- local event, name, x, y = os.pullEvent("button")
- print("Event: " .. event .. " Name: " .. name .. " X: " .. x .. " Y: " .. y)
- end
- end
- function MenuBar()
- print("add menubar")
- GuiAPI.addButtonMain("home", 1, 1, 12, 3, "Home")
- GuiAPI.addButtonMain("frameQuarry", 14, 1, 15, 3, "Framequarry")
- end
- function Main()
- MenuBar()
- GuiAPI.draw()
- end
- Start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement