public override void OnExit(GameTime gameTime) { KeyboardEventDispatcher.OnKeyPressed -= OnKeyPressed; foreach (var button in buttons) { button.OnButtonPress -= MenuScreen_OnButtonPress; button.OnMouseEntry -= MenuScreen_OnMouseEntry; button.Dispose(); } btnUp.Dispose(); btnDown.Dispose(); buttons = null; foreach (var bt in buttonsText) { bt.Dispose(); } buttonsText = null; foreach (var t in tPanels) { t.Dispose(); } tPanels = null; wr.Dispose(); seHover.Dispose(); }
public void Dispose() { WidgetBase.Dispose(); icon.Dispose(); rectHealthBack.Dispose(); rectHealthFore.Dispose(); txtName.Dispose(); combatData.Dispose(); uiCStats.Dispose(); }
public override void OnExit(GameTime gameTime) { KeyboardEventDispatcher.OnKeyPressed -= KeyboardEventDispatcher_OnKeyPressed; bFinish.OnButtonPress -= bFinish_OnButtonPress; tInput.OnTextChanged -= tInput_OnTextChanged; tInput.Dispose(); wr.Dispose(); txtLogin.Dispose(); wUsername.Dispose(); bFinish.Dispose(); }
public override void OnExit(GameTime gameTime) { if (wr != null) { button.Dispose(); text.Dispose(); wr.Dispose(); wr = null; } font = null; tLoad.Dispose(); tPixel.Dispose(); }
public void Dispose() { btnPhysical.Dispose(); btnImpact.Dispose(); }