New UI no longer activates as part of initializing

This commit is contained in:
Maruno17
2024-08-30 21:54:12 +01:00
parent 89e6df6e06
commit fab5fc0641
13 changed files with 25 additions and 25 deletions

View File

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

View File

@@ -1247,14 +1247,14 @@ class PokemonStorageScene
def pbSummary(selected, heldpoke)
oldsprites = pbFadeOutAndHide(@sprites)
if heldpoke
UI::PokemonSummary.new(heldpoke)
UI::PokemonSummary.new(heldpoke).main
elsif selected[0] == -1
screen = UI::PokemonSummary.new(@storage.party, selected[1])
screen = UI::PokemonSummary.new(@storage.party, selected[1]).main
@selection = screen.result
pbPartySetArrow(@sprites["arrow"], @selection)
pbUpdateOverlay(@selection, @storage.party)
else
screen = UI::PokemonSummary.new(@storage.boxes[selected[0]].pokemon, selected[1])
screen = UI::PokemonSummary.new(@storage.boxes[selected[0]].pokemon, selected[1]).main
@selection = screen.result
pbSetArrow(@sprites["arrow"], @selection)
pbUpdateOverlay(@selection)

View File

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