Advertisement
PolskiWisnia

NextUI 1.10 RC

Aug 11th, 2020 (edited)
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function s(...) return sleep(...) end
  2. local function aw(...) return write(...) end
  3. local function p(...) return print(...) end
  4. local function tw(...) return term.write(...) end
  5. local function scp(...) return term.setCursorPos(...) end
  6. local function sbc(...) return term.setBackgroundColor(...) end
  7. local function stc(...) return term.setTextColor(...) end
  8. local function tc(...) return term.clear(...) end
  9. local function tcl(...) return term.clearLine(...) end
  10. local function r(...) return shell.run(...) end
  11. local function sp(...) return textutils.slowPrint(...) end
  12. local function sw(...) return textutils.slowWrite(...) end
  13. local function fse(...) return fs.exists(...) end
  14. local function pul(...) return paintutils.loadImage(...) end
  15. local function pud(...) return paintutils.drawImage(...) end
  16. local function pfb(...) return paintutils.drawFilledBox(...) end
  17. local function su(...) return os.shutdown(...) end
  18. local function re(...) return os.reboot(...) end
  19. local function pdp(...) return paintutils.drawPixel(...) end
  20. local w, h = term.getSize()
  21. if fse("/os/desktop") then os.loadAPI("/os/desktop") else r("pastebin get PfAWshRt /os/desktop") end
  22.  
  23. function bsodp()
  24. tc()
  25. ac = w/2
  26. scp(ac-2,3)
  27. p("NextUI")
  28. scp(1,6)
  29. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  30. p("Kod bledu: 0x302525503149")
  31. p("Nazwa bledu: INV_PLA")
  32. system = "NextUI"
  33. kernel = "MineCore 2.0"
  34. kod = "0x403535604159"
  35. nazwa = "INV_PLA"
  36. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodp")
  37. local a = fs.open("/os/bsod/bsodp", "w")
  38. a.writeLine(system)
  39. a.writeLine(kernel)
  40. a.writeLine(kod)
  41. a.writeLine(nazwa)
  42. a.close()
  43. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  44. s(10)
  45. re()
  46. end
  47.  
  48. function bsodr()
  49. tc()
  50. sbc(colors.blue)
  51. tc()
  52. sbc(colors.blue)
  53. stc(colors.white)
  54. ac = w/2
  55. scp(ac-2,3)
  56. sbc(colors.white)
  57. stc(colors.blue)
  58. p("NextUI")
  59. sbc(colors.blue)
  60. stc(colors.white)
  61. scp(1,6)
  62. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  63. p("Kod bledu: 0x403535604159")
  64. p("Nazwa bledu: INV_RES")
  65. system = "NextUI"
  66. kernel = "MineCore 2.0"
  67. kod = "0x403535604159"
  68. nazwa = "INV_RES"
  69. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodr")
  70. local a = fs.open("/os/bsod/bsodr", "w")
  71. a.writeLine(system)
  72. a.writeLine(kernel)
  73. a.writeLine(kod)
  74. a.writeLine(nazwa)
  75. a.close()
  76. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  77. s(10)
  78. re()
  79. end
  80.  
  81.  
  82.  
  83. function bsodf()
  84. tc()
  85. sbc(colors.blue)
  86. tc()
  87. sbc(colors.blue)
  88. stc(colors.white)
  89. ac = w/2
  90. scp(ac-2,3)
  91. sbc(colors.white)
  92. stc(colors.blue)
  93. p("NextUI")
  94. sbc(colors.blue)
  95. stc(colors.white)
  96. scp(1,6)
  97. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  98. p("Kod bledu: 0x302525503149")
  99. p("Nazwa bledu: APP_MSNG")
  100. system = "NextUI"
  101. kernel = "MineCore 2.0"
  102. kod = "0x302525503149"
  103. nazwa = "APP_MSNG"
  104. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodf")
  105. local a = fs.open("/os/bsod/bsodf", "w")
  106. a.writeLine(system)
  107. a.writeLine(kernel)
  108. a.writeLine(kod)
  109. a.writeLine(nazwa)
  110. a.close()
  111. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  112. s(10)
  113. re()
  114. end
  115.  
  116. if not term.isColor() then bsodp() end
  117. if w<51 or h<19 then bsodr() end
  118. if pocket then bsodp() end
  119. if turtle then bsodp() end
  120.  
  121. function bsodr()
  122. tc()
  123. sbc(colors.blue)
  124. tc()
  125. sbc(colors.blue)
  126. stc(colors.white)
  127. ac = w/2
  128. scp(ac-2,3)
  129. sbc(colors.white)
  130. stc(colors.blue)
  131. p("NextUI")
  132. sbc(colors.blue)
  133. stc(colors.white)
  134. scp(1,6)
  135. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  136. p("Kod bledu: 0x302525503149")
  137. p("Nazwa bledu: INV_RES")
  138. system = "NextUI"
  139. kernel = "MineCore"
  140. kod = "0x403535604159"
  141. nazwa = "INV_RES"
  142. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsodr")
  143. local a = fs.open("/os/bsod/.bsodr", "w")
  144. a.writeLine(system)
  145. a.writeLine(kernel)
  146. a.writeLine(kod)
  147. a.writeLine(nazwa)
  148. a.close()
  149. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  150. s(10)
  151. re()
  152. end
  153.  
  154. function bsodf()
  155. tc()
  156. sbc(colors.blue)
  157. tc()
  158. sbc(colors.blue)
  159. stc(colors.white)
  160. ac = w/2
  161. scp(ac-2,3)
  162. sbc(colors.white)
  163. stc(colors.blue)
  164. p("NextUI")
  165. sbc(colors.blue)
  166. stc(colors.white)
  167. scp(1,6)
  168. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  169. p("Kod bledu: 0x302525503149")
  170. p("Nazwa bledu: APP_MSNG")
  171. system = "NextUI"
  172. kernel = "MineCore"
  173. kod = "0x302525503149"
  174. nazwa = "APP_MSNG"
  175. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsodf")
  176. local a = fs.open("/os/bsod/.bsodf", "w")
  177. a.writeLine(system)
  178. a.writeLine(kernel)
  179. a.writeLine(kod)
  180. a.writeLine(nazwa)
  181. a.close()
  182. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  183. s(10)
  184. re()
  185. end
  186.  
  187. function pliki()
  188.  local u = fs.open("/os/.log1", "r")
  189.  user = u.readLine(1)
  190.  u.close()
  191.  local h = fs.open("/os/.log2", "r")
  192.  pass = h.readLine(1)
  193.  h.close()
  194. end
  195.  
  196.  
  197. function app()
  198. while true do
  199. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  200. tc()
  201. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  202. pfb(1, 1, w, 1, colors.blue)
  203. pfb(1, h, w, h, colors.blue)
  204. pdp(w,h,colors.red)
  205. pdp(w-1,h,colors.orange)
  206. scp(1,h)
  207. stc(colors.white)
  208. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  209. write("Start")
  210. sbc(colors.blue)
  211. scp(1,1)
  212. stc(colors.white)
  213. p("Aplikacje nextStore")
  214. pdp(w,1,colors.red)
  215. if fs.exists("/nshop/.exp") then
  216. pfb(2, 4, 2, 6, colors.orange)
  217. pfb(3, 4, 3, 6, colors.yellow)
  218. pfb(4, 4, 4, 6, colors.red)
  219. scp(2,7)
  220. stc(colors.white)
  221. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  222. p("Eksplorator")
  223. end
  224.  
  225. if fs.exists("/nshop/.dg") then
  226.  pfb(15, 4, 15, 6, colors.gray)
  227.  pfb(16, 4, 16, 6, colors.gray)
  228.  pfb(17, 4, 17, 6, colors.lightGray)
  229.  pdp(16, 5, colors.lightGray)
  230.  pdp(17, 5, colors.gray)
  231.  stc(colors.white)
  232. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  233.  scp(15,7)
  234.  p("DGStatistics")
  235. end
  236.  
  237.  
  238. if fs.exists("/nshop/.tm") then
  239.  pfb(28, 4, 30, 6, colors.gray)
  240.  pfb(28, 4, 30, 4, colors.lightGray)
  241.  pdp(29,5, colors.lightGray)
  242.  pdp(29,6, colors.lightGray)
  243.   stc(colors.white)
  244. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  245.  scp(28,7)
  246.  p("TimeMachine")
  247. end
  248.  
  249. if fs.exists("/nshop/.calc") then
  250.  pfb(2, 8, 4, 8, colors.blue)
  251.  pfb(2, 9, 4, 10, colors.cyan)
  252.  stc(colors.white)
  253.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  254.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  255.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  256.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  257.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  258.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  259.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  260.  scp(2,11)
  261.  p("Kalkulator")
  262. end
  263.  
  264. local event, button, x, y = os.pullEvent("mouse_click")
  265. if x>1 and x<5 and y>3 and y<7 and fs.exists("/nshop/.exp") and button == 1 then r("/nshop/.exp") end
  266. if x>14 and x<18 and y>3 and y<7 and fs.exists("/nshop/.dg") and button == 1 then r("/nshop/.dg") end
  267. if x>27 and x<31 and y>3 and y<7 and fs.exists("/nshop/.tm") and button == 1 then r("/nshop/.tm") end
  268. if x>1 and x<5 and y>7 and y<11 and fs.exists("/nshop/.calc") and button == 1 then r("/nshop/.calc") end
  269. if x>1 and x<5 and y>3 and y<7 and fs.exists("/nshop/.exp") and button == 2 then fs.delete("/nshop/.exp") end
  270. if x>14 and x<18 and y>3 and y<7 and fs.exists("/nshop/.dg") and button == 2 then fs.delete("/nshop/.dg") end
  271. if x>27 and x<31 and y>3 and y<7 and fs.exists("/nshop/.tm") and button == 2 then fs.delete("/nshop/.tm") end
  272. if x>1 and x<5 and y>7 and y<11 and fs.exists("/nshop/.calc") and button == 2 then fs.delete("/nshop/.calc") end
  273. if x == w and y == 1 then obraz22() end
  274. if x>0 and x<6 and y == h then start() end
  275. if x == w and y == h then su() end
  276. if x == w-1 and y == h then re() end
  277.  
  278. end
  279. end
  280.  
  281. function apps()
  282. while true do
  283. sbc(colors.black)
  284. tc()
  285. sbc(colors.black)
  286. pfb(6, h, w, h, colors.blue)
  287. sbc(colors.green)
  288. stc(colors.white)
  289. scp(1,h)
  290. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black)  end
  291. aw("Start")
  292. pfb(1, 1, w, 1, colors.blue)
  293. pdp(w, 1, colors.red)
  294. pdp(w-1, h, colors.red)
  295. pdp(w-1, h, colors.orange)
  296. scp(1,1)
  297. sbc(colors.blue)
  298. stc(colors.white)
  299. p("Zarzadzanie aplikacjami")
  300. pfb(3, 3, 5, 3, colors.gray)
  301. pdp(3, 3, colors.lightGray)
  302. scp(6,3)
  303. stc(colors.white)
  304. sbc(colors.black)
  305. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  306. p("Dysk twardy   Wolne miejsce: ", miejsce, "KB")
  307. scp(1,6)
  308. p("Aplikacje:")
  309. scp(6,8)
  310. stc(colors.white)
  311. sbc(colors.black)
  312. if fs.exists("/nshop/") then rozmiar = math.ceil(getSize("/nshop/")/1024) else
  313. scp(1,7) sbc(colors.black) stc(colors.white) p("Brak zainstalowanych aplikacji") end
  314. scp(1,5)
  315. p("Laczny rozmiar aplikacji na dysku: ", rozmiar, "KB")
  316. if fs.exists("/nshop/.exp") then pfb(3, 8, 5, 8, colors.blue) scp(6,8) stc(colors.white) sbc(colors.black) p("Eksplorator") scp(1,8) stc(colors.white) sbc(colors.red) p("X") end
  317. if fs.exists("/nshop/.dg") then pfb(3, 10, 5, 10, colors.gray) scp(6,10) stc(colors.white) sbc(colors.black) p("DGStatistics") scp(1,10) stc(colors.white) sbc(colors.red) p("X") end
  318. if fs.exists("/nshop/.tm") then pfb(3, 12, 5, 12, colors.green) scp(6,12) stc(colors.white) sbc(colors.black) p("TimeMachine") scp(1,12) stc(colors.white) sbc(colors.red) p("X") end
  319. if fs.exists("/nshop/.calc") then pfb(3, 14, 5, 14, colors.cyan) scp(6,14) stc(colors.white) sbc(colors.black) p("Kalkulator") scp(1, 14) stc(colors.white) sbc(colors.red) p("X") end
  320. local event, click, x, y = os.pullEvent("mouse_click")
  321. if x>0 and x<6 and y == h then start() end
  322. if x == 1 and y == 8 then fs.delete("/nshop/.exp") s(1)  end
  323. if x == 1 and y == 10 then fs.delete("/nshop/.dg") s(1)  end
  324. if x == 1 and y == 12 then fs.delete("/nshop/.tm") s(1)  end
  325. if x == 1 and y == 14 then fs.delete("/nshop/.calc") s(1) end
  326. if x == w and y == 1 then nust() end
  327. end
  328. end
  329.  
  330. function calc()
  331. scp(16,2)
  332. sbc(colors.white)
  333. stc(colors.black)
  334. p("Kalkulator NextUI to prosta")
  335. scp(16,3)
  336. p("aplikacja pozwalajaca na szybsze")
  337. scp(16,4)
  338. p("wykonywanie dzialan matematycznych")
  339. scp(16,10)
  340. p("Wydawca: Microcraft")
  341. pfb(16, h, w, h, colors.blue)
  342. if fs.exists("/nshop/.calc") then
  343.  scp(16,h)
  344.  sbc(colors.blue)
  345.  stc(colors.white)
  346.  write("Usun      Uruchom")
  347.  local event, click, x, y = os.pullEvent("mouse_click")
  348.  if x>15 and x<21 and y == h then fs.delete("/nshop/.calc") end
  349.  if x>25 and x<34 and y == h then r("/nshop/.calc") end
  350. else
  351.  scp(30,h)
  352.  write("Pobierz")
  353.  local event, click, x, y = os.pullEvent("mouse_click")
  354.  if x>29 and x<40 and y == h then
  355.   r("pastebin get dMjjSaKY /nshop/.calc")
  356.  end
  357. end
  358. end
  359.  
  360. function ep()
  361. scp(16,2)
  362. sbc(colors.white)
  363. stc(colors.black)
  364. p("Eksplorator dla NextUI to potezne")
  365. scp(16,3)
  366. p("a zarazem proste narzedzie do")
  367. scp(16,4)
  368. p("przegladania zawartosci dysku")
  369. scp(16,5)
  370. p("twardego. Pobierz za darmo dzisiaj!")
  371. scp(16,10)
  372. p("Wydawca: Microcraft")
  373. pfb(16, h, w, h, colors.blue)
  374. if fs.exists("/nshop/.exp") then
  375.  scp(16,h)
  376.  sbc(colors.blue)
  377.  stc(colors.white)
  378.  write("Usun      Uruchom")
  379.  local event, click, x, y = os.pullEvent("mouse_click")
  380.  if x>15 and x<21 and y == h then fs.delete("/nshop/.exp") end
  381.  if x>25 and x<34 and y == h then r("/nshop/.exp") end
  382. else
  383.  scp(30,h)
  384.  write("Pobierz")
  385.  local event, click, x, y = os.pullEvent("mouse_click")
  386.  if x>29 and x<40 then
  387.   r("pastebin get zbzF7Zu4 /nshop/.exp")
  388.  end
  389. end
  390. end
  391.  
  392.  
  393. function rc()
  394. scp(16,2)
  395. sbc(colors.white)
  396. stc(colors.black)
  397. p("ReactorControl to aplikacja,")
  398. scp(16,3)
  399. p("stworzona dla latwiejszej")
  400. scp(16,4)
  401. p("kontroli reaktorow z modyfikacji")
  402. scp(16,5)
  403. p("do Minecraft nazwanej BigReactors.")
  404. scp(16,10)
  405. p("Wydawca: Microcraft")
  406. pfb(16, h, w, h, colors.blue)
  407. scp(16,h)
  408. write("Aplikacja nie jest jeszcze dostepna")
  409. local event, click, x, y = os.pullEvent("mouse_click")
  410. end
  411.  
  412.  
  413. function tm()
  414. scp(16,2)
  415. sbc(colors.white)
  416. stc(colors.black)
  417. p("TimeMashine to aplikacja")
  418. scp(16,3)
  419. p("uruchamiajaca starsze wersje")
  420. scp(16,4)
  421. p("MineCore oraz Minedows dzieki")
  422. scp(16,5)
  423. p("NextUI API! Poznaj starsze")
  424. scp(16,6)
  425. p("systemy Microcraft bez zbednego")
  426. scp(16,7)
  427. p("zajmowania miejsca na dysku!")
  428. scp(16,8)
  429. p("Aplikacja stworzona na rocznice")
  430. scp(16,9)
  431. p("wydania MineCore 1.0!")
  432. scp(16,12)
  433. p("Wydawca: Microcraft")
  434. pfb(16, h, w, h, colors.blue)
  435. if fs.exists("/nshop/.tm") then
  436.  scp(16,h)
  437.  sbc(colors.blue)
  438.  stc(colors.white)
  439.  write("Usun      Uruchom")
  440.  local event, click, x, y = os.pullEvent("mouse_click")
  441.  if x>15 and x<21 and y == h then fs.delete("/nshop/.tm") end
  442.  if x>25 and x<34 and y == h then r("/nshop/.tm") end
  443. else
  444.  scp(30,h)
  445.  write("Pobierz")
  446.  local event, click, x, y = os.pullEvent("mouse_click")
  447.  if x>29 and x<40 and y == h then
  448.   r("pastebin get kCQLpZQS /nshop/.tm")
  449.  end
  450. end
  451. end
  452.  
  453.  
  454. function dg()
  455. scp(16,2)
  456. sbc(colors.white)
  457. stc(colors.black)
  458. p("DGStatistics to aplikacja,")
  459. scp(16,3)
  460. p("stworzona we wspolpracy z ")
  461. scp(16,4)
  462. p("serwerem Darkness Grounds ")
  463. scp(16,5)
  464. p("pokazujaca statystyki broni")
  465. scp(16,6)
  466. p("Z ich autorskiej modyfikacji!")
  467. scp(16,7)
  468. p("Pobierz juz dzis!")
  469. scp(16,10)
  470. p("Wydawca: Microcraft;DG")
  471. pfb(16, h, w, h, colors.blue)
  472. scp(16,h)
  473. if fs.exists("/nshop/.dg") then
  474.  scp(16,h)
  475.  sbc(colors.blue)
  476.  stc(colors.white)
  477.  write("Usun      Uruchom")
  478.  local event, click, x, y = os.pullEvent("mouse_click")
  479.  if x>15 and x<21 and y == h then fs.delete("/nshop/.dg") end
  480.  if x>25 and x<34 and y == h then r("/nshop/.dg") end
  481. else
  482.  scp(30,h)
  483.  write("Pobierz")
  484.  local event, click, x, y = os.pullEvent("mouse_click")
  485.  if x>29 and x<40 and y == h then
  486.   r("pastebin get qRNinxW4 /nshop/.dg")
  487.  end
  488. end
  489. end
  490.  
  491.  
  492. function kolorw()
  493. scp(1,5)
  494. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  495. p("Obecny kolor wiodacy: ", colr)
  496. p("Wybierz nowy kolor wiodacy:")
  497. pdp(1, 7, colors.orange)
  498. pdp(2, 7, colors.lightBlue)
  499. pdp(3, 7, colors.yellow)
  500. pdp(4, 7, colors.lime)
  501. pdp(5, 7, colors.pink)
  502. pdp(6, 7, colors.gray)
  503. pdp(7, 7, colors.lightGray)
  504. pdp(8, 7, colors.purple)
  505. pdp(9, 7, colors.blue)
  506. pdp(10, 7, colors.brown)
  507. pdp(11, 7, colors.green)
  508. pdp(12, 7, colors.red)
  509. pdp(13, 7, colors.black)
  510. pdp(14, 7, colors.white)
  511. local event, click, x, y = os.pullEvent("mouse_click")
  512. if x == 1 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.orange") colw.close() end
  513. if x == 2 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lightBlue") colw.close() end
  514. if x == 3 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.yellow") colw.close() end
  515. if x == 4 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lime") colw.close() end
  516. if x == 5 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.pink") colw.close() end
  517. if x == 6 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.gray") colw.close() end
  518. if x == 7 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.lightGray") colw.close() end
  519. if x == 8 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.purple") colw.close() end
  520. if x == 9 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.blue") colw.close() end
  521. if x == 10 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.brown") colw.close() end
  522. if x == 11 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.green") colw.close() end
  523. if x == 12 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.red") colw.close() end
  524. if x == 13 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.black") colw.close() end
  525. if x == 14 and y == 7 then r("rm /os/.kol") local colw = fs.open("/os/.kol", "w") colw.writeLine("colors.white") colw.close() end
  526. end
  527.  
  528. function deskust()
  529. while true do
  530. kolor()
  531. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  532. tc()
  533. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  534. pfb(1, 1, w, 1, colors.blue)
  535. scp(1,1)
  536. stc(colors.white)
  537. p("Ustawienia NextUI")
  538. pdp(w,1, colors.red)
  539. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  540.  scp(1,2)
  541.  p("Styl graficzny: Domyslny NextUI")
  542.  p("Brak dostepnych stylow")
  543.  p("Wybierz kolor wiodacy")
  544.  local event, click, x, y = os.pullEvent("mouse_click")
  545.  if x>0 and x<25 and y == 4 then kolorw() end
  546.  if x == w and y == 1 then nust() end
  547. end
  548. end
  549.  
  550.  
  551. function infust()
  552. while true do
  553. kolor()
  554. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  555. tc()
  556. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  557. pfb(1, 1, w, 1, colors.blue)
  558. scp(1,1)
  559. stc(colors.white)
  560. p("Ustawienia NextUI")
  561. pdp(w,1, colors.red)
  562. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  563. scp(1,2)
  564. p("Microcraft NextUI 1.10")
  565. p("Wersja systemu: 1.10 2nd Developers Update")
  566. zajete = math.ceil(getSize("/")/1024)
  567. wolne = math.ceil(fs.getFreeSpace("/")/1024)
  568. p("Wolne miejsce na dysku:", wolne, "KB")
  569. p("Obecna nazwa komputera: ", os.getComputerLabel())
  570. p("Rozdzielczosc ekranu: ", w, h)
  571. p("Wersja CraftOS: ", os.version())
  572. local event, click, x, y = os.pullEvent("mouse_click")
  573. if x == w and y == 1 then nust() end
  574. end
  575. end
  576.  
  577. function cmd()
  578. s(1)
  579. tc()
  580. sbc(colors.black)
  581. tc()
  582. sbc(colors.black)
  583. stc(colors.white)
  584. scp(1,1)
  585. p("MineCore Command Prompt")
  586. p("2018 Microcraft")
  587. p("Wpisz 'help', aby uzyskac pomoc")
  588. while true do
  589. write("./minecore/>")
  590. comm = read()
  591. if comm == "help" then
  592.  p("'ver' - wersja MineCore")
  593.  p("'next' - powrot do NextUI")
  594.  p("'nextver' - wersja NextUI")
  595.  p("'run' - uruchom plik")
  596.  p("'reboot' - uruchom ponownie")
  597.  p("'shutdown' - wylacz komputer")
  598.  p("'store' - sklep z aplikacjami")
  599.  p("'craft' - powrot do CraftOS")
  600.  p("'update' - aktualizuj NextUI")
  601.  p("'dir' - lista plikow w danym folderze")
  602.  p("'res' - rozdzielczosc ekranu")
  603.  p("'set' - Ustawienia NextUI")
  604.  p("'app' - Aplikacje NextUI")
  605.  p("'mon' - NextUI Handoff Alpha")
  606.  p("'clock' - Zegar NextUI Beta")
  607.  p("'setust'")
  608. end
  609. if comm == "reboot" then re() end
  610. if comm == "shutdown" then su() end
  611. if comm == "res" then p(w, h) end
  612. if comm == "update" then r("pastebin run m4t3fTXs") end
  613. if comm == "set" then nust() end
  614. if comm == "app" then app() end
  615. if comm == "setust" then setust() end
  616. if comm == "mon" then bsodp() end
  617. if comm == "clock" then clock() end
  618. if comm == "dir" then
  619.  write(".Podaj sciezke>")
  620.  dir1 = read()
  621.  r("dir", dir1)
  622. end
  623. if comm == "store" then sklep() end
  624. if comm == "ver" then
  625.  p("Microcraft MineCore 2.0 2020.")
  626.  p("Microcraft MineUI D 1.5 2018.")
  627. end
  628. if comm == "nextver" then
  629.  p("Microcraft NextUI 1.10 2021.")
  630. end
  631. if comm == "next" then system() end
  632. if comm == "run" then
  633.  write("Wpisz sciezke pliku: ")
  634.  plik = read()
  635.  if fs.exists(plik) then r(plik) end
  636. end
  637. end
  638. end
  639.  
  640. function setust()
  641. while true do
  642. kolor()
  643. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  644. tc()
  645. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  646. pfb(1, 1, w, 1, colors.blue)
  647. scp(1,1)
  648. stc(colors.white)
  649. p("Ustawienia NextUI")
  650. pdp(w,1, colors.red)
  651. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  652. p("Zmien nazwe komputera")
  653. p("Aktualizuj system")
  654. p("Wiersz polecen")
  655. p("Zmien jezyk")
  656. p("Zegar NextUI |BETA|")
  657. local event, click, x, y = os.pullEvent("mouse_click")
  658. if x>0 and x<20 and y == 2 then
  659.  scp(1,2)
  660.   write("Wpisz nowa nazwe: ")
  661.   nazwa = read()
  662.   os.setComputerLabel(nazwa)
  663.   setust()
  664. end
  665. if x>0 and x<20 and y == 3 then r("pastebin run m4t3fTXs") end
  666. if x>0 and x<20 and y == 4 then cmd() end
  667. if x>0 and x<20 and y == 5 then r("pastebin run JQvW06m6") end
  668. if x>0 and x<20 and y == 6 then clock() end
  669. if x == w and y == 1 then nust() end
  670. end
  671. end
  672.  
  673.  
  674. function nust()
  675. while true do
  676. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  677. tc()
  678. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  679. pfb(1, h, w, h, colors.blue)
  680. scp(1,h)
  681. stc(colors.white)
  682. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  683. write("Start")
  684. pdp(w-1,h, colors.red)
  685. pdp(w,h, colors.orange)
  686. pfb(1, 1, w, 1, colors.blue)
  687. scp(1,1)
  688. p("Ustawienia NextUI")
  689. pdp(w,1, colors.red)
  690. pfb(3, 4, 13, 6, colors.orange)
  691. scp(3,5)
  692. stc(colors.white)
  693. p("Informacje")
  694. pfb(27, 4, 37, 6, colors.cyan)
  695. scp(27,5)
  696. stc(colors.white)
  697. p("Biurko")
  698. pfb(15, 4, 25, 6, colors.green)
  699. scp(15,5)
  700. stc(colors.white)
  701. p("Ustawienia")
  702. pfb(39, 4, 49, 6, colors.red)
  703. scp(39,5)
  704. stc(colors.white)
  705. p("Aplikacje")
  706. local event, click, x, y = os.pullEvent("mouse_click")
  707. if x == w and y == 1 then system() end
  708. if x>0 and x<6 and y == h then start() end
  709. if x>2 and x<14 and y>3 and y<7 then infust() end
  710. if x>14 and x<26 and y>3 and y<7 then setust() end
  711. if x>26 and x<38 and y>3 and y<7 then deskust() end
  712. if x>38 and x<50 and y>3 and y<7 then apps() end
  713. end
  714. end
  715.  
  716. if fs.exists("/os/.ver") then
  717. local wer = fs.open("/os/.ver", "r")
  718. ver = wer.readLine()
  719. wer.close()
  720. end
  721.  
  722. function res()
  723. if w<51 and h<19 then tc() p("NextUI wymaga monitora o rozdzielczosci 51x19 lub wiekszej. System nie moze dzialac na Twoim urzadzeniu. Rozdzielczosc Twojego monitora to:", w, h) elseif w == 51 and h == 19 then tryb = 1 elseif w>65 and h>25 then tryb = 2 end
  724. end
  725.  
  726. function kolor()
  727. local col = fs.open("/os/.kol", "r")
  728. colr = col.readLine()
  729. col.close()
  730. end
  731.  
  732. function ikony()
  733. while true do
  734. tc()
  735. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.green) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.white) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  736. tc()
  737. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.green) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.white) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  738. stc(colors.white)
  739. pfb(1, 1, w, 1, colors.gray)
  740. pdp(w, 1, colors.red)
  741. sbc(colors.gray)
  742. scp(1,1)
  743. p("Tworzenie ikon NextUI 2.0 Beta")
  744. scp(1,2)
  745. stc(colors.white)
  746. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  747. p("Witamy w kreatorze ikon. Wybierz miejsce na ikone:")
  748. if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end
  749. if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end
  750. if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end
  751. scp(1,6)
  752. p("Ikona 1: ", iko1)
  753. p("Ikona 2: ", iko2)
  754. p("Ikona 3: ", iko3)
  755. local event, click, x, y = os.pullEvent("mouse_click")
  756. if x == w and y == 1 then system() end
  757.  
  758. if x>0 and x<20 and y == 6 and iko1 == "Wolne" then
  759.  scp(1,10)
  760.  p("Wpisz sciezke skrotu: ")
  761.  write(".>")
  762.  sciezka = read()
  763.  p("Wpisz nazwe skrotu: ")
  764.  nazwa = read()
  765.  local iko1s = fs.open("/os/iko/.ico1", "w")
  766.  iko1s.writeLine(sciezka)
  767.  iko1s.close()
  768.  local iko1n = fs.open("/os/iko/.ico1n", "w")
  769.  iko1n.writeLine(nazwa)
  770.  iko1n.close()
  771. end
  772. if x>0 and x<20 and y == 8 and iko3 == "Wolne" then
  773.  scp(1,10)
  774.  p("Wpisz sciezke skrotu: ")
  775.  write(".>")
  776.  sciezka = read()
  777.  p("Wpisz nazwe skrotu: ")
  778.  nazwa = read()
  779.  local ikon3 = fs.open("/os/iko/.ico3", "w")
  780.  ikon3.writeLine(sciezka)
  781.  ikon3.close()
  782.  local ikon3n = fs.open("/os/iko/.ico3n", "w")
  783.  ikon3n.writeLine(nazwa)
  784.  ikon3n.close()
  785. end
  786. if x>0 and x<20 and y == 7 and iko2 == "Wolne" then
  787.  scp(1,10)
  788.  p("Wpisz sciezke skrotu: ")
  789.  write(".>")
  790.  sciezka = read()
  791.  p("Wpisz nazwe skrotu: ")
  792.  nazwa = read()
  793.  local ikon2 = fs.open("/os/iko/.ico2", "w")
  794.  ikon2.writeLine(sciezka)
  795.  ikon2.close()
  796.  local ikon2n = fs.open("/os/iko/.ico2n", "w")
  797.  ikon2n.writeLine(nazwa)
  798.  ikon2n.close()
  799. end
  800. if x>0 and x<20 and y == 6 and iko1 == "Zajete" then
  801.  fs.delete("/os/iko/.ico1")
  802.  fs.delete("/os/iko/.ico1n")
  803. end
  804. if x>0 and x<20 and y == 7 and iko2 == "Zajete" then
  805.  fs.delete("/os/iko/.ico2")
  806.  fs.delete("/os/iko/.ico2n")
  807. end
  808. if x>0 and x<20 and y == 8 and iko3 == "Zajete" then
  809.  fs.delete("/os/iko/.ico3")
  810.  fs.delete("/os/iko/.ico3n")
  811. end
  812. end
  813. end
  814.  
  815.  
  816. function start()
  817. pfb(1, h-5, 20, h-1, colors.black)
  818. scp(1, h-5)
  819. sbc(colors.white)
  820. stc(colors.black)
  821. p("NextUI 1.10 Start   ")
  822. sbc(colors.black)
  823. stc(colors.white)
  824. scp(1, h-4)
  825. p("nextStore 2.0       ")
  826. p("Powrot do CraftOS   ")
  827. p("Ustawienia          ")
  828. p("Ikony biurka        ")
  829. local event, click, x, y = os.pullEvent("mouse_click")
  830. if x>0 and x<21 and y == h-1 then ikony() end
  831. if x>0 and x<21 and y == h-2 then nust() end
  832. if x>0 and x<21 and y == h-3 then
  833.  tc()
  834.  s(1)
  835.  scp(1,1)
  836.  error("Opuszczono NextUI 1.10")
  837. end
  838. if x>0 and x<21 and y == h-4 then nextstore() end
  839. end
  840.  
  841. function getSize(path)
  842.   local size = 0
  843.   for _, file in ipairs(fs.list(path)) do
  844.     if fs.isDir(fs.combine(path, file)) then
  845.       size = size + getSize(fs.combine(path, file))
  846.     else
  847.       size = size + fs.getSize(fs.combine(path, file))
  848.     end
  849.   end
  850.   return size
  851. end
  852.  
  853. function nextstore()
  854. while true do
  855. res()
  856. sbc(colors.white)
  857. tc()
  858. sbc(colors.white)
  859.  
  860. sbc(colors.black)
  861. stc(colors.white)
  862. scp(1,1)
  863. p("Start")
  864. pdp(w,h,colors.red)
  865. pdp(w-1,h,colors.orange)
  866. pfb(1,1,w,1,colors.blue)
  867. scp(1,1)
  868. stc(colors.white)
  869. p("nextStore 2.0")
  870. scp(w-7,1)
  871. p("Motywy")
  872. pdp(w,1, colors.red)
  873. sbc(colors.white)
  874. stc(colors.black)
  875. scp(1,2)
  876. p("Eksplorator")
  877. p("DGStatistics")
  878. p("ReactorControl")
  879. p("TimeMashine")
  880. p("Kalkulator")
  881. scp(1,h-1)
  882. p("Wolne miejsce:")
  883. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  884. write(fs.getFreeSpace("/")/1024, "KB")
  885. local event, click, x, y = os.pullEvent("mouse_click")
  886. avc = w-7
  887. if x>0 and x<16 and y == 2 then ep() end
  888. if x>0 and x<16 and y == 3 then dg() end
  889. if x>0 and x<16 and y == 4 then rc() end
  890. if x>0 and x<16 and y == 5 then tm() end
  891. if x>0 and x<16 and y == 6 then calc() end
  892. if x>avc and x<w and y == 1 then motywy() end
  893. if x == w and y == 1 then system() end
  894. pdp(w,1, colors.red)
  895. end
  896. end
  897.  
  898. function motywy()
  899. while true do
  900. res()
  901. sbc(colors.white)
  902. tc()
  903. sbc(colors.white)
  904.  
  905. sbc(colors.black)
  906. stc(colors.white)
  907. scp(1,1)
  908. p("Start")
  909. pdp(w,h,colors.red)
  910. pdp(w-1,h,colors.orange)
  911. pfb(1,1,w,1,colors.blue)
  912. scp(1,1)
  913. stc(colors.white)
  914. p("nextStore 2.0")
  915. scp(w-7,1)
  916. p("Motywy")
  917. pdp(w,1, colors.red)
  918. sbc(colors.white)
  919. stc(colors.black)
  920. scp(1,2)
  921. p("NextUI")
  922. p("Prosty")
  923. p("Minedows")
  924. p("Ciemny")
  925. scp(1,h-1)
  926. p("Wolne miejsce:")
  927. miejsce = math.ceil(fs.getFreeSpace("/")/1024)
  928. write(fs.getFreeSpace("/")/1024, "KB")
  929. local event, click, x, y = os.pullEvent("mouse_click")
  930. avc = w-7
  931. if x>0 and x<16 and y == 2 then nx() end
  932. if x>0 and x<16 and y == 3 then pr() end
  933. if x>0 and x<16 and y == 4 then mi() end
  934. if x>0 and x<16 and y == 5 then ci() end
  935. if x>avc and x<w and y == 1 then nextstore() end
  936. if x == w and y == 1 then system() end
  937. pdp(w,1, colors.red)
  938. end
  939. end
  940.  
  941. function nx()
  942. scp(16,2)
  943. sbc(colors.white)
  944. stc(colors.black)
  945. p("Podstawowy motyw NextUI")
  946. scp(16,3)
  947. p("Wydawca: Microcraft")
  948. pfb(16,4,w,12,colors.cyan)
  949. pfb(16,12,w,12,colors.blue)
  950. pfb(16,12,19,12,colors.black)
  951. pfb(w-6,12,w-3,12,colors.black)
  952. pdp(w-1,12,colors.orange)
  953. pdp(w,12,colors.red)
  954. paintutils.drawBox(17,5,21,9,colors.black)
  955. pfb(18,6,20,8,colors.yellow)
  956. pfb(16, h, w, h, colors.blue)
  957. scp(16,h)
  958. scp(30,h)
  959. write("Pobierz")
  960. local event, click, x, y = os.pullEvent("mouse_click")
  961. if x>29 and x<40 and y == h then
  962.   fs.delete("/os/desktop")
  963.   r("pastebin get PfAWshRt /os/desktop")
  964.   s(1)
  965.   re()
  966. end
  967. end
  968.  
  969. function ci()
  970. scp(16,2)
  971. sbc(colors.white)
  972. stc(colors.black)
  973. p("Ciemny motyw Minedows")
  974. scp(16,3)
  975. p("Wydawca: Microcraft")
  976. pfb(16,4,w,12,colors.black)
  977. pfb(16,12,w,12,colors.black)
  978. pfb(16,12,19,12,colors.black)
  979. pfb(w-6,12,w-3,12,colors.black)
  980. pdp(w-1,12,colors.orange)
  981. pdp(w,12,colors.red)
  982. pfb(16, h, w, h, colors.blue)
  983. scp(16,h)
  984. scp(30,h)
  985. write("Pobierz")
  986. local event, click, x, y = os.pullEvent("mouse_click")
  987. if x>29 and x<40 and y == h then
  988.   fs.delete("/os/desktop")
  989.   r("pastebin get MtAuw8Av /os/desktop")
  990.   s(1)
  991.   re()
  992. end
  993. end
  994.  
  995. function pr()
  996. scp(16,2)
  997. sbc(colors.white)
  998. stc(colors.black)
  999. p("Prosty motyw NextUI")
  1000. scp(16,3)
  1001. p("Wydawca: Microcraft")
  1002. pfb(16,4,w,12,colors.cyan)
  1003. pfb(16,12,w,12,colors.blue)
  1004. pfb(16,12,19,12,colors.black)
  1005. pfb(w-6,12,w-3,12,colors.black)
  1006. pdp(w-1,12,colors.orange)
  1007. pdp(w,12,colors.red)
  1008. pfb(16, h, w, h, colors.blue)
  1009. scp(16,h)
  1010. scp(30,h)
  1011. write("Pobierz")
  1012. local event, click, x, y = os.pullEvent("mouse_click")
  1013. if x>29 and x<40 and y == h then
  1014.   fs.delete("/os/desktop")
  1015.   r("pastebin get gCRpr6Ag /os/desktop")
  1016.   s(1)
  1017.   re()
  1018. end
  1019. end
  1020.  
  1021. function mi()
  1022. scp(16,2)
  1023. sbc(colors.white)
  1024. stc(colors.black)
  1025. p("Klasyczny motyw Minedows")
  1026. scp(16,3)
  1027. p("Wydawca: Microcraft")
  1028. pfb(16,12,19,12,colors.black)
  1029. pfb(w-6,12,w-3,12,colors.black)
  1030. pdp(w-1,12,colors.orange)
  1031. pdp(w,12,colors.red)
  1032. pfb(16, h, w, h, colors.blue)
  1033. scp(16,h)
  1034. scp(30,h)
  1035. write("Pobierz")
  1036. local event, click, x, y = os.pullEvent("mouse_click")
  1037. if x>29 and x<40 and y == h then
  1038.   fs.delete("/os/desktop")
  1039.   r("pastebin get sz185irB /os/desktop")
  1040.   s(1)
  1041.   re()
  1042. end
  1043. end
  1044.  
  1045.  
  1046.  
  1047. function mysz()
  1048. local event, button, x, y = os.pullEvent("mouse_click")
  1049. if x == w and y == h then su() end
  1050. if x == w-1 and y == h then re() end
  1051. if x>0 and x<6 and y == h and button == 1 then start() end
  1052. if x>0 and x<6 and y == h and button == 2 then cmd() end
  1053. if x<w-1 and x>w-13 and y == h then obraz22() end
  1054. end
  1055.  
  1056.  
  1057. function clock()
  1058. while true do
  1059. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1060. tc()
  1061. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1062. pfb(1,1,w,1,colors.blue)
  1063. scp(1,1)
  1064. p("Zegar NextUI Beta")
  1065. pdp(w,1,colors.red)
  1066. scp(1,2)
  1067. if fse("/os/.false") then
  1068. clo = "false"
  1069. elseif fse("/os/.true") then clo = "true"
  1070. else
  1071.  local op1 = fs.open("/os/.false", "w")
  1072.  op1.writeLine("false")
  1073.  op1.close()
  1074.  clo = "false"
  1075. end
  1076. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1077. scp(1,2)
  1078. p("Zmiany tutaj wprowadzone wymagaja ponownego uruchomienia, aby przyniosly oczekiwany efekt.")
  1079. if clo == "false" then scp(1,5) sbc(colors.black) stc(colors.red) p("Wylaczony") elseif clo == "true" then scp(1,5) sbc(colors.black) stc(colors.green) p("Wlaczony") end
  1080. local event, button, x, y = os.pullEvent("mouse_click")
  1081. if x == w and y == 1 then setust() end
  1082. if x>0 and x<20 and y == 5 and clo == "false" then
  1083.  fs.delete("/os/.false")
  1084.  local op2 = fs.open("/os/.true", "w")
  1085.  op2.writeLine("true")
  1086.  op2.close()
  1087.  clock()
  1088. end
  1089. if x>0 and x<20 and y == 5 and clo == "true" then
  1090.  fs.delete("/os/.true")
  1091.  local op3 = fs.open("/os/.false", "w")
  1092.  op3.writeLine("false")
  1093.  op3.close()
  1094.  clock()
  1095. end
  1096. end
  1097. end
  1098.  
  1099. function godz()
  1100. while true do
  1101. scp(w-6,1)
  1102. stc(colors.white)
  1103. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1104. print( textutils.formatTime(os.time("local"), true ) )
  1105. s(1)
  1106. end
  1107. end
  1108.  
  1109. function z1()
  1110. if fse("/os/.false") then
  1111. clo = "false"
  1112. elseif fse("/os/.true") then clo = "true"
  1113. else
  1114.  local op1 = fs.open("/os/.false", "w")
  1115.  op1.writeLine("false")
  1116.  op1.close()
  1117.  clo = "false"
  1118. end
  1119. end
  1120.  
  1121. function z2()
  1122. if fse("/os/.false") then
  1123. clo = "false"
  1124. elseif fse("/os/.true") then clo = "true"
  1125. else
  1126.  local op1 = fs.open("/os/.false", "w")
  1127.  op1.writeLine("false")
  1128.  op1.close()
  1129.  clo = "false"
  1130. end
  1131. end
  1132.  
  1133.  
  1134. function sys1()
  1135. while true do
  1136. kolor()
  1137. desktop.pulpit()
  1138. parallel.waitForAny(godz, mysz)
  1139. end
  1140. end
  1141.  
  1142.  
  1143. function sys2()
  1144. while true do
  1145. kolor()
  1146. desktop.pulpit()
  1147. mysz()
  1148. end
  1149. end
  1150.  
  1151. function clo3()
  1152. z1()
  1153. if clo == "true" then
  1154. local function system(...) return sys1(...) end
  1155. elseif clo == "false" or clo == nil then
  1156. local function system(...) return sys2(...) end
  1157. end
  1158. p(clo)
  1159. s(2)
  1160. end
  1161.  
  1162. function system()
  1163. z1()
  1164. if clo == "true" then sys1()
  1165. elseif clo == "false" then sys2()
  1166. end
  1167. end
  1168.  
  1169. function monitor()
  1170. local monitor = peripheral.find("monitor")
  1171. if monitor then
  1172. tc()
  1173. pfb(1,1,w,h,colors.black)
  1174. stc(colors.white)
  1175. scp(1,1)
  1176. p("NextUI wykryl zewnetrzny wyswietlacz, wybierz gdzie wyswietlane ma byc Biurko NextUI.")
  1177. scp(1,3)
  1178. p("Wyswietlacz wewnetrzny")
  1179. scp(1,5)
  1180. p("Monitor")
  1181. end
  1182. end
  1183.  
  1184. function obraz22()
  1185. while true do
  1186. tc()
  1187. sbc(colors.black)
  1188. tc()
  1189. sbc(colors.black)
  1190. pfb(1,1,w,1,colors.blue)
  1191. pfb(1,h,w,h,colors.blue)
  1192. scp(1,h)
  1193. if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == "colors.white" then sbc(colors.white) stc(colors.black) end
  1194. write("Start")
  1195. scp(1,1)
  1196. sbc(colors.blue)
  1197. stc(colors.white)
  1198. p("Aplikacje NextUI")
  1199. scp(1,2)
  1200. sbc(colors.black)
  1201. p("Aplikacje      ")
  1202. p("Gry            ")
  1203. p("Sklep          ")
  1204. pfb(16,2,16,h,colors.blue)
  1205. pdp(w,h,colors.red)
  1206. pdp(w-1,h,colors.orange)
  1207. pdp(w,1,colors.red)
  1208. local event, button, x, y = os.pullEvent("mouse_click")
  1209. if x == w and y == 1 then system() end
  1210. if x>0 and x<15 and y == 2 then apps11() end
  1211. if x>0 and x<15 and y == 3 then apps22() end
  1212. if x>0 and x<15 and y == 4 then app() end
  1213. if x>0 and x<6 and y == h then start() end
  1214. end
  1215. end
  1216.  
  1217. function apps11()
  1218. pfb(18,3,20,5,colors.orange)
  1219. scp(18,6)
  1220. sbc(colors.black)
  1221. stc(colors.white)
  1222. p("LuaIDE")
  1223. pfb(25,3,27,5,colors.green)
  1224. scp(25,6)
  1225. sbc(colors.black)
  1226. stc(colors.white)
  1227. p("Paint")
  1228. if fse("/os/iko/.ico1") and fse("/os/iko/.ico1n") then
  1229. local iko1 = fs.open("/os/iko/.ico1", "r")
  1230. iko1p = iko1.readLine()
  1231. iko1.close()
  1232. local iko1n = fs.open("/os/iko/.ico1n", "r")
  1233. iko1pn = iko1n.readLine()
  1234. iko1n.close()
  1235. pfb(17, h-6, 19, h-4, colors.purple)
  1236. scp(17,h-3)
  1237.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  1238.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  1239.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  1240.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  1241.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  1242.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  1243.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  1244. p(iko1pn)
  1245. end
  1246.  
  1247. if fse("/os/iko/.ico2") and fse("/os/iko/.ico2n") then
  1248. local iko2 = fs.open("/os/iko/.ico2", "r")
  1249. iko2p = iko2.readLine()
  1250. iko2.close()
  1251. local iko2n = fs.open("/os/iko/.ico2n", "r")
  1252. iko2pn = iko2n.readLine()
  1253. iko2n.close()
  1254. pfb(28, h-6, 30, h-4, colors.green)
  1255. scp(28,h-3)
  1256.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  1257.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  1258.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  1259.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  1260.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  1261.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  1262.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  1263. p(iko2pn)
  1264. end
  1265.  
  1266. if fse("/os/iko/.ico3") and fse("/os/iko/.ico3n") then
  1267. local iko3 = fs.open("/os/iko/.ico3", "r")
  1268. iko3p = iko3.readLine()
  1269. iko3.close()
  1270. local iko3n = fs.open("/os/iko/.ico3n", "r")
  1271. iko3pn = iko3n.readLine()
  1272. iko3n.close()
  1273. pfb(39, h-6, 41, h-4, colors.orange)
  1274. scp(39,h-3)
  1275.  if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr ==
  1276.  "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then
  1277.  sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr ==
  1278.  "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then
  1279.  sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr
  1280.  == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr ==
  1281.  "colors.white" then sbc(colors.white) stc(colors.black)  end
  1282. p(iko3pn)
  1283. end
  1284. local event, click, x, y = os.pullEvent("mouse_click")
  1285. if x == w and y == 1 then obraz22() end
  1286. if x>17 and x<24 and y>2 and y<7 then r("/os/.luaide") obraz22() end
  1287. if x>24 and x<30 and y>2 and y<7 then r("/os/.paint") obraz22() end
  1288. end
  1289.  
  1290. function apps22()
  1291. pfb(18,3,20,5,colors.cyan)
  1292. scp(18,6)
  1293. sbc(colors.black)
  1294. stc(colors.white)
  1295. p("2048")
  1296. pfb(25,3,27,5,colors.blue)
  1297. scp(25,6)
  1298. sbc(colors.black)
  1299. stc(colors.white)
  1300. p("Snake")
  1301. local event, click, x, y = os.pullEvent("mouse_click")
  1302. if x == w and y == 1 then obraz22() end
  1303. if x>17 and x<24 and y>2 and y<7 then r("/os/.2048") obraz22() end
  1304. if x>24 and x<30 and y>2 and y<7 then r("worm") obraz22() end
  1305. end
  1306.  
  1307. if fse("/os/.19") then
  1308. res()
  1309. system()
  1310. else
  1311. a = fs.open("/os/.19", "w")
  1312. as = a.writeLine("NextUI 1.10")
  1313. a.close()
  1314. s(1)
  1315. tc()
  1316. scp(1,1)
  1317. p("NextUI 1.10 first boot configuration complete.")
  1318. s(1)
  1319. res()
  1320. system()
  1321. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement