Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --config:
- slc = 0
- tBarC = 8
- tBartC = 1
- backColor = colors.pink
- term.setBackgroundColor(backColor)
- term.clear()
- --code:
- function RedGui()
- redstonegui = paintutils.loadImage("/tde/redstone.png")
- paintutils.drawImage(redstonegui, 0, 0)
- term.setCursorPos(1, 19)
- write("(C) tima_gt 2013 GNU GPL project ")
- term.setCursorPos(1, 2)
- write("Active redstone")
- term.setCursorPos(1, 15)
- write("DeActive redstone")
- term.setCursorPos(50, 1)
- write("X")
- end
- RedGui()
- asd = true
- while asd == true do
- local event, button, X, Y = os.pullEventRaw()
- if slc == 0 then
- if event == "mouse_click" then
- if X >=1 and X <=17 and Y >=3 and Y <=5 and button ==1 then slc = 0
- redstone.setOutput("back", true)
- elseif X >=1 and X <=17 and Y >=14 and Y <=18 and button ==1 then slc = 0
- redstone.setOutput("back", false)
- elseif X ==50 and Y ==1 and button ==1 then slc = 0
- asd = false
- shell.run("pastebin run nCN4nL7A")
- else
- RedGui()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement