This commit is contained in:
bob
2025-06-05 15:39:47 +08:00
parent 55f49e1af7
commit f9c0975f10
50 changed files with 575 additions and 51 deletions

View File

@@ -22,28 +22,13 @@ namespace NBF
ExcelToJsonWindow.GenConfig(false);
AssetDatabase.Refresh();
}
// [MenuItem("构建/配置表/读取")]
// public static void Read()
// {
// var assets = EditorUtils.GetOrCreateAsset<ConfigAssets>(ConfigAssets.SavePath);
//
// var path = Path.Combine(Application.dataPath, "Resources/config", "Input.json");
// var json = File.ReadAllText(path);
//
// JsonUtility.FromJsonOverwrite(json, assets);
// EditorUtility.SetDirty(assets);
// AssetDatabase.SaveAssets(); // 保存更改
// AssetDatabase.Refresh();
// }
// [MenuItem("构建/配置表/转json")]
// public static void GenJson()
// {
// CfgAssets cfgAssets = AssetDatabase.LoadAssetAtPath<CfgAssets>("Assets/Resources/config/CfgAssets.asset");
// var json = JsonUtility.ToJson(cfgAssets);
// File.WriteAllText(Path.Combine(Application.dataPath, "Resources/config", "Input.json"), json);
// // CfgAssets cfgAssets = Resources.Load<CfgAssets>("config/CfgAssets");
// }
[MenuItem("构建/配置表/导多语言")]
public static void BuildLanguage()
{
ExcelToJsonWindow.GenLanguage();
AssetDatabase.Refresh();
}
#region

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8a74bb7a59dd4f689beec3add0e7c8c6
timeCreated: 1749097649