mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
fix game not loading
This commit is contained in:
parent
7ba37397dd
commit
0cf2e2469e
@ -158,7 +158,12 @@ const Engine = {
|
|||||||
Engine.Display.content.style.display = "block";
|
Engine.Display.content.style.display = "block";
|
||||||
routing.navigateTo(Page.CreateProgram);
|
routing.navigateTo(Page.CreateProgram);
|
||||||
MainMenuLinks.CreateProgram.classList.add("active");
|
MainMenuLinks.CreateProgram.classList.add("active");
|
||||||
ReactDOM.render(<Theme><ProgramsRoot player={Player} /></Theme>, Engine.Display.content);
|
ReactDOM.render(
|
||||||
|
<Theme>
|
||||||
|
<ProgramsRoot player={Player} />
|
||||||
|
</Theme>,
|
||||||
|
Engine.Display.content,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
loadFactionsContent: function () {
|
loadFactionsContent: function () {
|
||||||
@ -263,8 +268,10 @@ const Engine = {
|
|||||||
loadWorkInProgressContent: function () {
|
loadWorkInProgressContent: function () {
|
||||||
Engine.hideAllContent();
|
Engine.hideAllContent();
|
||||||
const mainMenu = document.getElementById("mainmenu-container");
|
const mainMenu = document.getElementById("mainmenu-container");
|
||||||
|
console.log("hiding loadWorkInProgressContent");
|
||||||
mainMenu.style.visibility = "hidden";
|
mainMenu.style.visibility = "hidden";
|
||||||
Engine.Display.workInProgressContent.style.display = "block";
|
Engine.Display.workInProgressContent.style.display = "block";
|
||||||
|
console.log(Engine.Display.workInProgressContent);
|
||||||
routing.navigateTo(Page.WorkInProgress);
|
routing.navigateTo(Page.WorkInProgress);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -797,7 +804,6 @@ const Engine = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<SidebarRoot engine={this} player={Player} />, document.getElementById("sidebar"));
|
ReactDOM.render(<SidebarRoot engine={this} player={Player} />, document.getElementById("sidebar"));
|
||||||
Engine.loadTerminalContent();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
setDisplayElements: function () {
|
setDisplayElements: function () {
|
||||||
@ -859,6 +865,8 @@ const Engine = {
|
|||||||
Engine.loadWorkInProgressContent();
|
Engine.loadWorkInProgressContent();
|
||||||
|
|
||||||
Engine.displayCharacterOverviewInfo();
|
Engine.displayCharacterOverviewInfo();
|
||||||
|
} else {
|
||||||
|
Engine.loadTerminalContent();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user