Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pos = 1
- gui = 1
- e = 0
- function Action()
- if gui == 1 and pos == 2 then
- end
- end
- function Event()
- event, key = os.pullEvent("key")
- if gui == 1 then e = 3 end
- if key == 208 and pos < e then
- pos = pos + 1
- end
- if key == 200 and pos > 1 then
- pos = pos - 1
- end
- if key == 28 then
- Action()
- end
- if gui == 1 then mainMenu() end
- end
- function mainMenu()
- term.clear()
- term.setCursorPos(1, 1)
- print("Hauptmenu")
- term.setCursorPos(1,3)
- if pos == 1 then
- print(" >Programme")
- print(" Systemsteuerung")
- print(" Konsole")
- end
- if pos == 2 then
- print(" Programme")
- print(" >Systemsteuerung")
- print(" Konsole")
- end
- if pos == 3 then
- print(" Programme")
- print(" Systemsteuerung")
- print(" >Konsole")
- end
- end
- mainMenu()
- while true do
- Event()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement