private void SetSortieLimitState(GameWebAPI.RespDataMA_GetMonsterMG.MonsterM monsterMaster) { if (!ClassSingleton <QuestData> .Instance.CheckSortieLimit(this.deckData.SortieLimitList.GetSortieLimitList(), monsterMaster.tribe, monsterMaster.growStep)) { this.monsterIcon.Message.SetStateText(StringMaster.GetString("PartySortieLimitNG")); MonsterIconGrayout.SetGrayout(this.monsterIcon.GetRootObject(), GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); } else { this.monsterIcon.Message.ClearStateText(); MonsterIconGrayout.SetGrayout(this.monsterIcon.GetRootObject(), GUIMonsterIcon.DIMM_LEVEL.ACTIVE); } }
public void SetMonsterIcon(PicturebookItem.TextureData textureData, string growStep, bool isUnknown) { if (null == this.txCHAR.material) { Shader iconShader = GUIMonsterIcon.GetIconShader(); this.txCHAR.material = new Material(iconShader); } if (!textureData._isMainTexture) { this.txCHAR.material.SetTexture("_MaskTex", textureData._monsterAlphaTexture); this.txCHAR.material.SetTexture("_MainTex", textureData._monsterTexture); } else { NGUIUtil.ChangeUITexture(this.txCHAR, textureData._monsterTexture, false); this.txCHAR.material.SetTexture("_MaskTex", Texture2D.whiteTexture); } int growStep2 = int.Parse(growStep); PicturebookMonsterIcon.SetThumbnailFrame(this.spBASE, this.spFRAME, growStep2); this.ngTX_IS_UNKOWN.gameObject.SetActive(isUnknown); MonsterIconGrayout.SetGrayout(base.gameObject, (!isUnknown) ? GUIMonsterIcon.DIMM_LEVEL.ACTIVE : GUIMonsterIcon.DIMM_LEVEL.DISABLE); }
public void SetSelect() { this.monsterIcon.Message.SetStateText(StringMaster.GetString("SystemSelect")); MonsterIconGrayout.SetGrayout(this.monsterIcon.GetRootObject(), GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); }