diff --git a/src/Programs/ui/ProgramsRoot.tsx b/src/Programs/ui/ProgramsRoot.tsx index 81202d18d..2a397bca2 100644 --- a/src/Programs/ui/ProgramsRoot.tsx +++ b/src/Programs/ui/ProgramsRoot.tsx @@ -86,22 +86,37 @@ export function ProgramsRoot(): React.ReactElement { (create.req() && ) || } {program.name} - {!Player.hasProgram(program.name) && create.req() && ( - - )} + {!Player.hasProgram(program.name) && + create.req() && + (isCreateProgramWork(Player.currentWork) && Player.currentWork?.programName === program.name ? ( + //Button if the program is currently being worked on + + ) : ( + //Button if the program is not currently worked on + + ))} {Player.hasProgram(program.name) || getHackingLevelRemaining(create.level) === 0 || ( Unlocks in: {getHackingLevelRemaining(create.level)} hacking levels @@ -112,6 +127,13 @@ export function ProgramsRoot(): React.ReactElement { Current completion: {curCompletion}% )} + {/*Displays the current completion of the program currently being created*/} + {isCreateProgramWork(Player.currentWork) && Player.currentWork?.programName === program.name && ( + + Current completion:{" "} + {((100 * Player.currentWork.unitCompleted) / Player.currentWork.unitNeeded()).toFixed(2)}% + + )} {create.tooltip}