Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bigClear()
- local function main()
- while true do
- page = 0
- tinyPrint("Hello! Welcome to Help!",1,glcolors.otherBlue)
- tinyPrint("To get back to this screen,",2,glcolors.otherBlue)
- tinyPrint("just call $$back. To go to the ",3,glcolors.otherBlue)
- tinyPrint("next page, use $$> and $$<.",4,glcolors.otherBlue)
- tinyPrint("To exit the app, do $$exit",5,glcolors.otherBlue)
- local evt, cmd = os.pullEvent("chat_command")
- if cmd == "exit" then
- error("Quit help.")
- elseif cmd == "apps" then
- appLaun()
- elseif cmd == "version" then
- version()
- elseif cmd == "index" then
- helpIndex()
- end
- end
- end
- function cmd(max)
- while true do
- max = max+1
- local evt, cmd = os.pullEvent("chat_command")
- if cmd == "exit" then
- error()
- elseif cmd == "back" then
- return
- elseif cmd == ">" and page < max then
- page = page +1
- elseif cmd == "<" and page > -1 then
- page = page -1
- end
- end
- end
- function appLaun()
- tinyClear()
- tinyPrint("To launch an app, simply ",1,glcolors.otherBlue)
- tinyPrint("do $$apps at the homescreen,",2,glcolors.otherBlue)
- tinyPrint("Then do $$appname. To list ",3,glcolors.otherBlue)
- tinyPrint("apps, do $$list at the luancher.",4,glcolors.otherBlue)
- cmd(0)
- end
- function helpIndex()
- tinyClear()
- tinyPrint("apps, index, version,",1,glcolors.otherBlue)
- cmd(0)
- end
- function version()
- tinyClear()
- tinyPrint("You're running Glass V"..glassVersion.."!",1,glcolors.otherBlue)
- cmd(0)
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment