process page test
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<panel size='400' padding='8' interval='1' color='#00000080'>
|
||||
<label id='title_label'>???</label>
|
||||
<label id='progress_label'>-</label>
|
||||
</panel>
|
||||
@@ -0,0 +1,10 @@
|
||||
function on_progress(done, total)
|
||||
local progress = done / total
|
||||
document.progress_label.text = string.format(
|
||||
"%s/%s (%s%%)", done, total, math.floor(progress*100)
|
||||
)
|
||||
end
|
||||
|
||||
function on_open(title)
|
||||
document.title_label.text = title
|
||||
end
|
||||
Reference in New Issue
Block a user