예제 #1
0
        private void OnInfoListener(string path, INodeData data)
        {
            AllianceEscortUtil.FormatResidueRobDartNum(ResidueRobNumLabel);

            int    residueTransferNum = AllianceEscortUtil.GetResidueTransferDartNum();
            string colorStr           = residueTransferNum > 0 ? LT.Hotfix.Utility.ColorUtility.GreenColorHexadecimal : LT.Hotfix.Utility.ColorUtility.RedColorHexadecimal;

            LTUIUtil.SetText(ResidueTransferDartNumLabel, string.Format(EB.Localizer.GetString("ID_codefont_in_AllianceEscortHudController_2955"), colorStr, residueTransferNum));

            LTUIUtil.SetText(TransferDartTimeLabel, Hotfix_LT.Data.EventTemplateManager.Instance.GetActivityOpenTimeStr("escort_start", "escort_stop"));
        }
예제 #2
0
        void InitUIMode()
        {
            List <LTShowItemData> rewardDatas = sRewardDataList;

            BG.CustomSetActive(true);
            BG2.CustomSetActive(false);
            RewardRoot.transform.localPosition = new Vector3(0, RewardRoot.transform.localPosition.y, 0);
            switch (sResultType)
            {
            case eDartResultType.TransferSuccess:
                LTUIUtil.SetText(TitleLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1251"));
                RewardRoot.gameObject.CustomSetActive(true);
                SetReward(rewardDatas);
                FailTipsLabel.gameObject.CustomSetActive(false);
                LTUIUtil.SetText(ResiduePrefixLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1425"));
                AllianceEscortUtil.FormatResidueTransferDartNum(ResidueNumLabel);
                LTUIUtil.SetText(ContinueBtnLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1549"));
                break;

            case eDartResultType.TransferFail:
                BG.CustomSetActive(false);
                BG2.CustomSetActive(true);
                RewardRoot.transform.localPosition = new Vector3(150, RewardRoot.transform.localPosition.y, 0);
                if (InterceptorData != null)
                {
                    var heroInfo = CharacterTemplateManager.Instance.GetHeroInfo(InterceptorData.CharacterId, InterceptorData.Skin);
                    if (heroInfo != null)
                    {
                        m_Icon.spriteName = heroInfo.icon;
                    }
                    m_Frame.spriteName = EconemyTemplateManager.Instance.GetHeadFrame(InterceptorData.Frame).iconId;
                }
                else
                {
                    m_Icon.gameObject.CustomSetActive(false);
                }
                LTUIUtil.SetText(TitleLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1643"));
                RewardRoot.gameObject.CustomSetActive(true);
                SetReward(rewardDatas);
                FailTipsLabel.gameObject.CustomSetActive(false);
                LTUIUtil.SetText(ResiduePrefixLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1425"));
                AllianceEscortUtil.FormatResidueTransferDartNum(ResidueNumLabel);
                LTUIUtil.SetText(ContinueBtnLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1549"));
                break;

            case eDartResultType.TransferFailByTimeout:
                LTUIUtil.SetText(TitleLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1643"));
                RewardRoot.gameObject.CustomSetActive(false);
                LTUIUtil.SetText(FailTipsLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_2136"));
                FailTipsLabel.gameObject.CustomSetActive(true);
                LTUIUtil.SetText(ResiduePrefixLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1425"));
                AllianceEscortUtil.FormatResidueTransferDartNum(ResidueNumLabel);
                LTUIUtil.SetText(ContinueBtnLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_1549"));
                break;

            case eDartResultType.RobSuccess:
                LTUIUtil.SetText(TitleLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_2460"));
                RewardRoot.gameObject.CustomSetActive(true);
                SetReward(rewardDatas);
                AlliancesManager.Instance.RobDartInfo.RobAwards = null;
                FailTipsLabel.gameObject.CustomSetActive(false);
                LTUIUtil.SetText(ResiduePrefixLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_2694"));
                AllianceEscortUtil.FormatResidueRobDartNum(ResidueNumLabel);
                LTUIUtil.SetText(ContinueBtnLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_2814"));
                break;

            case eDartResultType.RobFail:
                LTUIUtil.SetText(TitleLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_2903"));
                RewardRoot.gameObject.CustomSetActive(false);
                LTUIUtil.SetText(FailTipsLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_2994"));
                FailTipsLabel.gameObject.CustomSetActive(true);
                LTUIUtil.SetText(ResiduePrefixLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_2694"));
                AllianceEscortUtil.FormatResidueRobDartNum(ResidueNumLabel);
                LTUIUtil.SetText(ContinueBtnLabel, EB.Localizer.GetString("ID_codefont_in_DartResultController_2814"));
                break;
            }
        }