예제 #1
0
        private void _Show_PlayerInfo(COMDT_PLAYERINFO info, uint force, int levelIndex, string headurl = "", COMDT_GAME_VIP_CLIENT nobeVip = null)
        {
            this.nameText.text  = string.Format(UT.Bytes2String(info.szName), new object[0]);
            this.levelText.text = string.Format(info.dwLevel.ToString(), new object[0]);
            if (string.IsNullOrEmpty(headurl))
            {
                this.HttpImage.GetComponent <Image>().SetSprite(CUIUtility.s_Sprite_Dynamic_Icon_Dir + Singleton <BurnExpeditionController> .instance.model.GetRandomRobotIcon(levelIndex), this.map_fromScript, true, false, false);
            }
            else
            {
                UT.SetHttpImage(this.HttpImage, headurl);
            }
            Image component = this.enemyNode.transform.FindChild("PlayerIcon/NobeIcon").GetComponent <Image>();
            Image image     = this.enemyNode.transform.FindChild("PlayerIcon/pnlSnsHead/NobeImag").GetComponent <Image>();

            if (nobeVip != null)
            {
                if (component != null)
                {
                    MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component, (int)nobeVip.dwCurLevel, false);
                }
                if (image != null)
                {
                    MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(image, (int)nobeVip.dwHeadIconId);
                }
            }
            this.enemy_node_0.CustomSetActive(false);
            this.enemy_node_1.CustomSetActive(false);
            this.enemy_node_2.CustomSetActive(false);
            for (int i = 0; i < info.astChoiceHero.Length; i++)
            {
                COMDT_CHOICEHERO comdt_choicehero = info.astChoiceHero[i];
                if ((comdt_choicehero != null) && (comdt_choicehero.stBaseInfo.stCommonInfo.dwHeroID != 0))
                {
                    this._Show_Enemy_Heros(i, comdt_choicehero.stBaseInfo.stCommonInfo.dwHeroID, string.Empty, comdt_choicehero.stBaseInfo.stCommonInfo.wLevel, comdt_choicehero.stBaseInfo.stCommonInfo.wStar, comdt_choicehero.stBurningInfo.dwBloodTTH, comdt_choicehero.stBaseInfo.stCommonInfo.dwHeroID);
                }
            }
            this.SymbolLevel.CustomSetActive(false);
            for (int j = 0; j < info.astChoiceHero.Length; j++)
            {
                COMDT_CHOICEHERO comdt_choicehero2 = info.astChoiceHero[j];
                if ((comdt_choicehero2 != null) && (comdt_choicehero2.stBaseInfo.stCommonInfo.dwHeroID != 0))
                {
                    int symbolLvWithArray = CSymbolInfo.GetSymbolLvWithArray(comdt_choicehero2.SymbolID);
                    if (symbolLvWithArray > 0)
                    {
                        this.SymbolLevel.CustomSetActive(true);
                        Utility.GetComponetInChild <Text>(this.SymbolLevel, "Text").text = symbolLvWithArray.ToString();
                    }
                    break;
                }
            }
            BurnExpeditionModel model = Singleton <BurnExpeditionController> .instance.model;

            uint[] numArray = model.Get_Buffs(levelIndex);
            this._Show_Buff(this._GetBuffNode(0), (int)numArray[0], false);
            this._Show_Buff(this._GetBuffNode(1), (int)numArray[1], false);
            this._Show_Buff(this._GetBuffNode(2), (int)numArray[2], false);
            this._Show_Buff_Selected_Index(model.curSelect_BuffIndex);
        }
예제 #2
0
        public string GetPlayerHearUrl()
        {
            COMDT_BURNING_ENEMY_TEAM_INFO comdt_burning_enemy_team_info = this.Get_CurLevel_ENEMY_TEAM_INFO();

            if (comdt_burning_enemy_team_info.bType == 1)
            {
                return(UT.Bytes2String(comdt_burning_enemy_team_info.stDetail.stRealMan.szHeadUrl));
            }
            return(string.Empty);
        }
예제 #3
0
        public string GetPlayerHearUrl()
        {
            COMDT_BURNING_ENEMY_TEAM_INFO curLevel_ENEMY_TEAM_INFO = this.Get_CurLevel_ENEMY_TEAM_INFO();

            if (curLevel_ENEMY_TEAM_INFO.bType == 1)
            {
                return(UT.Bytes2String(curLevel_ENEMY_TEAM_INFO.stDetail.stRealMan.szHeadUrl));
            }
            return(string.Empty);
        }
예제 #4
0
        private void Show_Enemy(COMDT_BURNING_ENEMY_TEAM_INFO info, int levelIndex)
        {
            string                headurl = string.Empty;
            COMDT_PLAYERINFO      stEnemyDetail;
            uint                  dwEnemyTeamForce;
            COMDT_GAME_VIP_CLIENT nobeVip;

            if (info.bType == 1)
            {
                stEnemyDetail    = info.stDetail.get_stRealMan().stEnemyDetail;
                dwEnemyTeamForce = info.dwEnemyTeamForce;
                headurl          = UT.Bytes2String(info.stDetail.get_stRealMan().szHeadUrl);
                nobeVip          = info.stDetail.get_stRealMan().stVip;
            }
            else
            {
                stEnemyDetail    = info.stDetail.get_stRobot().stEnemyDetail;
                dwEnemyTeamForce = info.dwEnemyTeamForce;
                nobeVip          = null;
            }
            this._Show_PlayerInfo(stEnemyDetail, dwEnemyTeamForce, levelIndex, headurl, nobeVip);
        }