Beispiel #1
0
    public void RemoveAll()
    {
        foreach (var section in _childSections)
        {
            section.RemoveAll();
        }
        _childSections.Clear();

        foreach (var toggle in _toggles)
        {
            _plugin.RemoveToggle(toggle);
        }
        _toggles.Clear();

        foreach (var slider in _sliders)
        {
            _plugin.RemoveSlider(slider);
        }
        _sliders.Clear();

        foreach (var popup in _popups)
        {
            popup.popup.visible = false;
            _plugin.RemovePopup(popup);
        }
        _popups.Clear();

        foreach (var button in _buttons)
        {
            _plugin.RemoveButton(button);
        }
        _buttons.Clear();

        foreach (var button in _textFields)
        {
            _plugin.RemoveTextField(button);
        }
        _textFields.Clear();

        foreach (var spacer in _spacers)
        {
            _plugin.RemoveSpacer(spacer);
        }
        _spacers.Clear();
    }