Beispiel #1
0
        /// <summary>
        /// Check if there's been an update since the last notification, and if so, show the update.
        /// </summary>
        internal static void ShowWhatsNew()
        {
            // Get last notified version and current mod version.
            Version         whatsNewVersion = new Version(ModSettings.whatsNewVersion);
            WhatsNewMessage latestMessage   = WhatsNewMessages[0];

            // Don't show notification if we're already up to (or ahead of) the first what's new message (including Beta updates).
            if (whatsNewVersion < latestMessage.version || (whatsNewVersion == latestMessage.version && ModSettings.whatsNewBetaVersion < latestMessage.betaVersion))
            {
                // Show messagebox.
                WhatsNewMessageBox messageBox = MessageBoxBase.ShowModal <WhatsNewMessageBox>();
                messageBox.Title = RealPopMod.ModName + " " + RealPopMod.Version;
                messageBox.DSAButton.eventClicked += (component, clickEvent) => DontShowAgain();
                messageBox.SetMessages(whatsNewVersion, WhatsNewMessages);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Check if there's been an update since the last notification, and if so, show the update.
        /// </summary>
        internal static void ShowWhatsNew()
        {
            // Get last notified version and current mod version.
            Version         whatsNewVersion = new Version(ModSettings.whatsNewVersion);
            WhatsNewMessage latestMessage   = WhatsNewMessages[0];

            // Don't show notification if we're already up to (or ahead of) the first what's new message.
            if (whatsNewVersion < latestMessage.version)
            {
                Logging.Message("displaying what's new message");

                // Show messagebox.
                WhatsNewMessageBox messageBox = MessageBoxBase.ShowModal <WhatsNewMessageBox>();
                messageBox.Title = BOBMod.ModName + " " + BOBMod.Version;
                messageBox.DSAButton.eventClicked += (component, clickEvent) => DontShowAgain();
                messageBox.SetMessages(whatsNewVersion, WhatsNewMessages);
            }
        }
Beispiel #3
0
        /// <summary>
        /// Check if there's been an update since the last notification, and if so, show the update.
        /// </summary>
        internal static void ShowWhatsNew()
        {
            Logging.KeyMessage("checking for update notifications");

            // Get last notified version and current mod version.
            Version         whatsNewVersion = new Version(ModSettings.whatsNewVersion);
            WhatsNewMessage latestMessage   = WhatsNewMessages[0];

            // Don't show notification if we're already up to (or ahead of) the first what's new message (including Beta updates).
            if (whatsNewVersion < latestMessage.version || (whatsNewVersion == latestMessage.version && ModSettings.whatsNewBetaVersion < latestMessage.betaVersion))
            {
                // Show messagebox.
                Logging.KeyMessage("showing What's New messagebox");
                WhatsNewMessageBox messageBox = MessageBoxBase.ShowModal <WhatsNewMessageBox>();
                messageBox.Title = LifecycleRebalanceMod.ModName + " " + LifecycleRebalanceMod.Version;
                messageBox.DSAButton.eventClicked += (component, clickEvent) => DontShowAgain();
                messageBox.SetMessages(whatsNewVersion, WhatsNewMessages);
                Logging.KeyMessage("What's New messagebox complete");
            }
        }