mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
click to copy every bladeburner action
This commit is contained in:
parent
60d95a90d0
commit
5d59620dce
4
dist/engine.bundle.js
vendored
4
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
22
dist/vendor.bundle.js
vendored
22
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -11,6 +11,7 @@ import { TeamSizePopup } from "./TeamSizePopup";
|
|||||||
import { IBladeburner } from "../IBladeburner";
|
import { IBladeburner } from "../IBladeburner";
|
||||||
import { IPlayer } from "../../PersonObjects/IPlayer";
|
import { IPlayer } from "../../PersonObjects/IPlayer";
|
||||||
import { SuccessChance } from "./SuccessChance";
|
import { SuccessChance } from "./SuccessChance";
|
||||||
|
import { CopyableText } from "../../ui/React/CopyableText";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
bladeburner: IBladeburner;
|
bladeburner: IBladeburner;
|
||||||
@ -51,8 +52,8 @@ export function BlackOpElem(props: IProps): React.ReactElement {
|
|||||||
return (<>
|
return (<>
|
||||||
<h2 style={{display: 'inline-block'}}>
|
<h2 style={{display: 'inline-block'}}>
|
||||||
{isActive ?
|
{isActive ?
|
||||||
<>{props.action.name} (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} / {formatNumber(props.bladeburner.actionTimeToComplete, 0)})</> :
|
<><CopyableText value={props.action.name} /> (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} / {formatNumber(props.bladeburner.actionTimeToComplete, 0)})</> :
|
||||||
<>{props.action.name}</>
|
<CopyableText value={props.action.name} />
|
||||||
}
|
}
|
||||||
</h2>
|
</h2>
|
||||||
{isActive ?
|
{isActive ?
|
||||||
|
@ -2,6 +2,7 @@ import * as React from "react";
|
|||||||
import { BlackOpList } from "./BlackOpList";
|
import { BlackOpList } from "./BlackOpList";
|
||||||
import { IBladeburner } from "../IBladeburner";
|
import { IBladeburner } from "../IBladeburner";
|
||||||
import { IPlayer } from "../../PersonObjects/IPlayer";
|
import { IPlayer } from "../../PersonObjects/IPlayer";
|
||||||
|
import { CopyableText } from "../../ui/React/CopyableText";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
bladeburner: IBladeburner;
|
bladeburner: IBladeburner;
|
||||||
|
@ -10,6 +10,7 @@ import { BladeburnerConstants } from "../data/Constants";
|
|||||||
import { IBladeburner } from "../IBladeburner";
|
import { IBladeburner } from "../IBladeburner";
|
||||||
import { IPlayer } from "../../PersonObjects/IPlayer";
|
import { IPlayer } from "../../PersonObjects/IPlayer";
|
||||||
import { SuccessChance } from "./SuccessChance";
|
import { SuccessChance } from "./SuccessChance";
|
||||||
|
import { CopyableText } from "../../ui/React/CopyableText";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
bladeburner: IBladeburner;
|
bladeburner: IBladeburner;
|
||||||
@ -54,8 +55,8 @@ export function ContractElem(props: IProps): React.ReactElement {
|
|||||||
return (<>
|
return (<>
|
||||||
<h2 style={{display: 'inline-block'}}>
|
<h2 style={{display: 'inline-block'}}>
|
||||||
{isActive ?
|
{isActive ?
|
||||||
<>{props.action.name} (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} / {formatNumber(props.bladeburner.actionTimeToComplete, 0)})</> :
|
<><CopyableText value={props.action.name} /> (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} / {formatNumber(props.bladeburner.actionTimeToComplete, 0)})</> :
|
||||||
<>{props.action.name}</>
|
<CopyableText value={props.action.name} />
|
||||||
}
|
}
|
||||||
</h2>
|
</h2>
|
||||||
{isActive ?
|
{isActive ?
|
||||||
|
@ -7,6 +7,7 @@ import {
|
|||||||
} from "../../../utils/StringHelperFunctions";
|
} from "../../../utils/StringHelperFunctions";
|
||||||
import { IBladeburner } from "../IBladeburner";
|
import { IBladeburner } from "../IBladeburner";
|
||||||
import { IPlayer } from "../../PersonObjects/IPlayer";
|
import { IPlayer } from "../../PersonObjects/IPlayer";
|
||||||
|
import { CopyableText } from "../../ui/React/CopyableText";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
bladeburner: IBladeburner;
|
bladeburner: IBladeburner;
|
||||||
@ -43,8 +44,8 @@ export function GeneralActionElem(props: IProps): React.ReactElement {
|
|||||||
return (<>
|
return (<>
|
||||||
<h2 style={{display: 'inline-block'}}>
|
<h2 style={{display: 'inline-block'}}>
|
||||||
{isActive ?
|
{isActive ?
|
||||||
<>{props.action.name} (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} / {formatNumber(props.bladeburner.actionTimeToComplete, 0)})</> :
|
<><CopyableText value={props.action.name} /> (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} / {formatNumber(props.bladeburner.actionTimeToComplete, 0)})</> :
|
||||||
<>{props.action.name}</>
|
<CopyableText value={props.action.name} />
|
||||||
}
|
}
|
||||||
</h2>
|
</h2>
|
||||||
{isActive ?
|
{isActive ?
|
||||||
|
@ -12,6 +12,7 @@ import { TeamSizePopup } from "./TeamSizePopup";
|
|||||||
import { IBladeburner } from "../IBladeburner";
|
import { IBladeburner } from "../IBladeburner";
|
||||||
import { IPlayer } from "../../PersonObjects/IPlayer";
|
import { IPlayer } from "../../PersonObjects/IPlayer";
|
||||||
import { SuccessChance } from "./SuccessChance";
|
import { SuccessChance } from "./SuccessChance";
|
||||||
|
import { CopyableText } from "../../ui/React/CopyableText";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
bladeburner: IBladeburner;
|
bladeburner: IBladeburner;
|
||||||
@ -64,8 +65,8 @@ export function OperationElem(props: IProps): React.ReactElement {
|
|||||||
return (<>
|
return (<>
|
||||||
<h2 style={{display: 'inline-block'}}>
|
<h2 style={{display: 'inline-block'}}>
|
||||||
{isActive ?
|
{isActive ?
|
||||||
<>{props.action.name} (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} / {formatNumber(props.bladeburner.actionTimeToComplete, 0)})</> :
|
<><CopyableText value={props.action.name} /> (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} / {formatNumber(props.bladeburner.actionTimeToComplete, 0)})</> :
|
||||||
<>{props.action.name}</>
|
<CopyableText value={props.action.name} />
|
||||||
}
|
}
|
||||||
</h2>
|
</h2>
|
||||||
{isActive ?
|
{isActive ?
|
||||||
|
Loading…
Reference in New Issue
Block a user