コード例 #1
0
        public override void LoadContent()
        {
            base.LoadContent();
            Background.LoadContent();
            pokemonImage.LoadContent();

            int maxSize = Math.Max(pokemonImage.Width, pokemonImage.Height);

            if (maxSize > 100)
            {
                pokemonImage.Scale = Vector2.One * 100.0f / maxSize;
            }

            pokemonImage.MoveMid(Position + new Vector2(75, 100));

            pokemonName.LoadContent();
            pokemonLevel.LoadContent();
            hpbar.LoadContent();
            hpStatus.LoadContent();
            expbar.LoadContent();

            for (int i = 0; i < 6; ++i)
            {
                pokemonStats[i].LoadContent();
            }
        }
コード例 #2
0
        public override void LoadContent()
        {
            base.LoadContent();
            background.LoadContent();
            pokemonName.LoadContent();
            pokemonLevel.LoadContent();
            hpbar.LoadContent();

            if (mine)
            {
                hpStatus.LoadContent();
                expbar.LoadContent();
            }
        }