diff --git a/src/Bladeburner.jsx b/src/Bladeburner.jsx index 514a0a2d5..81626e622 100644 --- a/src/Bladeburner.jsx +++ b/src/Bladeburner.jsx @@ -24,6 +24,7 @@ import { convertTimeMsToTimeElapsedString, } from "../utils/StringHelperFunctions"; +import { Settings } from "./Settings/Settings"; import { ConsoleHelpText } from "./Bladeburner/data/Help"; import { City } from "./Bladeburner/City"; import { BladeburnerConstants } from "./Bladeburner/data/Constants"; @@ -359,7 +360,9 @@ Bladeburner.prototype.process = function() { msg += `

Your automation was disabled as well. You will have to re-enable it through the Bladeburner console` this.automateEnabled = false; } - dialogBoxCreate(msg); + if (!Settings.SuppressBladeburnerPopup) { + dialogBoxCreate(msg); + } } this.resetAction(); } diff --git a/src/Settings/Settings.ts b/src/Settings/Settings.ts index af7376174..ab0956d78 100644 --- a/src/Settings/Settings.ts +++ b/src/Settings/Settings.ts @@ -74,6 +74,11 @@ interface IDefaultSettings { * Whether the user should be asked to confirm travelling between cities. */ SuppressTravelConfirmation: boolean; + + /** + * Whether the user should be displayed a popup message when his Bladeburner actions are cancelled. + */ + SuppressBladeburnerPopup: boolean; } /** @@ -122,6 +127,7 @@ const defaultSettings: IDefaultSettings = { SuppressHospitalizationPopup: false, SuppressMessages: false, SuppressTravelConfirmation: false, + SuppressBladeburnerPopup: false, }; /** @@ -147,6 +153,7 @@ export const Settings: ISettings & ISelfInitializer & ISelfLoading = { SuppressHospitalizationPopup: defaultSettings.SuppressHospitalizationPopup, SuppressMessages: defaultSettings.SuppressMessages, SuppressTravelConfirmation: defaultSettings.SuppressTravelConfirmation, + SuppressBladeburnerPopup: defaultSettings.SuppressBladeburnerPopup, init() { Object.assign(Settings, defaultSettings); }, diff --git a/src/index.html b/src/index.html index c39ae82a0..fd7b0ad26 100644 --- a/src/index.html +++ b/src/index.html @@ -519,6 +519,16 @@ if (htmlWebpackPlugin.options.googleAnalytics.trackingId) { %> + +
+ + +
+