mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Created folder Graphics/UI, renamed some UI graphics
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# NOTE: The order these shapes are registered are the order they are listed in
|
||||
# the Pokédex search screen.
|
||||
# "Graphics/Pictures/Pokedex/icon_shapes.png" contains icons for these
|
||||
# "Graphics/UI/Pokedex/icon_shapes.png" contains icons for these
|
||||
# shapes.
|
||||
module GameData
|
||||
class BodyShape
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# NOTE: "Graphics/Pictures/statuses.png" also contains icons for being fainted
|
||||
# and for having Pokérus, in that order, at the bottom of the graphic.
|
||||
# "Graphics/Pictures/Battle/icon_statuses.png" also contains an icon for
|
||||
# bad poisoning (toxic), at the bottom of the graphic.
|
||||
# NOTE: "Graphics/UI/statuses.png" also contains icons for being fainted and for
|
||||
# having Pokérus, in that order, at the bottom of the graphic.
|
||||
# "Graphics/UI/Battle/icon_statuses.png" also contains an icon for bad
|
||||
# poisoning (toxic), at the bottom of the graphic.
|
||||
# Both graphics automatically handle varying numbers of defined statuses,
|
||||
# as long as their extra icons remain at the bottom of them.
|
||||
module GameData
|
||||
|
||||
@@ -67,16 +67,16 @@ module GameData
|
||||
return nil if !item_data
|
||||
name_base = (item_data.is_mail?) ? "mail" : "item"
|
||||
# Check for files
|
||||
ret = sprintf("Graphics/Pictures/Party/icon_%s_%s", name_base, item_data.id)
|
||||
ret = sprintf("Graphics/UI/Party/icon_%s_%s", name_base, item_data.id)
|
||||
return ret if pbResolveBitmap(ret)
|
||||
return sprintf("Graphics/Pictures/Party/icon_%s", name_base)
|
||||
return sprintf("Graphics/UI/Party/icon_%s", name_base)
|
||||
end
|
||||
|
||||
def self.mail_filename(item)
|
||||
item_data = self.try_get(item)
|
||||
return nil if !item_data
|
||||
# Check for files
|
||||
ret = sprintf("Graphics/Pictures/Mail/mail_%s", item_data.id)
|
||||
ret = sprintf("Graphics/UI/Mail/mail_%s", item_data.id)
|
||||
return pbResolveBitmap(ret) ? ret : nil
|
||||
end
|
||||
|
||||
|
||||
@@ -71,12 +71,12 @@ module GameData
|
||||
end
|
||||
|
||||
def self.map_icon_filename(tr_type)
|
||||
return self.check_file(tr_type, "Graphics/Pictures/mapPlayer")
|
||||
return self.check_file(tr_type, "Graphics/UI/Town Map/player_")
|
||||
end
|
||||
|
||||
def self.player_map_icon_filename(tr_type)
|
||||
outfit = ($player) ? $player.outfit : 0
|
||||
return self.check_file(tr_type, "Graphics/Pictures/mapPlayer", sprintf("_%d", outfit))
|
||||
return self.check_file(tr_type, "Graphics/UI/Town Map/player_", sprintf("_%d", outfit))
|
||||
end
|
||||
|
||||
def initialize(hash)
|
||||
|
||||
Reference in New Issue
Block a user