More refactoring of summary screen code, added module UIActionHandlers

This commit is contained in:
Maruno17
2024-08-28 21:19:55 +01:00
parent 2abdf333db
commit 9a7dfbb587
4 changed files with 273 additions and 129 deletions

View File

@@ -702,7 +702,7 @@ class PokemonParty_Scene
def pbSummary(pkmnid, inbattle = false)
oldsprites = pbFadeOutAndHide(@sprites)
UI::PokemonSummary.new(@party, pkmnid)
UI::PokemonSummary.new(@party, pkmnid, mode: (inbattle ? :in_battle : :normal))
yield if block_given?
pbRefresh
pbFadeInAndShow(@sprites, oldsprites)