mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
Fix mission UI
This commit is contained in:
parent
bdae75bb7e
commit
124292ef97
42
dist/bundle.js
vendored
42
dist/bundle.js
vendored
@ -4112,7 +4112,6 @@ let Engine = {
|
||||
/* Load content when a main menu button is clicked */
|
||||
loadTerminalContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.terminalContent.style.display = "none";
|
||||
Engine.Display.terminalContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.Terminal;
|
||||
document.getElementById("terminal-menu-link").classList.add("active");
|
||||
@ -4120,7 +4119,6 @@ let Engine = {
|
||||
|
||||
loadCharacterContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.characterContent.style.visibility = "visible";
|
||||
Engine.Display.characterContent.style.display = "block";
|
||||
Engine.displayCharacterInfo();
|
||||
Engine.currentPage = Engine.Page.CharacterInfo;
|
||||
@ -4129,7 +4127,6 @@ let Engine = {
|
||||
|
||||
loadScriptEditorContent: function(filename = "", code = "") {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.scriptEditorContent.style.visibility = "visible";
|
||||
Engine.Display.scriptEditorContent.style.display = "block";
|
||||
var editor = ace.edit('javascript-editor');
|
||||
if (filename != "") {
|
||||
@ -4144,7 +4141,6 @@ let Engine = {
|
||||
|
||||
loadActiveScriptsContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.activeScriptsContent.style.visibility = "visible";
|
||||
Engine.Display.activeScriptsContent.style.display = "block";
|
||||
Object(__WEBPACK_IMPORTED_MODULE_6__ActiveScriptsUI_js__["c" /* setActiveScriptsClickHandlers */])();
|
||||
Object(__WEBPACK_IMPORTED_MODULE_6__ActiveScriptsUI_js__["d" /* updateActiveScriptsItems */])();
|
||||
@ -4154,7 +4150,6 @@ let Engine = {
|
||||
|
||||
loadHacknetNodesContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.hacknetNodesContent.style.visibility = "visible";
|
||||
Engine.Display.hacknetNodesContent.style.display = "block";
|
||||
Object(__WEBPACK_IMPORTED_MODULE_15__HacknetNode_js__["a" /* displayHacknetNodesContent */])();
|
||||
Engine.currentPage = Engine.Page.HacknetNodes;
|
||||
@ -4163,7 +4158,6 @@ let Engine = {
|
||||
|
||||
loadWorldContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.worldContent.style.visibility = "visible";
|
||||
Engine.Display.worldContent.style.display = "block";
|
||||
Engine.displayWorldInfo();
|
||||
Engine.currentPage = Engine.Page.World;
|
||||
@ -4172,7 +4166,6 @@ let Engine = {
|
||||
|
||||
loadCreateProgramContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.createProgramContent.style.visibility = "visible";
|
||||
Engine.Display.createProgramContent.style.display = "block";
|
||||
Object(__WEBPACK_IMPORTED_MODULE_11__CreateProgram_js__["b" /* displayCreateProgramContent */])();
|
||||
Engine.currentPage = Engine.Page.CreateProgram;
|
||||
@ -4181,7 +4174,6 @@ let Engine = {
|
||||
|
||||
loadFactionsContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.factionsContent.style.visibility = "visible";
|
||||
Engine.Display.factionsContent.style.display = "block";
|
||||
Engine.displayFactionsInfo();
|
||||
Engine.currentPage = Engine.Page.Factions;
|
||||
@ -4190,14 +4182,12 @@ let Engine = {
|
||||
|
||||
loadFactionContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.factionContent.style.visibility = "visible";
|
||||
Engine.Display.factionContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.Faction;
|
||||
},
|
||||
|
||||
loadAugmentationsContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.augmentationsContent.style.visibility = "visible";
|
||||
Engine.Display.augmentationsContent.style.display = "block";
|
||||
Engine.displayAugmentationsContent();
|
||||
Engine.currentPage = Engine.Page.Augmentations;
|
||||
@ -4206,7 +4196,6 @@ let Engine = {
|
||||
|
||||
loadTutorialContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.tutorialContent.style.visibility = "visible";
|
||||
Engine.Display.tutorialContent.style.display = "block";
|
||||
Engine.displayTutorialContent();
|
||||
Engine.currentPage = Engine.Page.Tutorial;
|
||||
@ -4215,7 +4204,6 @@ let Engine = {
|
||||
|
||||
loadLocationContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.locationContent.style.visibility = "visible";
|
||||
Engine.Display.locationContent.style.display = "block";
|
||||
Object(__WEBPACK_IMPORTED_MODULE_13__Location_js__["b" /* displayLocationContent */])();
|
||||
Engine.currentPage = Engine.Page.Location;
|
||||
@ -4263,7 +4251,6 @@ let Engine = {
|
||||
var mainMenu = document.getElementById("mainmenu-container");
|
||||
//mainMenu.style.visibility = "hidden";
|
||||
mainMenu.style.visibility = "hidden";
|
||||
//Engine.Display.workInProgressContent.style.visibility = "visible";
|
||||
Engine.Display.workInProgressContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.WorkInProgress;
|
||||
},
|
||||
@ -4272,21 +4259,18 @@ let Engine = {
|
||||
Engine.hideAllContent();
|
||||
var mainMenu = document.getElementById("mainmenu-container");
|
||||
mainMenu.style.visibility = "hidden";
|
||||
//Engine.Display.redPillContent.style.visibility = "visible";
|
||||
Engine.Display.redPillContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.RedPill;
|
||||
},
|
||||
|
||||
loadInfiltrationContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.infiltrationContent.style.visibility = "visible";
|
||||
Engine.Display.infiltrationContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.Infiltration;
|
||||
},
|
||||
|
||||
loadStockMarketContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.stockMarketContent.style.visibility = "visible";
|
||||
Engine.Display.stockMarketContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.StockMarket;
|
||||
Object(__WEBPACK_IMPORTED_MODULE_31__StockMarket_js__["f" /* displayStockMarketContent */])();
|
||||
@ -4307,35 +4291,12 @@ let Engine = {
|
||||
Engine.hideAllContent();
|
||||
document.getElementById("mainmenu-container").style.visibility = "hidden";
|
||||
document.getElementById("character-overview-wrapper").style.visibility = "hidden";
|
||||
Engine.Display.missionContent.style.visibility = "visible";
|
||||
Engine.Display.missionContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.Mission;
|
||||
},
|
||||
|
||||
//Helper function that hides all content
|
||||
hideAllContent: function() {
|
||||
/*
|
||||
Engine.Display.terminalContent.style.visibility = "hidden";
|
||||
Engine.Display.characterContent.style.visibility = "hidden";
|
||||
Engine.Display.scriptEditorContent.style.visibility = "hidden";
|
||||
Engine.Display.activeScriptsContent.style.visibility = "hidden";
|
||||
Engine.Display.hacknetNodesContent.style.visibility = "hidden";
|
||||
Engine.Display.worldContent.style.visibility = "hidden";
|
||||
Engine.Display.createProgramContent.style.visibility = "hidden";
|
||||
Engine.Display.factionsContent.style.visibility = "hidden";
|
||||
Engine.Display.factionContent.style.visibility = "hidden";
|
||||
Engine.Display.factionAugmentationsContent.style.visibility = "hidden";
|
||||
Engine.Display.augmentationsContent.style.visibility = "hidden";
|
||||
Engine.Display.tutorialContent.style.visibility = "hidden";
|
||||
Engine.Display.locationContent.style.visibility = "hidden";
|
||||
Engine.Display.workInProgressContent.style.visibility = "hidden";
|
||||
Engine.Display.redPillContent.style.visibility = "hidden";
|
||||
Engine.Display.infiltrationContent.style.visibility = "hidden";
|
||||
Engine.Display.stockMarketContent.style.visibility = "hidden";
|
||||
Engine.Display.missionContent.style.visibility = "hidden";
|
||||
if (document.getElementById("gang-container")) {
|
||||
document.getElementById("gang-container").style.visibility = "hidden";
|
||||
}
|
||||
*/
|
||||
Engine.Display.terminalContent.style.display = "none";
|
||||
Engine.Display.characterContent.style.display = "none";
|
||||
Engine.Display.scriptEditorContent.style.display = "none";
|
||||
@ -31728,7 +31689,6 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! decimal.js v7.2.3 https://github.com/MikeM
|
||||
|
||||
// Base conversion alphabet.
|
||||
NUMERALS = '0123456789abcdef',
|
||||
|
||||
// The natural logarithm of 10 (1025 digits).
|
||||
LN10 = '2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058',
|
||||
|
||||
|
@ -217,7 +217,6 @@ let Engine = {
|
||||
/* Load content when a main menu button is clicked */
|
||||
loadTerminalContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.terminalContent.style.display = "none";
|
||||
Engine.Display.terminalContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.Terminal;
|
||||
document.getElementById("terminal-menu-link").classList.add("active");
|
||||
@ -225,7 +224,6 @@ let Engine = {
|
||||
|
||||
loadCharacterContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.characterContent.style.visibility = "visible";
|
||||
Engine.Display.characterContent.style.display = "block";
|
||||
Engine.displayCharacterInfo();
|
||||
Engine.currentPage = Engine.Page.CharacterInfo;
|
||||
@ -234,7 +232,6 @@ let Engine = {
|
||||
|
||||
loadScriptEditorContent: function(filename = "", code = "") {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.scriptEditorContent.style.visibility = "visible";
|
||||
Engine.Display.scriptEditorContent.style.display = "block";
|
||||
var editor = ace.edit('javascript-editor');
|
||||
if (filename != "") {
|
||||
@ -249,7 +246,6 @@ let Engine = {
|
||||
|
||||
loadActiveScriptsContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.activeScriptsContent.style.visibility = "visible";
|
||||
Engine.Display.activeScriptsContent.style.display = "block";
|
||||
setActiveScriptsClickHandlers();
|
||||
updateActiveScriptsItems();
|
||||
@ -259,7 +255,6 @@ let Engine = {
|
||||
|
||||
loadHacknetNodesContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.hacknetNodesContent.style.visibility = "visible";
|
||||
Engine.Display.hacknetNodesContent.style.display = "block";
|
||||
displayHacknetNodesContent();
|
||||
Engine.currentPage = Engine.Page.HacknetNodes;
|
||||
@ -268,7 +263,6 @@ let Engine = {
|
||||
|
||||
loadWorldContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.worldContent.style.visibility = "visible";
|
||||
Engine.Display.worldContent.style.display = "block";
|
||||
Engine.displayWorldInfo();
|
||||
Engine.currentPage = Engine.Page.World;
|
||||
@ -277,7 +271,6 @@ let Engine = {
|
||||
|
||||
loadCreateProgramContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.createProgramContent.style.visibility = "visible";
|
||||
Engine.Display.createProgramContent.style.display = "block";
|
||||
displayCreateProgramContent();
|
||||
Engine.currentPage = Engine.Page.CreateProgram;
|
||||
@ -286,7 +279,6 @@ let Engine = {
|
||||
|
||||
loadFactionsContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.factionsContent.style.visibility = "visible";
|
||||
Engine.Display.factionsContent.style.display = "block";
|
||||
Engine.displayFactionsInfo();
|
||||
Engine.currentPage = Engine.Page.Factions;
|
||||
@ -295,14 +287,12 @@ let Engine = {
|
||||
|
||||
loadFactionContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.factionContent.style.visibility = "visible";
|
||||
Engine.Display.factionContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.Faction;
|
||||
},
|
||||
|
||||
loadAugmentationsContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.augmentationsContent.style.visibility = "visible";
|
||||
Engine.Display.augmentationsContent.style.display = "block";
|
||||
Engine.displayAugmentationsContent();
|
||||
Engine.currentPage = Engine.Page.Augmentations;
|
||||
@ -311,7 +301,6 @@ let Engine = {
|
||||
|
||||
loadTutorialContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.tutorialContent.style.visibility = "visible";
|
||||
Engine.Display.tutorialContent.style.display = "block";
|
||||
Engine.displayTutorialContent();
|
||||
Engine.currentPage = Engine.Page.Tutorial;
|
||||
@ -320,7 +309,6 @@ let Engine = {
|
||||
|
||||
loadLocationContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.locationContent.style.visibility = "visible";
|
||||
Engine.Display.locationContent.style.display = "block";
|
||||
displayLocationContent();
|
||||
Engine.currentPage = Engine.Page.Location;
|
||||
@ -368,7 +356,6 @@ let Engine = {
|
||||
var mainMenu = document.getElementById("mainmenu-container");
|
||||
//mainMenu.style.visibility = "hidden";
|
||||
mainMenu.style.visibility = "hidden";
|
||||
//Engine.Display.workInProgressContent.style.visibility = "visible";
|
||||
Engine.Display.workInProgressContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.WorkInProgress;
|
||||
},
|
||||
@ -377,21 +364,18 @@ let Engine = {
|
||||
Engine.hideAllContent();
|
||||
var mainMenu = document.getElementById("mainmenu-container");
|
||||
mainMenu.style.visibility = "hidden";
|
||||
//Engine.Display.redPillContent.style.visibility = "visible";
|
||||
Engine.Display.redPillContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.RedPill;
|
||||
},
|
||||
|
||||
loadInfiltrationContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.infiltrationContent.style.visibility = "visible";
|
||||
Engine.Display.infiltrationContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.Infiltration;
|
||||
},
|
||||
|
||||
loadStockMarketContent: function() {
|
||||
Engine.hideAllContent();
|
||||
//Engine.Display.stockMarketContent.style.visibility = "visible";
|
||||
Engine.Display.stockMarketContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.StockMarket;
|
||||
displayStockMarketContent();
|
||||
@ -412,35 +396,12 @@ let Engine = {
|
||||
Engine.hideAllContent();
|
||||
document.getElementById("mainmenu-container").style.visibility = "hidden";
|
||||
document.getElementById("character-overview-wrapper").style.visibility = "hidden";
|
||||
Engine.Display.missionContent.style.visibility = "visible";
|
||||
Engine.Display.missionContent.style.display = "block";
|
||||
Engine.currentPage = Engine.Page.Mission;
|
||||
},
|
||||
|
||||
//Helper function that hides all content
|
||||
hideAllContent: function() {
|
||||
/*
|
||||
Engine.Display.terminalContent.style.visibility = "hidden";
|
||||
Engine.Display.characterContent.style.visibility = "hidden";
|
||||
Engine.Display.scriptEditorContent.style.visibility = "hidden";
|
||||
Engine.Display.activeScriptsContent.style.visibility = "hidden";
|
||||
Engine.Display.hacknetNodesContent.style.visibility = "hidden";
|
||||
Engine.Display.worldContent.style.visibility = "hidden";
|
||||
Engine.Display.createProgramContent.style.visibility = "hidden";
|
||||
Engine.Display.factionsContent.style.visibility = "hidden";
|
||||
Engine.Display.factionContent.style.visibility = "hidden";
|
||||
Engine.Display.factionAugmentationsContent.style.visibility = "hidden";
|
||||
Engine.Display.augmentationsContent.style.visibility = "hidden";
|
||||
Engine.Display.tutorialContent.style.visibility = "hidden";
|
||||
Engine.Display.locationContent.style.visibility = "hidden";
|
||||
Engine.Display.workInProgressContent.style.visibility = "hidden";
|
||||
Engine.Display.redPillContent.style.visibility = "hidden";
|
||||
Engine.Display.infiltrationContent.style.visibility = "hidden";
|
||||
Engine.Display.stockMarketContent.style.visibility = "hidden";
|
||||
Engine.Display.missionContent.style.visibility = "hidden";
|
||||
if (document.getElementById("gang-container")) {
|
||||
document.getElementById("gang-container").style.visibility = "hidden";
|
||||
}
|
||||
*/
|
||||
Engine.Display.terminalContent.style.display = "none";
|
||||
Engine.Display.characterContent.style.display = "none";
|
||||
Engine.Display.scriptEditorContent.style.display = "none";
|
||||
|
@ -11,7 +11,7 @@
|
||||
* MIT Licence
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// ----------------------------------- EDITABLE DEFAULTS ------------------------------------ //
|
||||
|
||||
|
||||
@ -25,7 +25,6 @@
|
||||
|
||||
// Base conversion alphabet.
|
||||
NUMERALS = '0123456789abcdef',
|
||||
// hey daniel lol xD
|
||||
// The natural logarithm of 10 (1025 digits).
|
||||
LN10 = '2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058',
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user