mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes new pokemon sprites not displaying in pokeradar
This commit is contained in:
@@ -61,9 +61,9 @@ class PokeRadar_UI
|
|||||||
|
|
||||||
def addPokemonIcon(species, blackened = false, rare=false)
|
def addPokemonIcon(species, blackened = false, rare=false)
|
||||||
pokemonId=dexNum(species)
|
pokemonId=dexNum(species)
|
||||||
iconId = _INTL("icon{1}", pokemonId)
|
iconId = _INTL("{1}", species)
|
||||||
|
|
||||||
pokemonBitmap = pbCheckPokemonIconFiles(getDexNumberForSpecies(pokemonId))
|
pokemonBitmap = pbCheckPokemonIconFiles(species)
|
||||||
|
|
||||||
if rare
|
if rare
|
||||||
outlineSprite = IconSprite.new(@current_x, @current_y)
|
outlineSprite = IconSprite.new(@current_x, @current_y)
|
||||||
|
|||||||
@@ -118,12 +118,12 @@ def pbPokemonIconFile(pokemon)
|
|||||||
return bitmapFileName
|
return bitmapFileName
|
||||||
end
|
end
|
||||||
|
|
||||||
def pbCheckPokemonIconFiles(speciesNum, egg = false, dna = false)
|
def pbCheckPokemonIconFiles(speciesID, egg = false, dna = false)
|
||||||
if egg
|
if egg
|
||||||
bitmapFileName = sprintf("Graphics/Icons/iconEgg")
|
bitmapFileName = sprintf("Graphics/Icons/iconEgg")
|
||||||
return pbResolveBitmap(bitmapFileName)
|
return pbResolveBitmap(bitmapFileName)
|
||||||
else
|
else
|
||||||
bitmapFileName = sprintf("Graphics/Icons/icon%03d", speciesNum)
|
bitmapFileName = _INTL("Graphics/Pokemon/Icons/{1}", speciesID)
|
||||||
ret = pbResolveBitmap(bitmapFileName)
|
ret = pbResolveBitmap(bitmapFileName)
|
||||||
return ret if ret
|
return ret if ret
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user