/// <summary> /// 获得禁用的图标,有可能没有 /// </summary> /// <returns></returns> public virtual Sprite GetDisIcon() { if (!Icon.IsInvStr()) { return(GRMgr.GetIcon(Icon + BaseConstMgr.Suffix_Disable)); } return(GRMgr.GetIcon(TDID + BaseConstMgr.Suffix_Disable)); }
/// <summary> /// 获取icon /// </summary> /// <returns></returns> public virtual Sprite GetIcon() { if (!Icon.IsInvStr()) { return(GRMgr.GetIcon(Icon)); } return(GRMgr.GetIcon(TDID)); }
public override Sprite GetIcon() { var ret = GRMgr.GetIcon(BaseConstMgr.Prefix_Attr + TDID); if (ret == null) { ret = base.GetIcon(); } return(ret); }
public Sprite GetBg() { return(GRMgr.GetIcon(Bg)); }