SHOW:
|
|
- or go back to the newest paste.
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") s(1) re() end |
21 | + | |
22 | - | function bsodp() |
22 | + | |
23 | tc() | |
24 | sbc(colors.blue) | |
25 | tc() | |
26 | sbc(colors.blue) | |
27 | stc(colors.white) | |
28 | ac = w/2 | |
29 | scp(ac-2,3) | |
30 | - | p("Nazwa bledu: INV_PLA") |
30 | + | |
31 | stc(colors.blue) | |
32 | - | kernel = "MineCore 2.0" |
32 | + | |
33 | - | kod = "0x403535604159" |
33 | + | |
34 | - | nazwa = "INV_PLA" |
34 | + | |
35 | - | p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodp") |
35 | + | |
36 | - | local a = fs.open("/os/bsod/bsodp", "w") |
36 | + | |
37 | p("Kod bledu: 0x302525503149") | |
38 | p("Nazwa bledu: APP_MSNG") | |
39 | system = "NextUI" | |
40 | kernel = "MineCore" | |
41 | kod = "0x302525503149" | |
42 | nazwa = "APP_MSNG" | |
43 | p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsod") | |
44 | local a = fs.open("/os/bsod/.bsod", "w") | |
45 | a.writeLine(system) | |
46 | a.writeLine(kernel) | |
47 | - | function bsodr() |
47 | + | |
48 | a.writeLine(nazwa) | |
49 | a.close() | |
50 | p("Twoj komputer uruchomi sie ponownie za 10 sekund") | |
51 | s(10) | |
52 | re() | |
53 | end | |
54 | ||
55 | function logobraz() | |
56 | pfb(1, 1, w, 5, colors.blue) | |
57 | pfb(1, 6, w, h-5, colors.lightBlue) | |
58 | pfb(1, h-6, w, h, colors.blue) | |
59 | pfb(15, 7, 17, 9, colors.gray) | |
60 | scp(1,1) | |
61 | p("Logowanie NextUI") | |
62 | - | p("Kod bledu: 0x403535604159") |
62 | + | |
63 | - | p("Nazwa bledu: INV_RES") |
63 | + | |
64 | ||
65 | - | kernel = "MineCore 2.0" |
65 | + | function log() |
66 | - | kod = "0x403535604159" |
66 | + | if pass == "" then system() else |
67 | - | nazwa = "INV_RES" |
67 | + | |
68 | - | p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodr") |
68 | + | |
69 | - | local a = fs.open("/os/bsod/bsodr", "w") |
69 | + | |
70 | p(user) | |
71 | scp(18,8) | |
72 | write("") | |
73 | haslo = read() | |
74 | if haslo == pass then ok = 1 else scp(18,9) stc(colors.red) p("Bledne haslo") s(2) re() end | |
75 | end | |
76 | end | |
77 | ||
78 | function pliki() | |
79 | local u = fs.open("/os/.log1", "r") | |
80 | user = u.readLine(1) | |
81 | u.close() | |
82 | local h = fs.open("/os/.log2", "r") | |
83 | pass = h.readLine(1) | |
84 | h.close() | |
85 | end | |
86 | ||
87 | function logo() | |
88 | logobraz() | |
89 | pliki() | |
90 | log() | |
91 | end | |
92 | ||
93 | function app() | |
94 | while true do | |
95 | 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 | |
96 | tc() | |
97 | 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 | |
98 | pfb(1, 1, w, 1, colors.blue) | |
99 | scp(1,1) | |
100 | - | kernel = "MineCore 2.0" |
100 | + | |
101 | p("Aplikacje") | |
102 | pdp(w,1,colors.red) | |
103 | - | p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/bsodf") |
103 | + | |
104 | - | local a = fs.open("/os/bsod/bsodf", "w") |
104 | + | |
105 | pfb(3, 4, 3, 6, colors.yellow) | |
106 | pfb(4, 4, 4, 6, colors.red) | |
107 | scp(2,7) | |
108 | stc(colors.white) | |
109 | 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 | |
110 | p("Eksplorator") | |
111 | end | |
112 | ||
113 | if fs.exists("/nshop/.dg") then | |
114 | pfb(15, 4, 15, 6, colors.gray) | |
115 | - | if not term.isColor() then bsodp() end |
115 | + | |
116 | - | if w<51 or h<19 then bsodr() end |
116 | + | |
117 | - | if pocket then bsodp() end |
117 | + | |
118 | - | if turtle then bsodp() end |
118 | + | |
119 | stc(colors.white) | |
120 | - | function bsodr() |
120 | + | |
121 | scp(15,7) | |
122 | p("DGStatistics") | |
123 | end | |
124 | ||
125 | ||
126 | if fs.exists("/nshop/.tm") then | |
127 | pfb(28, 4, 30, 6, colors.gray) | |
128 | pfb(28, 4, 30, 4, colors.lightGray) | |
129 | pdp(29,5, colors.lightGray) | |
130 | pdp(29,6, colors.lightGray) | |
131 | stc(colors.white) | |
132 | 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 | |
133 | scp(28,7) | |
134 | p("TimeMachine") | |
135 | end | |
136 | - | p("Nazwa bledu: INV_RES") |
136 | + | |
137 | if fs.exists("/nshop/.calc") then | |
138 | pfb(2, 8, 4, 8, colors.blue) | |
139 | - | kod = "0x403535604159" |
139 | + | |
140 | - | nazwa = "INV_RES" |
140 | + | |
141 | - | p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsodr") |
141 | + | |
142 | - | local a = fs.open("/os/bsod/.bsodr", "w") |
142 | + | |
143 | sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == | |
144 | "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then | |
145 | sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr | |
146 | == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == | |
147 | "colors.white" then sbc(colors.white) stc(colors.black) end | |
148 | scp(2,11) | |
149 | p("Kalkulator") | |
150 | end | |
151 | ||
152 | if fse("/os/iko/.ico1") and fse("/os/iko/.ico1n") then | |
153 | local iko1 = fs.open("/os/iko/.ico1", "r") | |
154 | iko1p = iko1.readLine() | |
155 | iko1.close() | |
156 | local iko1n = fs.open("/os/iko/.ico1n", "r") | |
157 | iko1pn = iko1n.readLine() | |
158 | iko1n.close() | |
159 | pfb(2, h-6, 4, h-4, colors.purple) | |
160 | scp(2,h-3) | |
161 | if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == | |
162 | "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then | |
163 | sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == | |
164 | "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then | |
165 | sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr | |
166 | == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == | |
167 | "colors.white" then sbc(colors.white) stc(colors.black) end | |
168 | p(iko1pn) | |
169 | end | |
170 | ||
171 | if fse("/os/iko/.ico2") and fse("/os/iko/.ico2n") then | |
172 | local iko2 = fs.open("/os/iko/.ico2", "r") | |
173 | iko2p = iko2.readLine() | |
174 | - | p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsodf") |
174 | + | |
175 | - | local a = fs.open("/os/bsod/.bsodf", "w") |
175 | + | |
176 | iko2pn = iko2n.readLine() | |
177 | iko2n.close() | |
178 | pfb(15, h-6, 17, h-4, colors.green) | |
179 | scp(15,h-3) | |
180 | if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == | |
181 | "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then | |
182 | sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == | |
183 | "colors.lightGray" then sbc(colors.lightGray) elseif colr == "colors.purple" then sbc(colors.purple) elseif colr == "colors.blue" then | |
184 | sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr | |
185 | == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == | |
186 | "colors.white" then sbc(colors.white) stc(colors.black) end | |
187 | p(iko2pn) | |
188 | end | |
189 | ||
190 | if fse("/os/iko/.ico3") and fse("/os/iko/.ico3n") then | |
191 | local iko3 = fs.open("/os/iko/.ico3", "r") | |
192 | iko3p = iko3.readLine() | |
193 | iko3.close() | |
194 | local iko3n = fs.open("/os/iko/.ico3n", "r") | |
195 | iko3pn = iko3n.readLine() | |
196 | iko3n.close() | |
197 | pfb(28, h-6, 30, h-4, colors.orange) | |
198 | scp(28,h-3) | |
199 | if colr == "colors.orange" then sbc(colors.orange) elseif colr == "colors.magneta" then sbc(colors.magneta) elseif colr == | |
200 | "colors.lightBlue" then sbc(colors.lightBlue) elseif colr == "colors.yellow" then sbc(colors.yellow) elseif colr == "colors.lime" then | |
201 | sbc(colors.lime) elseif colr == "colors.pink" then sbc(colors.pink) elseif colr == "colors.gray" then sbc(colors.gray) elseif colr == | |
202 | - | p("Aplikacje nextStore") |
202 | + | |
203 | sbc(colors.blue) elseif colr == "colors.brown" then sbc(colors.brown) elseif colr == "colors.green" then sbc(colors.green) elseif colr | |
204 | == "colors.red" then sbc(colors.red) elseif colr == "colors.black" then sbc(colors.black) stc(colors.white) elseif colr == | |
205 | "colors.white" then sbc(colors.white) stc(colors.black) end | |
206 | p(iko3pn) | |
207 | end | |
208 | ||
209 | local event, click, x, y = os.pullEvent("mouse_click") | |
210 | if x>1 and x<5 and y>3 and y<7 and fs.exists("/nshop/.exp") then r("/nshop/.exp") end | |
211 | if x>14 and x<18 and y>3 and y<7 and fs.exists("/nshop/.dg") then r("/nshop/.dg") end | |
212 | if x>27 and x<31 and y>3 and y<7 and fs.exists("/nshop/.tm") then r("/nshop/.tm") end | |
213 | if x>1 and x<5 and y>7 and y<11 and fs.exists("/nshop/.calc") then r("/nshop/.calc") end | |
214 | if x>1 and x<5 and y>h-7 and y<h-3 and fse("/os/iko/.ico1") and fse("/os/iko/.ico1n") then r(iko1p) end | |
215 | if x>14 and x<18 and y>h-7 and y<h-3 and fse("/os/iko/.ico2") and fse("/os/iko/.ico2n") then r(iko2p) end | |
216 | if x>27 and x<31 and y>h-7 and y<h-3 and fse("/os/iko/.ico3") and fse("/os/iko/.ico3n") then r(iko3p) end | |
217 | if x == w and y == 1 then system() end | |
218 | if x == 1 and y == 1 then bsodf() end | |
219 | ||
220 | end | |
221 | end | |
222 | ||
223 | function apps() | |
224 | while true do | |
225 | sbc(colors.black) | |
226 | tc() | |
227 | sbc(colors.black) | |
228 | pfb(6, h, w, h, colors.blue) | |
229 | sbc(colors.green) | |
230 | stc(colors.white) | |
231 | scp(1,h) | |
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 | aw("Start") | |
234 | pfb(1, 1, w, 1, colors.blue) | |
235 | pdp(w, 1, colors.red) | |
236 | pdp(w-1, h, colors.red) | |
237 | pdp(w-1, h, colors.orange) | |
238 | scp(1,1) | |
239 | sbc(colors.blue) | |
240 | stc(colors.white) | |
241 | p("Zarzadzanie aplikacjami") | |
242 | pfb(3, 3, 5, 3, colors.gray) | |
243 | pdp(3, 3, colors.lightGray) | |
244 | scp(6,3) | |
245 | stc(colors.white) | |
246 | sbc(colors.black) | |
247 | miejsce = math.ceil(fs.getFreeSpace("/")/1024) | |
248 | p("Dysk twardy Wolne miejsce: ", miejsce, "KB") | |
249 | scp(1,6) | |
250 | p("Aplikacje:") | |
251 | scp(6,8) | |
252 | stc(colors.white) | |
253 | - | if fse("/nshop/.mess") then |
253 | + | |
254 | - | pfb(15, 8, 15, 10, colors.orange) |
254 | + | |
255 | - | pfb(16, 8, 16, 10, colors.yellow) |
255 | + | |
256 | - | pfb(17, 8, 17, 10, colors.red) |
256 | + | |
257 | p("Laczny rozmiar aplikacji na dysku: ", rozmiar, "KB") | |
258 | 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 | |
259 | 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 | |
260 | 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 | |
261 | 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 | |
262 | local event, click, x, y = os.pullEvent("mouse_click") | |
263 | if x>0 and x<6 and y == h then start() end | |
264 | if x == 1 and y == 8 then fs.delete("/nshop/.exp") s(1) end | |
265 | - | scp(15,11) |
265 | + | |
266 | - | p("Message") |
266 | + | |
267 | if x == 1 and y == 14 then fs.delete("/nshop/.calc") s(1) end | |
268 | if x == w and y == 1 then nust() end | |
269 | end | |
270 | - | local event, button, x, y = os.pullEvent("mouse_click") |
270 | + | |
271 | - | if x>1 and x<5 and y>3 and y<7 and fs.exists("/nshop/.exp") and button == 1 then |
271 | + | |
272 | - | sbc(colors.black) |
272 | + | |
273 | - | tc() |
273 | + | |
274 | - | sbc(colors.black) |
274 | + | |
275 | stc(colors.black) | |
276 | - | scp(1,1) |
276 | + | |
277 | - | p("Ta aplikacja nie wspiera NextAPI. Aby ja opuscic w dowolnym momencie wcisnij przyciski CTRL i R aby uruchomic ponownie komputer.") |
277 | + | |
278 | - | s(5) |
278 | + | |
279 | - | r("/nshop/.exp") |
279 | + | |
280 | p("wykonywanie dzialan matematycznych") | |
281 | - | 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 |
281 | + | |
282 | - | 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 |
282 | + | |
283 | - | 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 |
283 | + | |
284 | - | if x>14 and x<18 and y>7 and y<11 and fs.exists("/nshop/.mess") and button == 1 then r("/nshop/.mess") end |
284 | + | |
285 | - | if x>14 and x<18 and y>7 and y<11 and fs.exists("/nshop/.mess") and button == 2 then fs.delete("/nshop/.mess") end |
285 | + | |
286 | - | 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 |
286 | + | |
287 | - | 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 |
287 | + | |
288 | - | 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 |
288 | + | |
289 | - | 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 |
289 | + | |
290 | - | if x == w and y == 1 then obraz22() end |
290 | + | |
291 | if x>25 and x<34 and y == h then r("/nshop/.calc") end | |
292 | else | |
293 | scp(30,h) | |
294 | write("Pobierz") | |
295 | local event, click, x, y = os.pullEvent("mouse_click") | |
296 | if x>29 and x<40 and y == h then | |
297 | if pass == "" then r("pastebin get dMjjSaKY /nshop/.calc") | |
298 | else | |
299 | pfb(10, 5, 30, 9, colors.blue) | |
300 | scp(10,5) stc(colors.white) | |
301 | p("Wymagana autoryzacja.") | |
302 | scp(10,6) | |
303 | p("Wpisz haslo:") | |
304 | scp(10,7) | |
305 | write("") | |
306 | haslo = read() | |
307 | if haslo == pass then r("pastebin get dMjjSaKY /nshop/.calc") | |
308 | end | |
309 | end | |
310 | end | |
311 | end | |
312 | end | |
313 | ||
314 | function ep() | |
315 | scp(16,2) | |
316 | sbc(colors.white) | |
317 | stc(colors.black) | |
318 | p("Eksplorator dla NextUI to potezne") | |
319 | scp(16,3) | |
320 | p("a zarazem proste narzedzie do") | |
321 | scp(16,4) | |
322 | p("przegladania zawartosci dysku") | |
323 | scp(16,5) | |
324 | p("twardego. Pobierz za darmo dzisiaj!") | |
325 | scp(16,10) | |
326 | p("Wydawca: Microcraft") | |
327 | pfb(16, h, w, h, colors.blue) | |
328 | if fs.exists("/nshop/.exp") then | |
329 | scp(16,h) | |
330 | sbc(colors.blue) | |
331 | stc(colors.white) | |
332 | write("Usun Uruchom") | |
333 | local event, click, x, y = os.pullEvent("mouse_click") | |
334 | if x>15 and x<21 and y == h then fs.delete("/nshop/.exp") end | |
335 | if x>25 and x<34 and y == h then r("/nshop/.exp") end | |
336 | else | |
337 | - | if fs.exists("/nshop/.mess") then pfb(3, 16, 5, 16, colors.cyan) scp(6,16) stc(colors.white) sbc(colors.black) p("Message") scp(1, 16) stc(colors.white) sbc(colors.red) p("X") end |
337 | + | |
338 | write("Pobierz") | |
339 | local event, click, x, y = os.pullEvent("mouse_click") | |
340 | if x>29 and x<40 then | |
341 | if pass == "" then r("pastebin get zbzF7Zu4 /nshop/.exp") | |
342 | else | |
343 | pfb(10, 5, 30, 9, colors.blue) | |
344 | - | if x == 1 and y == 15 then fs.delete("/nshop/.mess") s(1) end |
344 | + | scp(10,5) stc(colors.white) |
345 | p("Wymagana autoryzacja.") | |
346 | scp(10,6) | |
347 | p("Wpisz haslo:") | |
348 | scp(10,7) | |
349 | - | function topbar() |
349 | + | write("") |
350 | haslo = read() | |
351 | if haslo == pass then r("pastebin get zbzF7Zu4 /nshop/.exp") | |
352 | end | |
353 | end | |
354 | end | |
355 | end | |
356 | end | |
357 | ||
358 | ||
359 | - | p("NextUI TopBar") |
359 | + | |
360 | - | if fse("/os/.false1") then |
360 | + | |
361 | - | topba = "false" |
361 | + | |
362 | - | elseif fse("/os/.true1") then topba = "true" |
362 | + | |
363 | p("ReactorControl to aplikacja,") | |
364 | - | local op4 = fs.open("/os/.false1", "w") |
364 | + | |
365 | - | op4.writeLine("false") |
365 | + | |
366 | - | op4.close() |
366 | + | |
367 | - | topba = "false" |
367 | + | |
368 | scp(16,5) | |
369 | p("do Minecraft nazwanej BigReactors.") | |
370 | scp(16,10) | |
371 | p("Wydawca: Microcraft") | |
372 | pfb(16, h, w, h, colors.blue) | |
373 | - | p("TopBar to gorna belka na ekranie Biurka zawierajaca numer wersji NextUI.") |
373 | + | |
374 | write("Aplikacja nie jest jeszcze dostepna") | |
375 | - | scp(1,4) |
375 | + | |
376 | - | p("Zmiany tutaj wprowadzone wymagaja ponownego uruchomienia, aby przyniosly oczekiwany efekt.") |
376 | + | |
377 | - | if topba == "false" then scp(1,7) sbc(colors.black) stc(colors.red) p("Wylaczony") elseif topba == "true" then scp(1,7) sbc(colors.black) stc(colors.green) p("Wlaczony") end |
377 | + | |
378 | - | local event, button, x, y = os.pullEvent("mouse_click") |
378 | + | |
379 | - | if x == w and y == 1 then setust() end |
379 | + | |
380 | - | if x>0 and x<20 and y == 7 and topba == "false" then |
380 | + | |
381 | - | fs.delete("/os/.false1") |
381 | + | |
382 | - | local op5 = fs.open("/os/.true1", "w") |
382 | + | |
383 | - | op5.writeLine("true") |
383 | + | |
384 | - | op5.close() |
384 | + | |
385 | - | top1() |
385 | + | |
386 | scp(16,4) | |
387 | - | if x>0 and x<20 and y == 7 and topba == "true" then |
387 | + | |
388 | - | fs.delete("/os/.true1") |
388 | + | |
389 | - | local op6 = fs.open("/os/.false1", "w") |
389 | + | |
390 | - | op6.writeLine("false") |
390 | + | |
391 | - | op6.close() |
391 | + | |
392 | - | top1() |
392 | + | |
393 | p("zajmowania miejsca na dysku!") | |
394 | scp(16,8) | |
395 | p("Aplikacja stworzona na rocznice") | |
396 | scp(16,9) | |
397 | - | function top1() |
397 | + | |
398 | - | if fse("/os/.true1") then |
398 | + | |
399 | - | if colr == "colors.orange" then pfb(1, 1, w, 1, colors.orange) elseif colr == "colors.magneta" then pfb(1, 1, w, 1, colors.magneta) elseif colr == "colors.lightBlue" then pfb(1, 1, w, 1, colors.lightBlue) elseif colr == "colors.yellow" then pfb(1, 1, w, 1, colors.yellow) elseif colr == "colors.lime" then pfb(1, 1, w, 1, colors.lime) elseif colr == "colors.pink" then pfb(1, 1, w, 1, colors.pink) elseif colr == "colors.gray" then pfb(1, 1, w, 1, colors.gray) elseif colr == "colors.lightGray" then pfb(1, 1, w, 1, colors.lightGray) elseif colr == "colors.purple" then pfb(1, 1, w, 1, colors.purple) elseif colr == "colors.blue" then pfb(1, 1, w, 1, colors.blue) elseif colr == "colors.brown" then pfb(1, 1, w, 1, colors.brown) elseif colr == "colors.green" then pfb(1, 1, w, 1, colors.green) elseif colr == "colors.red" then pfb(1, 1, w, 1, colors.red) elseif colr == "colors.black" then pfb(1, 1, w, 1, colors.black) stc(colors.white) elseif colr == "colors.white" then pfb(1, 1, w, 1, colors.white) stc(colors.black) end |
399 | + | |
400 | - | if colr == "colors.white" then stc(colors.black) else stc(colors.white) end |
400 | + | |
401 | if fs.exists("/nshop/.tm") then | |
402 | - | p("NextUI 1.11 Anniversary Update. Microcraft") |
402 | + | |
403 | sbc(colors.blue) | |
404 | stc(colors.white) | |
405 | write("Usun Uruchom") | |
406 | - | function bootl() |
406 | + | |
407 | if x>15 and x<21 and y == h then fs.delete("/nshop/.tm") end | |
408 | if x>25 and x<34 and y == h then r("/nshop/.tm") end | |
409 | else | |
410 | - | p("Microcraft Bootloader Flasher") |
410 | + | |
411 | write("Pobierz") | |
412 | - | p("to narzedzie, ktore pozwala") |
412 | + | |
413 | if x>29 and x<40 and y == h then | |
414 | - | p("na zaawansowane zarzadzanie") |
414 | + | if pass == "" then r("pastebin get kCQLpZQS /nshop/.tm") |
415 | else | |
416 | - | p("ustawieniami komputera.") |
416 | + | pfb(10, 5, 30, 9, colors.blue) |
417 | scp(10,5) stc(colors.white) | |
418 | p("Wymagana autoryzacja.") | |
419 | scp(10,6) | |
420 | - | scp(30,h) |
420 | + | p("Wpisz haslo:") |
421 | - | write("Pobierz") |
421 | + | scp(10,7) |
422 | write("") | |
423 | - | if x>29 and x<40 and y == h then |
423 | + | haslo = read() |
424 | - | r("pastebin run NqkQFiLr") |
424 | + | if haslo == pass then r("pastebin get kCQLpZQS /nshop/.tm") |
425 | end | |
426 | end | |
427 | end | |
428 | end | |
429 | end | |
430 | ||
431 | ||
432 | function dg() | |
433 | scp(16,2) | |
434 | sbc(colors.white) | |
435 | stc(colors.black) | |
436 | p("DGStatistics to aplikacja,") | |
437 | scp(16,3) | |
438 | p("stworzona we wspolpracy z ") | |
439 | scp(16,4) | |
440 | p("serwerem Darkness Grounds ") | |
441 | scp(16,5) | |
442 | p("pokazujaca statystyki broni") | |
443 | scp(16,6) | |
444 | p("Z ich autorskiej modyfikacji!") | |
445 | scp(16,7) | |
446 | p("Pobierz juz dzis!") | |
447 | scp(16,10) | |
448 | p("Wydawca: Microcraft;DG") | |
449 | pfb(16, h, w, h, colors.blue) | |
450 | scp(16,h) | |
451 | if fs.exists("/nshop/.dg") then | |
452 | scp(16,h) | |
453 | sbc(colors.blue) | |
454 | stc(colors.white) | |
455 | write("Usun Uruchom") | |
456 | - | r("pastebin get dMjjSaKY /nshop/.calc") |
456 | + | |
457 | if x>15 and x<21 and y == h then fs.delete("/nshop/.dg") end | |
458 | if x>25 and x<34 and y == h then r("/nshop/.dg") end | |
459 | else | |
460 | scp(30,h) | |
461 | - | function mess() |
461 | + | |
462 | local event, click, x, y = os.pullEvent("mouse_click") | |
463 | if x>29 and x<40 and y == h then | |
464 | if pass == "" then r("pastebin get qRNinxW4 /nshop/.dg") | |
465 | - | p("Message NextUI to komunikator") |
465 | + | else |
466 | pfb(10, 5, 30, 9, colors.blue) | |
467 | - | p("tesktowy wykorzystujacy modem CC") |
467 | + | scp(10,5) stc(colors.white) |
468 | p("Wymagana autoryzacja.") | |
469 | - | p("do komunikacji z innymi ludzmi!") |
469 | + | scp(10,6) |
470 | p("Wpisz haslo:") | |
471 | scp(10,7) | |
472 | write("") | |
473 | - | if fs.exists("/nshop/.mess") then |
473 | + | haslo = read() |
474 | if haslo == pass then r("pastebin get qRNinxW4 /nshop/.dg") | |
475 | end | |
476 | end | |
477 | end | |
478 | end | |
479 | - | if x>15 and x<21 and y == h then fs.delete("/nshop/.mess") end |
479 | + | |
480 | - | if x>25 and x<34 and y == h then r("/nshop/.mess") end |
480 | + | |
481 | function tm2() | |
482 | while true do | |
483 | pfb(1,2,w,h-1) | |
484 | scp(1,2) | |
485 | p("TimeMashine") | |
486 | - | r("pastebin get uzZarCdG /nshop/.mess") |
486 | + | |
487 | scp(1,6) | |
488 | p("TimeMashine pozwala na ponowne odwiedzenie klasycznych systemow Microcraft dzieki NextAPI. Przezyj podroz w przeszlosc, ukazujaca rozwoj Microcraft, od Minedowsa XP Pro 2.3, az po MineCore March Update.") | |
489 | if not fs.exists("/nshop/.tm") then | |
490 | pfb(w-15, 14, w-5, 16, colors.green) | |
491 | stc(colors.white) | |
492 | scp(w-15,15) | |
493 | p("Pobierz") | |
494 | local event, click, x, y = os.pullEvent("mouse_click") | |
495 | if x>w-14 and x<w-4 and y>13 and y<17 then r("pastebin get kCQLpZQS /nshop/.tm") end | |
496 | if x == w and y == 1 then nextstore() end | |
497 | else | |
498 | pfb(w-15, 14, w-5, 16, colors.green) | |
499 | stc(colors.white) | |
500 | scp(w-15,15) | |
501 | p("Uruchom") | |
502 | local event, click, x, y = os.pullEvent("mouse_click") | |
503 | if x>w-14 and x<w-4 and y>13 and y<17 then r("/nshop/.tm") end | |
504 | if x == w and y == 1 then nextstore() end | |
505 | end | |
506 | end | |
507 | end | |
508 | ||
509 | function kolorw() | |
510 | scp(1,5) | |
511 | 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 | |
512 | p("Obecny kolor wiodacy: ", colr) | |
513 | p("Wybierz nowy kolor wiodacy:") | |
514 | pdp(1, 7, colors.orange) | |
515 | pdp(2, 7, colors.lightBlue) | |
516 | pdp(3, 7, colors.yellow) | |
517 | pdp(4, 7, colors.lime) | |
518 | pdp(5, 7, colors.pink) | |
519 | - | r("pastebin get zbzF7Zu4 /nshop/.exp") |
519 | + | |
520 | pdp(7, 7, colors.lightGray) | |
521 | pdp(8, 7, colors.purple) | |
522 | pdp(9, 7, colors.blue) | |
523 | pdp(10, 7, colors.brown) | |
524 | pdp(11, 7, colors.green) | |
525 | pdp(12, 7, colors.red) | |
526 | pdp(13, 7, colors.black) | |
527 | pdp(14, 7, colors.white) | |
528 | local event, click, x, y = os.pullEvent("mouse_click") | |
529 | 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 | |
530 | 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 | |
531 | 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 | |
532 | 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 | |
533 | 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 | |
534 | 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 | |
535 | 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 | |
536 | 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 | |
537 | 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 | |
538 | 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 | |
539 | 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 | |
540 | 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 | |
541 | 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 | |
542 | 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 | |
543 | end | |
544 | ||
545 | function deskust() | |
546 | while true do | |
547 | kolor() | |
548 | 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 | |
549 | tc() | |
550 | 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 | |
551 | pfb(1, 1, w, 1, colors.blue) | |
552 | scp(1,1) | |
553 | stc(colors.white) | |
554 | p("Ustawienia NextUI") | |
555 | pdp(w,1, colors.red) | |
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 | scp(1,2) | |
558 | p("Styl graficzny: Domyslny NextUI") | |
559 | p("Brak dostepnych stylow") | |
560 | p("Wybierz kolor wiodacy") | |
561 | local event, click, x, y = os.pullEvent("mouse_click") | |
562 | if x>0 and x<25 and y == 4 then kolorw() end | |
563 | if x == w and y == 1 then nust() end | |
564 | end | |
565 | end | |
566 | ||
567 | ||
568 | function infust() | |
569 | while true do | |
570 | kolor() | |
571 | 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 | |
572 | tc() | |
573 | 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 | |
574 | pfb(1, 1, w, 1, colors.blue) | |
575 | scp(1,1) | |
576 | stc(colors.white) | |
577 | p("Ustawienia NextUI") | |
578 | pdp(w,1, colors.red) | |
579 | 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 | |
580 | - | r("pastebin get kCQLpZQS /nshop/.tm") |
580 | + | |
581 | p("Microcraft NextUI") | |
582 | p("Wersja systemu: 1.81 Developers Update") | |
583 | zajete = math.ceil(getSize("/")/1024) | |
584 | wolne = math.ceil(fs.getFreeSpace("/")/1024) | |
585 | p("Wolne miejsce na dysku:", wolne, "KB") | |
586 | p("Obecna nazwa komputera: ", os.getComputerLabel()) | |
587 | if pass == "" then log = "nie" else log = "tak" end | |
588 | p("Logowanie wlaczone: ", log) | |
589 | p("Rozdzielczosc ekranu: ", w, h) | |
590 | p("Wersja CraftOS: ", os.version()) | |
591 | local event, click, x, y = os.pullEvent("mouse_click") | |
592 | if x == w and y == 1 then nust() end | |
593 | end | |
594 | end | |
595 | ||
596 | function cmd() | |
597 | s(1) | |
598 | tc() | |
599 | sbc(colors.black) | |
600 | tc() | |
601 | sbc(colors.black) | |
602 | stc(colors.white) | |
603 | scp(1,1) | |
604 | p("MineCore Command Prompt") | |
605 | p("2018 Microcraft") | |
606 | p("Wpisz 'help', aby uzyskac pomoc") | |
607 | while true do | |
608 | write("./minecore/>") | |
609 | comm = read() | |
610 | if comm == "help" then | |
611 | p("'ver' - wersja MineCore") | |
612 | p("'next' - powrot do NextUI") | |
613 | p("'nextver' - wersja NextUI") | |
614 | p("'run' - uruchom plik") | |
615 | p("'log' - zmiana hasla") | |
616 | p("'reboot' - uruchom ponownie") | |
617 | p("'shutdown' - wylacz komputer") | |
618 | - | r("pastebin get qRNinxW4 /nshop/.dg") |
618 | + | p("'store' - sklep z aplikacjami") |
619 | p("'craft' - powrot do CraftOS") | |
620 | p("'update' - aktualizuj NextUI") | |
621 | p("'dir' - lista plikow w danym folderze") | |
622 | p("'res' - rozdzielczosc ekranu") | |
623 | p("'set' - Ustawienia NextUI") | |
624 | p("'app' - Aplikacje NextUI") | |
625 | end | |
626 | if comm == "reboot" then re() end | |
627 | if comm == "shutdown" then su() end | |
628 | if comm == "res" then p(w, h) end | |
629 | if comm == "update" then r("/os/.update") end | |
630 | if comm == "set" then nust() end | |
631 | if comm == "app" then app() end | |
632 | if comm == "dir" then | |
633 | write(".Podaj sciezke>") | |
634 | dir1 = read() | |
635 | r("dir", dir1) | |
636 | end | |
637 | if comm == "store" then sklep() end | |
638 | if comm == "ver" then | |
639 | p("Microcraft MineCore 2.0 2020.") | |
640 | p("Microcraft MineUI D 1.5 2018.") | |
641 | end | |
642 | if comm == "nextver" then | |
643 | p("Microcraft NextUI 1.81 Developers Update 2020.") | |
644 | end | |
645 | if comm == "next" then system() end | |
646 | if comm == "run" then | |
647 | write("Wpisz sciezke pliku: ") | |
648 | plik = read() | |
649 | if fs.exists(plik) then r(plik) end | |
650 | end | |
651 | if comm == "log" then | |
652 | write("Wpisz nowe haslo: ") | |
653 | passw = read() | |
654 | r("rm /os/.log2") | |
655 | local pas = fs.open("/os/.log2", "w") | |
656 | pass = pas.writeLine(passw) | |
657 | pas.close() | |
658 | p("Uruchamianie ponownie...") | |
659 | s(1) | |
660 | re() | |
661 | end | |
662 | end | |
663 | end | |
664 | ||
665 | function setust() | |
666 | while true do | |
667 | kolor() | |
668 | 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 | |
669 | tc() | |
670 | 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 | |
671 | pfb(1, 1, w, 1, colors.blue) | |
672 | scp(1,1) | |
673 | stc(colors.white) | |
674 | - | p("Sklep z motywami") |
674 | + | |
675 | pdp(w,1, colors.red) | |
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 | p("Zmien nazwe komputera") | |
678 | - | if x>0 and x<25 and y == 3 then motywy() end |
678 | + | |
679 | p("Wiersz polecen") | |
680 | p("Zmien jezyk") | |
681 | local event, click, x, y = os.pullEvent("mouse_click") | |
682 | if x>0 and x<20 and y == 2 then | |
683 | scp(1,2) | |
684 | write("Wpisz nowa nazwe: ") | |
685 | nazwa = read() | |
686 | os.setComputerLabel(nazwa) | |
687 | setust() | |
688 | end | |
689 | if x>0 and x<20 and y == 3 then r("/os/.update") end | |
690 | if x>0 and x<20 and y == 4 then cmd() end | |
691 | if x>0 and x<20 and y == 5 then r("pastebin run JQvW06m6") end | |
692 | if x == w and y == 1 then nust() end | |
693 | end | |
694 | end | |
695 | ||
696 | ||
697 | - | p("Microcraft NextUI 1.11") |
697 | + | |
698 | - | p("Wersja systemu: 1.11 Anniversary Update") |
698 | + | |
699 | 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 | |
700 | tc() | |
701 | 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 | |
702 | pfb(1, h, w, h, colors.blue) | |
703 | scp(1,h) | |
704 | stc(colors.white) | |
705 | 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 | |
706 | write("Start") | |
707 | pdp(w-1,h, colors.red) | |
708 | pdp(w,h, colors.orange) | |
709 | pfb(1, 1, w, 1, colors.blue) | |
710 | scp(1,1) | |
711 | p("Ustawienia NextUI") | |
712 | pdp(w,1, colors.red) | |
713 | pfb(3, 4, 13, 6, colors.orange) | |
714 | scp(3,5) | |
715 | stc(colors.white) | |
716 | p("Informacje") | |
717 | pfb(27, 4, 37, 6, colors.cyan) | |
718 | scp(27,5) | |
719 | stc(colors.white) | |
720 | - | p("Wpisz \'help\', aby uzyskac pomoc") |
720 | + | |
721 | pfb(15, 4, 25, 6, colors.green) | |
722 | scp(15,5) | |
723 | stc(colors.white) | |
724 | p("Ustawienia") | |
725 | - | p("\'ver\' - wersja MineCore") |
725 | + | |
726 | - | p("\'next\' - powrot do NextUI") |
726 | + | |
727 | - | p("\'nextver\' - wersja NextUI") |
727 | + | |
728 | - | p("\'run\' - uruchom plik") |
728 | + | |
729 | - | p("\'reboot\' - uruchom ponownie") |
729 | + | |
730 | - | p("\'shutdown\' - wylacz komputer") |
730 | + | |
731 | - | p("\'store\' - sklep z aplikacjami") |
731 | + | |
732 | - | p("\'craft\' - powrot do CraftOS") |
732 | + | |
733 | - | p("\'update\' - aktualizuj NextUI") |
733 | + | |
734 | - | p("\'dir\' - lista plikow w danym folderze") |
734 | + | |
735 | - | p("\'res\' - rozdzielczosc ekranu") |
735 | + | |
736 | - | p("\'set\' - Ustawienia NextUI") |
736 | + | |
737 | - | p("\'app\' - Aplikacje NextUI") |
737 | + | |
738 | - | p("\'mon\' - NextUI Handoff Alpha") |
738 | + | |
739 | - | p("\'clock\' - Zegar NextUI Beta") |
739 | + | |
740 | - | p("\'betaupdate\' - aktualizuj NextUI Beta") |
740 | + | |
741 | - | p("\'setust\'") |
741 | + | |
742 | wer.close() | |
743 | end | |
744 | ||
745 | function res() | |
746 | - | if comm == "betaupdate" then r("pastebin run VhZ5YtZt") end |
746 | + | |
747 | - | if comm == "update" then r("pastebin run FnE3MAD5") end |
747 | + | |
748 | ||
749 | function kolor() | |
750 | - | if comm == "setust" then setust() end |
750 | + | |
751 | - | if comm == "mon" then bsodp() end |
751 | + | |
752 | - | if comm == "clock" then clock() end |
752 | + | |
753 | end | |
754 | ||
755 | function ikony() | |
756 | while true do | |
757 | tc() | |
758 | 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 | |
759 | tc() | |
760 | 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 | |
761 | stc(colors.white) | |
762 | pfb(1, 1, w, 1, colors.gray) | |
763 | pdp(w, 1, colors.red) | |
764 | - | p("Microcraft NextUI 1.11 2021.") |
764 | + | |
765 | scp(1,1) | |
766 | p("Tworzenie ikon NextUI 2.0 Beta") | |
767 | scp(1,2) | |
768 | stc(colors.white) | |
769 | 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 | |
770 | p("Witamy w kreatorze ikon. Wybierz miejsce na ikone:") | |
771 | if fs.exists("/os/iko/.ico1") then iko1 = "Zajete" else iko1 = "Wolne" end | |
772 | if fs.exists("/os/iko/.ico2") then iko2 = "Zajete" else iko2 = "Wolne" end | |
773 | if fs.exists("/os/iko/.ico3") then iko3 = "Zajete" else iko3 = "Wolne" end | |
774 | scp(1,6) | |
775 | p("Ikona 1: ", iko1) | |
776 | p("Ikona 2: ", iko2) | |
777 | p("Ikona 3: ", iko3) | |
778 | local event, click, x, y = os.pullEvent("mouse_click") | |
779 | if x == w and y == 1 then system() end | |
780 | ||
781 | if x>0 and x<20 and y == 6 and iko1 == "Wolne" then | |
782 | scp(1,10) | |
783 | p("Wpisz sciezke skrotu: ") | |
784 | write(".>") | |
785 | sciezka = read() | |
786 | p("Wpisz nazwe skrotu: ") | |
787 | nazwa = read() | |
788 | local iko1s = fs.open("/os/iko/.ico1", "w") | |
789 | iko1s.writeLine(sciezka) | |
790 | iko1s.close() | |
791 | - | p("Zegar NextUI |BETA 2|") |
791 | + | |
792 | - | p("Przejdz na NextUI Beta") |
792 | + | |
793 | - | p("Ustawienia TopBaru") |
793 | + | |
794 | end | |
795 | if x>0 and x<20 and y == 8 and iko3 == "Wolne" then | |
796 | scp(1,10) | |
797 | p("Wpisz sciezke skrotu: ") | |
798 | write(".>") | |
799 | sciezka = read() | |
800 | p("Wpisz nazwe skrotu: ") | |
801 | nazwa = read() | |
802 | - | if x>0 and x<20 and y == 3 then r("pastebin run FnE3MAD5") end |
802 | + | |
803 | ikon3.writeLine(sciezka) | |
804 | - | if x>0 and x<20 and y == 5 then r("pastebin run tiegKUtg") end |
804 | + | |
805 | - | if x>0 and x<20 and y == 6 then clock() end |
805 | + | |
806 | - | if x>0 and x<20 and y == 7 then r("pastebin run VhZ5YtZt") end |
806 | + | |
807 | - | if x>0 and x<20 and y == 8 then topbar() end |
807 | + | |
808 | end | |
809 | if x>0 and x<20 and y == 7 and iko2 == "Wolne" then | |
810 | scp(1,10) | |
811 | p("Wpisz sciezke skrotu: ") | |
812 | write(".>") | |
813 | sciezka = read() | |
814 | p("Wpisz nazwe skrotu: ") | |
815 | nazwa = read() | |
816 | local ikon2 = fs.open("/os/iko/.ico2", "w") | |
817 | ikon2.writeLine(sciezka) | |
818 | ikon2.close() | |
819 | local ikon2n = fs.open("/os/iko/.ico2n", "w") | |
820 | ikon2n.writeLine(nazwa) | |
821 | ikon2n.close() | |
822 | end | |
823 | if x>0 and x<20 and y == 6 and iko1 == "Zajete" then | |
824 | fs.delete("/os/iko/.ico1") | |
825 | fs.delete("/os/iko/.ico1n") | |
826 | end | |
827 | if x>0 and x<20 and y == 7 and iko2 == "Zajete" then | |
828 | fs.delete("/os/iko/.ico2") | |
829 | fs.delete("/os/iko/.ico2n") | |
830 | end | |
831 | if x>0 and x<20 and y == 8 and iko3 == "Zajete" then | |
832 | fs.delete("/os/iko/.ico3") | |
833 | fs.delete("/os/iko/.ico3n") | |
834 | end | |
835 | end | |
836 | end | |
837 | ||
838 | ||
839 | function start() | |
840 | pfb(1, h-9, 20, h-1, colors.black) | |
841 | scp(1, h-9) | |
842 | sbc(colors.white) | |
843 | stc(colors.black) | |
844 | p("NextUI 1.8 Start ") | |
845 | sbc(colors.black) | |
846 | stc(colors.white) | |
847 | scp(1, h-8) | |
848 | p("nextStore 2.0 ") | |
849 | p("Paint ") | |
850 | p("2048 ") | |
851 | p("Snake ") | |
852 | p("Edytor ") | |
853 | p("Powrot do CraftOS ") | |
854 | p("Ustawienia ") | |
855 | p("Ikony pulpitu ") | |
856 | local event, click, x, y = os.pullEvent("mouse_click") | |
857 | if x>0 and x<21 and y == h-1 then ikony() end | |
858 | if x>0 and x<21 and y == h-2 then nust() end | |
859 | if x>0 and x<21 and y == h-3 then error("Opuszczono NextUI 1.8") end | |
860 | if x>0 and x<21 and y == h-4 then | |
861 | if fse("/os/.luaide") then r("/os/.luaide") else bsodf() | |
862 | end | |
863 | end | |
864 | if x>0 and x<21 and y == h-5 then r("worm") end | |
865 | if x>0 and x<21 and y == h-6 then r("/os/.2048") end | |
866 | if x>0 and x<21 and y == h-7 then r("/os/.paint") end | |
867 | if x>0 and x<21 and y == h-8 then nextstore() end | |
868 | end | |
869 | function pulpit() | |
870 | sbc(colors.cyan) | |
871 | tc() | |
872 | sbc(colors.cyan) | |
873 | local obraz = pul("/os/.pulpit") | |
874 | pud(obraz, 5, 3) | |
875 | pfb(1, 1, w, 1, colors.black) | |
876 | scp(1,1) | |
877 | stc(colors.white) | |
878 | if w>=65 then p("NextUI 1.81 Developers Update. 2020 Microcraft.") else p("NextUI 1.81 Developers Update. Microcraft.") end | |
879 | scp(1,h) | |
880 | 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 | |
881 | write("Start") | |
882 | pfb(6, h, w, h, colors.blue) | |
883 | scp(w-12,h) | |
884 | 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 | |
885 | write("Aplikacje") | |
886 | pdp(w, h, colors.red) | |
887 | pdp(w-1, h, colors.orange) | |
888 | end | |
889 | ||
890 | function getSize(path) | |
891 | local size = 0 | |
892 | for _, file in ipairs(fs.list(path)) do | |
893 | if fs.isDir(fs.combine(path, file)) then | |
894 | size = size + getSize(fs.combine(path, file)) | |
895 | else | |
896 | size = size + fs.getSize(fs.combine(path, file)) | |
897 | end | |
898 | end | |
899 | return size | |
900 | end | |
901 | ||
902 | function nextstore() | |
903 | while true do | |
904 | res() | |
905 | sbc(colors.white) | |
906 | tc() | |
907 | sbc(colors.white) | |
908 | ||
909 | sbc(colors.black) | |
910 | stc(colors.white) | |
911 | scp(1,1) | |
912 | p("Start") | |
913 | pdp(w,h,colors.red) | |
914 | pdp(w-1,h,colors.orange) | |
915 | pfb(1,1,w,1,colors.blue) | |
916 | scp(1,1) | |
917 | stc(colors.white) | |
918 | p("nextStore 2.0") | |
919 | pdp(w,1, colors.red) | |
920 | sbc(colors.white) | |
921 | stc(colors.black) | |
922 | scp(1,2) | |
923 | p("Eksplorator") | |
924 | p("DGStatistics") | |
925 | p("ReactorControl") | |
926 | p("TimeMashine") | |
927 | p("Kalkulator") | |
928 | scp(1,h-1) | |
929 | p("Wolne miejsce:") | |
930 | miejsce = math.ceil(fs.getFreeSpace("/")/1024) | |
931 | write(fs.getFreeSpace("/")/1024, "KB") | |
932 | local event, click, x, y = os.pullEvent("mouse_click") | |
933 | if x>0 and x<16 and y == 2 then ep() end | |
934 | if x>0 and x<16 and y == 3 then dg() end | |
935 | if x>0 and x<16 and y == 4 then rc() end | |
936 | if x>0 and x<16 and y == 5 then tm() end | |
937 | if x>0 and x<16 and y == 6 then calc() end | |
938 | if x == w and y == 1 then system() end | |
939 | pdp(w,1, colors.red) | |
940 | end | |
941 | end | |
942 | ||
943 | function mysz() | |
944 | local event, click, x, y = os.pullEvent("mouse_click") | |
945 | if x == w and y == h then su() end | |
946 | if x == w-1 and y == h then re() end | |
947 | if x>0 and x<6 and y == h then start() end | |
948 | if x<w-1 and x>w-13 and y == h then app() end | |
949 | end | |
950 | ||
951 | function godz() | |
952 | while true do | |
953 | scp(w-6,1) | |
954 | sbc(colors.black) | |
955 | stc(colors.white) | |
956 | - | pfb(1, h-5, 20, h-1, colors.black) |
956 | + | |
957 | - | scp(1, h-5) |
957 | + | |
958 | end | |
959 | end | |
960 | - | p("NextUI 1.11 Start ") |
960 | + | |
961 | function system() | |
962 | while true do | |
963 | - | scp(1, h-4) |
963 | + | |
964 | pulpit() | |
965 | parallel.waitForAny(godz, mysz) | |
966 | end | |
967 | - | p("Ikony biurka ") |
967 | + | |
968 | ||
969 | --function system() | |
970 | --while true do | |
971 | - | if x>0 and x<21 and y == h-3 then |
971 | + | --kolor() |
972 | - | tc() |
972 | + | --pulpit() |
973 | --mysz() | |
974 | - | scp(1,1) |
974 | + | --end |
975 | - | error("Opuszczono NextUI 1.11") |
975 | + | --end |
976 | ||
977 | - | if x>0 and x<21 and y == h-4 then r("pastebin run 7qMxuP59") end |
977 | + | |
978 | logo() | |
979 | system() |