mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-21 16:13:54 +00:00
Make it easier to determine which plane goes to which portal
This commit is contained in:
parent
4f80e00eb2
commit
11413ded2a
3 changed files with 18 additions and 1 deletions
|
@ -657,7 +657,12 @@ export const portal = {
|
|||
}),
|
||||
outlineColor: node =>
|
||||
(layers[(node.state as unknown as PortalState).id] as GenericPlane).background,
|
||||
draggable: true
|
||||
draggable: true,
|
||||
onClick(node) {
|
||||
main.board.selectedNode.value = node;
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
layers[(node.state as unknown as PortalState).id]!.minimized.value = false;
|
||||
}
|
||||
} as NodeTypeOptions;
|
||||
|
||||
export const influence = {
|
||||
|
|
|
@ -1411,6 +1411,16 @@ export function createPlane(
|
|||
);
|
||||
});
|
||||
|
||||
const findNode = createClickable(() => ({
|
||||
display: {
|
||||
description: "Select Portal Node"
|
||||
},
|
||||
onClick() {
|
||||
main.board.selectedNode.value = main.portalNodes.value[id];
|
||||
},
|
||||
style: "min-height: 30px; width: 200px; margin-bottom: 20px"
|
||||
}));
|
||||
|
||||
return {
|
||||
tier: persistent(tier),
|
||||
seed: persistent(seed),
|
||||
|
@ -1498,6 +1508,7 @@ export function createPlane(
|
|||
</StickyVue>
|
||||
)}
|
||||
<SpacerVue height={earnedTreasures.value.length === length ? "30px" : "60px"} />
|
||||
{render(findNode)}
|
||||
{earnedTreasures.value.length === length ? (
|
||||
<div>
|
||||
<h1 style="color: var(--layer-color)">Plane Complete!</h1>
|
||||
|
|
|
@ -978,6 +978,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
resourceNodes,
|
||||
toolNodes,
|
||||
influenceNodes,
|
||||
portalNodes,
|
||||
grantResource,
|
||||
activePortals,
|
||||
nextPowerCost,
|
||||
|
|
Loading…
Reference in a new issue