예제 #1
0
 public virtual void Initialize(FlowWindowBase.SerializeParamBase param)
 {
     this.m_Request.Clear();
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)param.window, (UnityEngine.Object)null))
     {
         return;
     }
     this.m_Window   = param.window;
     this.m_Animator = (Animator)param.window.GetComponent <Animator>();
     this.m_Window.SetActive(true);
 }
예제 #2
0
 public override void Initialize(FlowWindowBase.SerializeParamBase param)
 {
     base.Initialize(param);
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object)param.window, (UnityEngine.Object)null))
     {
         this.m_CustomEvent = this.GetChildComponent <EventCall>("root");
         SerializeValueBehaviour childComponent = this.GetChildComponent <SerializeValueBehaviour>("root");
         this.m_ValueList = !UnityEngine.Object.op_Inequality((UnityEngine.Object)childComponent, (UnityEngine.Object)null) ? new SerializeValueList() : childComponent.list;
     }
     this.m_Destroy = false;
     this.Close(true);
 }
 public override void Initialize(FlowWindowBase.SerializeParamBase param)
 {
     FriendPresentRootWindow.m_Instance = this;
     base.Initialize(param);
     this.m_Param = param as FriendPresentRootWindow.SerializeParam;
     if (this.m_Param == null)
     {
         throw new Exception(this.ToString() + " > Failed serializeParam null.");
     }
     this.m_ValueList = (SerializeValueBehaviour)this.m_Param.window.GetComponent <SerializeValueBehaviour>();
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueList, (UnityEngine.Object)null))
     {
         this.m_ReceiveToggle = this.m_ValueList.list.GetUIToggle("tgl_receive");
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ReceiveToggle, (UnityEngine.Object)null))
         {
             ((Selectable)this.m_ReceiveToggle).set_interactable(false);
         }
         this.m_SendToggle = this.m_ValueList.list.GetUIToggle("tgl_send");
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_SendToggle, (UnityEngine.Object)null))
         {
             ((Selectable)this.m_SendToggle).set_interactable(false);
         }
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Param.wantList, (UnityEngine.Object)null))
     {
         this.m_WantController = (ContentController)this.m_Param.wantList.GetComponentInChildren <ContentController>();
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_WantController, (UnityEngine.Object)null))
         {
             this.m_WantController.SetWork((object)this);
         }
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Param.receiveList, (UnityEngine.Object)null))
     {
         this.m_ReceiveController = (ContentController)this.m_Param.receiveList.GetComponentInChildren <ContentController>();
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ReceiveController, (UnityEngine.Object)null))
         {
             this.m_ReceiveController.SetWork((object)this);
         }
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Param.sendList, (UnityEngine.Object)null))
     {
         this.m_SendController = (ContentController)this.m_Param.sendList.GetComponentInChildren <ContentController>();
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_SendController, (UnityEngine.Object)null))
         {
             this.m_SendController.SetWork((object)this);
         }
     }
     this.Close(true);
 }
예제 #4
0
        public void Add(FlowWindowBase.SerializeParamBase param)
        {
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)param.window, (UnityEngine.Object)null))
            {
                return;
            }
            FlowWindowBase instance = Activator.CreateInstance(param.type) as FlowWindowBase;

            if (instance == null)
            {
                return;
            }
            instance.Initialize(param);
            this.m_List.Add(instance);
        }
