Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- screenX, screenY = term.getSize()
- function Program()
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- os.sleep(0.1)
- while true do
- term.setBackgroundColor(colors.lightBlue)
- term.clear()
- paintutils.drawLine(1, 1, screenX, 1, colors.cyan)
- term.setTextColor(colors.black)
- term.setCursorPos(1,1)
- print("Programs")
- term.setTextColor(colors.black)
- term.setCursorPos(1,4)
- print("[System Programs]")
- term.setTextColor(colors.black)
- term.setCursorPos(40,1)
- print("[Close]")
- local event, button, X, Y = os.pullEventRaw("mouse_click")
- if X >= 1 and X <= 10 and Y == 3 and button == 1 then
- shell.run("/isaacos/Programs/gfb")
- elseif X >= 1 and X <= 16 and Y == 4 and button == 2 then
- print("Going to System Programs")
- sleep(0.5)
- shell.run("/isaacos/system/system.lua")
- elseif X >= 40 and X <= 47 and Y == 1 and button == 3 then
- sleep(0.5)
- break
- end
- end
- end
- Program()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement