예제 #1
0
        public void Draw(ref BigProgressBarInfo info, SpriteBatch spriteBatch)
        {
            Texture2D texture2D    = TextureAssets.NpcHeadBoss[this._headIndex].Value;
            Rectangle barIconFrame = texture2D.Frame(1, 1, 0, 0, 0, 0);

            BigProgressBarHelper.DrawFancyBar(spriteBatch, this._lifePercentToShow, texture2D, barIconFrame);
        }
예제 #2
0
        public void Draw(BigProgressBarInfo info, SpriteBatch spriteBatch)
        {
            Texture2D value        = TextureAssets.NpcHeadBoss[_headIndex].Value;
            Rectangle barIconFrame = value.Frame();

            BigProgressBarHelper.DrawFancyBar(spriteBatch, _lifePercentToShow, value, barIconFrame);
        }
예제 #3
0
        public void Draw(ref BigProgressBarInfo info, SpriteBatch spriteBatch)
        {
            int       bossHeadTexture = NPCID.Sets.BossHeadTextures[491];
            Texture2D texture2D       = TextureAssets.NpcHeadBoss[bossHeadTexture].get_Value();
            Rectangle barIconFrame    = texture2D.Frame(1, 1, 0, 0, 0, 0);

            BigProgressBarHelper.DrawFancyBar(spriteBatch, this._lifePercentToShow, texture2D, barIconFrame);
        }
예제 #4
0
        public void Draw(BigProgressBarInfo info, SpriteBatch spriteBatch)
        {
            int       num          = NPCID.Sets.BossHeadTextures[396];
            Texture2D value        = TextureAssets.NpcHeadBoss[num].Value;
            Rectangle barIconFrame = value.Frame();

            BigProgressBarHelper.DrawFancyBar(spriteBatch, _lifePercentToShow, value, barIconFrame);
        }