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);
    }
Beispiel #2
0
    public static string GetText(string key)
    {
        DLocalString cfg = ReadCfgLocalString.GetDataById(key);

        return(cfg == null ? key : cfg.Value);
    }