Updated Power Green fonts, repositioned all text accordingly

This commit is contained in:
Maruno17
2022-02-20 23:29:09 +00:00
parent dd78075657
commit 19e50bd507
37 changed files with 353 additions and 332 deletions

View File

@@ -19,8 +19,7 @@ class PokemonPartyConfirmCancelSprite < SpriteWrapper
@overlaysprite = BitmapSprite.new(@bgsprite.bitmap.width, @bgsprite.bitmap.height, viewport)
@overlaysprite.z = self.z + 1
pbSetSystemFont(@overlaysprite.bitmap)
@yoffset = 8
textpos = [[text, 56, (narrowbox) ? -4 : 2, 2, Color.new(248, 248, 248), Color.new(40, 40, 40)]]
textpos = [[text, 56, (narrowbox) ? 8 : 14, 2, Color.new(248, 248, 248), Color.new(40, 40, 40)]]
pbDrawTextPositions(@overlaysprite.bitmap, textpos)
self.x = x
self.y = y
@@ -126,8 +125,8 @@ class Window_CommandPokemonColor < Window_CommandPokemon
base = Color.new(0, 80, 160)
shadow = Color.new(128, 192, 240)
end
pbDrawShadowText(self.contents, rect.x, rect.y, rect.width, rect.height,
@commands[index], base, shadow)
pbDrawShadowText(self.contents, rect.x, rect.y + (self.contents.text_offset_y || 0),
rect.width, rect.height, @commands[index], base, shadow)
end
end
@@ -365,11 +364,11 @@ class PokemonPartyPanel < SpriteWrapper
pbSetSystemFont(@overlaysprite.bitmap)
textpos = []
# Draw Pokémon name
textpos.push([@pokemon.name, 96, 10, 0, basecolor, shadowcolor])
textpos.push([@pokemon.name, 96, 22, 0, basecolor, shadowcolor])
if !@pokemon.egg?
if !@text || @text.length == 0
# Draw HP numbers
textpos.push([sprintf("% 3d /% 3d", @pokemon.hp, @pokemon.totalhp), 224, 54, 1, basecolor, shadowcolor])
textpos.push([sprintf("% 3d /% 3d", @pokemon.hp, @pokemon.totalhp), 224, 66, 1, basecolor, shadowcolor])
# Draw HP bar
if @pokemon.hp > 0
w = @pokemon.hp * 96 / @pokemon.totalhp.to_f
@@ -397,9 +396,9 @@ class PokemonPartyPanel < SpriteWrapper
end
# Draw gender symbol
if @pokemon.male?
textpos.push([_INTL(""), 224, 10, 0, Color.new(0, 112, 248), Color.new(120, 184, 232)])
textpos.push([_INTL(""), 224, 22, 0, Color.new(0, 112, 248), Color.new(120, 184, 232)])
elsif @pokemon.female?
textpos.push([_INTL(""), 224, 10, 0, Color.new(232, 32, 16), Color.new(248, 168, 184)])
textpos.push([_INTL(""), 224, 22, 0, Color.new(232, 32, 16), Color.new(248, 168, 184)])
end
# Draw shiny icon
if @pokemon.shiny?
@@ -414,13 +413,13 @@ class PokemonPartyPanel < SpriteWrapper
[["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]])
[[@pokemon.level.to_s, 42, 68, 0, basecolor, shadowcolor]])
end
# Draw annotation text
if @text && @text.length > 0
pbSetSystemFont(@overlaysprite.bitmap)
pbDrawTextPositions(@overlaysprite.bitmap,
[[@text, 96, 52, 0, basecolor, shadowcolor]])
[[@text, 96, 62, 0, basecolor, shadowcolor]])
end
end
@refreshing = false