Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public void Dispose()
 {
     WidgetBase.Dispose();
     icon.Dispose();
     rectHealthBack.Dispose();
     rectHealthFore.Dispose();
     txtName.Dispose();
     combatData.Dispose();
     uiCStats.Dispose();
 }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 public override void OnExit(GameTime gameTime)
 {
     if (wr != null)
     {
         button.Dispose();
         text.Dispose();
         wr.Dispose();
         wr = null;
     }
     font = null;
     tLoad.Dispose();
     tPixel.Dispose();
 }
Esempio n. 5
0
 public void Dispose()
 {
     btnPhysical.Dispose();
     btnImpact.Dispose();
 }