Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local w,h = term.getSize()
- function prc(text, y)
- local w = term.getSize()
- local _, cy = term.getCursorPos()
- term.setCursorPos(math.ceil((w-#text)/2), y or cy)
- write(text)
- end
- function help()
- term.setBackgroundColor(colors.lightGray)
- term.clear()
- sleep (0.1)
- term.setBackgroundColor(colors.gray)
- term.clear()
- sleep (0.1)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.blue)
- term.setCursorPos(w/2-5,h-1)
- print" Pepek"
- term.setCursorPos(w/2+3,h-1)
- print"Soft "
- term.setCursorPos(w/2+2,h-1)
- term.setTextColor(colors.lime)
- print"@"
- term.setTextColor(colors.black)
- prc("List of command for Pepdroll Seven", 1)
- term.setCursorPos(2,3)
- write" - 'cmd' -> Starts a command prompt (CraftOS),"
- term.setCursorPos(2,4)
- write" - 'opt' -> Starts a Setting App*,"
- term.setCursorPos(2,5)
- write" - 'reload os' -> Restart Desktop App,"
- term.setCursorPos(2,6)
- write" - 'oldwin' -> Change color to Windows 98,95,"
- term.setCursorPos(2,7)
- write" - 'defcol' -> Change to default color,"
- term.setCursorPos(2,8)
- write" - 'cls list' -> Reset menu to default,"
- term.setCursorPos(2,9)
- write" - 'pmanager' -> Starts a Pmanager App,"
- term.setCursorPos(2,10)
- write" - 'version' -> Shows the current version,"
- term.setCursorPos(2,11)
- write" - 'label' -> Open setting and set Label,"
- term.setCursorPos(2,12)
- write" - 'update' -> Update desktop App,"
- term.setCursorPos(2,13)
- write" - 'update -all' -> Update more App,"
- term.setCursorPos(2,14)
- write" - 'xp mode' -> Change theme to XP mode"
- term.setCursorPos(2,15)
- write" (update not support)"
- term.setCursorPos(2,17)
- write"* Functional after downloading components."
- while true do
- local event, button, x, y = os.pullEvent("mouse_click")
- xy = x..","..y
- if button == 1 or button == 2 then
- error()
- end
- end
- end
- help()
Add Comment
Please, Sign In to add comment