Advertisement
Guest User

desktop

a guest
May 22nd, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. os.loadAPI("/apis/graphix")
  2. graphix.totalClear()
  3. graphix.bgColor(colors.lightBlue)
  4. term.setCursorPos(1,1)
  5. term.setBackgroundColor(colors.blue)
  6. term.clearLine()
  7. term.setTextColor(colors.red)
  8. graphix.centerWrite(1,"MCOS Beta "..version)
  9. term.setBackgroundColor(colors.lightBlue)
  10. print()
  11. term.setCursorPos(1,3)
  12. term.setTextColor(colors.yellow)
  13. term.setBackgroundColor(colors.green)
  14. graphix.center(3,"App Editor")
  15. graphix.center(5,"File Manager")
  16. graphix.center(7,"Games")
  17. graphix.center(9,"Power (i)")
  18. graphix.center(11,"Shell")
  19. graphix.center(13,"Information")
  20.  
  21. while true do
  22.  
  23.   local evt, button, x, y = os.pullEvent("mouse_click")
  24.  
  25.   if y == 3 then
  26.     shell.run("/MCOS/editor")
  27.   elseif y == 5 then
  28.     shell.run("/MCOS/3rdParty/Gonow32/FileManager")
  29.   elseif y == 7 then
  30.     shell.run("/MCOS/GameList")
  31.   elseif y == 9 then
  32.     shell.run("/MCOS/power")
  33.   elseif y == 11 then
  34.     shell.run("/MCOS/shell")
  35.   elseif y == 13 then
  36.     shell.run("/MCOS/about")
  37.   else
  38.     shell.run("/MCOS/desktop")
  39.   end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement