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

@@ -1246,16 +1246,16 @@ class PokemonStorageScene
def pbSummary(selected, heldpoke)
oldsprites = pbFadeOutAndHide(@sprites)
scene = PokemonSummary_Scene.new
screen = PokemonSummaryScreen.new(scene)
if heldpoke
screen.pbStartScreen([heldpoke], 0)
UI::PokemonSummary.new(heldpoke)
elsif selected[0] == -1
@selection = screen.pbStartScreen(@storage.party, selected[1])
screen = UI::PokemonSummary.new(@storage.party, selected[1])
@selection = screen.result
pbPartySetArrow(@sprites["arrow"], @selection)
pbUpdateOverlay(@selection, @storage.party)
else
@selection = screen.pbStartScreen(@storage.boxes[selected[0]], selected[1])
screen = UI::PokemonSummary.new(@storage.boxes[selected[0]], selected[1])
@selection = screen.result
pbSetArrow(@sprites["arrow"], @selection)
pbUpdateOverlay(@selection)
end