Add ui:show_image()
This commit is contained in:
18
samples/image_sample.lua
Normal file
18
samples/image_sample.lua
Normal 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
|
||||
Reference in New Issue
Block a user