예제 #5
0
        public override void Initialize(FlowWindowBase.SerializeParamBase param)
        {
            base.Initialize(param);
            this.m_Param = param as UnitListSortWindow.SerializeParam;
            if (this.m_Param == null)
            {
                throw new Exception(this.ToString() + " > Failed serializeParam null.");
            }
            SerializeValueBehaviour childComponent = this.GetChildComponent <SerializeValueBehaviour>("sort");

            this.m_ValueList = !UnityEngine.Object.op_Inequality((UnityEngine.Object)childComponent, (UnityEngine.Object)null) ? new SerializeValueList() : childComponent.list;
            GameObject gameObject = this.m_ValueList.GetGameObject("list");

            if (UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject, (UnityEngine.Object)null))
            {
                Toggle[] componentsInChildren = (Toggle[])gameObject.GetComponentsInChildren <Toggle>();
                for (int index = 0; index < componentsInChildren.Length; ++index)
                {
                    try
                    {
                        UnitListSortWindow.SelectType key = (UnitListSortWindow.SelectType)Enum.Parse(typeof(UnitListSortWindow.SelectType), ((UnityEngine.Object)componentsInChildren[index]).get_name());
                        ButtonEvent component             = (ButtonEvent)((Component)componentsInChildren[index]).GetComponent <ButtonEvent>();
                        if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
                        {
                            ButtonEvent.Event @event = component.GetEvent("UNITSORT_TGL_CHANGE");
                            if (@event != null)
                            {
                                if ((key & (UnitListSortWindow.SelectType) 16777215) != UnitListSortWindow.SelectType.NONE)
                                {
                                    @event.valueList.SetField("section", (int)key);
                                }
                                if ((key & (UnitListSortWindow.SelectType) 251658240) != UnitListSortWindow.SelectType.NONE)
                                {
                                    @event.valueList.SetField("alignment", (int)key);
                                }
                            }
                        }
                        this.m_Toggles.Add(key, componentsInChildren[index]);
                    }
                    catch (Exception ex)
                    {
                        Debug.LogError((object)("UnitSortWindow トグル名からSelectTypeを取得できない! > " + ((UnityEngine.Object)componentsInChildren[index]).get_name() + " ( Exception > " + ex.ToString() + " )"));
                    }
                }
            }
            this.LoadSelectType();
            this.Close(true);
        }
예제 #6
0
        public override void Initialize(FlowWindowBase.SerializeParamBase param)
        {
            base.Initialize(param);
            this.m_Param = param as UnitListFilterWindow.SerializeParam;
            if (this.m_Param == null)
            {
                throw new Exception(this.ToString() + " > Failed serializeParam null.");
            }
            SerializeValueBehaviour childComponent = this.GetChildComponent <SerializeValueBehaviour>("filter");

            this.m_ValueList = !UnityEngine.Object.op_Inequality((UnityEngine.Object)childComponent, (UnityEngine.Object)null) ? new SerializeValueList() : childComponent.list;
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Window, (UnityEngine.Object)null) && UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Animator, (UnityEngine.Object)null))
            {
                this.CacheToggleParam(((Component)this.m_Animator).get_gameObject());
            }
            this.LoadSelectType();
            this.Close(true);
        }
 public override void Initialize(FlowWindowBase.SerializeParamBase param)
 {
     base.Initialize(param);
     FriendPresentWantWindow.SerializeParam serializeParam = param as FriendPresentWantWindow.SerializeParam;
     if (serializeParam == null)
     {
         throw new Exception(this.ToString() + " > Failed serializeParam null.");
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object)serializeParam.list, (UnityEngine.Object)null))
     {
         this.m_ContentController = (ContentController)serializeParam.list.GetComponentInChildren <ContentController>();
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContentController, (UnityEngine.Object)null))
         {
             this.m_ContentController.SetWork((object)this);
         }
     }
     this.Close(true);
 }
 public override void Initialize(FlowWindowBase.SerializeParamBase param)
 {
     MultiInvitationSendWindow.m_Instance = this;
     base.Initialize(param);
     this.m_Param = param as MultiInvitationSendWindow.SerializeParam;
     if (this.m_Param == null)
     {
         throw new Exception(this.ToString() + " > Failed serializeParam null.");
     }
     this.m_ValueList = (SerializeValueBehaviour)this.m_Param.window.GetComponent <SerializeValueBehaviour>();
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueList, (UnityEngine.Object)null))
     {
         this.m_ValueList.list.SetField("checkmax", 5);
     }
     if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Param.list, (UnityEngine.Object)null))
     {
         this.m_ContentController = (ContentController)this.m_Param.list.GetComponentInChildren <ContentController>();
         if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContentController, (UnityEngine.Object)null))
         {
             this.m_ContentController.SetWork((object)this);
         }
     }
     this.Close(true);
 }