Beispiel #1
0
        public static ComponentGroupListView CreateList(ComponentSystemBase system, List <TreeViewState> states, List <string> stateNames,
                                                        SetComponentGroupSelection componentGroupSelectionCallback, WorldSelectionGetter worldSelectionGetter)
        {
            var state = GetStateForSystem(system, states, stateNames);

            return(new ComponentGroupListView(state, system, componentGroupSelectionCallback, worldSelectionGetter));
        }
Beispiel #2
0
 public ComponentGroupListView(TreeViewState state, ComponentSystemBase system, SetComponentGroupSelection componentGroupSelectionCallback, WorldSelectionGetter worldSelectionGetter) : base(state)
 {
     this.getWorldSelection = worldSelectionGetter;
     this.componentGroupSelectionCallback = componentGroupSelectionCallback;
     selectedSystem = system;
     rowHeight     += 1;
     showAlternatingRowBackgrounds = true;
     Reload();
 }