Exemplo n.º 1
0
 public WindowInfo(enWindowType windowType, enWindowColliderMode windowcolliderMode, bool issinglen, enWindowPriority priority, int group, bool isfullbg, bool isdisableinput
                   , bool hideunderinput, bool alwayskeepxisible)
 {
     Type              = windowType;
     ColliderMode      = windowcolliderMode;
     Name              = windowType.ToString();
     IsSinglen         = issinglen;
     Priority          = priority;
     Group             = group;
     FullScreenBG      = isfullbg;
     DisableInput      = isdisableinput;
     HideUnderForms    = hideunderinput;
     AlwaysKeepVisible = alwayskeepxisible;
 }
Exemplo n.º 2
0
 public void RecycleWindow(enWindowPriority priority, WindowBase windowBase, bool isclose = false)
 {
     this.RemoveFromExitSquenceList(priority, windowBase.GetSequence());
     if (windowBase.m_isUsePool && !isclose)
     {
         this.m_pooledWindows.Add(windowBase);
     }
     if (m_windows.Contains(windowBase))
     {
         this.m_windows.Remove(windowBase);
     }
     if (isclose)
     {
         Object.DestroyImmediate(windowBase.CacheGameObject);
     }
 }
Exemplo n.º 3
0
 public void Init(Camera UICamera)
 {
     if (this.m_isInitialized)
     {
         return;
     }
     this.InitializeCanvas();
     this.SetCanvasMode(UICamera);
     this.m_components      = new List <UIComponent>();
     this.m_isClosed        = false;
     this.m_isHided         = false;
     this.m_isActivied      = false;
     windowState            = enWindowState.Init;
     this.m_defaultPriority = this.WindowInfo.Priority;
     this.InitUIComponent(gameObject);
     OnInit(UICamera);
     this.m_isInitialized = true;
     Debug.Log("<color=#FFFF00>" + "Init " + WindowInfo.Name + " ................." + "</color>");
 }