def drawItem(index,count,rect)
return if index >= self.top_row + self.page_item_max
rect=drawCursor(index,rect)
indexNumber=@commands[index][4]
species=@commands[index][0]
if $Trainer.seen[species]
@sel=AnimatedBitmap.new(sprintf("Graphics/Pictures/pokedexarrow2")) <--- this
@pokeicon=AnimatedBitmap.new(sprintf("Graphics/Icons/icon%03d",indexNumber))
if $Trainer.owned[species]
pbCopyBitmap(self.contents,@sel.bitmap,rect.x-50,rect.y+4) <--- this
pbCopyBitmap(self.contents,@pokeballOwned.bitmap,rect.x+30,rect.y+10)
pbCopyBitmap2(self.contents,@pokeicon.bitmap,rect.x-50,rect.y-16)
else
pbCopyBitmap2(self.contents,@pokeicon.bitmap,rect.x-50,rect.y-16)
pbCopyBitmap(self.contents,@pokeballSeen.bitmap,rect.x-6,rect.y+8) <--- this
end
text=_ISPRINTF("{1:03d}{2:s} {3:s}",indexNumber," ",@commands[index][1])
else
@sel2=AnimatedBitmap.new(sprintf("Graphics/Pictures/pokedexarrow")) <--- this
pbCopyBitmap(self.contents,@sel2.bitmap,rect.x-50,rect.y+4) <--- this
text=_ISPRINTF("{1:03d} ???",indexNumber)
end
pbDrawShadowText(self.contents,rect.x+62,rect.y+4,rect.width,rect.height,text,
self.baseColor,self.shadowColor)
overlapCursor=drawCursor(index-14,itemRect(index-1))#overlapCursor=drawCursor(index-1,itemRect(index-1))
end
end