Esempio n. 1
0
    private void SetMask()
    {
//		Debug.LogError ("SetMask "+views.Count);
        if (mask != null)
        {
            if (views.Count == 0)
            {
                mask.visible = false;
            }
            else
            {
                mask.visible = true;
                v.AddChildAt(mask, views.Count - 1);
            }
        }
        else
        {
            mask = Tools.GetComponent(Config.COM_MASK).asCom;
            v.AddChildAt(mask, 0);
            mask.onClick.Add(Mask_Click);
            mask.GetChild("n0").alpha = 0.6f;
            ViewManager.SetWidthHeight(mask);
            SetMask();
        }
    }
Esempio n. 2
0
 private void SetTMask()
 {
     if (tmask != null)
     {
         tmask.visible = t.numChildren < 2 ? false : true;
         t.AddChildAt(tmask, 0);
     }
     else
     {
         tmask = Tools.GetComponent(Config.COM_MASK).asCom;
         t.AddChildAt(tmask, 0);
         tmask.GetChild("n0").alpha = 0.6f;
         ViewManager.SetWidthHeight(tmask);
         SetTMask();
     }
 }
Esempio n. 3
0
    private void SetPMask()
    {
        if (pmask != null)
        {
            p.AddChildAt(pmask, 0);
        }
        else
        {
            pmask = Tools.GetComponent(Config.COM_MASK).asCom;
            pmask.onClick.Add(PMask_Click);
            p.AddChildAt(pmask, 0);
            pmask.GetChild("n0").alpha = 0f;
            ViewManager.SetWidthHeight(pmask);
//			SetTMask ();
        }
    }
Esempio n. 4
0
 public void ShowOn(GComponent r)
 {
     if (_contentPane.parent == null)
     {
         this.contentPane.x      = r.x;
         this.contentPane.y      = r.y;
         this.contentPane.width  = r.width;
         this.contentPane.height = r.height;
         // r.AddChild(this.contentPane);
         r.AddChildAt(this.contentPane, 0);
     }
 }
Esempio n. 5
0
 public void AddChildAt(GObject child, int index)
 {
     view.AddChildAt(child, index);
 }