private void AddNewSelectedNode(ISelectedNode newNode) { _lastSelected = SelectionProcess.NewNode(newNode.SelectedNode) .CurrentHistory(_history) .LastSelectedNode(_lastSelected) .Run(); }
private void ChildIsOpen(ISelectedNode args) { if (args.SelectedNode == _myGOUIBranch.LastSelected) { NodeIsSelected = !NodeIsSelected; } }
private bool IfMultiSelectPressed(ISelectedNode newNode) { if (_multiSelectSystem.MultiSelectPressed(_history, newNode.SelectedNode)) { _lastSelected = newNode.SelectedNode; return(true); } return(false); }
private void SaveLastSelected(ISelectedNode args) { _lastSelected = (UINode)args.SelectedNode; if (args.SelectedNode.IsNull()) { return; } if (_lastSelected.InGameObject.IsNotNull()) { _lastSelectedGO = _lastSelected.InGameObject; } }
private void SaveSelected(ISelectedNode args) { if (args.SelectedNode.IsNull()) { return; } if (args.SelectedNode.MyBranch.NotEqualTo(this)) { return; } LastSelected = NodeSearch.Find(args.SelectedNode) .DefaultReturn(LastSelected) .RunOn(ThisGroupsUiNodes); }
//Main private void SetSelected(ISelectedNode newNode) { if (newNode.SelectedNode.IsNull() || !CanStart) { return; } if (newNode.SelectedNode.CanNotStoreNodeInHistory) { return; } if (IfMultiSelectPressed(newNode)) { return; } if (_multiSelectSystem.MultiSelectActive) { ClearAllHistory(); } AddNewSelectedNode(newNode); }
private void SetSelected(ISelectedNode args) => Selected = args.SelectedNode;