Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SETUP
- local barColor = colors.cyan
- local barTitle = "Record Player"
- local notesInfoText = "&2Piano&1 &3Bass"
- --END SETUP
- os.loadAPI("gcapi")
- local mon = peripheral.find("monitor")
- local max_x, max_y = mon.getSize()
- local notes = {} --
- function setupMonitor()
- mon.setBackgroundColor(colors.white)
- mon.clear()
- mon.setTextColors(colors.black)
- mon.setBackgroundColor(barColor)
- for x=1, max_x, 1 do
- mon.setCursorPos(x,1)
- mon.write(" ")
- mon.setCursorPos(x,max_y)
- mon.write(" ")
- end
- mon.setCursorPos(gcapi.getCenter(max_x, barTitle), 1)
- mon.write(barTitle)
- mon.setCursorPos(gcapi.getCenter(max_x, barTitle), 1)
- mon.write(barTitle)
- mon.setCursorPos(gcapi.getCenter(max_x, string.len(notesInfoText)-#string.split(notesInfoText, "&")+1), max_y)
- gcapi.customMonitorWrite(mon, notesInfoText)
- end
- function printNotes(tick)
- end
- function updateMonitor(tick)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement