mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-23 23:06:00 +00:00
More aligning of code
This commit is contained in:
@@ -127,7 +127,7 @@ class Window_CommandPokemonColor < Window_CommandPokemon
|
||||
shadow = Color.new(128, 192, 240)
|
||||
end
|
||||
pbDrawShadowText(self.contents, rect.x, rect.y, rect.width, rect.height,
|
||||
@commands[index], base, shadow)
|
||||
@commands[index], base, shadow)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -406,16 +406,14 @@ class PokemonPartyPanel < SpriteWrapper
|
||||
# Draw shiny icon
|
||||
if @pokemon.shiny?
|
||||
pbDrawImagePositions(@overlaysprite.bitmap,
|
||||
[["Graphics/Pictures/shiny", 80, 48, 0, 0, 16, 16]]
|
||||
)
|
||||
[["Graphics/Pictures/shiny", 80, 48, 0, 0, 16, 16]])
|
||||
end
|
||||
end
|
||||
pbDrawTextPositions(@overlaysprite.bitmap, textpos)
|
||||
# Draw level text
|
||||
if !@pokemon.egg?
|
||||
pbDrawImagePositions(@overlaysprite.bitmap,
|
||||
[["Graphics/Pictures/Party/overlay_lv", 20, 70, 0, 0, 22, 14]]
|
||||
)
|
||||
[["Graphics/Pictures/Party/overlay_lv", 20, 70, 0, 0, 22, 14]])
|
||||
pbSetSmallFont(@overlaysprite.bitmap)
|
||||
pbDrawTextPositions(@overlaysprite.bitmap, [
|
||||
[@pokemon.level.to_s, 42, 57, 0, basecolor, shadowcolor]
|
||||
@@ -461,7 +459,8 @@ class PokemonParty_Scene
|
||||
@sprites["messagebox"].letterbyletter = true
|
||||
pbBottomLeftLines(@sprites["messagebox"], 2)
|
||||
@sprites["storagetext"] = Window_UnformattedTextPokemon.new(
|
||||
@can_access_storage ? _INTL("[Special]: To Boxes") : "")
|
||||
@can_access_storage ? _INTL("[Special]: To Boxes") : ""
|
||||
)
|
||||
@sprites["storagetext"].x = 32
|
||||
@sprites["storagetext"].y = Graphics.height - @sprites["messagebox"].height - 16
|
||||
@sprites["storagetext"].z = 10
|
||||
@@ -1103,11 +1102,15 @@ class PokemonPartyScreen
|
||||
annot.push((elig) ? _INTL("ABLE") : _INTL("NOT ABLE"))
|
||||
end
|
||||
ret = -1
|
||||
@scene.pbStartScene(@party,
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."), annot)
|
||||
@scene.pbStartScene(
|
||||
@party,
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."),
|
||||
annot
|
||||
)
|
||||
loop do
|
||||
@scene.pbSetHelpText(
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."))
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel.")
|
||||
)
|
||||
pkmnid = @scene.pbChoosePokemon
|
||||
break if pkmnid < 0
|
||||
if !eligibility[pkmnid] && !allowIneligible
|
||||
@@ -1131,11 +1134,15 @@ class PokemonPartyScreen
|
||||
annot.push((elig) ? _INTL("ABLE") : _INTL("NOT ABLE"))
|
||||
end
|
||||
ret = -1
|
||||
@scene.pbStartScene(@party,
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."), annot)
|
||||
@scene.pbStartScene(
|
||||
@party,
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."),
|
||||
annot
|
||||
)
|
||||
loop do
|
||||
@scene.pbSetHelpText(
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."))
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel.")
|
||||
)
|
||||
pkmnid = @scene.pbChoosePokemon
|
||||
break if pkmnid < 0
|
||||
if !eligibility[pkmnid] && !allowIneligible
|
||||
@@ -1158,8 +1165,8 @@ class PokemonPartyScreen
|
||||
end
|
||||
end
|
||||
@scene.pbStartScene(@party,
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."),
|
||||
nil, false, can_access_storage)
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."),
|
||||
nil, false, can_access_storage)
|
||||
loop do
|
||||
@scene.pbSetHelpText((@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."))
|
||||
pkmnid = @scene.pbChoosePokemon(false, -1, 1)
|
||||
@@ -1250,7 +1257,7 @@ class PokemonPartyScreen
|
||||
return [pkmn, pkmn.moves[i].id]
|
||||
end
|
||||
@scene.pbStartScene(@party,
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."))
|
||||
(@party.length > 1) ? _INTL("Choose a Pokémon.") : _INTL("Choose Pokémon or cancel."))
|
||||
break
|
||||
end
|
||||
return [pkmn, pkmn.moves[i].id]
|
||||
@@ -1273,7 +1280,7 @@ class PokemonPartyScreen
|
||||
end
|
||||
elsif cmdMail >= 0 && command == cmdMail
|
||||
command = @scene.pbShowCommands(_INTL("Do what with the mail?"),
|
||||
[_INTL("Read"), _INTL("Take"), _INTL("Cancel")])
|
||||
[_INTL("Read"), _INTL("Take"), _INTL("Cancel")])
|
||||
case command
|
||||
when 0 # Read
|
||||
pbFadeOutIn {
|
||||
|
||||
Reference in New Issue
Block a user