Пример #1
0
        static void ShowScriptDiff(List <string> datas)
        {
            string content = "程序差异清单:\r\n";

            foreach (string s in datas)
            {
                content += s + "\r\n";
            }

            content += "资源清单:\r\n";
            string rescontent = GetDiffRes();

            content += rescontent;

            CustomDialog.Show("打包", content, "继续", "取消", () =>
            {
                UpgradeAPKVer();

                Version.SaveVersion2StreamingAsset(versionRes);

                BuildAPK();

                SaveLastBuildLog();

                MarkTool.SaveLog();
            }, () =>
            {
            });
        }
Пример #2
0
        public static void Show(string title, string msg, string ok, string cancel, CallBack okCallBack, CallBack cancelCallBack)
        {
            // Get existing open window or if none, make a new one:
            CustomDialog window = (CustomDialog)EditorWindow.GetWindow(typeof(CustomDialog));

            window.Show();
            window.title          = title;
            window.msg            = msg;
            window.ok             = ok;
            window.cancel         = cancel;
            window.okCallBack     = okCallBack;
            window.cancelCallBack = cancelCallBack;

            CustomDialog.instance = window;
        }
Пример #3
0
        public static void CheckResources()
        {
            string rescontent = GetDiffRes();

            if (rescontent != "")
            {
                CustomDialog.Show("资源更新", rescontent, "继续", "取消", () =>
                {
                    UpgradeResVer();

                    Version.SaveVersion2StreamingAsset(versionRes);

                    BuildAPK();

                    SaveLastBuildLog();

                    MarkTool.SaveLog();
                },

                                  () =>
                {
                });
            }
            else
            {
                if (EditorUtility.DisplayDialog("打包", "本次无更新,仍要出资源?", "是", "否"))
                {
                    UpgradeResVer();

                    Version.SaveVersion2StreamingAsset(versionRes);

                    BuildAPK();

                    SaveLastBuildLog();

                    MarkTool.SaveLog();
                }
            }
        }