Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("System/API/image")
- local xSize, ySize = term.getSize()
- local function ClearScr(text)
- local term = peripheral.wrap("monitor_6")
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.white)
- term.clear()
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(2,1)
- term.clearLine()
- term.setTextScale(1)
- term.write(text)
- image.draw(2,2,"Images/MyHomeIcon")
- end
- -----------------------------
- ClearScr("Home Controlling System by DarkKeks")
- while true do
- local event, button, x, y = os.pullEvent()
- if event == "monitor_touch" then button = 2 end
- if event == "monitor_touch" then
- if button == 2 and y>1 then
- rs.setBundledOutput("bottom", 1)
- elseif y == 1 then
- break
- end
- end
- end
- term.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement