This method uses signaling (through a boolean) and I feel like it's
extremely hacky, but I tested this and it (kind of?) works.
Unfortunately I found this to potentially lag when resizing.
I am not sure if this is guaranteed to work (as in, produce correct
behaviour) or not, but to my understanding only LogicDialog uses LCanvas
(grep out "LCanvas\|canvas" and see) so it will most likely work?
I tested this and accidentally found an unrelated issue related to
LCanvas.maxJumpsDrawn, but I hope this will be fixed in the near future.
Note that this is very incomplete, for two different reasons:
- it's O(n^2) or potentially worse
- it makes the GC work hard (it invokes `new` in
`LCanvas.DragLayout.layout()`)
For the second reason this does not clearly fit the criteria of
CONTRIBUTING.md, but I have yet to figure out ways to work around this
(or make the algorithm more efficient).
Original canvas.jumps is now a reference to canvas.statements.jumps.
Please remove canvas.jumps in favour of canvas.statements.jumps in a
future release. Thanks!
* fix the index used to get the sfx substring
* handle cases where the sxf variable is not a built-in
This prevents a crash that happened whenever the sfx
variable's name had less than 5 characters (4 before this
pr), since the substring method was called regardless of
the name's size.
* allow global sound to play more than once per frame
might need an arc pr for the positional
* carhash
* thing
* extra field
* change "check frame" to "limit"
* description
* Update core/assets/bundles/bundle.properties
---------
Co-authored-by: Anuken <arnukren@gmail.com>
* some fun things for world proc only
* fix the format artifact
* SetProp and reformating
* Wildcard imports
* Wildcard imports
* velocity conversion
* compacting description
Co-authored-by: Anuken <arnukren@gmail.com>
* Update core/src/mindustry/world/blocks/defense/turrets/Turret.java
---------
Co-authored-by: Anuken <arnukren@gmail.com>