Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local choosenColor = colors.black
- local function defultcolors()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- end
- local function drawArrows()--funnction to draw the horzontal movment arrows
- term.setBackgroundColor(colors.lightBlue)
- term.setTextColor(colors.black) --setting the colors for the movment buttons
- local CenterCords = {x = 13, y = 13}
- term.setCursorPos(CenterCords.x,CenterCords.y - 1)-- drawing the forwards arrow
- term.write("^")
- term.setCursorPos(CenterCords.x-1,CenterCords.y)-- drawing the turn left arrow
- term.write("<")
- term.setCursorPos(CenterCords.x,CenterCords.y + 1)--drawting the turn backgwards arrow
- term.write("v")
- term.setCursorPos(CenterCords.x + 1, CenterCords.y)--drawing the turn right arrow
- term.write(">")
- defultcolors()
- end
- local function drawConnectionStatus(goodORbad) --a function to draw the connection status green is good red is none
- term.setCursorPos(1,1)
- term.write("STATUS:")
- if goodORbad then
- term.setBackgroundColor(colors.lime)--EChu83q1
- else
- term.setBackgroundColor(colors.red)
- end
- term.write(" ")
- defultcolors()
- end
- local function drawUI()
- drawArrows()
- drawConnectionStatus(false)
- end
- return {drawUI = drawUI(),drawConnectionStatus = drawConnectionStatus()}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement