Add ui:show_image()

This commit is contained in:
Evgeny
2025-04-29 06:59:41 +08:00
parent 7074a17b83
commit 4904a0050a
2 changed files with 21 additions and 1 deletions

18
samples/image_sample.lua Normal file
View File

@@ -0,0 +1,18 @@
local height = 0
function on_load()
show_image()
end
function on_click()
if height == 0 then
height = 100
else
height = 0
end
show_image()
end
function show_image()
ui:show_image("https://dummyimage.com/600x400/000/fff", height)
end