/// <summary> /// Draws the control. /// </summary> protected override void Draw() { Thread.Sleep(33); MouseHelper.MouseStateCurrent = Mouse.GetState(); KeyboardHelper.UpdateKeyboardStatus(); ActiveMagicEditor.Update(new GameTime()); KeyboardHelper.PlayerStateLast = Keyboard.GetState(); MouseHelper.MouseStateLast = MouseHelper.MouseStateCurrent; // Clear to the default control background color. Color backColor = new Color(BackColor.R, BackColor.G, BackColor.B); GraphicsDevice.Clear(backColor); g.Begin(); ActiveMagicEditor.Draw(g); g.End(); }
public override void Draw(CustomSpriteBatch g) { ActiveMagicEditor.Draw(g); }