add separator to AR

This commit is contained in:
LordMZTE 2021-11-14 16:14:05 +01:00
parent fc29df0641
commit d6f110b432
1 changed files with 9 additions and 0 deletions

View File

@ -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)