mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Updated Power Green fonts, repositioned all text accordingly
This commit is contained in:
@@ -340,22 +340,22 @@ class PokemonSummary_Scene
|
||||
_INTL("MOVES"),
|
||||
_INTL("RIBBONS")][page - 1]
|
||||
textpos = [
|
||||
[pagename, 26, 10, 0, base, shadow],
|
||||
[@pokemon.name, 46, 56, 0, base, shadow],
|
||||
[@pokemon.level.to_s, 46, 86, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Item"), 66, 312, 0, base, shadow]
|
||||
[pagename, 26, 22, 0, base, shadow],
|
||||
[@pokemon.name, 46, 68, 0, base, shadow],
|
||||
[@pokemon.level.to_s, 46, 98, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Item"), 66, 324, 0, base, shadow]
|
||||
]
|
||||
# Write the held item's name
|
||||
if @pokemon.hasItem?
|
||||
textpos.push([@pokemon.item.name, 16, 346, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push([@pokemon.item.name, 16, 358, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
else
|
||||
textpos.push([_INTL("None"), 16, 346, 0, Color.new(192, 200, 208), Color.new(208, 216, 224)])
|
||||
textpos.push([_INTL("None"), 16, 358, 0, Color.new(192, 200, 208), Color.new(208, 216, 224)])
|
||||
end
|
||||
# Write the gender symbol
|
||||
if @pokemon.male?
|
||||
textpos.push([_INTL("♂"), 178, 56, 0, Color.new(24, 112, 216), Color.new(136, 168, 208)])
|
||||
textpos.push([_INTL("♂"), 178, 68, 0, Color.new(24, 112, 216), Color.new(136, 168, 208)])
|
||||
elsif @pokemon.female?
|
||||
textpos.push([_INTL("♀"), 178, 56, 0, Color.new(248, 56, 32), Color.new(224, 152, 144)])
|
||||
textpos.push([_INTL("♀"), 178, 68, 0, Color.new(248, 56, 32), Color.new(224, 152, 144)])
|
||||
end
|
||||
# Draw all text
|
||||
pbDrawTextPositions(overlay, textpos)
|
||||
@@ -388,12 +388,12 @@ class PokemonSummary_Scene
|
||||
end
|
||||
# Write various bits of text
|
||||
textpos = [
|
||||
[_INTL("Dex No."), 238, 74, 0, base, shadow],
|
||||
[_INTL("Species"), 238, 106, 0, base, shadow],
|
||||
[@pokemon.speciesName, 435, 106, 2, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Type"), 238, 138, 0, base, shadow],
|
||||
[_INTL("OT"), 238, 170, 0, base, shadow],
|
||||
[_INTL("ID No."), 238, 202, 0, base, shadow]
|
||||
[_INTL("Dex No."), 238, 86, 0, base, shadow],
|
||||
[_INTL("Species"), 238, 118, 0, base, shadow],
|
||||
[@pokemon.speciesName, 435, 118, 2, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Type"), 238, 150, 0, base, shadow],
|
||||
[_INTL("OT"), 238, 182, 0, base, shadow],
|
||||
[_INTL("ID No."), 238, 214, 0, base, shadow]
|
||||
]
|
||||
# Write the Regional/National Dex number
|
||||
dexnum = 0
|
||||
@@ -412,15 +412,15 @@ class PokemonSummary_Scene
|
||||
end
|
||||
end
|
||||
if dexnum <= 0
|
||||
textpos.push(["???", 435, 74, 2, dexNumBase, dexNumShadow])
|
||||
textpos.push(["???", 435, 86, 2, dexNumBase, dexNumShadow])
|
||||
else
|
||||
dexnum -= 1 if dexnumshift
|
||||
textpos.push([sprintf("%03d", dexnum), 435, 74, 2, dexNumBase, dexNumShadow])
|
||||
textpos.push([sprintf("%03d", dexnum), 435, 86, 2, dexNumBase, dexNumShadow])
|
||||
end
|
||||
# Write Original Trainer's name and ID number
|
||||
if @pokemon.owner.name.empty?
|
||||
textpos.push([_INTL("RENTAL"), 435, 170, 2, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push(["?????", 435, 202, 2, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push([_INTL("RENTAL"), 435, 182, 2, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push(["?????", 435, 214, 2, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
else
|
||||
ownerbase = Color.new(64, 64, 64)
|
||||
ownershadow = Color.new(176, 176, 176)
|
||||
@@ -432,12 +432,13 @@ class PokemonSummary_Scene
|
||||
ownerbase = Color.new(248, 56, 32)
|
||||
ownershadow = Color.new(224, 152, 144)
|
||||
end
|
||||
textpos.push([@pokemon.owner.name, 435, 170, 2, ownerbase, ownershadow])
|
||||
textpos.push([sprintf("%05d", @pokemon.owner.public_id), 435, 202, 2, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push([@pokemon.owner.name, 435, 182, 2, ownerbase, ownershadow])
|
||||
textpos.push([sprintf("%05d", @pokemon.owner.public_id), 435, 214, 2,
|
||||
Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
end
|
||||
# Write Exp text OR heart gauge message (if a Shadow Pokémon)
|
||||
if @pokemon.shadowPokemon?
|
||||
textpos.push([_INTL("Heart Gauge"), 238, 234, 0, base, shadow])
|
||||
textpos.push([_INTL("Heart Gauge"), 238, 246, 0, base, shadow])
|
||||
heartmessage = [_INTL("The door to its heart is open! Undo the final lock!"),
|
||||
_INTL("The door to its heart is almost fully open."),
|
||||
_INTL("The door to its heart is nearly open."),
|
||||
@@ -445,13 +446,13 @@ class PokemonSummary_Scene
|
||||
_INTL("The door to its heart is opening up."),
|
||||
_INTL("The door to its heart is tightly shut.")][@pokemon.heartStage]
|
||||
memo = sprintf("<c3=404040,B0B0B0>%s\n", heartmessage)
|
||||
drawFormattedTextEx(overlay, 234, 304, 264, memo)
|
||||
drawFormattedTextEx(overlay, 234, 308, 264, memo)
|
||||
else
|
||||
endexp = @pokemon.growth_rate.minimum_exp_for_level(@pokemon.level + 1)
|
||||
textpos.push([_INTL("Exp. Points"), 238, 234, 0, base, shadow])
|
||||
textpos.push([@pokemon.exp.to_s_formatted, 488, 266, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push([_INTL("To Next Lv."), 238, 298, 0, base, shadow])
|
||||
textpos.push([(endexp - @pokemon.exp).to_s_formatted, 488, 330, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push([_INTL("Exp. Points"), 238, 246, 0, base, shadow])
|
||||
textpos.push([@pokemon.exp.to_s_formatted, 488, 278, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push([_INTL("To Next Lv."), 238, 310, 0, base, shadow])
|
||||
textpos.push([(endexp - @pokemon.exp).to_s_formatted, 488, 342, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
end
|
||||
# Draw all text
|
||||
pbDrawTextPositions(overlay, textpos)
|
||||
@@ -487,15 +488,15 @@ class PokemonSummary_Scene
|
||||
pbDrawImagePositions(overlay, imagepos)
|
||||
# Write various bits of text
|
||||
textpos = [
|
||||
[_INTL("TRAINER MEMO"), 26, 10, 0, base, shadow],
|
||||
[@pokemon.name, 46, 56, 0, base, shadow],
|
||||
[_INTL("Item"), 66, 312, 0, base, shadow]
|
||||
[_INTL("TRAINER MEMO"), 26, 22, 0, base, shadow],
|
||||
[@pokemon.name, 46, 68, 0, base, shadow],
|
||||
[_INTL("Item"), 66, 324, 0, base, shadow]
|
||||
]
|
||||
# Write the held item's name
|
||||
if @pokemon.hasItem?
|
||||
textpos.push([@pokemon.item.name, 16, 346, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
textpos.push([@pokemon.item.name, 16, 358, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
else
|
||||
textpos.push([_INTL("None"), 16, 346, 0, Color.new(192, 200, 208), Color.new(208, 216, 224)])
|
||||
textpos.push([_INTL("None"), 16, 358, 0, Color.new(192, 200, 208), Color.new(208, 216, 224)])
|
||||
end
|
||||
# Draw all text
|
||||
pbDrawTextPositions(overlay, textpos)
|
||||
@@ -524,7 +525,7 @@ class PokemonSummary_Scene
|
||||
eggstate = _INTL("Sounds can be heard coming from inside! It will hatch soon!") if @pokemon.steps_to_hatch < 1275
|
||||
memo += sprintf("<c3=404040,B0B0B0>%s\n", eggstate)
|
||||
# Draw all text
|
||||
drawFormattedTextEx(overlay, 232, 82, 268, memo)
|
||||
drawFormattedTextEx(overlay, 232, 86, 268, memo)
|
||||
# Draw the Pokémon's markings
|
||||
drawMarkings(overlay, 84, 292)
|
||||
end
|
||||
@@ -620,7 +621,7 @@ class PokemonSummary_Scene
|
||||
memo += sprintf("<c3=404040,B0B0B0>%s\n", characteristics[best_stat][best_iv % 5])
|
||||
end
|
||||
# Write all text
|
||||
drawFormattedTextEx(overlay, 232, 82, 268, memo)
|
||||
drawFormattedTextEx(overlay, 232, 86, 268, memo)
|
||||
end
|
||||
|
||||
def drawPageThree
|
||||
@@ -638,25 +639,25 @@ class PokemonSummary_Scene
|
||||
end
|
||||
# Write various bits of text
|
||||
textpos = [
|
||||
[_INTL("HP"), 292, 70, 2, base, statshadows[:HP]],
|
||||
[sprintf("%d/%d", @pokemon.hp, @pokemon.totalhp), 462, 70, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Attack"), 248, 114, 0, base, statshadows[:ATTACK]],
|
||||
[sprintf("%d", @pokemon.attack), 456, 114, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Defense"), 248, 146, 0, base, statshadows[:DEFENSE]],
|
||||
[sprintf("%d", @pokemon.defense), 456, 146, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Sp. Atk"), 248, 178, 0, base, statshadows[:SPECIAL_ATTACK]],
|
||||
[sprintf("%d", @pokemon.spatk), 456, 178, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Sp. Def"), 248, 210, 0, base, statshadows[:SPECIAL_DEFENSE]],
|
||||
[sprintf("%d", @pokemon.spdef), 456, 210, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Speed"), 248, 242, 0, base, statshadows[:SPEED]],
|
||||
[sprintf("%d", @pokemon.speed), 456, 242, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Ability"), 224, 278, 0, base, shadow]
|
||||
[_INTL("HP"), 292, 82, 2, base, statshadows[:HP]],
|
||||
[sprintf("%d/%d", @pokemon.hp, @pokemon.totalhp), 462, 82, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Attack"), 248, 126, 0, base, statshadows[:ATTACK]],
|
||||
[sprintf("%d", @pokemon.attack), 456, 126, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Defense"), 248, 158, 0, base, statshadows[:DEFENSE]],
|
||||
[sprintf("%d", @pokemon.defense), 456, 158, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Sp. Atk"), 248, 190, 0, base, statshadows[:SPECIAL_ATTACK]],
|
||||
[sprintf("%d", @pokemon.spatk), 456, 190, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Sp. Def"), 248, 222, 0, base, statshadows[:SPECIAL_DEFENSE]],
|
||||
[sprintf("%d", @pokemon.spdef), 456, 222, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Speed"), 248, 254, 0, base, statshadows[:SPEED]],
|
||||
[sprintf("%d", @pokemon.speed), 456, 254, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[_INTL("Ability"), 224, 290, 0, base, shadow]
|
||||
]
|
||||
# Draw ability name and description
|
||||
ability = @pokemon.ability
|
||||
if ability
|
||||
textpos.push([ability.name, 362, 278, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
drawTextEx(overlay, 224, 320, 282, 2, ability.description, Color.new(64, 64, 64), Color.new(176, 176, 176))
|
||||
textpos.push([ability.name, 362, 290, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
drawTextEx(overlay, 224, 322, 282, 2, ability.description, Color.new(64, 64, 64), Color.new(176, 176, 176))
|
||||
end
|
||||
# Draw all text
|
||||
pbDrawTextPositions(overlay, textpos)
|
||||
@@ -693,12 +694,12 @@ class PokemonSummary_Scene
|
||||
textpos = []
|
||||
imagepos = []
|
||||
# Write move names, types and PP amounts for each known move
|
||||
yPos = 92
|
||||
yPos = 104
|
||||
Pokemon::MAX_MOVES.times do |i|
|
||||
move = @pokemon.moves[i]
|
||||
if move
|
||||
type_number = GameData::Type.get(move.display_type(@pokemon)).icon_position
|
||||
imagepos.push(["Graphics/Pictures/types", 248, yPos + 8, 0, type_number * 28, 64, 28])
|
||||
imagepos.push(["Graphics/Pictures/types", 248, yPos - 4, 0, type_number * 28, 64, 28])
|
||||
textpos.push([move.name, 316, yPos, 0, moveBase, moveShadow])
|
||||
if move.total_pp > 0
|
||||
textpos.push([_INTL("PP"), 342, yPos + 32, 0, moveBase, moveShadow])
|
||||
@@ -746,14 +747,14 @@ class PokemonSummary_Scene
|
||||
end
|
||||
# Write various bits of text
|
||||
textpos = [
|
||||
[_INTL("MOVES"), 26, 10, 0, base, shadow],
|
||||
[_INTL("CATEGORY"), 20, 116, 0, base, shadow],
|
||||
[_INTL("POWER"), 20, 148, 0, base, shadow],
|
||||
[_INTL("ACCURACY"), 20, 180, 0, base, shadow]
|
||||
[_INTL("MOVES"), 26, 22, 0, base, shadow],
|
||||
[_INTL("CATEGORY"), 20, 128, 0, base, shadow],
|
||||
[_INTL("POWER"), 20, 160, 0, base, shadow],
|
||||
[_INTL("ACCURACY"), 20, 192, 0, base, shadow]
|
||||
]
|
||||
imagepos = []
|
||||
# Write move names, types and PP amounts for each known move
|
||||
yPos = 92
|
||||
yPos = 104
|
||||
yPos -= 76 if move_to_learn
|
||||
limit = (move_to_learn) ? Pokemon::MAX_MOVES + 1 : Pokemon::MAX_MOVES
|
||||
limit.times do |i|
|
||||
@@ -764,7 +765,7 @@ class PokemonSummary_Scene
|
||||
end
|
||||
if move
|
||||
type_number = GameData::Type.get(move.display_type(@pokemon)).icon_position
|
||||
imagepos.push(["Graphics/Pictures/types", 248, yPos + 8, 0, type_number * 28, 64, 28])
|
||||
imagepos.push(["Graphics/Pictures/types", 248, yPos - 4, 0, type_number * 28, 64, 28])
|
||||
textpos.push([move.name, 316, yPos, 0, moveBase, moveShadow])
|
||||
if move.total_pp > 0
|
||||
textpos.push([_INTL("PP"), 342, yPos + 32, 0, moveBase, moveShadow])
|
||||
@@ -810,14 +811,14 @@ class PokemonSummary_Scene
|
||||
textpos = []
|
||||
# Write power and accuracy values for selected move
|
||||
case selected_move.display_damage(@pokemon)
|
||||
when 0 then textpos.push(["---", 216, 148, 1, base, shadow]) # Status move
|
||||
when 1 then textpos.push(["???", 216, 148, 1, base, shadow]) # Variable power move
|
||||
else textpos.push([selected_move.display_damage(@pokemon).to_s, 216, 148, 1, base, shadow])
|
||||
when 0 then textpos.push(["---", 216, 160, 1, base, shadow]) # Status move
|
||||
when 1 then textpos.push(["???", 216, 160, 1, base, shadow]) # Variable power move
|
||||
else textpos.push([selected_move.display_damage(@pokemon).to_s, 216, 160, 1, base, shadow])
|
||||
end
|
||||
if selected_move.display_accuracy(@pokemon) == 0
|
||||
textpos.push(["---", 216, 180, 1, base, shadow])
|
||||
textpos.push(["---", 216, 192, 1, base, shadow])
|
||||
else
|
||||
textpos.push(["#{selected_move.display_accuracy(@pokemon)}%", 216 + overlay.text_size("%").width, 180, 1, base, shadow])
|
||||
textpos.push(["#{selected_move.display_accuracy(@pokemon)}%", 216 + overlay.text_size("%").width, 192, 1, base, shadow])
|
||||
end
|
||||
# Draw all text
|
||||
pbDrawTextPositions(overlay, textpos)
|
||||
@@ -825,7 +826,7 @@ class PokemonSummary_Scene
|
||||
imagepos = [["Graphics/Pictures/category", 166, 124, 0, selected_move.display_category(@pokemon) * 28, 64, 28]]
|
||||
pbDrawImagePositions(overlay, imagepos)
|
||||
# Draw selected move's description
|
||||
drawTextEx(overlay, 4, 222, 230, 5, selected_move.description, base, shadow)
|
||||
drawTextEx(overlay, 4, 224, 230, 5, selected_move.description, base, shadow)
|
||||
end
|
||||
|
||||
def drawPageFive
|
||||
@@ -834,8 +835,8 @@ class PokemonSummary_Scene
|
||||
@sprites["downarrow"].visible = false
|
||||
# Write various bits of text
|
||||
textpos = [
|
||||
[_INTL("No. of Ribbons:"), 234, 326, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[@pokemon.numRibbons.to_s, 450, 326, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)]
|
||||
[_INTL("No. of Ribbons:"), 234, 338, 0, Color.new(64, 64, 64), Color.new(176, 176, 176)],
|
||||
[@pokemon.numRibbons.to_s, 450, 338, 1, Color.new(64, 64, 64), Color.new(176, 176, 176)]
|
||||
]
|
||||
# Draw all text
|
||||
pbDrawTextPositions(overlay, textpos)
|
||||
@@ -874,11 +875,11 @@ class PokemonSummary_Scene
|
||||
pbDrawImagePositions(overlay, imagepos)
|
||||
# Draw name of selected ribbon
|
||||
textpos = [
|
||||
[name, 18, 280, 0, nameBase, nameShadow]
|
||||
[name, 18, 292, 0, nameBase, nameShadow]
|
||||
]
|
||||
pbDrawTextPositions(overlay, textpos)
|
||||
# Draw selected ribbon's description
|
||||
drawTextEx(overlay, 18, 322, 480, 2, desc, base, shadow)
|
||||
drawTextEx(overlay, 18, 324, 480, 2, desc, base, shadow)
|
||||
end
|
||||
|
||||
def pbGoToPrevious
|
||||
@@ -1083,9 +1084,9 @@ class PokemonSummary_Scene
|
||||
@markingbitmap.bitmap, markrect)
|
||||
end
|
||||
textpos = [
|
||||
[_INTL("Mark {1}", pokemon.name), 366, 90, 2, base, shadow],
|
||||
[_INTL("OK"), 366, 242, 2, base, shadow],
|
||||
[_INTL("Cancel"), 366, 292, 2, base, shadow]
|
||||
[_INTL("Mark {1}", pokemon.name), 366, 102, 2, base, shadow],
|
||||
[_INTL("OK"), 366, 254, 2, base, shadow],
|
||||
[_INTL("Cancel"), 366, 304, 2, base, shadow]
|
||||
]
|
||||
pbDrawTextPositions(@sprites["markingoverlay"].bitmap, textpos)
|
||||
redraw = false
|
||||
|
||||
Reference in New Issue
Block a user