A graph adds items to a list held by a global variable while the game runs. The inspector row says "2 items", but clicking it opens the list tab empty.
Cause
The inspector shows a Variables asset's values from the running game (shownValues in assetSection.ts).
The list tab only read the list stored in the project (assetOwner in list/slot.ts), which is empty because only the run fills it.
The tab did not listen to the run's ticks either, so it would not have grown along.
Wanted
While playing, the list tab shows the same live value as the inspector and follows it as it changes. After Stop it shows the project's list again.
A graph adds items to a list held by a global variable while the game runs. The inspector row says "2 items", but clicking it opens the list tab empty.
## Cause
- The inspector shows a Variables asset's values from the running game (`shownValues` in `assetSection.ts`).
- The list tab only read the list stored in the project (`assetOwner` in `list/slot.ts`), which is empty because only the run fills it.
- The tab did not listen to the run's ticks either, so it would not have grown along.
## Wanted
While playing, the list tab shows the same live value as the inspector and follows it as it changes. After Stop it shows the project's list again.
resolveList takes the live values: while playing, a Variables asset's list comes from the running game, the same rule as the inspector.
The list tab refreshes on runtime ticks, about 10 times a second, and not while a field in it is being typed in.
Editing in the tab while playing goes into the run's copy of the project, as in the inspector.
Tests: gate 2634 tests green, e2e 1+32 30 checks. New 32b-ii (2 checks): a graph adds an item every frame, the test pauses and clicks "N items" with a real mouse; the tab draws 26 rows for 26 items, 50 after resuming, none after Stop. Counter-checks: without live values the tab draws 0 rows (the reported bug), without the refresh it stays behind.
Fixed in 92fad6b.
- `resolveList` takes the live values: while playing, a Variables asset's list comes from the running game, the same rule as the inspector.
- The list tab refreshes on runtime ticks, about 10 times a second, and not while a field in it is being typed in.
- Editing in the tab while playing goes into the run's copy of the project, as in the inspector.
Tests: gate 2634 tests green, e2e 1+32 30 checks. New 32b-ii (2 checks): a graph adds an item every frame, the test pauses and clicks "N items" with a real mouse; the tab draws 26 rows for 26 items, 50 after resuming, none after Stop. Counter-checks: without live values the tab draws 0 rows (the reported bug), without the refresh it stays behind.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
A graph adds items to a list held by a global variable while the game runs. The inspector row says "2 items", but clicking it opens the list tab empty.
Cause
shownValuesinassetSection.ts).assetOwnerinlist/slot.ts), which is empty because only the run fills it.Wanted
While playing, the list tab shows the same live value as the inspector and follows it as it changes. After Stop it shows the project's list again.
Fixed in
92fad6b.resolveListtakes the live values: while playing, a Variables asset's list comes from the running game, the same rule as the inspector.Tests: gate 2634 tests green, e2e 1+32 30 checks. New 32b-ii (2 checks): a graph adds an item every frame, the test pauses and clicks "N items" with a real mouse; the tab draws 26 rows for 26 items, 50 after resuming, none after Stop. Counter-checks: without live values the tab draws 0 rows (the reported bug), without the refresh it stays behind.