コード例 #1
0
        // Token: 0x0600F1CC RID: 61900 RVA: 0x00403E00 File Offset: 0x00402000
        private void SetGuildPlayListPanel()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetGuildPlayListPanel_hotfix != null)
            {
                this.m_SetGuildPlayListPanel_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int num = 1;

            UIUtility.SetGameObjectChildrenActiveCount(this.m_guildRaidListScrollViewContent, num);
            Transform transform = this.m_guildRaidListScrollViewContent.transform;

            for (int i = 0; i < num; i++)
            {
                GuildGameListItemUIController guildGameListItemUIController;
                if (i < transform.childCount)
                {
                    Transform child = transform.GetChild(i);
                    guildGameListItemUIController = child.GetComponent <GuildGameListItemUIController>();
                }
                else
                {
                    GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.m_guildRaidListItemPrefab);
                    guildGameListItemUIController = GameObjectUtility.AddControllerToGameObject <GuildGameListItemUIController>(gameObject);
                    guildGameListItemUIController.EventOnClick += this.OnGuildPlayListItemClick;
                    gameObject.transform.SetParent(transform, false);
                }
                guildGameListItemUIController.InitGuildGameListItemInfo();
            }
            this.m_guildRaidListScrollRect.normalizedPosition = Vector2.one;
        }
コード例 #2
0
 // Token: 0x0600F070 RID: 61552 RVA: 0x00400264 File Offset: 0x003FE464
 public void Refresh()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_Refresh_hotfix != null)
     {
         this.m_Refresh_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     foreach (GuildInviteItemUIController guildInviteItemUIController in this.m_guildInviteItemUIControllerList)
     {
         UnityEngine.Object.Destroy(guildInviteItemUIController.gameObject);
     }
     this.m_guildInviteItemUIControllerList.Clear();
     foreach (GuildJoinInvitation guildJoinInvitation in this.m_guildJoinInvitationList)
     {
         GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.m_guildItemTemplate);
         gameObject.transform.SetParent(this.m_msgListContent.transform, false);
         GuildInviteItemUIController guildInviteItemUIController2 = GameObjectUtility.AddControllerToGameObject <GuildInviteItemUIController>(gameObject);
         guildInviteItemUIController2.Init(guildJoinInvitation);
         guildInviteItemUIController2.ItemRefreshEvent += this.Refresh;
         this.m_guildInviteItemUIControllerList.Add(guildInviteItemUIController2);
     }
     if (this.m_guildJoinInvitationList.Count == 0)
     {
         this.m_noMessage.SetActive(true);
     }
     else
     {
         this.m_noMessage.SetActive(false);
     }
 }
コード例 #3
0
 // Token: 0x0600C872 RID: 51314 RVA: 0x00377F64 File Offset: 0x00376164
 private void SetRecommendHeros(List <int> heroIds)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetRecommendHerosList ` 1_hotfix != null)
     {
         this.m_SetRecommendHerosList ` 1_hotfix.call(new object[]
         {
             this,
             heroIds
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     UIUtility.SetGameObjectChildrenActiveCount(this.m_recommendHeroGroupTransform.gameObject, heroIds.Count);
     for (int i = 0; i < heroIds.Count; i++)
     {
         UnchartedScoreRecommendHeroListItemUIController unchartedScoreRecommendHeroListItemUIController;
         if (i < this.m_recommendHeroGroupTransform.childCount)
         {
             unchartedScoreRecommendHeroListItemUIController = this.m_recommendHeroGroupTransform.GetChild(i).GetComponent <UnchartedScoreRecommendHeroListItemUIController>();
         }
         else
         {
             GameObject go = UnityEngine.Object.Instantiate <GameObject>(this.m_recommendHeroItemPrefab, this.m_recommendHeroGroupTransform, false);
             unchartedScoreRecommendHeroListItemUIController = GameObjectUtility.AddControllerToGameObject <UnchartedScoreRecommendHeroListItemUIController>(go);
         }
         unchartedScoreRecommendHeroListItemUIController.SetHero(heroIds[i]);
     }
 }
コード例 #4
0
 // Token: 0x0600F104 RID: 61700 RVA: 0x00401818 File Offset: 0x003FFA18
 protected override void OnBindFiledsCompleted()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
     {
         this.m_OnBindFiledsCompleted_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     base.OnBindFiledsCompleted();
     this.m_configDataLoader        = (GameManager.Instance.ConfigDataLoader as IConfigDataLoader);
     this.m_playerContext           = (GameManager.Instance.PlayerContext as ProjectLPlayerContext);
     this.m_guildUITask             = (UIUtility.FindUITaskWithType(typeof(GuildUITask)) as GuildUITask);
     this.m_guildListUIController   = GameObjectUtility.AddControllerToGameObject <BeforeJoinGuildListUIController>(this.m_listPanel);
     this.m_guildInfoUIController   = GameObjectUtility.AddControllerToGameObject <BeforeJoinGuildInfoUIController>(this.m_infoPanel);
     this.m_receiveMsgUIController  = GameObjectUtility.AddControllerToGameObject <BeforeJoinGuildMsgUIController>(this.m_messagePanel);
     this.m_createGuildUIController = GameObjectUtility.AddControllerToGameObject <CreateGuildUIController>(this.m_createGuildPanel);
     this.m_guildListUIController.Init(this);
     this.m_guildInfoUIController.Init(this);
     this.m_messageButton.onClick.AddListener(new UnityAction(this.OnMessageClick));
     this.m_returnButton.onClick.AddListener(new UnityAction(this.OnReturnClick));
     this.m_infoButton.onClick.AddListener(new UnityAction(this.OnInfoClick));
     this.GetInviteMsgList();
     this.m_playerContext.EventOnGuildUpdateInfo += this.OnGuildUpdateInfoNtf;
 }
コード例 #5
0
        // Token: 0x0600A517 RID: 42263 RVA: 0x002E7320 File Offset: 0x002E5520
        private ArenaActionOrderButton CreateActionOrderButton(BattleHero hero, Transform parent)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateActionOrderButtonBattleHeroTransform_hotfix != null)
            {
                return((ArenaActionOrderButton)this.m_CreateActionOrderButtonBattleHeroTransform_hotfix.call(new object[]
                {
                    this,
                    hero,
                    parent
                }));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObject             go = UnityEngine.Object.Instantiate <GameObject>(this.m_actionOrderButtonPrefab, parent, false);
            ArenaActionOrderButton arenaActionOrderButton = GameObjectUtility.AddControllerToGameObject <ArenaActionOrderButton>(go);

            if (hero != null)
            {
                arenaActionOrderButton.SetHero(hero);
            }
            arenaActionOrderButton.EventOnClick     += this.ActionOrderButton_OnClick;
            arenaActionOrderButton.EventOnBeginDrag += this.ActionOrderButton_OnBeginDrag;
            arenaActionOrderButton.EventOnEndDrag   += this.ActionOrderButton_OnEndDrag;
            arenaActionOrderButton.EventOnDrag      += this.ActionOrderButton_OnDrag;
            arenaActionOrderButton.EventOnDrop      += this.ActionOrderButton_OnDrop;
            return(arenaActionOrderButton);
        }
