View difference between Paste ID: gCRpr6Ag and PfAWshRt
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
function pulpit()
22
local col = fs.open("/os/.kol", "r")
23
colr = col.readLine()
24
col.close()
25
sbc(colors.cyan)
26
tc()
27
sbc(colors.cyan)
28
29-
local obraz = pul("/os/.pulpit")
29+
30-
pud(obraz, 5, 3)
30+
31
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
32
write("Start")
33
pfb(6, h, w, h, colors.blue)
34
scp(w-12,h)
35
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
36
write("Aplikacje")
37
pdp(w, h, colors.red)
38
pdp(w-1, h, colors.orange)
39
end