private string GetIconPath(ConceptCardParam param) { if (param == null) { return((string)null); } return(AssetPath.ConceptCardIcon(param)); }
private string GetIconPath(ConceptCardParam param, bool isSecret) { if (isSecret) { return(this.GetSecretIconPath()); } if (param == null) { return(string.Empty); } return(AssetPath.ConceptCardIcon(param)); }
public string GetIconPath() { switch (this.reward_type) { case eRewardType.Item: return(AssetPath.ItemIcon(MonoSingleton <GameManager> .Instance.GetItemParam(this.iname))); case eRewardType.Artifact: return(AssetPath.ArtifactIcon(MonoSingleton <GameManager> .Instance.MasterParam.GetArtifactParam(this.iname))); case eRewardType.ConceptCard: return(AssetPath.ConceptCardIcon(MonoSingleton <GameManager> .Instance.MasterParam.GetConceptCardParam(this.iname))); default: return(string.Empty); } }
private void RefreshIconImage() { if (this.mConceptCard == null || Object.op_Equality((Object)this.mIconImage, (Object)null)) { MonoSingleton <GameManager> .Instance.CancelTextureLoadRequest(this.mIconImage); } else { MonoSingleton <GameManager> .Instance.ApplyTextureAsync(this.mIconImage, AssetPath.ConceptCardIcon(this.mConceptCard.Param)); } }