Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sbc = term.setBackgroundColor
- local stc = term.setTextColor
- local scp = term.setCursorPos
- local line = paintutils.drawLine
- local box = paintutils.drawFilledBox
- local clr = term.clear
- local w,h = term.getSize()
- local rw, rh = w/2, h/2
- sbc(colors.lightBlue)
- stc(colors.white)
- clr()
- line(1,1,w,1,colors.blue)
- scp(1,1)
- write("Name")
- scp(w-6, 1)
- write("12:00")
- local bw = 10
- local bh = 4
- local bsy = 8
- local bsep = 10
- local bc = 4
- local color = {
- [0] = colors.lightGray,
- [1] = colors.gray,
- [2] = colors.black,
- }
- local cind = colors.purple
- for i = 0, bc do
- local col = math.abs(i-(bc/2))
- if(col >= 0)then
- cind = color[col]
- else
- cind = colors.black
- end
- box((i*bw)+2,bsy-col,(i*bw)+bsep,bsy+bh-col,cind)
- scp((i*bw)+2,bsy-col)
- write("Game " .. i)
- end
- os.pullEvent("key")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement