Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("config.lua")
- shell.run("mainmenu.lua")
- shell.run("staff.lua")
- shell.run("staff.lua")
- shell.run("rules.lua")
- function clearscreen()
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setBackgroundColour((colours.lime))
- end
- function getMouse()
- mouseWidth = 0
- mouseHeight = 0
- end
- function getSize()
- w,h=monitor.getSize()
- end
- function printSize()
- print(w)
- print(h)
- end
- function mainmenu2()
- clearscreen()
- mainMenu()
- end
- function staff2()
- clearscreen()
- staff()
- end
- function banneditems2()
- clearscreen()
- banneditems()
- end
- function rules2()
- clearscreen()
- rules()
- end
- function checkClickPosition()
- if mouseWidth > 15 and mouseWidth < 25 and mouseHeight == 5 then
- rules()
- elseif mouseWidth > 15 and mouseWidth < 25 and mouseHeight == 10 then
- staff()
- elseif mouseWidth > 15 and mouseWidth < 25 and mouseHeight == 15 then
- Bitems()
- end
- end
- function mouseCheck()
- repeat
- event,p1,p2,p3 = os.pullEvent()
- if event=="monitor_touch" then
- mouseWidth = p2 -- sets mouseWidth
- mouseHeight = p3 -- and mouseHeight
- checkClickPosition() -- this runs our function
- end
- until event=="char" and p1==("x")
- end
- config()
- clearscreen()
- getMouse()
- getSize()
- printSize()
- clearscreen()
- mainmenu2()
- mouseCheck()
Advertisement
Add Comment
Please, Sign In to add comment