Advertisement
DimaTiunov

WinXP

Mar 8th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. -- Sorry about the messy code
  2. -- DO NOT STEAL, YOU MAY ONLY LOOK AT THE CODE FOR EDUCATIONAL PURPOSES! //by ComputerCraftFan1
  3.  
  4. -- Programs
  5. startmenu = "Start"
  6. games = "Games"
  7. commandprompt = "CMD"
  8. -- Games
  9. -- CommandPrompt Commands
  10. clear = "C:CMD>CLS"
  11.  
  12. function Winderp()
  13. print("+----------------------+")
  14. print("| |")
  15. print("| |")
  16. print("| |")
  17. print("| |")
  18. print("| |")
  19. print("| |")
  20. print("+----------------------+")
  21. print("|Start| |")
  22. print("+----------------------+")
  23. WinderpPrograms()
  24. end
  25.  
  26. function WinderpStart()
  27. term.clear()
  28. term.setCursorPos(1,1) --Clears Screen
  29. print("+----------------------+")
  30. print("| |")
  31. print("|-----+ |")
  32. print("|Games| |")
  33. print("|CMD | |")
  34. print("| | |")
  35. print("| | |")
  36. print("+----------------------+")
  37. print("|Start| |")
  38. print("+----------------------+")
  39. WinderpProgramsStart()
  40. end
  41.  
  42.  
  43. function WinderpGames()
  44. term.clear()
  45. term.setCursorPos(1,1) --Clears Screen
  46. print("+----------------------+")
  47. print("| |")
  48. print("| +-----Game-----+ |")
  49. print("| |Worm | |")
  50. print("| | | |")
  51. print("| | | |")
  52. print("| +--------------+ |")
  53. print("+----------------------+")
  54. print("|Start|Game| |")
  55. print("+----------------------+")
  56. WinderpProgramsGame()
  57. end
  58.  
  59. function WinderpGamesStart() --Multitask
  60. term.clear()
  61. term.setCursorPos(1,1) --Clears Screen
  62. print("+----------------------+")
  63. print("| |")
  64. print("|-----+---Game-----+ |")
  65. print("|Games|rm | |")
  66. print("|CMD | | |")
  67. print("| | | |")
  68. print("| |------------+ |")
  69. print("+----------------------+")
  70. print("|Start|Game| |")
  71. print("+----------------------+")
  72. WinderpProgramsStart()
  73. end
  74.  
  75. function WinderpCMD()
  76. term.clear()
  77. term.setCursorPos(1,1) --Clears Screen
  78. print("+----------------------+")
  79. print("| +C:WinCraft--------+ |")
  80. print("| |Microcraft Win [V1| |")
  81. print("| | | |")
  82. print("| |C:CMD> | |")
  83. print("| | | |")
  84. print("| +------------------+ |")
  85. print("+----------------------+")
  86. print("|Start|CMD| |")
  87. print("+----------------------+")
  88. WinderpCommandPrompt()
  89. end
  90.  
  91. function WinderpStartCMD()
  92. term.clear()
  93. term.setCursorPos(1,1) --Clears Screen
  94. print("+----------------------+")
  95. print("| +C:WinCraft--------+ |")
  96. print("|-----+ocraft Win [V1| |")
  97. print("|Games| | |")
  98. print("|CMD |D> | |")
  99. print("| | | |")
  100. print("| |--------------+ |")
  101. print("+----------------------+")
  102. print("|Start|CMD| |")
  103. print("+----------------------+")
  104. WinderpProgramsStart()
  105. end
  106.  
  107. function WinderpCMDCleared()
  108. term.clear()
  109. term.setCursorPos(1,1) --Clears Screen
  110. print("+----------------------+")
  111. print("| +C:WinCraft--------+ |")
  112. print("| | | |")
  113. print("| |C:CMD> | |")
  114. print("| | | |")
  115. print("| | | |")
  116. print("| +------------------+ |")
  117. print("+----------------------+")
  118. print("|Start|CMD| |")
  119. print("+----------------------+")
  120. WinderpCommandPrompt()
  121. end
  122.  
  123. -- CODE/STUFF
  124.  
  125. function WinderpProgramsStart() -- Programs
  126. command = read()
  127. if command == startmenu then
  128. Winderp() --open start menu
  129. end
  130.  
  131. if command == games then
  132. WinderpGames()
  133. end
  134.  
  135. if command == commandprompt then
  136. WinderpCMD() --cmd
  137. end
  138.  
  139. end
  140.  
  141. function WinderpProgramsGame() -- Games
  142. command = read()
  143. if command == startmenu then
  144. WinderpGamesStart() --open start menu with games open
  145. end
  146. end
  147.  
  148. function WinderpPrograms()
  149. command = read()
  150. if command == startmenu then
  151. WinderpStart() --open start menu
  152. end
  153.  
  154. end
  155.  
  156. function WinderpCommandPrompt()
  157. cmd = read()
  158. if cmd == clear then
  159. WinderpCMDCleared()
  160. end
  161.  
  162. if cmd == startmenu then
  163. WinderpStartCMD() --open start menu
  164. end
  165.  
  166. end
  167.  
  168. -- OPEN (IMPORTANT! DO NOT REMOVE)
  169. term.clear()
  170. term.setCursorPos(1,1) --Clears Screen
  171. Winderp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement