Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function as(eid,t)
- term.clear()
- paintutils.drawFilledBox(1,1,51,19,colors.lightBlue)
- paintutils.drawLine(1,1,51,1,colors.blue)
- term.setBackgroundColor(colors.blue)
- term.setCursorPos(1,1)
- print("LUAOS App Store")
- local choice1 = "Exit"
- local choice2 = "Download"
- local choice3 = "Download"
- local x1, y1 = 47,1
- local x2, y2 = 43,2
- local x3, y3 = 43,3
- term.setCursorPos(x1,y1)
- write(choice1)
- term.setBackgroundColor(colors.lightBlue)
- term.setCursorPos(x2,y2)
- write(choice2)
- term.setCursorPos(x3,y3)
- write(choice2)
- term.setCursorPos(1,2)
- print("Network Manager:Manages Computer Networks")
- term.setCursorPos(1,3)
- print("Server Manager:Manages Server Networks")
- while true do
- local event, button, cx, cy = os.pullEvent()
- if event == "mouse_click" then
- if cx >= x1 and cx < choice1:len() and cy == y1 and button == 1 then
- ag(eid,t)
- break
- else if cx >= x2 and cx < choice2:len() and cy == y2 and button == 1 then
- ad("network_manager",eid,t)
- break
- else if cx >= x3 and cx < choice3:len() and cy == y3 and button == 1 then
- ad("server_manager",eid,t)
- break
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement