mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-28 11:57:07 +02:00
Add setting to suppress Bladeburner popups
Used to suppress the message that is shown when your Bladeburner action is cancelled when busy with something else. Will be hidden if the player does not have access to Bladeburners.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {Engine} from "../engine";
|
||||
import {Settings} from "../Settings/Settings";
|
||||
|
||||
import {Player} from "../Player";
|
||||
import {numeralWrapper} from "./numeralFormat";
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ function setSettingsLabels() {
|
||||
const suppressTravelConfirmation = document.getElementById("settingsSuppressTravelConfirmation");
|
||||
const suppressBuyAugmentationConfirmation = document.getElementById("settingsSuppressBuyAugmentationConfirmation");
|
||||
const suppressHospitalizationPopup = document.getElementById("settingsSuppressHospitalizationPopup");
|
||||
const suppressBladeburnerPopup = document.getElementById("settingsSuppressBladeburnerPopup");
|
||||
const autosaveInterval = document.getElementById("settingsAutosaveIntervalValLabel");
|
||||
const disableHotkeys = document.getElementById("settingsDisableHotkeys");
|
||||
const disableASCIIArt = document.getElementById("settingsDisableASCIIArt");
|
||||
@@ -36,6 +37,9 @@ function setSettingsLabels() {
|
||||
suppressTravelConfirmation.checked = Settings.SuppressTravelConfirmation;
|
||||
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;
|
||||
@@ -99,6 +103,10 @@ function setSettingsLabels() {
|
||||
Settings.SuppressHospitalizationPopup = this.checked;
|
||||
}
|
||||
|
||||
suppressBladeburnerPopup.onclick = function() {
|
||||
Settings.SuppressBladeburnerPopup = this.checked;
|
||||
}
|
||||
|
||||
disableHotkeys.onclick = function() {
|
||||
Settings.DisableHotkeys = this.checked;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user