Update to new links changes

This commit is contained in:
thepaperpilot 2022-03-22 23:05:36 -05:00
parent e867a9e89e
commit 53bbcbd831
2 changed files with 19 additions and 13 deletions

View file

@ -22,6 +22,7 @@ import {
import { jsx, showIf, Visibility } from "features/feature";
import { createHotkey } from "features/hotkey";
import { createInfobox } from "features/infoboxes/infobox";
import { createLinks } from "features/links/links";
import { createMilestone } from "features/milestones/milestone";
import { createReset } from "features/reset";
import MainDisplay from "features/resources/MainDisplay.vue";
@ -466,6 +467,18 @@ const layer = createLayer(() => {
}
}));
const links = createLinks(() => ({
links: [
{
startNode: h,
endNode: flatBoi,
"stroke-width": "5px",
stroke: "red",
offsetEnd: { x: -50 + 100 * flatBoi.progress.value.toNumber(), y: 0 }
}
]
}));
const illuminatiTabs = createTabFamily(() => ({
tabs: {
first: {
@ -635,17 +648,6 @@ const layer = createLayer(() => {
id,
color,
name,
links() {
const links = tree.links.value.slice();
links.push({
startNode: h,
endNode: flatBoi,
"stroke-width": "5px",
stroke: "red",
offsetEnd: { x: -50 + 100 * flatBoi.progress.value.toNumber(), y: 0 }
});
return links;
},
points,
best,
beep,
@ -679,7 +681,12 @@ const layer = createLayer(() => {
confirmRespec,
minWidth: 800,
tabs,
display: jsx(() => <>{render(tabs)}</>)
display: jsx(() => (
<>
{render(tabs)}
{render(links)}
</>
))
};
});

View file

@ -64,7 +64,6 @@ export const main = createLayer(() => {
return {
id: "main",
name: "Tree",
links: tree.links,
display: jsx(() => (
<>
<div v-show={player.devSpeed === 0}>Game Paused</div>