Пример #1
0
        private void CheckSDKVersion()
        {
            int versionCompare = CompareVersion(UserData.current.mission.sdkVersion, MissionRoot.SDKVersion);

            if (versionCompare > 0)
            {
                string body = "This mission was created with a newer version of the editor and may no longer work correctly if you save over it.";
                body += "\n\nDo you want to set this mission's version to the current editor version?";
                ConfirmDialog.Create(OnConfirmChangeSDKVersion, "Newer Mission", body, "Downgrade");
            }
            else if (versionCompare < 0)
            {
                string body = "This mission was created with an older version of the editor and may no longer work correctly if you save over it.";
                body += "\n\nDo you want to set this mission's version to the current editor version?";
                ConfirmDialog.Create(OnConfirmChangeSDKVersion, "Outdated Mission", body, "Upgrade");
            }
        }
Пример #2
0
 public void OnClick_RemoveMission()
 {
     ConfirmDialog.Create(OnConfirm_RemoveMission, "", "Are you sure you want to permanently remove this mission from the server?", "Remove");
 }