Add type annotations to the rect and proportional parameters in the
applyGridRect useCallback, which Flow cannot infer from local context.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Explicitly type loop variables as number to avoid incompatible-type
error when Flow infers the union type 0 | 1 | 2 from GridRect fields.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add stories for both the compact and full versions of the Anchor
behavior editor, along with Anchor behavior test data in TestProject.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- For advanced use cases where it's important to run events on each instance of an object with an ordering, the For Each can now have an ordering: an expression can be written and will be evaluated for each instance separately. The For Each will then execute for each instance in the order of the result of the expression.
- It's possible to change the direction (ascending or descending)
- It's also possible to give a limit (for example, 1 will allow to pick just the instance with the highest/lowest value for the expression).
- Examples are provided in the UI for common use cases (maximum value of a variable, health points, ammo, distance to another object...)
This updates the translations by downloading them from Crowdin and
compiling them for usage by the app.
Please double check the values in
`newIDE/app/src/locales/LocalesMetadata.js` to ensure the changes are
sensible.
Co-authored-by: 4ian <1280130+4ian@users.noreply.github.com>
- Removed the + button that was wrongly shown to add an instance variable (instance variables can only "override" the values of the variables defined in the object)
- Fix paste/delete a child of structure/array of a variable that is re-defined in instances variables. Previously it was not possible to paste a variable as a child of a instance variable that was a structure/array. This is now possible (and fully supported - you can't add new variables at the root, but items inside structures/arrays can be changed).
- Also fix generated code for events (and Else) not working with 'use strict' (only show in developer changelog)
- Also improve the UI to not show horizontal bars for disabled events and comments
- please run npm install in newIDE/app. Relaunch VSCode/Cursor/your IDE and make sure the latest Flow version (0.299.0) is used.
- While the new FlowFixMe can be annoying, in general it should be way more robust, way faster (2x faster on the CI for example compared to the old version) and crash way less.
Only show in developer changelog
- Add a shortcut (**F7** by default) and command in the command palette to open diagnostic report at any time
- The report now scans project for missing actions/conditions/expressions from extensions and reports invalid parameters (shown with red underline in Events Sheet)
- Click on error location to navigate directly to the event
- Replace the existing Paint Brush with the Rectangle tool.
- Implement a proper Freehand Brush tool. It works with multiple tiles and single tile.
- Add a Picker tool (and it remember your previous tool before picking, and restore it once picking is done)
- Add a Bucket Fill tool: it can replace existing tiles or empty spaces. Filling is limited to the tilemap bounds within the canvas.
- Optimize drawing performance: reduce and limit the number of points stored while the cursor moves.
- Visually separate the tools and the (flips) modes.
- "For Each Child Variable" now also properly support choosing local variables for the variable to iterate on, and for the variable where to store the child and the optional variable where to store the name.
- The loop counter starts from 0 and is automatically increased by 1 each time the event is repeated.