Esempio n. 1
0
    void ShowOpponentView()
    {
        UIStage       = 1;
        SearchSecond  = 0;
        progress.text = WuLinData.WuLinRounderTip();
        if (WuLinData.OppoViewInfo.guid == Games.GlobeDefine.GlobeVar.INVALID_GUID)
        {
            string text = "";
            if (WuLinData.Rounder == 1)
            {
                text = StrDictionary.GetClientDictionaryString("#{4813}");
            }
            else
            {
                string roundTips = WuLinData.WuLinRoundTipPrefix();
                text = StrDictionary.GetClientDictionaryString("#{4814}", roundTips);
            }

            searchTip.text = text;
            Countdown.text = text;
        }
        else
        {
            searchTip.text = Utils.GetDicByID(1845);
            Countdown.text = Utils.GetDicByID(1845);
            int id = (int)WuLinData.OppoViewInfo.profession;
            Tab_RoleBaseAttr roleBaseAttr = TableManager.GetRoleBaseAttrByID(id, 0);
            if (roleBaseAttr != null)
            {
                Tab_CharModel charModel = TableManager.GetCharModelByID(roleBaseAttr.CharModelID, 0);
                if (charModel != null)
                {
                    HeadIcon.spriteName = charModel.HeadPic;
                }
            }
            // if( id >= 0 && id <  CharacterDefine.PROFESSION_DICNUM.Length)
            {
                Profession.text = Utils.GetProfessionNameByType(id);
                //Utils.GetDicByID(CharacterDefine.PROFESSION_DICNUM[id]);
            }
        }

        Name.text      = WuLinData.OppoViewInfo.name;
        CombatNum.text = WuLinData.OppoViewInfo.combat.ToString();
        HP.text        = WuLinData.OppoViewInfo.hp.ToString();
        MP.text        = WuLinData.OppoViewInfo.mp.ToString();
        Attack.text    = WuLinData.OppoViewInfo.atk.ToString();
        Defense.text   = WuLinData.OppoViewInfo.def.ToString();
        Critical.text  = WuLinData.OppoViewInfo.cri.ToString();
        Speed.text     = WuLinData.OppoViewInfo.spd.ToString();
        dodge.text     = WuLinData.OppoViewInfo.dge.ToString();
    }
    public void ShowWuLinResult()
    {
        string tips = WuLinData.WuLinRoundTipPrefix();

        if (WuLinData.Resultwin == 1)
        {
            if (WuLinData.Rounder == 1)
            {
                LableResult.text = StrDictionary.GetClientDictionaryString("#{4813}");
            }
            else
            {
                LableResult.text = StrDictionary.GetClientDictionaryString("#{4824}", tips);
            }
            SprWinOrLose.spriteName = "Win";
        }
        else
        {
            LableResult.text        = StrDictionary.GetClientDictionaryString("#{4825}", tips);
            SprWinOrLose.spriteName = "Lose";
        }
    }