public EntityListView(TreeViewState state, ComponentGroup componentGroup, EntitySelectionCallback entitySelectionCallback, WorldSelectionGetter getWorldSelection) : base(state) { this.setEntitySelection = entitySelectionCallback; this.getWorldSelection = getWorldSelection; SelectedComponentGroup = componentGroup; Reload(); }
internal SystemListView(TreeViewState state, MultiColumnHeader header, SystemSelectionCallback systemSelectionCallback, WorldSelectionGetter worldSelectionGetter) : base(state, header) { this.getWorldSelection = worldSelectionGetter; this.systemSelectionCallback = systemSelectionCallback; columnIndexForTreeFoldouts = 1; Reload(); }
internal SystemListView(TreeViewState state, MultiColumnHeader header, SystemSelectionCallback systemSelectionCallback, WorldSelectionGetter worldSelectionGetter, ShowInactiveSystemsGetter showInactiveSystemsGetter) : base(state, header) { this.getWorldSelection = worldSelectionGetter; this.systemSelectionCallback = systemSelectionCallback; this.getShowInactiveSystems = showInactiveSystemsGetter; columnIndexForTreeFoldouts = 1; RebuildNodes(); }
public WorldPopup(WorldSelectionGetter getWorld, WorldSelectionSetter setWorld, ShowInactiveSystemsGetter getShowSystems, GenericMenu.MenuFunction setShowSystems) { getWorldSelection = getWorld; setWorldSelection = setWorld; getShowInactiveSystems = getShowSystems; setShowInactiveSystems = setShowSystems; }
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(); }
public WorldPopup(WorldSelectionGetter getWorld, WorldSelectionSetter setWorld, ShowInactiveSystemsGetter getShowSystems, GenericMenu.MenuFunction setShowSystems, Func <bool> getShowAllWorlds, Action <bool> setShowAllWorlds) { getWorldSelection = getWorld; setWorldSelection = setWorld; getShowInactiveSystems = getShowSystems; setShowInactiveSystems = setShowSystems; this.getShowAllWorlds = getShowAllWorlds; this.setShowAllWorlds = setShowAllWorlds; }
public EntityListView(TreeViewState state, EntityListQuery entityQuery, EntitySelectionCallback entitySelectionCallback, WorldSelectionGetter getWorldSelection, SystemSelectionGetter getSystemSelection) : base(state) { this.setEntitySelection = entitySelectionCallback; this.getWorldSelection = getWorldSelection; this.getSystemSelection = getSystemSelection; selectedEntityQuery = entityQuery; rows = new EntityArrayListAdapter(); getNewSelectionOverride = (item, selection, shift) => new List <int>() { item.id }; Reload(); }
public EntityListView(TreeViewState state, EntityListQuery entityQuery, EntitySelectionCallback entitySelectionCallback, WorldSelectionGetter getWorldSelection, SystemSelectionGetter getSystemSelection, ChunkArrayAssignmentCallback setChunkArray) : base(state, new MultiColumnHeader(CreateState())) { this.setEntitySelection = entitySelectionCallback; this.getWorldSelection = getWorldSelection; this.getSystemSelection = getSystemSelection; this.setChunkArray = setChunkArray; selectedEntityQuery = entityQuery; rows = new EntityArrayListAdapter(); getNewSelectionOverride = (item, selection, shift) => new List <int>() { item.id }; showAlternatingRowBackgrounds = true; Reload(); }
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 static SystemListView CreateList(List <TreeViewState> states, List <string> stateNames, SystemSelectionCallback systemSelectionCallback, WorldSelectionGetter worldSelectionGetter, ShowInactiveSystemsGetter showInactiveSystemsGetter) { var state = GetStateForWorld(worldSelectionGetter(), states, stateNames); var header = new MultiColumnHeader(GetHeaderState()); return(new SystemListView(state, header, systemSelectionCallback, worldSelectionGetter, showInactiveSystemsGetter)); }
public ComponentTypeFilterUI(SetFilterAction setFilter, WorldSelectionGetter worldSelectionGetter) { getWorldSelection = worldSelectionGetter; this.setFilter = setFilter; }
public ComponentTypeFilterUI(SetFilterAction setFilter, WorldSelectionGetter worldSelectionGetter) { selectedFilterTypes = new HashSet <ComponentType>(new ComponentTypeComparer()); getWorldSelection = worldSelectionGetter; this.setFilter = setFilter; }
public WorldPopup(WorldSelectionGetter getWorld, WorldSelectionSetter setWorld) { getWorldSelection = getWorld; setWorldSelection = setWorld; }