Exemplo n.º 1
0
        void mainGameComponent_Drawed(LayerType layerType)
        {
            switch (layerType)
            {
            case LayerType.AfterMarkEffect:
                userScoreListComponent.Draw();
                break;

            case LayerType.AfterMark:
                filterSprite.Draw();
                break;

            case LayerType.AfterInterface:
                if (gameRule.ItemAvailable)
                {
                    itemOverrayComponent.Draw();
                    itemManagerComponent.Draw();
                }

                if (paused)
                {
                    black.Hidden = false;
                    black.Alpha  = 0.5f;
                    black.Update();
                    black.Draw();
                    black.Hidden = true;
                    black.Alpha  = 0;
                    black.Update();
                }

                break;
            }
        }
Exemplo n.º 2
0
 protected override void Draw()
 {
     spriteObject.Draw();
 }
Exemplo n.º 3
0
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     sprite.Draw(spriteBatch);
 }
Exemplo n.º 4
0
 public virtual void Draw(SpriteBatch spriteBatch, CityUIBlackboard blackboard)
 {
     sprite.Draw(spriteBatch);
 }