Exemple #1
0
 public virtual void SetNodeStat(LNNode node, bool active)
 {
     if (!active)
     {
         if (this.hoverNode == node)
         {
             this.ProcessTouchMotionEvent();
         }
         if (this.selectedNode == node)
         {
             this.DeselectNode();
         }
         this.clickNode[0] = null;
         if (this.modal == node)
         {
             this.modal = null;
         }
     }
     else
     {
         this.ProcessTouchMotionEvent();
     }
     if (node == null)
     {
         return;
     }
     if (node.IsContainer())
     {
         LNNode[] nodes = (node).childs;
         int      size  = (node).GetNodeCount();
         for (int i = 0; i < size; i++)
         {
             this.SetNodeStat(nodes[i], active);
         }
     }
 }
 public virtual void SetNodeStat(LNNode node, bool active)
 {
     if (!active)
     {
         if (this.hoverNode == node)
         {
             this.ProcessTouchMotionEvent();
         }
         if (this.selectedNode == node)
         {
             this.DeselectNode();
         }
         this.clickNode[0] = null;
         if (this.modal == node)
         {
             this.modal = null;
         }
     }
     else
     {
         this.ProcessTouchMotionEvent();
     }
     if (node == null)
     {
         return;
     }
     if (node.IsContainer())
     {
         LNNode[] nodes = (node).childs;
         int size = (node).GetNodeCount();
         for (int i = 0; i < size; i++)
         {
             this.SetNodeStat(nodes[i], active);
         }
     }
 }