Pokedex UI fix

This commit is contained in:
infinitefusion
2022-04-16 22:31:49 -04:00
parent c041fad340
commit 540adf4760
3 changed files with 19 additions and 23 deletions

View File

@@ -302,18 +302,14 @@ class Player < Trainer
# loop on @owned and @seen and add the pokemon in @owned_standard/fusion @seen_standard/fusion
# then clear @owned and @seen
def resync_pokedex()
Kernel.pbMessage(_INTL("Syncing Pokédex... This might take some time."))
init_new_pokedex_if_needed()
@seen.each { |pokemon|
set_seen(pokemon[0])
}
@owned.each { |pokemon|
set_owned(pokemon[0])
}
self.refresh_accessible_dexes
@seen = {} #deprecated
@owned = {} #deprecated
#self.clear

View File

@@ -197,7 +197,7 @@ class PokemonPokedexInfo_Scene
case page
when 1 then drawPageInfo
when 2 then drawPageArea
when 3 then drawPageForms
when 2 then drawPageForms
end
end
@@ -487,24 +487,24 @@ class PokemonPokedexInfo_Scene
(@page==1) ? Pokemon.play_cry(@species, @form) : pbPlayCursorSE
dorefresh = true
end
elsif Input.trigger?(Input::LEFT)
oldpage = @page
@page -= 1
@page = 1 if @page<1
@page = 3 if @page>3
if @page!=oldpage
pbPlayCursorSE
dorefresh = true
end
elsif Input.trigger?(Input::RIGHT)
oldpage = @page
@page += 1
@page = 1 if @page<1
@page = 3 if @page>3
if @page!=oldpage
pbPlayCursorSE
dorefresh = true
end
# elsif Input.trigger?(Input::LEFT)
# oldpage = @page
# @page -= 1
# @page = 1 if @page<1
# @page = 3 if @page>3
# if @page!=oldpage
# pbPlayCursorSE
# dorefresh = true
# end
# elsif Input.trigger?(Input::RIGHT)
# oldpage = @page
# @page += 1
# @page = 1 if @page<1
# @page = 3 if @page>3
# if @page!=oldpage
# pbPlayCursorSE
# dorefresh = true
# end
end
if dorefresh
drawPage(@page)

Binary file not shown.