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

23 lines
552 B
Lua

local ico = lUtils.asset.load("User/Cloud/Images/New_Loading.limg") -- replace with actual filepath later
for t=1,#ico do
for l=1,#ico[t] do
ico[t][l][2] = string.gsub(ico[t][l][2],"T","9")
ico[t][l][3] = string.gsub(ico[t][l][3],"T","9")
end
end
local frame = 1
function render(frame)
local f = ico[frame]
for l=1,#f do
term.setCursorPos(1,l)
term.blit(unpack(f[l]))
end
end
while true do
render(frame)
os.sleep(0.1)
frame = frame+1
if frame > #ico then
frame = 1
end
end