Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- local User = tArgs[1]
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.lime)
- print(User)
- term.setCursorPos(20,1)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.cyan)
- print("Menu")
- term.setCursorPos(5,5)
- print("Paint")
- term.setCursorPos(20,5)
- print("Store")
- while true do
- local event, button, X, Y = os.pullEvent("mouse_click")
- xy = X..","..Y
- if xy == "5,5" then
- shell.run("Minedows/Programs/Paint")
- break
- end
- if xy == "20,5" or "21,5" or "22,5" or "23,5" or "24,5" or "25,5" or "26,5" or "27,5" or "28,5" or "29,5" or "30,5" then
- shell.run("Minedows/programs/Store",User)
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement