示例#1
0
    //关闭子窗口
    protected void CloseSubWindow(string name)
    {
        SubWindow subwin = null;

        if (this.subWindowsDictionary.TryGetValue(name, out subwin))
        {
            subwin.Close();
        }
        else
        {
            BDebug.LogError("不存在子窗口:" + name);
        }
    }
        private void OnSetSubWindowActive(System.Object subwindow)
        {
            if (subwindow == null)
            {
                return;
            }
            SubWindow window = (SubWindow)subwindow;

            if (window.IsOpen)
            {
                window.Close();
            }
            else
            {
                this.InsertWindow(window);
            }
        }
示例#3
0
 public void SetNormal()
 {
     this.Button.GetComponent <Image>().sprite = this.NormalSprite;
     Window.Close();
     this.Button.enabled = true;
 }