Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("System/API/Mimage")
- local xSize, ySize = term.getSize()
- local function ClearScr(text)
- local m = peripheral.wrap("monitor_6")
- m.setBackgroundColor(colors.white)
- m.setTextColor(colors.white)
- m.clear()
- m.setBackgroundColor(colors.gray)
- m.setCursorPos(2,1)
- m.clearLine()
- m.setTextScale(1)
- m.write(text)
- Mimage.draw(2,2,"Images/MyHomeIcon.png",m)
- 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