예제 #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();
        }
예제 #2
0
        // Use this for initialization
        static EditorGridTest()
        {
            var gridDefinition = new EditorGridDefinition();

            for (int i = 0; i < ColumnCount; i++)
            {
                gridDefinition.AddColumn("Column " + (i + 1), 100);
            }

            grid = new EditorGrid(gridDefinition);
        }
예제 #3
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();
        }
 public BeginGridScope(EditorGrid grid)
 {
     this.grid = grid;
     this.grid.BeginGrid();
 }
예제 #5
0
 public BeginGridRowScope(EditorGrid grid)
 {
     this.grid = grid;
     this.grid.BeginRow();
 }