Skip to content

Commit fb03278

Browse files
committed
added small help text below DebugUI
closes #41
1 parent ff65873 commit fb03278

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/components/DebugUI.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ function DebugUI() {
164164
simulation,
165165
simulationIndex,
166166
initialPC,
167+
placingNode,
167168
} = useSimulationContext()
168169

169170
/** Checks if PC Address is outside the scope of the known commands inside executionInfo.
@@ -271,6 +272,15 @@ function DebugUI() {
271272
</ButtonGroup>
272273
</TooltipProvider>
273274
</ButtonGroup>
275+
<div className="absolute top-10 text-muted-foreground text-nowrap pointer-events-none">
276+
{placingNode
277+
? "Click on a wire to place the node on."
278+
: simulationIndex != undefined
279+
? simulationIndex > 0
280+
? "Hover over a wire to see its value."
281+
: "Go to the next cycle to execute the next instruction."
282+
: ""}
283+
</div>
274284
</div>
275285
)
276286
}

0 commit comments

Comments
 (0)