Esempio n. 1
0
 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;
 }
Esempio n. 3
0
 public override void Dispose()
 {
     for (int i = 0; i < buttons.Length; i++)
     {
         buttons[i].Dispose();
     }
     textFont.Dispose();
     arrowFont.Dispose();
     title.Dispose();
     titleFont.Dispose();
 }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 public override void Dispose()
 {
     base.Dispose();
     infoWidget.Dispose();
 }
 public override void Dispose()
 {
     keyFont.Dispose();
     base.Dispose();
     statusWidget.Dispose();
 }