menu page queries
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
function on_open()
|
||||
function on_open(params)
|
||||
if params then
|
||||
mode = params.mode
|
||||
end
|
||||
refresh()
|
||||
end
|
||||
|
||||
@@ -6,7 +9,8 @@ add_packs = {}
|
||||
rem_packs = {}
|
||||
|
||||
function apply()
|
||||
if not core.reconfig_packs(add_packs, rem_packs) then
|
||||
core.reconfig_packs(add_packs, rem_packs)
|
||||
if mode ~= "world" then
|
||||
menu:back()
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<panel size='400' color='0' interval='1' context='menu'>
|
||||
<button onclick='menu:reset()'>@Continue</button>
|
||||
<button onclick='menu.page="content"'>@Content</button>
|
||||
<button onclick='menu.page="content?mode=world"'>@Content</button>
|
||||
<button onclick='menu.page="settings"'>@Settings</button>
|
||||
<button onclick='core.close_world(true)'>
|
||||
@Save and Quit to Menu
|
||||
|
||||
Reference in New Issue
Block a user