private void DrawButtons() { if (BtnClose != null && CanClose == true) { BtnClose.Draw(EngineCore.SpriteBatch, mAlpha); } if (FormState != EFormState.Minimized && FormState != EFormState.Minimizing && BtnMini != null && CanMini == true) { BtnMini.Draw(EngineCore.SpriteBatch, mAlpha); } if (BtnRestore != null && FormState != EFormState.Restored && FormState != EFormState.Restoring) { BtnRestore.Draw(EngineCore.SpriteBatch, mAlpha); } else if (BtnMaxi != null && CanMaxi == true) { BtnMaxi.Draw(EngineCore.SpriteBatch, mAlpha); } }
private void DrawButtons() { // f**k, switch Maximize & Restore.. // Restore => Minimize to normal // Maximize => Minimize/normal to Max if (BtnClose != null && CanClose == true) { BtnClose.Draw(EngineCore.SpriteBatch, mAlpha); } if (FormState != EFormState.Minimized && FormState != EFormState.Minimizing && BtnMini != null && CanMini == true) { BtnMini.Draw(EngineCore.SpriteBatch, mAlpha); } if (BtnRestore != null && FormState != EFormState.Restored && FormState != EFormState.Restoring) { BtnRestore.Draw(EngineCore.SpriteBatch, mAlpha); } else if (FormState != EFormState.Maximized && FormState != EFormState.Maximizing && BtnMaxi != null && CanMaxi == true) { BtnMaxi.Draw(EngineCore.SpriteBatch, mAlpha); } }