Example #1
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);
    }
Example #2
0
    public override void ShowGUI()
    {
        base.ShowGUI();
        this.SetThumbnailMonster(this.txCHAR, this.data, this.ReadTexByASync);
        GUIMonsterIcon.DispArousal(this.data.monsterM.rare, this.goArousal, this.spArousal);
        int growStep = int.Parse(this.data.monsterMG.growStep);

        GUIMonsterIcon.SetThumbnailFrame(this.spBASE, this.spFRAME, growStep);
        if (!this._gimmick && this.goGimmick != null)
        {
            this.goGimmick.SetActive(false);
        }
    }
Example #3
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);
        }
    }