mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 19:37:07 +02:00
Added option to suppress TIX limit/stop orders
This commit is contained in:
@@ -17,6 +17,7 @@ import { numeralWrapper } from "../ui/numeralFormat";
|
||||
import { Money } from "../ui/React/Money";
|
||||
|
||||
import { dialogBoxCreate } from "../ui/React/DialogBox";
|
||||
import { Settings } from "../Settings/Settings";
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
@@ -150,12 +151,14 @@ function executeOrder(order: Order, refs: IProcessOrderRefs): void {
|
||||
for (let i = 0; i < stockOrders.length; ++i) {
|
||||
if (order == stockOrders[i]) {
|
||||
stockOrders.splice(i, 1);
|
||||
dialogBoxCreate(
|
||||
<>
|
||||
{order.type} for {stock.symbol} @ <Money money={order.price} /> ({pos}) was filled (
|
||||
{numeralWrapper.formatShares(Math.round(order.shares))} shares)
|
||||
</>,
|
||||
);
|
||||
if (!Settings.SuppressTIXPopup) {
|
||||
dialogBoxCreate(
|
||||
<>
|
||||
{order.type} for {stock.symbol} @ <Money money={order.price} /> ({pos}) was filled (
|
||||
{numeralWrapper.formatShares(Math.round(order.shares))} shares)
|
||||
</>,
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user