示例#1
0
 /// <summary>
 /// Draw all the control in the screen
 /// </summary>
 public void Draw(SpriteBatch spriteBatch)
 {
     foreach (ControlBase control in controls.Keys)
     {
         if (control != GUIControl)
         {
             control.Draw(spriteBatch);
         }
     }
     // The gui will always be in the front
     GUIControl.Draw(spriteBatch);
 }