Esempio n. 1
0
 public override void Dispose()
 {
     ui.UnregisterForHover(sizeSlider);
     highlight.Dispose();
     sizeSlider.Dispose();
     uiElem.Dispose();
 }
Esempio n. 2
0
        public override void Dispose()
        {
            //ALT: Maybe don't disable, or change implementation of disable to not delete currently visible buttons
            Disable();
            foreach (var pair in tileTypes)
            {
                pair.Key.Toggled -= OnTileTypeToggled;
                ui.SelectionBar.RemoveChild(pair.Key);
            }
            tileTypes = null;

            highlight.Dispose();
            checkBoxes.Dispose();
            sizeSlider.Dispose();
            uiElem.Dispose();
        }