示例#1
0
 private void Switch(Func func)
 {
     if (mSelectFunc == func)
     {
         return;
     }
     if (mSelectFunc != Func.Func_None)
     {
         EWindowID id = mFuncWindows[mSelectFunc];
         GTWindowManager.Instance.CloseWindow(id);
     }
     mSelectFunc = func;
     if (mSelectFunc != Func.Func_None)
     {
         EWindowID newID  = mFuncWindows[mSelectFunc];
         GTWindow  window = GTWindowManager.Instance.OpenWindow(newID);
         window.SetParent(this);
     }
 }
示例#2
0
 private void LoadLeftWindow(EBagType bagType)
 {
     if (bagType == mShow)
     {
         return;
     }
     if (mLeftWindows.ContainsKey(mShow))
     {
         EWindowID closeWindowID = mLeftWindows[mShow];
         GTWindowManager.Instance.CloseWindow(closeWindowID);
     }
     if (mLeftWindows.ContainsKey(bagType))
     {
         EWindowID openWindowID = mLeftWindows[bagType];
         GTWindow  window       = GTWindowManager.Instance.OpenWindow(openWindowID);
         window.SetParent(this);
     }
     mShow = bagType;
 }