add separator to AR
This commit is contained in:
parent
fc29df0641
commit
d6f110b432
|
@ -14,11 +14,20 @@ local function draw_idx_string(string)
|
|||
end
|
||||
end
|
||||
|
||||
local function draw_idx_separator()
|
||||
return function()
|
||||
ar.horizontalLine(0, 200, 10 * cur_row, 0xffffff)
|
||||
cur_row = cur_row + 1
|
||||
end
|
||||
end
|
||||
|
||||
while true do
|
||||
local draws = {}
|
||||
|
||||
table.insert(draws, draw_idx_string("Date: " .. os.date()))
|
||||
table.insert(draws, draw_idx_separator())
|
||||
table.insert(draws, draw_idx_string("Players:"))
|
||||
|
||||
for _, p in pairs(pl_detector.getOnlinePlayers()) do
|
||||
local pos = pl_detector.getPlayerPos(p)
|
||||
|
||||
|
|
Loading…
Reference in New Issue