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 }
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); }
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 } }