コード例 #6
0
        // Token: 0x0600D75A RID: 55130 RVA: 0x003AA2A4 File Offset: 0x003A84A4
        protected override void OnBindFiledsCompleted()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
            {
                this.m_OnBindFiledsCompleted_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.OnBindFiledsCompleted();
            PointDescComponent pointDescComponent  = GameObjectUtility.AddControllerToGameObject <PointDescComponent>(base.gameObject);
            PointDescComponent pointDescComponent2 = pointDescComponent;
            GameObject         gameObject          = base.gameObject;
            bool       isNeedExcuteEvent           = true;
            GameObject boundaryGo = this.m_boundaryGo;

            pointDescComponent2.SetGameObject(gameObject, isNeedExcuteEvent, null, boundaryGo);
            pointDescComponent.EventOnClose += delegate()
            {
                if (this.EventOnClose != null)
                {
                    this.EventOnClose();
                }
                this.ClosePanel();
            };
        }
コード例 #7
0
        // Token: 0x06008C69 RID: 35945 RVA: 0x0028F708 File Offset: 0x0028D908
        public void Initialize(ClientWorld world, ConfigDataWaypointInfo waypointInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientWorldConfigDataWaypointInfo_hotfix != null)
            {
                this.m_InitializeClientWorldConfigDataWaypointInfo_hotfix.call(new object[]
                {
                    this,
                    world,
                    waypointInfo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_clientWorld             = world;
            this.m_waypointInfo            = waypointInfo;
            this.m_id = world.GetNextEntityId();
            bool flag = waypointInfo.FuncType == WaypointFuncType.WaypointFuncType_Scenario || waypointInfo.FuncType == WaypointFuncType.WaypointFuncType_Portal;

            this.m_graphicInitScale = 1f;
            this.m_graphic          = world.CreateGraphic(waypointInfo.Model, this.m_graphicInitScale);
            if (this.m_graphic != null)
            {
                this.m_graphic.SetName("Waypoint_" + waypointInfo.ID);
                this.m_graphic.SetRotation(ClientWorldConst.FaceCameraRotation);
                if (flag)
                {
                    this.m_graphic.SetSortingOrder(2);
                }
                this.m_graphicUIStateController = this.m_graphic.GetPrefab().GetComponent <CommonUIStateController>();
            }
            GameObject gameObject;

            if (flag)
            {
                gameObject = UnityEngine.Object.Instantiate <GameObject>(world.WaypointUIPrefab, world.WaypointUIRoot.transform, false);
            }
            else
            {
                gameObject = UnityEngine.Object.Instantiate <GameObject>(world.Waypoint2UIPrefab, world.WaypointUIRoot.transform, false);
            }
            if (gameObject != null)
            {
                gameObject.name     = "Waypoint_" + waypointInfo.ID;
                this.m_uiInitScale  = gameObject.transform.localScale;
                this.m_uiController = GameObjectUtility.AddControllerToGameObject <WorldWaypointUIController>(gameObject);
                this.m_uiController.SetWaypoint(this.m_waypointInfo);
                this.m_uiController.EventOnPointerDown += this.OnUIPointerDown;
                this.m_uiController.EventOnPointerUp   += this.OnUIPointerUp;
                this.m_uiController.EventOnClick       += this.OnUIClick;
                gameObject.transform.localRotation      = ClientWorldConst.FaceCameraRotation;
                if (flag)
                {
                    Canvas canvas = gameObject.AddComponent <Canvas>();
                    canvas.overrideSorting = true;
                    canvas.sortingOrder    = 2;
                    gameObject.AddComponent <GraphicRaycaster>();
                }
            }
        }
コード例 #8
0
        // Token: 0x0600D53F RID: 54591 RVA: 0x003A2640 File Offset: 0x003A0840
        public void SetGameObject(GameObject addComponentRoot, bool isNeedExcuteEvent, GameObject addReturnImageRoot = null, GameObject checkBoundaryGo = null)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetGameObjectGameObjectBooleanGameObjectGameObject_hotfix != null)
            {
                this.m_SetGameObjectGameObjectBooleanGameObjectGameObject_hotfix.call(new object[]
                {
                    this,
                    addComponentRoot,
                    isNeedExcuteEvent,
                    addReturnImageRoot,
                    checkBoundaryGo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (addReturnImageRoot == null)
            {
                addReturnImageRoot = addComponentRoot;
            }
            this.IsNeedExcuteEvent = isNeedExcuteEvent;
            for (int i = 0; i < addReturnImageRoot.transform.childCount; i++)
            {
                Transform child = addReturnImageRoot.transform.GetChild(i);
                if (child.name == "ReturnBgImage" && child.GetComponent <EmptyImage>() != null)
                {
                    return;
                }
            }
            this.emptyImageGo = new GameObject();
            this.emptyImageGo.AddComponent <EmptyImage>();
            RectTransform component = this.emptyImageGo.GetComponent <RectTransform>();

            component.sizeDelta    = new Vector2(10000f, 10000f);
            this.emptyImageGo.name = "ReturnBgImage";
            if (isNeedExcuteEvent)
            {
                this.emptyImageGo.tag = "ExcuteEventImage";
            }
            else
            {
                this.emptyImageGo.tag = "Untagged";
            }
            this.emptyImageGo.transform.SetParent(addReturnImageRoot.transform, false);
            this.emptyImageGo.transform.SetAsFirstSibling();
            if (checkBoundaryGo != null)
            {
                this.m_checkBoundaryGo = checkBoundaryGo;
            }
            else
            {
                this.m_checkBoundaryGo = addComponentRoot;
            }
            GameObjectUtility.AddControllerToGameObject <AndroidBackEventListener>(addReturnImageRoot);
        }
コード例 #9
0
 // Token: 0x0600F98F RID: 63887 RVA: 0x0041B3D8 File Offset: 0x004195D8
 protected override void OnBindFiledsCompleted()
 {
     base.OnBindFiledsCompleted();
     this.m_configDataLoader = (GameManager.Instance.ConfigDataLoader as IConfigDataLoader);
     this.m_playerContext    = (GameManager.Instance.PlayerContext as ProjectLPlayerContext);
     this.m_closeButton.onClick.AddListener(new UnityAction(this.OnCloseClick));
     this.m_currencyUIController = GameObjectUtility.AddControllerToGameObject <CurrencyUIController>(this.m_playerCurrencyNode);
     this.m_currencyUIController.EventOnAddButtonClick += this.OnAddCurrencyClick;
     this.m_guildFixedStoreUIComponent = new GuildFixedStoreUIComponent();
     this.m_guildFixedStoreUIComponent.Init(this.m_storeItem, this.m_storeItemContent, this.m_currencyUIController);
     this.m_guildFixedStoreUIComponent.SetFixedStoreInfo(StoreId.StoreId_GuildPerson);
 }
コード例 #10
0
        // Token: 0x0600D65F RID: 54879 RVA: 0x003A6B54 File Offset: 0x003A4D54
        public static RewardGoodsUIController CreateRewardGoods(Goods g, Transform parent, GameObject prefab, bool showCount = true, int alignType = 0)
        {
            if (prefab == null)
            {
                return(null);
            }
            GameObject go = UnityEngine.Object.Instantiate <GameObject>(prefab, parent, false);
            RewardGoodsUIController rewardGoodsUIController = GameObjectUtility.AddControllerToGameObject <RewardGoodsUIController>(go);

            rewardGoodsUIController.SetReward(g, alignType, true);
            rewardGoodsUIController.ShowCount(showCount);
            return(rewardGoodsUIController);
        }
コード例 #11
0
        // Token: 0x060132B7 RID: 78519 RVA: 0x004E2804 File Offset: 0x004E0A04
        public static GoodsUIController CreateRewardGoods(Goods g, Transform parent, GameObject prefab, bool showCount = true, Action <GoodsUIController> onGoodsClick = null)
        {
            if (prefab == null)
            {
                return(null);
            }
            GameObject        go = UnityEngine.Object.Instantiate <GameObject>(prefab, parent, false);
            GoodsUIController goodsUIController = GameObjectUtility.AddControllerToGameObject <GoodsUIController>(go);

            goodsUIController.SetReward(g);
            goodsUIController.ShowCount(showCount);
            goodsUIController.OnClickEvent = onGoodsClick;
            return(goodsUIController);
        }
コード例 #12
0
 // Token: 0x0600A571 RID: 42353 RVA: 0x002E83C8 File Offset: 0x002E65C8
 protected override void OnBindFiledsCompleted()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
     {
         this.m_OnBindFiledsCompleted_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     base.OnBindFiledsCompleted();
     this.m_rewardGoodsUIController = GameObjectUtility.AddControllerToGameObject <RewardGoodsUIController>(this.m_rewardGoodsGameObject);
 }
コード例 #13
0
        // Token: 0x0600BDC7 RID: 48583 RVA: 0x00351190 File Offset: 0x0034F390
        protected override void OnBindFiledsCompleted()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
            {
                this.m_OnBindFiledsCompleted_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.OnBindFiledsCompleted();
            this.m_configDataLoader = (GameManager.Instance.ConfigDataLoader as IConfigDataLoader);
            this.m_playerContext    = (GameManager.Instance.PlayerContext as ProjectLPlayerContext);
            if (!this.m_playerContext.IsMe(this.m_playerContext.BusinessCard.UserId))
            {
                return;
            }
            this.m_battleTypeButton.onClick.AddListener(new UnityAction(this.OnBattleTypeShowClick));
            this.m_heroDrawButton.onClick.AddListener(new UnityAction(this.OnHeroDrawShowClick));
            this.m_teamShowButton.onClick.AddListener(new UnityAction(this.OnTeamShowClick));
            this.m_bgButton.onClick.AddListener(new UnityAction(this.OnBGButtonClick));
            for (int i = 0; i < this.m_heroListInfinityGrid.MinAmount; i++)
            {
                GameObject             gameObject             = UnityEngine.Object.Instantiate <GameObject>(this.m_heroListItemPrefab);
                ARHeroCardUIController arheroCardUIController = GameObjectUtility.AddControllerToGameObject <ARHeroCardUIController>(gameObject);
                arheroCardUIController.EventOnSelectHeroItem += this.OnHeroItemClick;
                gameObject.transform.SetParent(this.m_heroListInfinityGrid.transform, false);
                this.m_arHeroCardUIControllerList.Add(arheroCardUIController);
            }
            InfinityGridLayoutGroup heroListInfinityGrid = this.m_heroListInfinityGrid;

            heroListInfinityGrid.updateChildrenCallback = (InfinityGridLayoutGroup.UpdateChildrenCallbackDelegate)Delegate.Combine(heroListInfinityGrid.updateChildrenCallback, new InfinityGridLayoutGroup.UpdateChildrenCallbackDelegate(this.UpdateInfinityHeroItemCallback));
            List <Hero> heros = this.m_playerContext.GetHeros();

            heros.Sort((Hero left, Hero right) => right.HeroInfo.Rank - left.HeroInfo.Rank);
            foreach (Hero hero in heros)
            {
                ARHeroListUIController.HeroWrap heroWrap = new ARHeroListUIController.HeroWrap();
                heroWrap.hero = hero;
                this.m_heroWrapList.Add(heroWrap);
            }
            if (this.m_heroWrapList.Count > 0)
            {
                this.SelectHero(this.m_heroWrapList[0]);
            }
        }
コード例 #14
0
 // Token: 0x060100BD RID: 65725 RVA: 0x00433CD0 File Offset: 0x00431ED0
 protected override void OnBindFiledsCompleted()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
     {
         this.m_OnBindFiledsCompleted_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     base.OnBindFiledsCompleted();
     this.m_heroBreakEffectReturnButton.onClick.AddListener(new UnityAction(this.OnReturnButtonClick));
     base.gameObject.SetActive(true);
     this.m_heroCharUIController = GameObjectUtility.AddControllerToGameObject <HeroCharUIController>(this.m_heroCharGameObject);
     this.m_playerContext        = (GameManager.Instance.PlayerContext as ProjectLPlayerContext);
 }
コード例 #15
0
        // Token: 0x0600CE0A RID: 52746 RVA: 0x0038B4F8 File Offset: 0x003896F8
        private void CreatePathItemList(List <GetPathData> getPathList, string getPathDesc)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreatePathItemListList ` 1String_hotfix != null)
            {
                this.m_CreatePathItemListList ` 1String_hotfix.call(new object[]
                {
                    this,
                    getPathList,
                    getPathDesc
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObjectUtility.DestroyChildren(this.m_contentObj);
            if (getPathList == null || getPathList.Count == 0)
            {
                this.m_tips.gameObject.SetActive(true);
                this.m_tipsText.text = getPathDesc;
                return;
            }
            this.m_tips.gameObject.SetActive(false);
            IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;

            foreach (GetPathData getPathData in getPathList)
            {
                if (getPathData.PathType == GetPathType.GetPathType_HeroDungeon)
                {
                    ConfigDataHeroDungeonLevelInfo configDataHeroDungeonLevelInfo = configDataLoader.GetConfigDataHeroDungeonLevelInfo(getPathData.ID);
                    if (configDataHeroDungeonLevelInfo == null)
                    {
                        continue;
                    }
                    ConfigDataHeroInformationInfo configDataHeroInformationInfo = configDataLoader.GetConfigDataHeroInformationInfo(configDataHeroDungeonLevelInfo.m_chapterId);
                    if (configDataHeroInformationInfo == null || !configDataHeroInformationInfo.IsDungeonLevelsUnLock)
                    {
                        continue;
                    }
                }
                GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.m_itemPrefab);
                GetPathItemUIController getPathItemUIController = GameObjectUtility.AddControllerToGameObject <GetPathItemUIController>(gameObject);
                getPathItemUIController.EventOnGotoButtonClick += this.OnGetPathItemGotoButtonClick;
                getPathItemUIController.SetGetPath(getPathData);
                gameObject.transform.SetParent(this.m_contentObj.transform, false);
            }
        }
コード例 #16
0
        // Token: 0x06008B97 RID: 35735 RVA: 0x0028B9B4 File Offset: 0x00289BB4
        public void Initialize(ClientWorld world, ConfigDataEventInfo eventInfo, RandomEvent randomEvent)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientWorldConfigDataEventInfoRandomEvent_hotfix != null)
            {
                this.m_InitializeClientWorldConfigDataEventInfoRandomEvent_hotfix.call(new object[]
                {
                    this,
                    world,
                    eventInfo,
                    randomEvent
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_clientWorld             = world;
            this.m_eventInfo        = eventInfo;
            this.m_randomEvent      = randomEvent;
            this.m_id               = world.GetNextEntityId();
            this.m_graphicInitScale = (float)eventInfo.ModelScale * 0.01f;
            this.m_graphic          = world.CreateGraphic(eventInfo.Model, this.m_graphicInitScale);
            if (this.m_graphic != null)
            {
                this.m_graphic.SetName("Event_" + eventInfo.ID);
                this.m_graphic.SetRotation(ClientWorldConst.FaceCameraRotation);
                this.m_graphic.SetSortingOrder(2);
            }
            GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(world.EventUIPrefab, world.EventUIRoot.transform, false);

            if (gameObject != null)
            {
                gameObject.name     = "Event_" + eventInfo.ID;
                this.m_uiInitScale  = gameObject.transform.localScale;
                this.m_uiController = GameObjectUtility.AddControllerToGameObject <WorldEventActorUIController>(gameObject);
                this.m_uiController.SetEvent(eventInfo);
                this.m_uiController.EventOnPointerDown += this.OnUIPointerDown;
                this.m_uiController.EventOnPointerUp   += this.OnUIPointerUp;
                this.m_uiController.EventOnClick       += this.OnUIClick;
                gameObject.transform.localRotation      = ClientWorldConst.FaceCameraRotation;
                Canvas canvas = gameObject.AddComponent <Canvas>();
                canvas.overrideSorting = true;
                canvas.sortingOrder    = 2;
                gameObject.AddComponent <GraphicRaycaster>();
            }
            this.PlayAnimation("idle", true);
        }
コード例 #17
0
 // Token: 0x0600F68E RID: 63118 RVA: 0x00412FF4 File Offset: 0x004111F4
 protected override void OnBindFiledsCompleted()
 {
     base.OnBindFiledsCompleted();
     this.m_configDataLoader = (GameManager.Instance.ConfigDataLoader as IConfigDataLoader);
     this.m_playerContext    = (GameManager.Instance.PlayerContext as ProjectLPlayerContext);
     this.m_personalToggle.onValueChanged.AddListener(delegate(bool isSelect)
     {
         this.OnTabChange(this.m_personalToggle.gameObject);
     });
     this.m_guildToggle.onValueChanged.AddListener(delegate(bool isSelect)
     {
         this.OnTabChange(this.m_guildToggle.gameObject);
     });
     this.m_bgButton.onClick.AddListener(new UnityAction(this.OnBGClick));
     this.m_personRewardUIController = GameObjectUtility.AddControllerToGameObject <MassiveCombatPersonRewardUIController>(this.m_personPlane);
     this.m_guildRewardUIController  = GameObjectUtility.AddControllerToGameObject <MassiveCombatGuildRewardUIController>(this.m_guildPlane);
     this.m_personRewardUIController.gameObject.SetActive(true);
 }
コード例 #18
0
 // Token: 0x060149E8 RID: 84456 RVA: 0x0053A5A8 File Offset: 0x005387A8
 protected override void OnBindFiledsCompleted()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
     {
         this.m_OnBindFiledsCompleted_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     base.OnBindFiledsCompleted();
     this.m_skipButton.onClick.AddListener(new UnityAction(this.OnSkipButtonClick));
     this.m_backgroundButton.onClick.AddListener(new UnityAction(this.OnBackgroundButtonClick));
     this.m_dialogCharUIControllers[0] = GameObjectUtility.AddControllerToGameObject <DialogCharUIController>(this.m_char0GameObject);
     this.m_dialogCharUIControllers[1] = GameObjectUtility.AddControllerToGameObject <DialogCharUIController>(this.m_char1GameObject);
     this.m_dialogBoxUIController      = GameObjectUtility.AddControllerToGameObject <UserGuideDialogBoxUIController>(this.m_wordsGameObject);
 }
コード例 #19
0
        // Token: 0x0600F8B9 RID: 63673 RVA: 0x004192B0 File Offset: 0x004174B0
        public void GuildRaidUpdateView()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GuildRaidUpdateView_hotfix != null)
            {
                this.m_GuildRaidUpdateView_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            int num = this.m_configDataLoader.ConfigableConstId_GuildMassiveCombatAvailableCountPerWeek - this.m_playerContext.GetFinishedGuildMassiveCombatThisWeek();

            this.m_timesText.text = num + "/" + this.m_configDataLoader.ConfigableConstId_GuildMassiveCombatAvailableCountPerWeek;
            List <ConfigDataGuildMassiveCombatDifficultyInfo> list = new List <ConfigDataGuildMassiveCombatDifficultyInfo>();

            foreach (KeyValuePair <int, ConfigDataGuildMassiveCombatDifficultyInfo> keyValuePair in this.m_configDataLoader.GetAllConfigDataGuildMassiveCombatDifficultyInfo())
            {
                list.Add(keyValuePair.Value);
            }
            UIUtility.SetGameObjectChildrenActiveCount(this.m_scrollViewContent, list.Count);
            Transform transform = this.m_scrollViewContent.transform;

            for (int i = 0; i < list.Count; i++)
            {
                GuildRaidListItemUIController guildRaidListItemUIController;
                if (i < transform.childCount)
                {
                    Transform child = transform.GetChild(i);
                    guildRaidListItemUIController = child.GetComponent <GuildRaidListItemUIController>();
                }
                else
                {
                    GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.m_levelListItemPrefab);
                    guildRaidListItemUIController = GameObjectUtility.AddControllerToGameObject <GuildRaidListItemUIController>(gameObject);
                    guildRaidListItemUIController.EventOnStartButtonClick += this.OnGuildRaidListItemStartButtonClick;
                    gameObject.transform.SetParent(transform, false);
                }
                ConfigDataGuildMassiveCombatDifficultyInfo info = list[i];
                guildRaidListItemUIController.InitGuildRaidListItemInfo(info);
            }
            this.m_scrollRect.normalizedPosition = Vector2.one;
        }
コード例 #20
0
        // Token: 0x06011D56 RID: 73046 RVA: 0x0049C9F0 File Offset: 0x0049ABF0
        private void ShowAttachmentsUI(Mail mailInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ShowAttachmentsUIMail_hotfix != null)
            {
                this.m_ShowAttachmentsUIMail_hotfix.call(new object[]
                {
                    this,
                    mailInfo
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            foreach (RewardGoodsUIController rewardGoodsUIController in this.m_attachmentUICtrlList)
            {
                rewardGoodsUIController.gameObject.SetActive(false);
            }
            List <Goods> attachments = mailInfo.Attachments;

            if (attachments == null)
            {
                return;
            }
            for (int i = 0; i < attachments.Count; i++)
            {
                RewardGoodsUIController rewardGoodsUIController2;
                if (i >= this.m_attachmentUICtrlList.Count)
                {
                    GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.ItemUICtrlPrefab);
                    PrefabControllerCreater.CreateAllControllers(gameObject);
                    gameObject.transform.SetParent(this.RewardRoot.transform, false);
                    rewardGoodsUIController2 = GameObjectUtility.AddControllerToGameObject <RewardGoodsUIController>(gameObject);
                    this.m_attachmentUICtrlList.Add(rewardGoodsUIController2);
                }
                else
                {
                    rewardGoodsUIController2 = this.m_attachmentUICtrlList[i];
                }
                rewardGoodsUIController2.gameObject.SetActive(true);
                rewardGoodsUIController2.SetReward(attachments[i], 0, true);
            }
        }
コード例 #21
0
 // Token: 0x06008FB9 RID: 36793 RVA: 0x0029D26C File Offset: 0x0029B46C
 private void SetOpenServiceMissionInfo()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetOpenServiceMissionInfo_hotfix != null)
     {
         this.m_SetOpenServiceMissionInfo_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_infoText.text           = this.Mission.Config.Title;
     if (this.Mission.Config.Reward.Count > 0)
     {
         RewardGoodsUIController rewardGoodsUIController;
         if (this.m_itemDummy.transform.childCount != 0)
         {
             GameObject gameObject = this.m_itemDummy.transform.GetChild(0).gameObject;
             gameObject.SetActive(true);
             rewardGoodsUIController = gameObject.GetComponent <RewardGoodsUIController>();
             if (rewardGoodsUIController == null)
             {
                 rewardGoodsUIController = GameObjectUtility.AddControllerToGameObject <RewardGoodsUIController>(gameObject);
             }
         }
         else
         {
             GameObject gameObject2 = base.GetAssetInContainer <GameObject>("RewardGoods");
             gameObject2 = UnityEngine.Object.Instantiate <GameObject>(gameObject2);
             gameObject2.transform.SetParent(this.m_itemDummy.transform, false);
             rewardGoodsUIController = GameObjectUtility.AddControllerToGameObject <RewardGoodsUIController>(gameObject2);
         }
         rewardGoodsUIController.SetReward(this.Mission.Config.Reward[0], 1, false);
         rewardGoodsUIController.ShowCount(true);
     }
     else if (this.m_itemDummy.transform.childCount != 0)
     {
         Transform child = this.m_itemDummy.transform.GetChild(0);
         child.gameObject.SetActive(false);
     }
 }
コード例 #22
0
        // Token: 0x0601436E RID: 82798 RVA: 0x00524F88 File Offset: 0x00523188
        public void AddTreasureLevelButton(ConfigDataTreasureLevelInfo levelnfo, bool opened)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AddTreasureLevelButtonConfigDataTreasureLevelInfoBoolean_hotfix != null)
            {
                this.m_AddTreasureLevelButtonConfigDataTreasureLevelInfoBoolean_hotfix.call(new object[]
                {
                    this,
                    levelnfo,
                    opened
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObject go = UnityEngine.Object.Instantiate <GameObject>(this.m_treasureLevelListItemPrefab, this.m_levelListScrollRect.content, false);
            TreasureLevelListItemUIController treasureLevelListItemUIController = GameObjectUtility.AddControllerToGameObject <TreasureLevelListItemUIController>(go);

            treasureLevelListItemUIController.SetTreasureLevelInfo(levelnfo);
            treasureLevelListItemUIController.SetLocked(!opened, levelnfo);
            treasureLevelListItemUIController.EventOnStartButtonClick += this.ThreasureLevelListItem_OnStartButtonClick;
            this.m_treasureLevelListItems.Add(treasureLevelListItemUIController);
        }
    public static int AddControllerToGameObject_s(IntPtr l)
    {
        int result;

        try
        {
            Type type;
            LuaObject.checkType(l, 1, out type);
            GameObject go;
            LuaObject.checkType <GameObject>(l, 2, out go);
            PrefabControllerBase o = GameObjectUtility.AddControllerToGameObject(type, go);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #24
0
        // Token: 0x06008BE7 RID: 35815 RVA: 0x0028D194 File Offset: 0x0028B394
        public void Initialize(ClientWorld world)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientWorld_hotfix != null)
            {
                this.m_InitializeClientWorld_hotfix.call(new object[]
                {
                    this,
                    world
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_clientWorld             = world;
            this.m_id = world.GetNextEntityId();
            GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(world.PlayerUIPrefab, world.PlayerUIRoot.transform, false);

            if (gameObject != null)
            {
                gameObject.name     = "Player";
                this.m_uiController = GameObjectUtility.AddControllerToGameObject <WorldPlayerActorUIController>(gameObject);
                gameObject.transform.localRotation = ClientWorldConst.FaceCameraRotation;
            }
        }
コード例 #25
0
        // Token: 0x0600D7A0 RID: 55200 RVA: 0x003AAD30 File Offset: 0x003A8F30
        protected override void OnBindFiledsCompleted()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
            {
                this.m_OnBindFiledsCompleted_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.OnBindFiledsCompleted();
            PointDescComponent pointDescComponent = GameObjectUtility.AddControllerToGameObject <PointDescComponent>(base.gameObject);

            pointDescComponent.SetGameObject(base.gameObject, true, null, null);
            pointDescComponent.EventOnClose += delegate()
            {
                if (this.EventOnClose != null)
                {
                    this.EventOnClose();
                }
                this.ClosePanel();
            };
        }
コード例 #26
0
        // Token: 0x0600F1BD RID: 61885 RVA: 0x0040383C File Offset: 0x00401A3C
        protected override void OnBindFiledsCompleted()
        {
            base.OnBindFiledsCompleted();
            this.m_configDataLoader = (GameManager.Instance.ConfigDataLoader as IConfigDataLoader);
            this.m_playerContext    = (GameManager.Instance.PlayerContext as ProjectLPlayerContext);
            this.m_closeButton.onClick.AddListener(new UnityAction(this.OnCloseClick));
            this.m_bgButton.onClick.AddListener(new UnityAction(this.OnBgClick));
            for (int i = 0; i < this.m_rankingInfinityGrid.MinAmount; i++)
            {
                GameObject go = GameObjectUtility.CloneGameObject(this.m_contributionRankingItemPrefab, this.m_rankingInfinityGrid.transform);
                GuildContributionRankingItemUIController guildContributionRankingItemUIController = GameObjectUtility.AddControllerToGameObject <GuildContributionRankingItemUIController>(go);
            }
            InfinityGridLayoutGroup rankingInfinityGrid = this.m_rankingInfinityGrid;

            rankingInfinityGrid.updateChildrenCallback = (InfinityGridLayoutGroup.UpdateChildrenCallbackDelegate)Delegate.Combine(rankingInfinityGrid.updateChildrenCallback, new InfinityGridLayoutGroup.UpdateChildrenCallbackDelegate(this.OnItemUpdate));
            GuildMassiveCombatInfo currentGuildMassiveCombatInfo = this.m_playerContext.GetCurrentGuildMassiveCombatInfo();

            this.m_guildMassiveCombatMemberList = currentGuildMassiveCombatInfo.Members;
            this.m_guildMassiveCombatMemberList.Sort(new Comparison <GuildMassiveCombatMemberInfo>(this.RankCompare));
        }
コード例 #27
0
        // Token: 0x060117A3 RID: 71587 RVA: 0x00486838 File Offset: 0x00484A38
        private void AddHeroTrainningLevelListItem(ConfigDataHeroTrainningLevelInfo levelnfo, bool opened)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AddHeroTrainningLevelListItemConfigDataHeroTrainningLevelInfoBoolean_hotfix != null)
            {
                this.m_AddHeroTrainningLevelListItemConfigDataHeroTrainningLevelInfoBoolean_hotfix.call(new object[]
                {
                    this,
                    levelnfo,
                    opened
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObject go = UnityEngine.Object.Instantiate <GameObject>(this.m_heroTrainningLevelListItemPrefab, this.m_levelListScrollRect.content, false);
            HeroTrainningLevelListItemUIController heroTrainningLevelListItemUIController = GameObjectUtility.AddControllerToGameObject <HeroTrainningLevelListItemUIController>(go);

            heroTrainningLevelListItemUIController.SetHeroTrainningLevelInfo(levelnfo);
            heroTrainningLevelListItemUIController.SetLocked(!opened);
            heroTrainningLevelListItemUIController.EventOnStartButtonClick += this.HeroTrainningLevelListItem_OnStartButtonClick;
            this.m_heroTrainningLevelListItems.Add(heroTrainningLevelListItemUIController);
        }
コード例 #28
0
        // Token: 0x0600F697 RID: 63127 RVA: 0x004131E8 File Offset: 0x004113E8
        public void Init()
        {
            GuildMassiveCombatInfo currentGuildMassiveCombatInfo = this.m_playerContext.GetCurrentGuildMassiveCombatInfo();
            ConfigDataGuildMassiveCombatDifficultyInfo configDataGuildMassiveCombatDifficultyInfo = this.m_configDataLoader.GetConfigDataGuildMassiveCombatDifficultyInfo(currentGuildMassiveCombatInfo.Difficulty);
            List <ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo> list = new List <ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo>();

            foreach (KeyValuePair <int, ConfigDataGuildMassiveCombatIndividualPointsRewardsInfo> keyValuePair in this.m_configDataLoader.GetAllConfigDataGuildMassiveCombatIndividualPointsRewardsInfo())
            {
                if (keyValuePair.Value.RewardGroupID == configDataGuildMassiveCombatDifficultyInfo.IndividualPointsRewardsInfo)
                {
                    list.Add(keyValuePair.Value);
                }
            }
            for (int i = 0; i < list.Count; i++)
            {
                GameObject go = GameObjectUtility.CloneGameObject(this.m_itemPrefab, this.m_rewardContent.transform);
                MassiveCombatPersonRewardItemUIController massiveCombatPersonRewardItemUIController = GameObjectUtility.AddControllerToGameObject <MassiveCombatPersonRewardItemUIController>(go);
                massiveCombatPersonRewardItemUIController.Init(list[i]);
                this.m_rewardItemUIControllerList.Add(massiveCombatPersonRewardItemUIController);
            }
            GuildPlayerMassiveCombatInfo guildPlayerMassiveCombatInfo = this.m_playerContext.GetGuildPlayerMassiveCombatInfo();

            this.m_total.text = guildPlayerMassiveCombatInfo.Points.ToString();
        }
コード例 #29
0
        // Token: 0x0600F69F RID: 63135 RVA: 0x004134FC File Offset: 0x004116FC
        public void Init()
        {
            GuildMassiveCombatInfo currentGuildMassiveCombatInfo = this.m_playerContext.GetCurrentGuildMassiveCombatInfo();
            ConfigDataGuildMassiveCombatDifficultyInfo configDataGuildMassiveCombatDifficultyInfo = this.m_configDataLoader.GetConfigDataGuildMassiveCombatDifficultyInfo(currentGuildMassiveCombatInfo.Difficulty);
            List <Rewards> rewardsInfo = configDataGuildMassiveCombatDifficultyInfo.RewardsInfo;

            foreach (Rewards reward in rewardsInfo)
            {
                GameObject go = GameObjectUtility.CloneGameObject(this.m_itemPrefab, this.m_rewardContent.transform);
                MassiveCombatGuildRewardItemUIController massiveCombatGuildRewardItemUIController = GameObjectUtility.AddControllerToGameObject <MassiveCombatGuildRewardItemUIController>(go);
                massiveCombatGuildRewardItemUIController.Init(reward, configDataGuildMassiveCombatDifficultyInfo.BonusGuildCoins);
                this.m_rewardItemUIControllerList.Add(massiveCombatGuildRewardItemUIController);
            }
            this.m_total.text = string.Format("{0}%", this.m_playerContext.GetGuildMassiveCombatEliminateRate());
        }
コード例 #30
0
 // Token: 0x0600EFD1 RID: 61393 RVA: 0x003FE9FC File Offset: 0x003FCBFC
 public void RefreshGuildList(List <GuildSearchInfo> guildSearchInfoList)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_RefreshGuildListList ` 1_hotfix != null)
     {
         this.m_RefreshGuildListList ` 1_hotfix.call(new object[]
         {
             this,
             guildSearchInfoList
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_showGuildInfoList       = guildSearchInfoList;
     foreach (BeforeJoinSingleGuildUIController beforeJoinSingleGuildUIController in this.m_guildInfoUIController)
     {
         UnityEngine.Object.Destroy(beforeJoinSingleGuildUIController.gameObject);
     }
     this.m_guildInfoUIController.Clear();
     foreach (GuildSearchInfo guildSearchInfo in guildSearchInfoList)
     {
         GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.m_guildItem);
         gameObject.transform.SetParent(this.m_guildListContent, false);
         BeforeJoinSingleGuildUIController beforeJoinSingleGuildUIController2 = GameObjectUtility.AddControllerToGameObject <BeforeJoinSingleGuildUIController>(gameObject);
         beforeJoinSingleGuildUIController2.Init(guildSearchInfo, new Action <BeforeJoinSingleGuildUIController>(this.OnGuildItemClick));
         this.m_guildInfoUIController.Add(beforeJoinSingleGuildUIController2);
     }
     if (this.m_guildInfoUIController.Count > 0)
     {
         this.SetGuildItemSelect(this.m_guildInfoUIController[0]);
         this.m_listPanelAnimation.SetToUIState("Normal", false, true);
     }
     else
     {
         this.m_guildUIController.m_guildInfoUIController.SetInfoPanelState(false);
         this.m_listPanelAnimation.SetToUIState("Nothing", false, true);
     }
 }