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