diff --git a/css/characteroverview.scss b/css/characteroverview.scss
index b72d854aa..fc4a12a00 100644
--- a/css/characteroverview.scss
+++ b/css/characteroverview.scss
@@ -5,120 +5,8 @@
* Styling for the Character Overview Panel (top-right panel)
*/
-#character-overview-wrapper {
+#character-overview {
position: fixed;
top: 0;
right: 0;
}
-
-#character-overview-container {
- display: none;
- position: absolute; /* Stay in place */
- right: 0;
- top: 0;
- height: auto; /* Full height */
- padding: 10px 2px;
- border: 2px solid var(--my-highlight-color);
- width: auto;
- max-width: 280px;
- overflow: auto; /* Enable scroll if needed */
- background-color: rgba(57, 54, 54, 0.9); /* Fallback color */
- z-index: 1;
-}
-
-#character-overview-text {
- color: $my-stat-physical;
-
- table {
- border-collapse: collapse;
- margin: auto;
- }
-
- td {
- padding: 2px;
- vertical-align: middle;
- }
-}
-
-.character-stat-text {
- color: #fff;
- background-color: #444;
-}
-
-.character-stat-cell {
- text-align: right;
-}
-
-#character-str-wrapper td,
-#character-cha-wrapper td {
- padding-top: 10px;
-}
-
-.character-divider td {
- border-top: 1px #aaa solid;
- padding-top: 10px;
-}
-
-#character-hp-wrapper {
- color: $my-stat-hp-color;
-}
-.character-hp-cell {
- color: $my-stat-hp-color;
-}
-#character-money-wrapper {
- color: $my-stat-money-color;
-}
-.character-money-cell {
- color: $my-stat-money-color;
-}
-#character-hack-wrapper {
- color: $my-stat-hack-color;
-}
-.character-hack-cell {
- color: $my-stat-hack-color;
-}
-#character-cha-wrapper {
- color: $my-stat-cha-color;
-}
-.character-cha-cell {
- color: $my-stat-cha-color;
-}
-#character-int-wrapper {
- color: $my-stat-int-color;
-}
-.character-int-cell {
- color: $my-stat-int-color;
-}
-.character-combat-cell {
- color: $my-stat-physical;
-}
-#character-work-wrapper {
- color: $my-stat-hack-color;
-}
-.character-work-cell {
- color: $my-stat-hack-color;
-}
-
-.character-overview-btn {
- @include borderRadius(12px);
- @include boxShadow(1px 1px 3px #000);
- color: #cecece;
- display: inline-block;
- font-size: $defaultFontSize * 0.875;
- font-weight: bold;
- height: 25px;
- background-color: #000;
- padding: 5px 8px;
-}
-
-.character-quick-options {
- margin-top: 10px;
- text-align: center;
-}
-
-.character-overview-btn:hover,
-.character-overview-btn:focus {
- color: #fff;
- text-decoration: none;
- cursor: pointer;
-}
diff --git a/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx b/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx
index 0bc2e44ab..31515d03b 100644
--- a/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx
+++ b/src/PersonObjects/Player/PlayerObjectGeneralMethods.jsx
@@ -197,12 +197,6 @@ export function prestigeSourceFile() {
}
}
- const characterMenuHeader = document.getElementById("character-menu-header");
- if (characterMenuHeader instanceof HTMLElement) {
- characterMenuHeader.click();
- characterMenuHeader.click();
- }
-
this.timeWorked = 0;
// Gang
@@ -2065,9 +2059,6 @@ export function applyForJob(entryPosType, sing = false) {
this.jobs[company.name] = pos.name;
this.companyName = this.location;
- document.getElementById("world-menu-header").click();
- document.getElementById("world-menu-header").click();
-
if (sing) {
return true;
}
@@ -2183,8 +2174,6 @@ export function applyForEmployeeJob(sing = false) {
if (this.isQualified(company, CompanyPositions[posNames.MiscCompanyPositions[1]])) {
this.companyName = company.name;
this.jobs[company.name] = posNames.MiscCompanyPositions[1];
- document.getElementById("world-menu-header").click();
- document.getElementById("world-menu-header").click();
if (sing) {
return true;
}
@@ -2201,8 +2190,6 @@ export function applyForPartTimeEmployeeJob(sing = false) {
var company = Companies[this.location]; //Company being applied to
if (this.isQualified(company, CompanyPositions[posNames.PartTimeCompanyPositions[1]])) {
this.jobs[company.name] = posNames.PartTimeCompanyPositions[1];
- document.getElementById("world-menu-header").click();
- document.getElementById("world-menu-header").click();
if (sing) {
return true;
}
@@ -2220,8 +2207,6 @@ export function applyForWaiterJob(sing = false) {
if (this.isQualified(company, CompanyPositions[posNames.MiscCompanyPositions[0]])) {
this.companyName = company.name;
this.jobs[company.name] = posNames.MiscCompanyPositions[0];
- document.getElementById("world-menu-header").click();
- document.getElementById("world-menu-header").click();
if (sing) {
return true;
}
@@ -2239,8 +2224,6 @@ export function applyForPartTimeWaiterJob(sing = false) {
if (this.isQualified(company, CompanyPositions[posNames.PartTimeCompanyPositions[0]])) {
this.companyName = company.name;
this.jobs[company.name] = posNames.PartTimeCompanyPositions[0];
- document.getElementById("world-menu-header").click();
- document.getElementById("world-menu-header").click();
if (sing) {
return true;
}
diff --git a/src/engine.jsx b/src/engine.jsx
index b48e46fb6..4169dba24 100644
--- a/src/engine.jsx
+++ b/src/engine.jsx
@@ -96,6 +96,7 @@ const Engine = {
redPillContent: null,
cinematicTextContent: null,
missionContent: null,
+ overview: null,
},
indexedDb: undefined,
@@ -309,7 +310,7 @@ const Engine = {
loadMissionContent: function () {
Engine.hideAllContent();
document.getElementById("mainmenu-container").style.visibility = "hidden";
- document.getElementById("character-overview-wrapper").style.visibility = "hidden";
+ document.getElementById("character-overview").style.visibility = "hidden";
Engine.Display.missionContent.style.display = "block";
routing.navigateTo(Page.Mission);
},
@@ -397,15 +398,12 @@ const Engine = {
},
displayCharacterOverviewInfo: function () {
- ReactDOM.render(
HP: | -- {numeralWrapper.formatHp(props.player.hp) + " / " + numeralWrapper.formatHp(props.player.max_hp)} - | -
Money: | -- {numeralWrapper.formatMoney(props.player.money.toNumber())} - | -
Hack: | -- {numeralWrapper.formatSkill(props.player.hacking_skill)} - | -
Str: | -- {numeralWrapper.formatSkill(props.player.strength)} - | -
Def: | -- {numeralWrapper.formatSkill(props.player.defense)} - | -
Dex: | -- {numeralWrapper.formatSkill(props.player.dexterity)} - | -
Agi: | -- {numeralWrapper.formatSkill(props.player.agility)} - | -
Cha: | -- {numeralWrapper.formatSkill(props.player.charisma)} - | -