public static void AddType(Type t) { if (!EffectTypeList.Contains(t)) { EffectTypeList.Add(t); string filePath = t.ToString().Replace(@"_", @"/"); TypeNameList.Add(filePath); } }
public static void AddType(Type t) { if (!EffectTypeList.Contains(t)) { EffectTypeList.Add(t); string[] names = t.ToString().Split('_'); string chinesepath = t.ToString(); for (int i = 0; i < names.Length; i++) { string name = names[i]; if (typeChineseNameDict.ContainsKey(name)) { string chinese = typeChineseNameDict[name]; chinesepath = chinesepath.Replace(name, chinese); } } string newchn = chinesepath.Replace(@"_", @"/"); typeChineseNameList.Add(newchn); string filePath = t.ToString().Replace(@"_", @"/"); TypeNameList.Add(filePath); } }