Aurélien Vivet
c4f76efbcd
Fix some missing translations ( #2953 )
2021-08-20 16:23:02 +02:00
Arthur Pacaud
068fbe653a
Add new lines between functions back in TS files ( #2859 )
...
Only show in developer changelog
2021-08-03 14:35:07 +02:00
Florian Rival
8cb55b6e8e
Change some wordings in the Physics behavior actions
...
* Actions to apply a polar force (or impulse) are now called "Apply a force (angle)"
* Also added synonym to actions adding torque (rotational force) or angular impulse (rotational impulse)
2021-03-14 22:17:03 +00:00
Florian Rival
153ccdb283
Add help links for Physics 2.0
...
Don't show in changelog
2021-02-01 08:57:32 +00:00
Florian Rival
f35a3a6827
Improve description of all extensions
...
Don't show in changelog
2021-01-21 20:05:08 +00:00
Florian Rival
7ef2e40066
Add more various fixes for TypeScript and code style
...
Don't show in changelog
2021-01-08 19:55:01 +01:00
Florian Rival
d0dba2a713
Fix typings in TypeScript files
...
Don't show in changelog
2021-01-08 19:54:56 +01:00
Florian Rival
d639e0ea6e
Translate more files to TypeScript
...
Don't show in changelog
2021-01-08 19:54:52 +01:00
Florian Rival
11d69e46ed
Translate all behaviors to TypeScript
...
Also adapt custom behavior code generation to use a (partial) ES6 class (methods are still added using prototype)
Don't show in changelog
2021-01-08 19:54:41 +01:00
Florian Rival
b6f0edf199
Add Box2D global variable declaration for TypeScript
...
Don't show in changelog
2020-12-24 14:28:45 +01:00
Florian Rival
6a50183784
Fix description of mouse joint action
2020-12-11 09:46:33 +01:00
Florian Rival
1f0165cda7
Fix gravity and time scale Physics engine actions missing an object in the events sheet
2020-12-01 09:35:13 +01:00
Florian Rival
37c260c19d
Remove methods polluting Array prototype in gd.js
...
Only show in developer changelog
2020-08-05 18:47:39 +02:00
Florian Rival
c385aae845
Add support for "hot reloading" of previews (apply changes to preview without restarting)
2020-07-25 14:23:01 +01:00
Florian Rival
3a9f896f04
Add hot reloader (electron app only)
2020-07-25 14:23:00 +01:00
Florian Rival
0f30c2d614
Fix memory leak leading to a crash in the editor when having a BB Text in the scene.
...
* Also fix similar smaller memory leak when using other features.
Don't show the rest in changelog:
This avoids calling new gd.PropertyDescriptor every time properties of an object/behavior are accessed, which would result in these gd.PropertyDescriptor to be never destroyed. This would fill up the memory, especially quickly with the BB Text object as properties are queried to render the instances on screen.
"getOrCreate" is now exposed for the map of properties, which is cleaner and memory leak free.
2020-06-20 17:59:27 +01:00
Florian Rival
9d015b9cd1
Add Flow static typing to JsExtension.js files
2020-06-20 16:57:21 +01:00
Florian Rival
fc5905b7f4
Update descriptions of extensions
...
Don't show in changelog
2020-06-20 16:57:21 +01:00
Florian Rival
5b53ffe015
Fix physics engine not applying change in size when using circle shape
2020-06-14 20:03:45 +01:00
Aurélien Vivet
e5695aacf6
Fix sentences for video object actions & clean whitespace ( #1552 )
2020-03-18 21:50:09 +01:00
Florian Rival
b1ea60e1d2
Fix Box2D.js in the global namespace conflicting with Facebook Instant Games runtime
...
Tested on Facebook Instant Games Android, iOS
Tested on Desktop Chrome, Firefox, Safari
2020-03-03 22:59:16 +00:00
Florian Rival
b8ccf02f70
Refactor callbacks registration in GDJS
2020-02-11 23:33:30 +00:00
Arthur Pacaud
054e48227c
Make object and behavior registering more explicit ( #1379 )
2020-01-17 22:49:24 +00:00
Florian Rival
2f8840b2cf
[codemod] Adapt sentences of action/conditions
2019-12-27 13:46:57 +01:00
Florian Rival
276f262fe7
Fix "Mouse joint target" condition sentence
2019-12-24 16:05:34 +01:00
Florian Rival
aa7a4a4ff3
Rename onOwnerRemovedFromScene to onDestroy and fix onCreated/onDestroy calls
...
* Rename onOwnerRemovedFromScene to onDestroy (because it can be now called when a scene is destroyed)
* Fix it being not called when a scene is destroyed (so behavior don't get a chance to clean up what they have created)
* Fix onCreated being called before the object is fully initialized (for custom behaviors or behaviors relying on an object type)
2019-07-28 17:43:50 +01:00
Florian Rival
52cec48bf1
Add zoom to ImagePreview and fix Physics2 behavior vertices edition
...
* Refactor overlays (points, collision masks, physics shape preview)
to be a render prop.
* Fix Physics2 polygon vertices edition
2019-07-01 22:18:21 +01:00
Florian Rival
ea05994702
Fix Physics2Behavior shared data not properly initialized
2019-05-31 19:22:58 +01:00
Florian Rival
3161f641d8
Rename ownerRemovedFromScene to onOwnerRemovedFromScene
2019-05-06 23:08:41 +01:00
Florian Rival
433dc763d1
Separate Behavior into BehaviorContent and Behavior, and add RuntimeBehavior for GDCpp
2019-05-03 22:47:21 +01:00
Florian Rival
02c65bcf66
[WIP] Add translations support, using js-lingui, to newIDE (including libGD.js)
...
* Upgrade to Flow 0.92 and make fixes for it
* Convert all extensions to use _("...") instead of t("...") for translations,
to be able to be parsed by gettext
* Handle translation in JS extensions
* Move Providers out of MainFrame
* Remove i18next
* Adapt ExtractTranslations script to handle js files (for extensions)
2019-02-09 14:08:22 +00:00
Franco Maciel
58d88835c5
Fix initial motors speed in actions of Physics2 behavior ( #872 )
2019-01-14 21:09:09 +00:00
Zat
d3d636744e
Fix wheel joint argument definitions ( #871 )
2019-01-13 22:10:50 +00:00
Florian Rival
caee5fdcc7
Change default name of Physics2 behavior
2019-01-11 19:48:25 +00:00
Zat
30f830589c
Add expressions relative to body to Physics2 behavior ( #854 )
2019-01-09 09:26:31 +00:00
Zat
4c2997b2d9
Add missing Physics2Behavior expressions ( #848 )
2019-01-06 20:43:12 +00:00
Franco Maciel
8a07e9b6c5
Prevent crash with repeated and aligned vertices in Physics2 behavior ( #850 )
2019-01-06 17:26:43 +00:00
Franco Maciel
509ac8966e
Prevent undefined vertices in Physics2 behaviors ( #845 )
2019-01-05 17:03:42 +00:00
Florian Rival
841e1a66b6
Fix updating shared properties of Physics2
2019-01-05 13:52:18 +00:00
Franco Maciel
3fc588b6e3
Add a new editor (with Polygon support) for Physics2 engine ( #825 )
...
* Physics editor and custom polygon support
* Add shape preview
* Dynamic dimension labels in function of the shape
* Add polygon editor
* Preview box, circle and edge
* Prevent invalid properties values
* Add BehaviorsEditorService
2019-01-05 12:28:45 +00:00
Franco Maciel
2d314ff51b
Add New physics behavior (Physics2) ( #775 )
2018-12-23 00:15:25 +01:00