Example #1
0
        private static void Initialize()
        {
            if (initialized)
            {
                return;
            }

            initialized = true;

            if (grid == null)
            {
                gridDefinition = new EditorGridDefinition();
                gridDefinition.AddColumn("State", 85);
                gridDefinition.AddColumn("Object", 175);
                gridDefinition.AddColumn("Action", 85);
                gridDefinition.AddColumn("Value", 175);
                gridDefinition.RowButtons = GridButton.All;

                grid = new EditorGrid.EditorGrid(gridDefinition);
            }

            stateNames    = Enum.GetNames(typeof(UIActionState));
            uiActionTypes = BuildConfig.TypeUtil.GetAllTypesOf <UIAction>().ToArray();
            uiActionNames = uiActionTypes.Select(x => x.Name).ToArray();
        }
Example #2
0
        private void OnEnable()
        {
            if (definesGrid == null)
            {
                definesGridDefinition = new EditorGridDefinition();
                definesGridDefinition.AddColumn("Define", 200);
                definesGridDefinition.AddColumn("Enabled", 75);
                definesGridDefinition.RowButtons = GridButton.None;
                definesGridDefinition.DrawHeader = false;

                definesGrid = new EditorGrid.EditorGrid(definesGridDefinition);
            }

            this.ConfigureLostDefines();
        }
Example #3
0
        private void OnEnable()
        {
            if (definesGrid == null)
            {
                definesGridDefinition = new EditorGridDefinition();
                definesGridDefinition.AddColumn("Define", 200);
                definesGridDefinition.RowButtons = GridButton.All;
                definesGridDefinition.DrawHeader = false;

                definesGrid = new EditorGrid(definesGridDefinition);
            }
        }