Beispiel #1
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     if (visible)
     {
         btn.Draw(spriteBatch);
     }
 }
Beispiel #2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (visible)
            {
                btn_Text.Draw(spriteBatch);
                btn_Arrow.Draw(spriteBatch);

                if (btn_Arrow.pressed)
                {
                    for (int i = 0; i < btn_Enums.Count; i++)
                    {
                        btn_Enums[i].Draw(spriteBatch);
                    }
                }

                DrawEnd(spriteBatch);
            }
        }