Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- shell.openTab("lock2")
- sleep(0.1)
- shell.switchTab(2)
- m = peripheral.wrap("back")
- m.clear()
- m.setTextScale(0.5)
- m.setBackgroundColor(colors.black)
- m.setTextColor(colors.white)
- load = fs.open("Config", "r")
- code,autoReset,waitTime,redstoneSide = unpack(textutils.unserialize(load.readAll()))
- load.close()
- inp = {}
- sPos = 4
- function mGUI()
- gui = {
- [[ Floof ]],
- [[ Security INC. ]],
- [[ +-----------+ ]],
- [[ | | ]],
- [[ +---+---+---+ ]],
- [[ | 1 | 2 | 3 | ]],
- [[ | 4 | 5 | 6 | ]],
- [[ | 7 | 8 | 9 | ]],
- [[ | X | 0 | > | ]],
- [[ +---+---+---+ ]],
- }
- m.setTextColor(colors.blue)
- for i = 1,10 do
- m.setCursorPos(1,i)
- if i == 3 then
- m.setTextColor(colors.white)
- end
- m.write(gui[i])
- end
- m.setCursorPos(3,9)
- m.setBackgroundColor(colors.red)
- m.write(" X ")
- m.setCursorPos(11,9)
- m.setBackgroundColor(colors.lime)
- m.write(" > ")
- m.setCursorPos(3,4)
- m.setBackgroundColor(colors.lightGray)
- m.write(" ")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement