示例#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;