add refresh button to scripts page
This commit is contained in:
parent
b5a266e1c1
commit
da471bd4eb
@ -1,6 +1,11 @@
|
|||||||
<panel size='400' color='0' context='menu'>
|
<panel size='400' color='#00000030' context='menu'>
|
||||||
<label>@Scripts</label>
|
<container size='400,32'>
|
||||||
<panel id="list" size='400' interval='1' color='#00000030' max-length='300'>
|
<label pos='2,10'>@Scripts</label>
|
||||||
|
<image onclick='refresh()' interactive='true' src='gui/refresh'
|
||||||
|
size='32' gravity='top-right'
|
||||||
|
color='#FFFFFF80' hover-color='#FFFFFF10'/>
|
||||||
|
</container>
|
||||||
|
<panel id="list" size='400' interval='1' color='0' max-length='300'>
|
||||||
<!-- content is generated in script -->
|
<!-- content is generated in script -->
|
||||||
</panel>
|
</panel>
|
||||||
<button onclick='menu:back()'>@Back</button>
|
<button onclick='menu:back()'>@Back</button>
|
||||||
|
|||||||
@ -10,7 +10,7 @@ function run_script(path)
|
|||||||
start_coroutine(chunk, path)
|
start_coroutine(chunk, path)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function refresh()
|
function refresh()
|
||||||
document.list:clear()
|
document.list:clear()
|
||||||
|
|
||||||
local available = pack.get_available()
|
local available = pack.get_available()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user