void DisposeDescWidget() { if (descWidget != null) { descWidget.Dispose(); descWidget = null; } }
public override void Dispose() { font.Dispose(); posFont.Dispose(); fpsText.Dispose(); api.DeleteTexture(ref posTex); hackStates.Dispose(); game.Events.ChatFontChanged -= ChatFontChanged; }
public override void Dispose() { for (int i = 0; i < buttons.Length; i++) { buttons[i].Dispose(); } textFont.Dispose(); arrowFont.Dispose(); title.Dispose(); titleFont.Dispose(); }
protected override void WidgetSelected(Widget widget) { ButtonWidget button = widget as ButtonWidget; if (selectedWidget == widget || button == null || button == widgets[widgets.Length - 1]) { return; } selectedWidget = button; if (descWidget != null) { descWidget.Dispose(); } if (button == null) { return; } string text = descriptions[Array.IndexOf <Widget>(widgets, button)]; descWidget = ChatTextWidget.Create(game, 0, 100, text, Anchor.Centre, Anchor.Centre, regularFont); }
public override void Dispose() { base.Dispose(); infoWidget.Dispose(); }
public override void Dispose() { keyFont.Dispose(); base.Dispose(); statusWidget.Dispose(); }