diff --git a/src/Constants.ts b/src/Constants.ts index bc8ee93e3..3ed364f04 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -263,5 +263,6 @@ export const CONSTANTS: IMap = { * City hall now has some generic text if you can't create a corp yet. * Deleting a file without extension now returns an appropriate error message. * Fixed an issue where bladeburner would miscalculate the cost of hospitalization. + * It is now possible to suppress bladeburner "action stopped" popup. `, } \ No newline at end of file diff --git a/src/ui/setSettingsLabels.js b/src/ui/setSettingsLabels.js index 4ad2860ce..bdeb8b7e5 100644 --- a/src/ui/setSettingsLabels.js +++ b/src/ui/setSettingsLabels.js @@ -38,8 +38,6 @@ function setSettingsLabels() { suppressBuyAugmentationConfirmation.checked = Settings.SuppressBuyAugmentationConfirmation; suppressHospitalizationPopup.checked = Settings.SuppressHospitalizationPopup; suppressBladeburnerPopup.checked = Settings.SuppressBladeburnerPopup; - suppressBladeburnerPopup.closest('fieldset').style.display = - Player.canAccessBladeburner() ? 'block' : 'none'; setAutosaveLabel(autosaveInterval); disableHotkeys.checked = Settings.DisableHotkeys; disableASCIIArt.checked = Settings.CityListView; diff --git a/utils/GameOptions.js b/utils/GameOptions.js index 654a17bdf..c50d062c2 100644 --- a/utils/GameOptions.js +++ b/utils/GameOptions.js @@ -1,4 +1,5 @@ /* GameOptions.js */ +import { Player } from "../src/Player"; //Close box when clicking outside $(document).click(function(event) { @@ -36,6 +37,11 @@ function gameOptionsBoxClose() { function gameOptionsBoxOpen() { var box = document.getElementById("game-options-container"); box.style.display = "flex"; + + // special exception for bladeburner popup because it's only visible later. + document.getElementById("settingsSuppressBladeburnerPopup"). + closest('fieldset').style.display = + Player.canAccessBladeburner() ? 'block' : 'none'; setTimeout(function() { gameOptionsOpened = true; }, 500);