mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 11:10:58 +02:00
v0.51.0 (#826)
* Hash upgrades and Bladeburner skills can now be clicked to copy to clipboard * Aug purchase confirmation popup displays money in 0.000a format * Character now displays hacknet server info properly * Character,Info now displays hacknet server info correctly. * Formulas (#825) Formulas API v0.1 * Make all money the same color, same for reputation, format all numbers consistently. * rename a lot of the formulas function to no longer contain calculate * added hacking related formulas * removed unused variable * v0.51.0
This commit is contained in:
+9
-4
@@ -26,6 +26,7 @@ import { createElement } from "../utils/uiHelpers/createElement";
|
||||
import { createOptionElement } from "../utils/uiHelpers/createOptionElement";
|
||||
import { getSelectText } from "../utils/uiHelpers/getSelectData";
|
||||
import { removeElementById } from "../utils/uiHelpers/removeElementById";
|
||||
import { Money } from "./ui/React/Money";
|
||||
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
@@ -611,12 +612,16 @@ class DevMenuComponent extends Component {
|
||||
}
|
||||
|
||||
viewStockCaps() {
|
||||
let text = "<table><tbody><tr><th>Stock</th><th>Price cap</th></tr>";
|
||||
let stocks = [];
|
||||
this.processStocks((stock) => {
|
||||
text += `<tr><td>${stock.symbol}</td><td style="text-align:right;">${numeralWrapper.format(stock.cap, '$0.000a')}</td></tr>`;
|
||||
stocks.push(<tr key={stock.symbol}>
|
||||
<td>{stock.symbol}</td>
|
||||
<td style={{'textAlign':'right'}}>{Money(stock.cap)}</td>
|
||||
</tr>);
|
||||
});
|
||||
text += "</tbody></table>";
|
||||
dialogBoxCreate(text);
|
||||
dialogBoxCreate(<table><tbody><tr><th>Stock</th><th>Price cap</th></tr>
|
||||
{stocks}
|
||||
</tbody></table>);
|
||||
}
|
||||
|
||||
sleeveMaxAllShock() {
|
||||
|
||||
Reference in New Issue
Block a user