Exemple #1
0
 public void RemoveNode(CLUI_Node node)
 {
     if (node.parent != this)
     {
         return;
     }
     node.SetParent(this);
     _subnodes.Remove(node);
 }
Exemple #2
0
 public void AddNode(CLUI_Node node)
 {
     if (node.parent == this)
     {
         return;
     }
     if (node.parent != null)
     {
         node.parent.RemoveNode(node);
     }
     node.SetParent(this);
     if (_subnodes == null)
     {
         _subnodes = new List <CLUI_Node>();
     }
     _subnodes.Add(node);
 }
Exemple #3
0
 void SetParent(CLUI_Node node)
 {
     this.parent = node;
 }
Exemple #4
0
 public void RemoveNode(CLUI_Node node)
 {
     if (node.parent != this)
         return;
     node.SetParent(this);
     _subnodes.Remove(node);
 }
Exemple #5
0
 public void AddNode(CLUI_Node node)
 {
     if (node.parent == this)
         return;
     if (node.parent != null)
     {
         node.parent.RemoveNode(node);
     }
     node.SetParent(this);
     if (_subnodes == null) _subnodes = new List<CLUI_Node>();
     _subnodes.Add(node);
 }
Exemple #6
0
    // Use this for initialization
    void Start()
    {
        var _skin = Resources.Load("GUI/GUISkin001_100percent/GUISkin001") as GUISkin;
        SetSkin(_skin);
        nodeUIRoot = new CLUI_Node_Empty ("root");
        nodeUIRoot.rectScale = CLUI_Border.ScaleFill;

        this.ChangeState(new state_0Starter());
    }
Exemple #7
0
 void SetParent(CLUI_Node node)
 {
     this.parent = node;
 }