public static void CalcCharacterOperateError(Resp resp) { if (resp == Resp.TYPE_NO || resp == Resp.TYPE_YES) { return; } string key = resp.ToString(); DLocalString db = ReadCfgLocalString.GetDataById(key); if (db == null) { return; } GTItemHelper.ShowTip(db.Value); }
public static string GetText(string key) { DLocalString cfg = ReadCfgLocalString.GetDataById(key); return(cfg == null ? key : cfg.Value); }