예제 #1
0
 private void AddNewSelectedNode(ISelectedNode newNode)
 {
     _lastSelected = SelectionProcess.NewNode(newNode.SelectedNode)
                     .CurrentHistory(_history)
                     .LastSelectedNode(_lastSelected)
                     .Run();
 }
예제 #2
0
 private void ChildIsOpen(ISelectedNode args)
 {
     if (args.SelectedNode == _myGOUIBranch.LastSelected)
     {
         NodeIsSelected = !NodeIsSelected;
     }
 }
예제 #3
0
 private bool IfMultiSelectPressed(ISelectedNode newNode)
 {
     if (_multiSelectSystem.MultiSelectPressed(_history, newNode.SelectedNode))
     {
         _lastSelected = newNode.SelectedNode;
         return(true);
     }
     return(false);
 }
예제 #4
0
    private void SaveLastSelected(ISelectedNode args)
    {
        _lastSelected = (UINode)args.SelectedNode;
        if (args.SelectedNode.IsNull())
        {
            return;
        }

        if (_lastSelected.InGameObject.IsNotNull())
        {
            _lastSelectedGO = _lastSelected.InGameObject;
        }
    }
예제 #5
0
    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);
    }
예제 #6
0
    //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);
    }
예제 #7
0
 private void SetSelected(ISelectedNode args) => Selected = args.SelectedNode;