Rewrote summary screen code

This commit is contained in:
Maruno17
2024-08-24 17:00:06 +01:00
parent 2c6fe70f0c
commit 45127be5b6
13 changed files with 1446 additions and 73 deletions

View File

@@ -1232,9 +1232,7 @@ class PurifyChamberScene
def pbSummary(pos, heldpkmn)
if heldpkmn
oldsprites = pbFadeOutAndHide(@sprites)
scene = PokemonSummary_Scene.new
screen = PokemonSummaryScreen.new(scene)
screen.pbStartScreen([heldpkmn], 0)
UI::PokemonSummary.new(heldpkmn)
pbFadeInAndShow(@sprites, oldsprites)
return
end
@@ -1251,9 +1249,8 @@ class PurifyChamberScene
end
return if party.length == 0
oldsprites = pbFadeOutAndHide(@sprites)
scene = PokemonSummary_Scene.new
screen = PokemonSummaryScreen.new(scene)
selection = screen.pbStartScreen(party, startindex)
screen = UI::PokemonSummary.new(party, startindex)
selection = screen.result
@sprites["setview"].cursor = indexes[selection]
pbFadeInAndShow(@sprites, oldsprites)
end