Added consts for icon sizes for status and category

This commit is contained in:
Maruno17
2024-06-26 16:26:53 +01:00
parent 03b0fa100a
commit 225549bfce
5 changed files with 10 additions and 6 deletions

View File

@@ -328,7 +328,8 @@ class PokemonSummary_Scene
status = GameData::Status.count
end
if status >= 0
imagepos.push([_INTL("Graphics/UI/statuses"), 124, 100, 0, 16 * status, 44, 16])
imagepos.push([_INTL("Graphics/UI/statuses"), 124, 100,
0, status * GameData::Status::ICON_SIZE[1], *GameData::Status::ICON_SIZE])
end
# Show Pokérus cured icon
if @pokemon.pokerusStage == 2
@@ -837,7 +838,8 @@ class PokemonSummary_Scene
# Draw all text
pbDrawTextPositions(overlay, textpos)
# Draw selected move's damage category icon
imagepos = [["Graphics/UI/category", 166, 124, 0, selected_move.display_category(@pokemon) * 28, 64, 28]]
imagepos = [["Graphics/UI/category", 166, 124,
0, selected_move.display_category(@pokemon) * CATEGORY_ICON_SIZE[1], *CATEGORY_ICON_SIZE]]
pbDrawImagePositions(overlay, imagepos)
# Draw selected move's description
drawTextEx(overlay, 4, 224, 230, 5, selected_move.description, base, shadow)