create program and grafting done

This commit is contained in:
Olivier Gagnon
2022-07-10 01:37:36 -04:00
parent 647392626e
commit 606f1bf6c4
25 changed files with 375 additions and 324 deletions

View File

@@ -8,6 +8,7 @@ import { use } from "../../ui/Context";
import { Settings } from "../../Settings/Settings";
import { Programs } from "../Programs";
import { CreateProgramWork } from "../../Work/CreateProgramWork";
export const ProgramsSeen: string[] = [];
@@ -96,7 +97,9 @@ export function ProgramsRoot(): React.ReactElement {
sx={{ my: 1, width: "100%" }}
onClick={(event) => {
if (!event.isTrusted) return;
player.startCreateProgramWork(program.name, create.time, create.level);
player.startNEWWork(
new CreateProgramWork({ player: player, singularity: false, programName: program.name }),
);
player.startFocusing();
router.toWork();
}}