SHOW:
|
|
- or go back to the newest paste.
1 | mon = peripheral.wrap("front") | |
2 | mon.clear() | |
3 | - | mon.setTextScale(2) |
3 | + | mon.setTextScale(1.5) |
4 | ||
5 | mon.setCursorPos(2,2) | |
6 | - | mon.write("Welcome to GhostOS") |
6 | + | mon.write("Welcome to GhostOS 2.0") |
7 | - | mon.setCursorPos(5,7) |
7 | + | mon.setCursorPos(5,5) |
8 | mon.write("Reaktor =") | |
9 | - | mon.setCursorPos(5,14) |
9 | + | mon.setCursorPos(2,10) |
10 | mon.write("Yellorium Iput =") | |
11 | ||
12 | while true do | |
13 | event,side,x,y=os.pullEvent("monitor_touch") | |
14 | ||
15 | - | if x > 3 and x < 24 and y == 7 and rs.getOutput("back") == false then |
15 | + | if x > 3 and x < 22 and y == 5 and rs.getOutput("back") == false then |
16 | rs.setOutput("back",true) | |
17 | - | mon.setCursorPos(5,7) |
17 | + | mon.setCursorPos(5,5) |
18 | mon.clearLine() | |
19 | mon.blit("Reaktor = ON","000000000000","dddddddddddd") | |
20 | ||
21 | - | elseif x > 3 and x < 24 and y == 7 and rs.getOutput("back") == true then |
21 | + | elseif x > 3 and x < 22 and y == 5 and rs.getOutput("back") == true then |
22 | rs.setOutput("back",false) | |
23 | - | mon.setCursorPos(5,7) |
23 | + | mon.setCursorPos(5,5) |
24 | mon.clearLine() | |
25 | mon.blit("Reaktor = OFF","0000000000000","eeeeeeeeeeeee") | |
26 | ||
27 | elseif x > 1 and x < 23 and y == 10 and rs.getOutput("left") == false then | |
28 | rs.setOutput("left",true) | |
29 | mon.setCursorPos(2,10) | |
30 | mon.ClearLine() | |
31 | mon.blit("Yellorium Input = ON","00000000000000000000","dddddddddddddddddddd") | |
32 | ||
33 | elseif x > 1 and x < 23 and y == 10 and rs.getOutput("left") == true then | |
34 | rs.setOutput("left",false) | |
35 | mon.setCursorPos(2,10) | |
36 | mon.ClearLine() | |
37 | mon.blit("Yellorium Input = OFF","00000000000000000000","eeeeeeeeeeeeeeeeeeeee") | |
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | end | |
48 | end |