mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
Merge pull request #254 from hydroflame/green-stock-buttons
make the stock market accound and api button green when bought
This commit is contained in:
commit
429894707f
@ -168,6 +168,27 @@ a:link, a:visited {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Make anchor tags ("a" elements) for activated actions */
|
||||||
|
.a-link-button-bought {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: #00AA00;
|
||||||
|
color: #FFFFFF;
|
||||||
|
padding: 5px;
|
||||||
|
margin: 5px;
|
||||||
|
border: 1px solid #00AA00;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.a-link-button-bought:hover .tooltiptext,
|
||||||
|
.a-link-button-bought:hover .tooltiptexthigh,
|
||||||
|
.a-link-button-bought:hover .tooltiptextleft {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.a-link-button-bought:active {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* Notification icon (for create program right now only) */
|
/* Notification icon (for create program right now only) */
|
||||||
#create-program-tab {
|
#create-program-tab {
|
||||||
position:relative;
|
position:relative;
|
||||||
|
@ -702,6 +702,9 @@ function displayStockMarketContent() {
|
|||||||
wseAccountButton.innerText = "Buy WSE Account - $" + formatNumber(CONSTANTS.WSEAccountCost, 2).toString();
|
wseAccountButton.innerText = "Buy WSE Account - $" + formatNumber(CONSTANTS.WSEAccountCost, 2).toString();
|
||||||
if (!Player.hasWseAccount && Player.money.gte(CONSTANTS.WSEAccountCost)) {
|
if (!Player.hasWseAccount && Player.money.gte(CONSTANTS.WSEAccountCost)) {
|
||||||
wseAccountButton.setAttribute("class", "a-link-button");
|
wseAccountButton.setAttribute("class", "a-link-button");
|
||||||
|
} else if (Player.hasWseAccount){
|
||||||
|
wseAccountButton.innerText = "WSE Account - acquired";
|
||||||
|
wseAccountButton.setAttribute("class", "a-link-button-bought");
|
||||||
} else {
|
} else {
|
||||||
wseAccountButton.setAttribute("class", "a-link-button-inactive");
|
wseAccountButton.setAttribute("class", "a-link-button-inactive");
|
||||||
}
|
}
|
||||||
@ -720,6 +723,9 @@ function displayStockMarketContent() {
|
|||||||
formatNumber(CONSTANTS.TIXAPICost, 2).toString();
|
formatNumber(CONSTANTS.TIXAPICost, 2).toString();
|
||||||
if (!Player.hasTixApiAccess && Player.money.gte(CONSTANTS.TIXAPICost)) {
|
if (!Player.hasTixApiAccess && Player.money.gte(CONSTANTS.TIXAPICost)) {
|
||||||
tixApiAccessButton.setAttribute("class", "a-link-button");
|
tixApiAccessButton.setAttribute("class", "a-link-button");
|
||||||
|
} else if(Player.hasTixApiAccess) {
|
||||||
|
tixApiAccessButton.innerText = "Trade Information eXchange (TIX) API Access - granted"
|
||||||
|
tixApiAccessButton.setAttribute("class", "a-link-button-bought");
|
||||||
} else {
|
} else {
|
||||||
tixApiAccessButton.setAttribute("class", "a-link-button-inactive");
|
tixApiAccessButton.setAttribute("class", "a-link-button-inactive");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user