ClientOS/installer/checkbox.lua
2025-10-20 00:19:13 +02:00

30 lines
308 B
Lua

local function redraw()
local bl = {
{
"",
"990",
"009",
},
{
"",
"900",
"099",
},
{
"",
"000",
"999",
},
}
if self.value then
bl[2][1] = "x"
end
for t=1,3 do
term.setCursorPos(1,t)
term.blit(unpack(bl[t]))
end
end
while true do
os.pullEvent()
redraw()
end