예제 #1
0
        public static SKBitmap GetBallSprite(int ball)
        {
            string resource = SpriteName.GetResourceStringBall(ball);

            return(SpriteBuilder.LoadBitmapResource("ball." + resource) ?? SpriteBuilder.LoadBitmapResource("ball._ball4")); // Poké Ball (default)
        }
예제 #2
0
파일: SpriteUtil.cs 프로젝트: sukitpr/PKHeX
        public static Image GetBallSprite(int ball)
        {
            string resource = SpriteName.GetResourceStringBall(ball);

            return((Bitmap?)Resources.ResourceManager.GetObject(resource) ?? Resources._ball4); // Poké Ball (default)
        }
예제 #3
0
 protected virtual string GetSpriteAll(int species, int form, int gender, bool shiny, int generation) => SpriteName.GetResourceStringSprite(species, form, gender, generation, shiny);