Added some graphics filenames to the core messages

This commit is contained in:
Maruno17
2023-07-01 22:49:02 +01:00
parent 2986ab3ebb
commit 104bf2b598
15 changed files with 103 additions and 39 deletions

View File

@@ -16,21 +16,21 @@ class ButtonEventScene < EventScene
@keys = []
@key_screens = []
addImageForScreen(1, 44, 122, "Graphics/UI/Controls help/help_f1")
addImageForScreen(1, 44, 252, "Graphics/UI/Controls help/help_f8")
addImageForScreen(1, 44, 122, _INTL("Graphics/UI/Controls help/help_f1"))
addImageForScreen(1, 44, 252, _INTL("Graphics/UI/Controls help/help_f8"))
addLabelForScreen(1, 134, 84, 352, _INTL("Opens the Key Bindings window, where you can choose which keyboard keys to use for each control."))
addLabelForScreen(1, 134, 244, 352, _INTL("Take a screenshot. It is put in the same folder as the save file."))
addImageForScreen(2, 16, 158, "Graphics/UI/Controls help/help_arrows")
addImageForScreen(2, 16, 158, _INTL("Graphics/UI/Controls help/help_arrows"))
addLabelForScreen(2, 134, 100, 352, _INTL("Use the Arrow keys to move the main character.\n\nYou can also use the Arrow keys to select entries and navigate menus."))
addImageForScreen(3, 16, 90, "Graphics/UI/Controls help/help_usekey")
addImageForScreen(3, 16, 236, "Graphics/UI/Controls help/help_backkey")
addImageForScreen(3, 16, 90, _INTL("Graphics/UI/Controls help/help_usekey"))
addImageForScreen(3, 16, 236, _INTL("Graphics/UI/Controls help/help_backkey"))
addLabelForScreen(3, 134, 68, 352, _INTL("Used to confirm a choice, interact with people and things, and move through text. (Default: C)"))
addLabelForScreen(3, 134, 196, 352, _INTL("Used to exit, cancel a choice, and cancel a mode. While moving around, hold to move at a different speed. (Default: X)"))
addImageForScreen(4, 16, 90, "Graphics/UI/Controls help/help_actionkey")
addImageForScreen(4, 16, 236, "Graphics/UI/Controls help/help_specialkey")
addImageForScreen(4, 16, 90, _INTL("Graphics/UI/Controls help/help_actionkey"))
addImageForScreen(4, 16, 236, _INTL("Graphics/UI/Controls help/help_specialkey"))
addLabelForScreen(4, 134, 68, 352, _INTL("Used to open the Pause Menu. Also has various functions depending on context. (Default: Z)"))
addLabelForScreen(4, 134, 196, 352, _INTL("Press to open the Ready Menu, where registered items and available field moves can be used. (Default: D)"))

View File

@@ -265,7 +265,7 @@ class PokemonPokedex_Scene
@sliderbitmap = AnimatedBitmap.new("Graphics/UI/Pokedex/icon_slider")
@typebitmap = AnimatedBitmap.new(_INTL("Graphics/UI/Pokedex/icon_types"))
@shapebitmap = AnimatedBitmap.new("Graphics/UI/Pokedex/icon_shapes")
@hwbitmap = AnimatedBitmap.new("Graphics/UI/Pokedex/icon_hw")
@hwbitmap = AnimatedBitmap.new(_INTL("Graphics/UI/Pokedex/icon_hw"))
@selbitmap = AnimatedBitmap.new("Graphics/UI/Pokedex/icon_searchsel")
@searchsliderbitmap = AnimatedBitmap.new(_INTL("Graphics/UI/Pokedex/icon_searchslider"))
@sprites = {}

View File

@@ -204,9 +204,9 @@ class PokemonPartyPanel < Sprite
end
@hpbgsprite = ChangelingSprite.new(0, 0, viewport)
@hpbgsprite.z = self.z + 1
@hpbgsprite.addBitmap("able", "Graphics/UI/Party/overlay_hp_back")
@hpbgsprite.addBitmap("fainted", "Graphics/UI/Party/overlay_hp_back_faint")
@hpbgsprite.addBitmap("swap", "Graphics/UI/Party/overlay_hp_back_swap")
@hpbgsprite.addBitmap("able", _INTL("Graphics/UI/Party/overlay_hp_back"))
@hpbgsprite.addBitmap("fainted", _INTL("Graphics/UI/Party/overlay_hp_back_faint"))
@hpbgsprite.addBitmap("swap", _INTL("Graphics/UI/Party/overlay_hp_back_swap"))
@ballsprite = ChangelingSprite.new(0, 0, viewport)
@ballsprite.z = self.z + 1
@ballsprite.addBitmap("desel", "Graphics/UI/Party/icon_ball")
@@ -380,7 +380,7 @@ class PokemonPartyPanel < Sprite
return if @pokemon.egg?
# "Lv" graphic
pbDrawImagePositions(@overlaysprite.bitmap,
[["Graphics/UI/Party/overlay_lv", 20, 70, 0, 0, 22, 14]])
[[_INTL("Graphics/UI/Party/overlay_lv"), 20, 70, 0, 0, 22, 14]])
# Level number
pbSetSmallFont(@overlaysprite.bitmap)
pbDrawTextPositions(@overlaysprite.bitmap,

View File

@@ -328,7 +328,7 @@ class PokemonSummary_Scene
status = GameData::Status.count
end
if status >= 0
imagepos.push(["Graphics/UI/statuses", 124, 100, 0, 16 * status, 44, 16])
imagepos.push([_INTL("Graphics/UI/statuses"), 124, 100, 0, 16 * status, 44, 16])
end
# Show Pokérus cured icon
if @pokemon.pokerusStage == 2
@@ -712,7 +712,7 @@ class PokemonSummary_Scene
move = @pokemon.moves[i]
if move
type_number = GameData::Type.get(move.display_type(@pokemon)).icon_position
imagepos.push(["Graphics/UI/types", 248, yPos - 4, 0, type_number * 28, 64, 28])
imagepos.push([_INTL("Graphics/UI/types"), 248, yPos - 4, 0, type_number * 28, 64, 28])
textpos.push([move.name, 316, yPos, :left, moveBase, moveShadow])
if move.total_pp > 0
textpos.push([_INTL("PP"), 342, yPos + 32, :left, moveBase, moveShadow])
@@ -778,7 +778,7 @@ class PokemonSummary_Scene
end
if move
type_number = GameData::Type.get(move.display_type(@pokemon)).icon_position
imagepos.push(["Graphics/UI/types", 248, yPos - 4, 0, type_number * 28, 64, 28])
imagepos.push([_INTL("Graphics/UI/types"), 248, yPos - 4, 0, type_number * 28, 64, 28])
textpos.push([move.name, 316, yPos, :left, moveBase, moveShadow])
if move.total_pp > 0
textpos.push([_INTL("PP"), 342, yPos + 32, :left, moveBase, moveShadow])

View File

@@ -84,13 +84,13 @@ class Window_PokemonBag < Window_DrawableCommand
if @bag.registered?(item)
pbDrawImagePositions(
self.contents,
[["Graphics/UI/Bag/icon_register", rect.x + rect.width - 72, rect.y + 8, 0, 0, -1, 24]]
[[_INTL("Graphics/UI/Bag/icon_register"), rect.x + rect.width - 72, rect.y + 8, 0, 0, -1, 24]]
)
showing_register_icon = true
elsif pbCanRegisterItem?(item)
pbDrawImagePositions(
self.contents,
[["Graphics/UI/Bag/icon_register", rect.x + rect.width - 72, rect.y + 8, 0, 24, -1, 24]]
[[_INTL("Graphics/UI/Bag/icon_register"), rect.x + rect.width - 72, rect.y + 8, 0, 24, -1, 24]]
)
showing_register_icon = true
end

View File

@@ -12,7 +12,7 @@ class PokemonJukebox_Scene
@viewport.z = 99999
@sprites = {}
@sprites["background"] = IconSprite.new(0, 0, @viewport)
@sprites["background"].setBitmap("Graphics/UI/jukebox_bg")
@sprites["background"].setBitmap(_INTL("Graphics/UI/jukebox_bg"))
@sprites["header"] = Window_UnformattedTextPokemon.newWithSize(
_INTL("Jukebox"), 2, -18, 128, 64, @viewport
)

View File

@@ -16,12 +16,12 @@ class PokemonTrainerCard_Scene
else
addBackgroundPlane(@sprites, "bg", "Trainer Card/bg", @viewport)
end
cardexists = pbResolveBitmap("Graphics/UI/Trainer Card/card_f")
cardexists = pbResolveBitmap(_INTL("Graphics/UI/Trainer Card/card_f"))
@sprites["card"] = IconSprite.new(0, 0, @viewport)
if $player.female? && cardexists
@sprites["card"].setBitmap("Graphics/UI/Trainer Card/card_f")
@sprites["card"].setBitmap(_INTL("Graphics/UI/Trainer Card/card_f"))
else
@sprites["card"].setBitmap("Graphics/UI/Trainer Card/card")
@sprites["card"].setBitmap(_INTL("Graphics/UI/Trainer Card/card"))
end
@sprites["overlay"] = BitmapSprite.new(Graphics.width, Graphics.height, @viewport)
pbSetSystemFont(@sprites["overlay"].bitmap)

View File

@@ -1451,7 +1451,7 @@ class PokemonStorageScene
elsif pokemon.female?
textstrings.push([_INTL(""), 148, 14, :left, Color.new(248, 56, 32), Color.new(224, 152, 144)])
end
imagepos.push(["Graphics/UI/Storage/overlay_lv", 6, 246])
imagepos.push([_INTL("Graphics/UI/Storage/overlay_lv"), 6, 246])
textstrings.push([pokemon.level.to_s, 28, 240, :left, base, shadow])
if pokemon.ability
textstrings.push([pokemon.ability.name, 86, 312, :center, base, shadow])

View File

@@ -68,7 +68,7 @@ class MoveRelearner_Scene
if moveobject
moveData = GameData::Move.get(moveobject)
type_number = GameData::Type.get(moveData.display_type(@pokemon)).icon_position
imagepos.push(["Graphics/UI/types", 12, yPos - 4, 0, type_number * 28, 64, 28])
imagepos.push([_INTL("Graphics/UI/types"), 12, yPos - 4, 0, type_number * 28, 64, 28])
textpos.push([moveData.name, 80, yPos, :left, Color.new(248, 248, 248), Color.black])
textpos.push([_INTL("PP"), 112, yPos + 32, :left, Color.new(64, 64, 64), Color.new(176, 176, 176)])
if moveData.total_pp > 0