Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printCentered( math.floor(h/2) - 3, "")
- printCentered( math.floor(h/2) - 2, "Instalka" )
- printCentered( math.floor(h/2) - 1, "")
- printCentered( math.floor(h/2) + 0, ((nOption == 1) and "[ Instaluj ]") or "Instaluj" )
- printCentered( math.floor(h/2) + 1, ((nOption == 2) and "[ Powrot ]") or "Powrot" )
- printCentered( math.floor(h/2) + 4, "")
- drawMenu()
- drawFrontend()
- while true do
- local e,p = os.pullEvent()
- if e == "key" then
- local key = p
- if key == 17 or key == 200 then
- if nOption > 1 then
- nOption = nOption - 1
- drawMenu()
- drawFrontend()
- end
- elseif key == 31 or key == 208 then
- if nOption < 4 then
- nOption = nOption + 1
- drawMenu()
- drawFrontend()
- end
- elseif key == 28 then
- --End should not be here!!
- break
- end --End should be here!!
- end
- end
- term.clear()
- --Conditions
- if nOption == 1 then
- shell.run(".menu")
- elseif nOption == 2 then
- pastebin get f8byiDfn startup
- pastebin get fRnkpjJW .menu
- pastebin get QgrSpS2A .Uninstalka
- reboot
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement