Guest User

Startup

a guest
Nov 17th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. if not term.isColor() then print("This program requires an Advanced Computer.")return end
  2.  
  3. local startImg = paintutils.loadImage("DevOS/Images/StartUpImage")
  4.  
  5. term.setBackgroundColor(colors.gray)
  6. term.clear()
  7. paintutils.drawImage(startImg,3,2)
  8. term.setCursorPos(27,5)
  9. term.setBackgroundColor(colors.gray)
  10. term.setTextColor(colors.lightBlue)
  11. term.write("Developing Made Easy")
  12. term.setCursorPos(33,7)
  13. term.write("By Twijn")
  14. --Initialize APIs
  15. shell.run("DevOS/SystemFiles/TextApis")
  16. shell.run("DevOS/SystemFiles/ButtonApis")
  17. --Done
  18. sleep(3)
  19. function runMain()
  20.   shell.run("DevOS/SystemFiles/Menus")
  21. end
  22. parallel.waitForAll(runMain,buttonapis.startLoop)--Finalize buttonapi and run Main
Advertisement
Add Comment
Please, Sign In to add comment