예제 #1
0
 void DisposeDescWidget()
 {
     if (descWidget != null)
     {
         descWidget.Dispose();
         descWidget = null;
     }
 }
예제 #2
0
 public override void Dispose()
 {
     font.Dispose();
     posFont.Dispose();
     fpsText.Dispose();
     api.DeleteTexture(ref posTex);
     hackStates.Dispose();
     game.Events.ChatFontChanged -= ChatFontChanged;
 }
예제 #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();
 }
예제 #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);
        }
예제 #5
0
 public override void Dispose()
 {
     base.Dispose();
     infoWidget.Dispose();
 }
 public override void Dispose()
 {
     keyFont.Dispose();
     base.Dispose();
     statusWidget.Dispose();
 }