Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def drawShadowPoke(bitmap)
- colorlayer=Bitmap.new(bitmap.width,bitmap.height)
- shadowcolor=Color.new(67,0,255)
- colorlayer.fill_rect(colorlayer.rect, shadowcolor)
- bitmap.blt(0,0,colorlayer,colorlayer.rect,113)
- shadowcolor.alpha=113
- blankcolor=Color.new(0,0,0,0)
- for x in 0...bitmap.width
- for y in 0...bitmap.height
- if bitmap.get_pixel(x,y)==shadowcolor
- bitmap.set_pixel(x,y,blankcolor)
- end
- end
- end
- end
- alias _shadow_pbLoadPokemonBitmapSpecies pbLoadPokemonBitmapSpecies
- def pbLoadPokemonBitmapSpecies(pokemon, species, back=false)
- ret=_shadow_pbLoadPokemonBitmapSpecies(pokemon, species, back)
- if (pokemon.isShadow? rescue false)
- animatedBitmap=ret
- copiedBitmap=animatedBitmap.copy
- animatedBitmap.dispose
- copiedBitmap.each {|bitmap|
- drawShadowPoke(bitmap)
- }
- ret=copiedBitmap
- end
- return ret
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement