private void growSpace(TezSubwindow area)
 {
     while (m_Children.Count <= area.subwindowID)
     {
         m_Children.Add(null);
     }
 }
Exemple #2
0
        private void registerSubwindow(TezSubwindow subwindow)
        {
#if UNITY_EDITOR
            TezService.get <TezDebug>().isTrue(subwindow.subwindowID < 0, "UIWindow (" + m_WindowName + ")", "Window (" + subwindow.subwindowName + ") ID Must EqualGreater Than 0");
#endif
            subwindow.subwindowID = this.giveSubwindowID();
            this.growSubwindow(subwindow.subwindowID);

            if (string.IsNullOrEmpty(subwindow.subwindowName))
            {
                subwindow.subwindowName = "Area_" + subwindow.subwindowID;
            }

            if (m_SubwindowList[subwindow.subwindowID])
            {
                subwindow.subwindowID = this.giveSubwindowID();
            }
            subwindow.window = this;
            m_SubwindowList[subwindow.subwindowID] = subwindow;
            m_SubwindowDic.Add(subwindow.subwindowName + subwindow.subwindowID, subwindow.subwindowID);

#if UNITY_EDITOR
            TezService.get <TezDebug>().info("UIWindow (" + m_WindowName + ")", "Register Area: " + subwindow.subwindowName + " ID:" + subwindow.subwindowID);
#endif
        }
Exemple #3
0
        public void onSubwindowNameChanged(TezSubwindow subwindow, string new_name)
        {
#if UNITY_EDITOR
            TezService.get <TezDebug>().info("UIWindow (" + m_WindowName + ")", "Area Name: " + subwindow.subwindowName + " Change To: " + new_name);
#endif
            m_SubwindowDic.Remove(subwindow.subwindowName + subwindow.subwindowID);
            m_SubwindowDic.Add(new_name + subwindow.subwindowID, subwindow.subwindowID);
        }
Exemple #4
0
        public void addSubwindow(TezSubwindow subwindow)
        {
            if (subwindow.subwindowID != -1 && !m_SubwindowDic.ContainsKey(subwindow.subwindowName + subwindow.subwindowID))
            {
                this.growSubwindow(subwindow.subwindowID);

                if (string.IsNullOrEmpty(subwindow.subwindowName))
                {
                    subwindow.subwindowName = "Area_" + subwindow.subwindowID;
                }

                subwindow.subwindowID = this.giveSubwindowID();
                subwindow.window      = this;
                m_SubwindowList[subwindow.subwindowID] = subwindow;
                m_SubwindowDic.Add(subwindow.subwindowName + subwindow.subwindowID, subwindow.subwindowID);

#if UNITY_EDITOR
                TezService.get <TezDebug>().info("UIWindow (" + m_WindowName + ")", "Add Area: " + subwindow.subwindowName + " ID:" + subwindow.subwindowID);
#endif
            }
        }
 public void removeChild(TezSubwindow area)
 {
     m_Children[area.subwindowID] = null;
 }
 public void addChild(TezSubwindow area)
 {
     this.growSpace(area);
     m_Children[area.subwindowID] = area;
     area.window = window;
 }