|
@@ -29,91 +29,10 @@ namespace GFGEditor
|
|
|
}
|
|
|
|
|
|
#if PT_DEV
|
|
|
- [MenuItem("内网/")]
|
|
|
+ [MenuItem("外网DEV/")]
|
|
|
public static void VersionTag()
|
|
|
{
|
|
|
-
|
|
|
- }
|
|
|
- [MenuItem("策划/更新并导入所有", false, (int)TOOL_MENU_PRIORITY.UpdateAndImportAll)]
|
|
|
- static void UpdateAndImportAll()
|
|
|
- {
|
|
|
- UpdateProject();
|
|
|
- UpdateAndImportArtRes();
|
|
|
- UpdateAndImportExcel();
|
|
|
- if (CommitWhenRelease)
|
|
|
- {
|
|
|
- CommitProject();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MenuItem("策划/更新并导入Excel", false, (int)TOOL_MENU_PRIORITY.UpdateAndImportExcel)]
|
|
|
- static void UpdateAndImportExcelAndCommit()
|
|
|
- {
|
|
|
- UpdateAndImportExcel();
|
|
|
- if (CommitWhenRelease)
|
|
|
- {
|
|
|
- CommitProject();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MenuItem("策划/更新并导入美术资源", false, (int)TOOL_MENU_PRIORITY.UpdateAndImportArtRes)]
|
|
|
- static void UpdateAndImportArtResAndCommit()
|
|
|
- {
|
|
|
- UpdateProjectRes();
|
|
|
- UpdateAndImportArtRes();
|
|
|
- if (CommitWhenRelease)
|
|
|
- {
|
|
|
- CommitProject();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //[MenuItem("策划/更新至内网版本", false, (int)TOOL_MENU_PRIORITY.BuildBundlesRes)]
|
|
|
- //public static void ReleaseLocalVersion()
|
|
|
- //{
|
|
|
- // EditorUtility.DisplayProgressBar("进度", "正在更新至内网", 1);
|
|
|
- // BuildDllHelper.BuildHotUpdateDll();
|
|
|
- // //BuildScript.BuildCustomBundles(resArr, "BuildSetting");
|
|
|
- // EditorUtility.ClearProgressBar();
|
|
|
- //}
|
|
|
-
|
|
|
- [MenuItem("策划/其它/更新项目(会丢弃未推送内容)", false, (int)TOOL_MENU_PRIORITY.UpdateProject)]
|
|
|
- static void UpdateProject()
|
|
|
- {
|
|
|
- //关闭sqlite连接并延迟,否则sqlite文件会被占用导致不能通过命令行还原
|
|
|
- SQLiteHelper.Instance.CloseConnection();
|
|
|
- Thread.Sleep(1000);
|
|
|
- EditorUtility.DisplayProgressBar("进度", "正在更新项目", 1);
|
|
|
- ProcessUtil.ExcuteBat("Assets/Editor/Bat/", "updateGame.bat");
|
|
|
- AssetDatabase.Refresh();
|
|
|
- UpdateProjectRes();
|
|
|
- EditorUtility.ClearProgressBar();
|
|
|
- }
|
|
|
-
|
|
|
- [MenuItem("策划/其它/导入配置表", false, (int)TOOL_MENU_PRIORITY.ImportExcel)]
|
|
|
- public static void ImportExcelNeiWang()
|
|
|
- {
|
|
|
- ImportExcel();
|
|
|
- }
|
|
|
-
|
|
|
- [MenuItem("策划/检查配置表", false, (int)TOOL_MENU_PRIORITY.CheckExcel)]
|
|
|
- public static void CheckExcel()
|
|
|
- {
|
|
|
- EditorUtility.DisplayProgressBar("进度", "正在检查表格", 1);
|
|
|
- //检查表格部分内容
|
|
|
- ExcelChecker.StartCheck();
|
|
|
- EditorUtility.ClearProgressBar();
|
|
|
- }
|
|
|
-
|
|
|
- [MenuItem("策划/其它/导入美术资源", false, (int)TOOL_MENU_PRIORITY.ImportArtRes)]
|
|
|
- public static void ImportArtResNeiWang()
|
|
|
- {
|
|
|
- ImportArtRes();
|
|
|
- }
|
|
|
-
|
|
|
- [MenuItem("策划/其它/清除冗余文件")]
|
|
|
- public static void DeleteUnnecessaryImageNeiWang()
|
|
|
- {
|
|
|
- DeleteUnnecessaryImage();
|
|
|
+
|
|
|
}
|
|
|
#elif PT_QUICK
|
|
|
[MenuItem("QUICK/")]
|