public MissionPropertyInspector(MissionTreeExplorer treeExplorer) : base(treeExplorer) { _listControl = new ReorderableListControl(ReorderableListFlags.DisableDuplicateCommand | ReorderableListFlags.ShowIndices); _listControl.ItemInserted += OnItemInsert; _listControl.ItemRemoving += OnItemRemoving; Gate currentGate = treeExplorer.CurrentSelectedItem != null ? (treeExplorer.CurrentSelectedItem as Mission).Gate : null; _gateDrawer = new GatePropertyView(currentGate, true); }
public WorldPropertyInspector(WorldTreeExplorer treeExplorer) : base(treeExplorer) { _subWorldListControl = new ReorderableListControl(ReorderableListFlags.DisableDuplicateCommand | ReorderableListFlags.ShowIndices); _subWorldListControl.ItemInserted += OnInsertSubworld; _subWorldListControl.ItemRemoving += OnRemoveSubworld; _scoreListControl = new ReorderableListControl(ReorderableListFlags.DisableDuplicateCommand | ReorderableListFlags.ShowIndices); _scoreListControl.ItemInserted += OnInsertScore; _scoreListControl.ItemRemoving += OnRemoveScore; _missionListControl = new ReorderableListControl(ReorderableListFlags.DisableDuplicateCommand | ReorderableListFlags.ShowIndices); _missionListControl.ItemInserted += OnInsertMission; _missionListControl.ItemRemoving += OnRemoveMission; Gate currentGate = treeExplorer.CurrentSelectedItem != null ? (treeExplorer.CurrentSelectedItem as World).Gate : null; _gateView = new GatePropertyView(currentGate, true); }