[FIX] Sistema de navegació entre pantalles (flow)
- Optimitzat el logo. Ara necessita menys memòria aprofitant les funcions de paleta
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
local menu_sel = 0
|
||||
|
||||
function opcions_init()
|
||||
flow:add_path({opcions_show, opcions_end})
|
||||
-- flow:add_path({opcions_show, opcions_end})
|
||||
flow:next()
|
||||
end
|
||||
|
||||
@@ -31,9 +31,7 @@ function opcions_update()
|
||||
menu_count=0
|
||||
menu_state=update_redefine_pad_menu
|
||||
else
|
||||
-- menu_count=0
|
||||
-- menu_sel=0
|
||||
-- menu_state=update_main_menu
|
||||
-- Tornar
|
||||
flow:next()
|
||||
end
|
||||
elseif key.press(keyDown) or key.press(key.DOWN) or pad.press(pad.DOWN) or pad.press(btnDown) then
|
||||
@@ -43,9 +41,7 @@ function opcions_update()
|
||||
menu_sel=menu_sel-1
|
||||
if menu_sel==-1 then menu_sel=4 end
|
||||
elseif key.press(key.ESCAPE) or pad.press(btnPause) then
|
||||
-- menu_count=0
|
||||
-- menu_sel=0
|
||||
-- menu_state=update_main_menu
|
||||
-- Tornar desde qualsevol lloc
|
||||
flow:next()
|
||||
end
|
||||
end
|
||||
@@ -57,5 +53,8 @@ end
|
||||
|
||||
function opcions_end()
|
||||
print("opcions_end")
|
||||
flow:restore()
|
||||
end
|
||||
-- flow:restore()
|
||||
flow:finish()
|
||||
end
|
||||
|
||||
flow:registrar("opcions",{opcions_init, opcions_show, opcions_end})
|
||||
|
||||
Reference in New Issue
Block a user