Fixed the "See ya!" option in the PC menu not working properly, fixed mispositioning of text in Debug features that edit Game

Switches/Variables
This commit is contained in:
Maruno17
2022-07-03 15:58:37 +01:00
parent 94c6b6db0c
commit 6dd88e49e1
3 changed files with 14 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ EventHandlers.add(:on_wild_pokemon_created, :level_depends_on_party,
# Note that you can only modify a partner trainer's Pokémon, and not the trainer
# themselves nor their items this way, as those are generated from scratch
# before each battle.
#EventHandlers.trigger(:on_trainer_load, :put_a_name_here,
#EventHandlers.add(:on_trainer_load, :put_a_name_here,
# proc { |trainer|
# if trainer # An NPCTrainer object containing party/items/lose text, etc.
# YOUR CODE HERE

View File

@@ -180,6 +180,12 @@ MenuHandlers.add(:pc_menu, :pokemon_storage, {
_INTL("Return to the previous menu.")], -1, command)
break if command < 0
case command
when 0 # Organize
pbFadeOutIn {
scene = PokemonStorageScene.new
screen = PokemonStorageScreen.new(scene, $PokemonStorage)
screen.pbStartScreen(command)
}
when 1 # Withdraw
if $PokemonStorage.party_full?
pbMessage(_INTL("Your party is full!"))
@@ -194,12 +200,9 @@ MenuHandlers.add(:pc_menu, :pokemon_storage, {
pbMessage(_INTL("Can't deposit the last Pokémon!"))
next
end
else
break
end
pbFadeOutIn {
scene = PokemonStorageScene.new
screen = PokemonStorageScreen.new(scene, $PokemonStorage)
screen.pbStartScreen(command)
}
end
next false
}

View File

@@ -67,6 +67,7 @@ class SpriteWindow_DebugVariables < Window_DrawableCommand
when 2 # Centre aligned
x += (w / 2) - (width / 2)
end
y += 8 # TEXT OFFSET
base = Color.new(12 * 8, 12 * 8, 12 * 8)
case colors
when 1 # Red