public void ApplyMonsterButtonIcon(CharacterStateControl characterStatus, bool isLeader, string resourcePath, string assetBundlePath)
 {
     GUIMonsterIcon.SetTextureMonsterParts(this.monsterIconTexture, resourcePath, assetBundlePath, true);
     this.frame.SetEvolutionStep(characterStatus.characterDatas.growStep);
     this.SetArousal(characterStatus.arousal);
     this.ApplyLeaderIcon(isLeader);
 }
Пример #2
0
 private void SetThumbnailMonster(UITexture iconTexture, MonsterData iconMonsterData, bool isLoadASync)
 {
     if (string.IsNullOrEmpty(iconMonsterData.monsterM.iconId))
     {
         iconTexture.transform.gameObject.SetActive(false);
     }
     else
     {
         string assetBundlePath = string.Empty;
         string resourcePath    = string.Empty;
         iconTexture.transform.gameObject.SetActive(true);
         if (!iconMonsterData.userMonster.IsEgg())
         {
             assetBundlePath = GUIMonsterIcon.GetMonsterIconPathByIconId(iconMonsterData.monsterM.iconId);
             resourcePath    = GUIMonsterIcon.InternalGetMonsterIconPathByIconId(iconMonsterData.monsterM.iconId);
         }
         else
         {
             int    num    = MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM.Length;
             string iconId = string.Empty;
             for (int i = 0; i < num; i++)
             {
                 GameWebAPI.RespDataMA_GetMonsterEvolutionRouteM.MonsterEvolutionRouteM monsterEvolutionRouteM = MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM[i];
                 if (monsterEvolutionRouteM.monsterEvolutionRouteId == iconMonsterData.userMonster.monsterEvolutionRouteId)
                 {
                     iconId = monsterEvolutionRouteM.eggMonsterId;
                     break;
                 }
             }
             assetBundlePath = GUIMonsterIcon.GetMonsterIconPathByIconId(iconId);
             resourcePath    = GUIMonsterIcon.InternalGetMonsterIconPathByIconId(iconId);
         }
         GUIMonsterIcon.SetTextureMonsterParts(iconTexture, resourcePath, assetBundlePath, isLoadASync);
     }
 }
Пример #3
0
    public void SetImage(string iconId, string growStep)
    {
        string resourcePath            = GUIMonsterIcon.InternalGetMonsterIconPathByIconId(iconId);
        string monsterIconPathByIconId = GUIMonsterIcon.GetMonsterIconPathByIconId(iconId);

        this.monsterImage.enabled = false;
        GUIMonsterIcon.SetTextureMonsterParts(this.monsterImage, resourcePath, monsterIconPathByIconId, true);
        this.monsterImage.enabled = true;
        UISprite component = base.gameObject.GetComponent <UISprite>();
        int      growStep2 = (int)MonsterGrowStepData.ToGrowStep(growStep);

        GUIMonsterIcon.SetThumbnailFrame(component, this.frameImage, growStep2);
    }
Пример #4
0
    public void SetMonsterIcon(string iconId, string arousal, string growStep)
    {
        base.ShowGUI();
        this.txCHAR.transform.gameObject.SetActive(true);
        string monsterIconPathByIconId = GUIMonsterIcon.GetMonsterIconPathByIconId(iconId);
        string resourcePath            = GUIMonsterIcon.InternalGetMonsterIconPathByIconId(iconId);

        GUIMonsterIcon.SetTextureMonsterParts(this.txCHAR, resourcePath, monsterIconPathByIconId, this.ReadTexByASync);
        GUIMonsterIcon.DispArousal(arousal, this.goArousal, this.spArousal);
        int growStep2 = int.Parse(growStep);

        GUIMonsterIcon.SetThumbnailFrame(this.spBASE, this.spFRAME, growStep2);
        if (!this._gimmick && this.goGimmick != null)
        {
            this.goGimmick.SetActive(false);
        }
    }