Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("monitor_4")
- m.clear()
- local rs = rs.getAnalogInput("top")
- function fillTable()
- button.setTable("Endoflames", endoflame, 2,13,2,4)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function endoflame()
- button.toggleButton("Endoflames")
- print("test")
- end
- --Draw Pool
- term.redirect(m)
- term.setCursorPos(1,1)
- paintutils.drawFilledBox(2,17,28,18, colors.white)
- paintutils.drawFilledBox(2,9,4,17,colors.white)
- paintutils.drawFilledBox(26,9,28,17, colors.white)
- term.redirect(term.native())
- fillTable()
- function mana()
- --Draw mana in mana pool
- rs = rs.getAnalogInput("top")
- term.redirect(m)
- term.setCursorPos(1,1)
- paintutils.drawFilledBox(5,rs*2,25,16,colors.blue)
- term.redirect(term.native())
- end
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment