Code: |
class Pokemon_Party_Window < Window_Base def initialize(pokemon, index, z_level = 100, mode = nil, data = nil, menu = -1) @pokemon = pokemon @z_level = z_level @icon = Sprite.new @icon.bitmap = RPG::Cache.battler(@pokemon.icon, 0) @icon.z = @z_level + 100 x = -122 y = 197 if index == 0 #Pokémon en tête de rang super(117+x, 15+y, 171, 82) @icon.x = 137+x @icon.y = 30+y end if index == 1 super(245+x, 23+y, 171, 82) @icon.x = 265+x @icon.y = 40+y end if index == 2 super(117+x, 63+y, 171, 82) @icon.x = 137+x @icon.y = 80+y end if index == 3 super(245+x, 71+y, 171, 82) @icon.x = 265+x @icon.y = 88+y end if index == 4 super(117+x, 111+y, 171, 82) @icon.x = 137+x @icon.y = 128+y end if index == 5 super(245+x, 119+y, 171, 82) @icon.x = 265+x @icon.y = 136+y end |
Code: |
#------------------------------------------------------------------------ |