Ejemplo n.º 1
0
        private Transform GetParentFromDepth(EWindowDepth depth)
        {
            switch (depth)
            {
            case EWindowDepth.Normal: return(normalParent);

            case EWindowDepth.Notice: return(forwardParent);

            case EWindowDepth.Forward: return(importParent);
            }

            return(uiRoot.transform);
        }
Ejemplo n.º 2
0
        // Token: 0x06000099 RID: 153 RVA: 0x00005804 File Offset: 0x00003A04
        private Transform GetParentFromDepth(EWindowDepth depth)
        {
            Transform result;

            switch (depth)
            {
            case EWindowDepth.Normal:
                result = this.normalParent;
                break;

            case EWindowDepth.Notice:
                result = this.forwardParent;
                break;

            case EWindowDepth.Forward:
                result = this.importParent;
                break;

            default:
                result = null;
                break;
            }
            return(result);
        }
Ejemplo n.º 3
0
 public WindowCreateInfo(string dir, EWindowDepth dep)
 {
     resDir = dir;
     depth  = dep;
 }
Ejemplo n.º 4
0
 public void OpenWindow(string resPath, EWindowDepth depth, UICallback callback = null)
 {
     OpenWindow(resPath, GetParentFromDepth(depth), callback);
 }
Ejemplo n.º 5
0
 // Token: 0x060000A2 RID: 162 RVA: 0x000059C2 File Offset: 0x00003BC2
 public void OpenWindow(string resPath, EWindowDepth depth, UICallback callback = null)
 {
     this.OpenWindow(this.GetType(resPath), resPath, this.GetParentFromDepth(depth), callback);
 }
Ejemplo n.º 6
0
 public void OpenWindow(string dir, EWindowDepth dep, UICallback callback = null)
 {
 }
Ejemplo n.º 7
0
 public WindowCreateInfo(string dir, EWindowDepth dep)
 {
     this.resDir = dir;
     this.depth  = dep;
 }