public static ComponentGroupListView CreateList(ComponentSystemBase system, List <TreeViewState> states, List <string> stateNames, SetEntityListSelection entityQuerySelectionCallback, WorldSelectionGetter worldSelectionGetter) { var state = GetStateForSystem(system, states, stateNames); return(new ComponentGroupListView(state, system, entityQuerySelectionCallback, worldSelectionGetter)); }
public ComponentGroupListView(TreeViewState state, ComponentSystemBase system, SetEntityListSelection entityListSelectionCallback, WorldSelectionGetter worldSelectionGetter) : base(state) { this.getWorldSelection = worldSelectionGetter; this.entityListSelectionCallback = entityListSelectionCallback; selectedSystem = system; rowHeight += 1; showAlternatingRowBackgrounds = true; Reload(); }