Beispiel #1
0
    /// <summary>
    /// 打开
    /// </summary>
    /// <param name="name"></param>
    protected void OpenSubWindow(string name, WindowData windowData = null)
    {
        SubWindow subwin = null;

        if (this.subWindowsDictionary.TryGetValue(name, out subwin))
        {
            subwin.Open(windowData);
        }

        else
        {
            BDebug.LogError("不存在子窗口:" + name);
        }
    }
 public SubWindowLeaf(SubWindow window, bool isHorizontal, int depth) : base(isHorizontal, depth)
 {
     if (window != null)
     {
         window.Open();
         m_SubWindows.Add(window);
     }
     if (window == null)
     {
         m_TweenParam           = new GUITweenParam(false);
         m_TweenParam.tweenTime = 1;
     }
     else
     {
         m_TweenParam = new GUITweenParam(true);
     }
 }
        public void AddDynamicWindow <T>(T drawer) where T : SubWindowCustomDrawer
        {
            if (drawer == null)
            {
                return;
            }
            string id = SubWindowObjectDrawer.GetDrawerID(drawer, true);

            if (ContainWindowID(id))
            {
                return;
            }
            SubWindow window = new SubWindow(true, drawer);

            window.isDynamic = true;
            m_SubWindowList.Add(window);
            window.Open();
            this.InsertWindow(window);
        }
        public void AddDynamicWindow(string title, string icon, EWSubWindowToolbarType toolbar, SubWindowHelpBoxType helpbox,
                                     Delegate method)
        {
            if (method == null)
            {
                return;
            }
            string id = SubWindowMethodDrawer.GetMethodID(method.Method, method.Target);

            if (ContainWindowID(id))
            {
                return;
            }
            SubWindow window = new SubWindow(title, icon, true, method.Method, method.Target, toolbar, helpbox);

            window.isDynamic = true;
            m_SubWindowList.Add(window);
            window.Open();
            this.InsertWindow(window);
        }
Beispiel #5
0
 //
 public void SetClick()
 {
     this.Button.GetComponent <Image>().sprite = this.PressSprite;
     Window.Open();
     this.Button.enabled = false;
 }