Beispiel #1
0
        public void MakeSettings(UIHelperBase helperBase)
        {
            UIHelper    helper    = helperBase as UIHelper;
            UIComponent container = helper.self as UIComponent;

            _ui_always                          = container.AddUIComponent <UICheckboxDropDownExt>();
            _ui_always.Title                    = "Always";
            _ui_always.selectedItems            = Split(loaded_always);
            _ui_always.eventAfterDropdownClose += (_) => PrefabUtils.CacheAlways(_ui_always.selectedItems);
            PrefabUtils.CacheAlways(_ui_always.selectedItems);


            _ui_never                          = container.AddUIComponent <UICheckboxDropDownExt>();
            _ui_never.Title                    = "Never";
            _ui_never.selectedItems            = Split(loaded_never);
            _ui_never.eventAfterDropdownClose += (_) => PrefabUtils.CacheNever(_ui_never.selectedItems);
            PrefabUtils.CacheNever(_ui_never.selectedItems);

            helper.AddButton("Save", Save);
        }