Add the Variable node and show the variable name in node titles

Get/Set variable nodes now title themselves "Get <name>" / "Set <name>", and
the new Variable node just "<name>"; the title is the same folded or open,
and a collapsed node shrinks to it. The redundant "Variable: <name>" row is
gone unless the variable was deleted ("<name>?" is the only hint then).

The Variable node sets its value when an exec flow arrives and exposes the
value at any time. Its output is read when a downstream node pulls it, not
frozen at the write, so count = count + 1 is one Variable node plus an Add.
Get variable keeps reading once per pulse: switching it would change the
behaviour of existing games.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5 committed 2026-09-11 13:34:09 +02:00
1 parent 5f8a308d62
commit e9fa592078
19 files changed
+354 -38

No files matched your search

@@ -0,0 +1,14 @@
man kann ja nun graph nodes zusammenklappen.
hier soll auch die breite veringert werden auf die titeltext breite wenn möglich?
---
EDIT:
speziell für "Get variable" node, "Set variable" node und der zukünftige "Variable" node:
Es soll in der titelbar vom node der variablennamen (falls gesetzt!) angezeigt werden (egal ob zusammengeklappt oder nicht, ist unabhängig davon)
hier die beispiele:
- "Get dummyX" (beim node "Get variable")
- "Set dummyX" (beim node "Set variable")
- "dummyX" (beim node "Variable")
@@ -0,0 +1,9 @@
Kann man einen quasi 2 in 1 node machen "Variable" - dieser soll Get/Set gleichzeichtig können
- kommt ein exec flow rein, dann wird gesetzt (vom input port - wert oder edge)
- get gibt es quasi immer, natürlich der neue wert falls er gesetzt wird
---
Umgesetzt: der Ausgang liest die Variable im Moment des Abrufs, nicht beim Schreiben.
`Get variable` liest dagegen weiter einmal pro Puls — auf dieselbe Technik umstellen hiesse,
bestehende Spiele im Verhalten zu aendern (Tetris liest das Brett deshalb zweimal).
-2
View File
@@ -1,2 +0,0 @@
man kann ja nun graph nodes zusammenklappen.
hier soll auch die breite veringert werden auf die titeltext breite wenn möglich?