_Bastler
07b3dc0f5e
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-07-23 12:18:30 +02:00
David Négrier
2aba6b1c27
Fixing loop when setting variables
...
Setting a variable would makes the application enter in an infinite loop of events (between all the scripts and the back)
This fix makes sure a variable does not emit any event if it is changed to a value it already has.
2021-07-23 11:51:01 +02:00
_Bastler
b6693b9ea7
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-07-22 18:41:01 +02:00
David Négrier
84df25f863
Improving WA.state typings
2021-07-22 17:14:36 +02:00
_Bastler
b3b99d1a55
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-07-22 14:53:32 +02:00
David Négrier
080d495044
Renaming WA.room.getMap
to WA.room.getTiledMap
2021-07-21 16:40:53 +02:00
David Négrier
3d76f76d3e
Fixing merge
2021-07-16 11:37:44 +02:00
David Négrier
5c7ea7b258
Merge branch 'develop' of github.com:thecodingmachine/workadventure into scripting_api_room_metadata
2021-07-16 11:22:36 +02:00
_Bastler
3e60042164
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-07-13 16:48:38 +02:00
GRL78
b2ea368097
Migrate getCurrentUser() to WA.player ( #1279 )
2021-07-13 15:13:14 +02:00
David Négrier
52fd9067b8
Editing do to add "state" API doc
2021-07-08 11:46:30 +02:00
_Bastler
bcab6ae1f1
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-07-08 08:20:42 +02:00
David Négrier
b1cb12861f
Migrating variables functions to the "state" namespace.
2021-07-07 22:14:59 +02:00
David Négrier
e65e8b2097
First version with variables that actually work
2021-07-07 17:17:28 +02:00
GRL
bef5e139c0
SetTiles can now set a tile to null so that there is no more tile.
2021-07-07 14:42:17 +02:00
David Négrier
86fa869b20
Actually using Type Guards in queries received by WA.
2021-07-06 10:26:44 +02:00
David Négrier
bf17ad4567
Switching setVariable to a query and fixing error hangling in query mechanism
2021-07-05 18:29:34 +02:00
David Négrier
c30de8c6db
Adding support for default variables values
2021-07-05 17:25:23 +02:00
David Négrier
62a4814961
Migrating WA.player.getCurrentUser and WA.room.getCurrentRoom to direct property access and WA.room.getMap
2021-07-05 11:53:33 +02:00
_Bastler
74823177f5
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-07-02 20:59:39 +02:00
David Négrier
ea1460abaf
Adding variables (on the front side for now)
2021-07-02 17:36:43 +02:00
David Négrier
280c59e6b5
Changing callback signature of registerAnswerer so that it can return a value and not necessarily a promise.
2021-07-02 17:26:28 +02:00
David Négrier
5b4a72ea1f
Add new "query/answer" utility functions for the scripting API
...
So far, the scripting API was using events to communicate between WA and the iFrame.
But often, the scripting API might actually want to "ask" WA a question and wait for an answer.
We dealt with this by using 2 unrelated events (in a mostly painful way).
This commit adds a "queryWorkadventure" utility function in the iFrame API that allows us
to send a query, and to wait for an answer. The query and answer events have a unique ID to be
sure the answer matches the correct query.
On the WA side, a new `IframeListener.registerAnswerer` method can be used to register a possible answer.
2021-07-02 16:49:22 +02:00
GRL
e1611969ce
Merge branch 'develop' of github.com:thecodingmachine/workadventure into jonnytest1-tiles-start-positions
2021-07-02 14:35:28 +02:00
_Bastler
2701d656da
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-07-01 12:10:53 +02:00
_Bastler
72a07467c5
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-07-01 12:10:26 +02:00
GRL
01d02124d1
Merge branch 'develop' of github.com:thecodingmachine/workadventure into metadataScriptAPIV2
2021-07-01 11:38:33 +02:00
David Négrier
bfcdd31ed2
Fixing NPM package generation
...
The generation was broken due to the refactoring in several classes (some of them where not properly exported).
Also, trying to generate the NPM package on every build now (to detect issues).
2021-06-30 10:15:55 +02:00
_Bastler
ee1e4c1910
merge dev
2021-06-29 20:21:00 +02:00
GRL
6462773e7f
Merge branch 'develop' of github.com:thecodingmachine/workadventure into metadataScriptAPIV2
2021-06-29 14:16:19 +02:00
GRL
b457ce493b
Suppress console.log
2021-06-29 09:44:57 +02:00
_Bastler
44791d113d
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-06-29 07:52:33 +02:00
GRL
389ca25b6a
Cowebsite opened by script can use Iframe Api
2021-06-28 18:00:48 +02:00
David Négrier
3fd4f9d384
Adding a warning message if an unauthorized iFrame tries to communicate with WA
...
Closes #1241
2021-06-28 15:20:27 +02:00
_Bastler
f13282f424
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-06-28 15:02:24 +02:00
David Négrier
1e57028e6e
Renaming changeTile
to setTiles
2021-06-28 14:58:49 +02:00
David Négrier
319db95bc8
Merge branch 'develop' of github.com:thecodingmachine/workadventure into metadataScriptAPIV2
...
# Conflicts:
# front/src/Api/iframe/room.ts
2021-06-28 14:50:26 +02:00
GRL
b182a08ca2
correction from review
2021-06-28 09:33:13 +02:00
jonny
7f61e9addd
Merge remote-tracking branch 'remotes/upstream/develop' into tiles-start-positions
2021-06-25 18:14:40 +02:00
_Bastler
07b6fce877
re-adding popup-input, video container fix
2021-06-25 11:34:27 +02:00
GRL
4903911d62
Merge branch 'develop' of github.com:thecodingmachine/workadventure into metadataScriptAPIV2
2021-06-24 11:33:29 +02:00
_Bastler
ab20a074fe
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-06-24 09:47:16 +02:00
_Bastler
418dd4a6c5
merge dev
2021-06-24 08:56:29 +02:00
jonny
d1178b1a01
immutableData was never assigned
2021-06-23 20:19:38 +02:00
GRL
95d8cf9257
Change requested
2021-06-23 14:54:06 +02:00
GRL
24cc340cb9
Merge branch 'metadataScriptingApi' of github.com:thecodingmachine/workadventure into metadataScriptAPIV2
2021-06-23 12:02:29 +02:00
GRL
bdb32a29e1
New methods refactored
2021-06-23 11:32:11 +02:00
GRL
85fe92f604
Merge branch 'menu-commands-apiref' of github.com:jonnytest1/workadventure into metadataScriptingApi
2021-06-23 09:18:20 +02:00
GRL
be23db5bcf
Resolve import and LoadPageEvent issue
2021-06-22 16:07:31 +02:00
_Bastler
f82b106dce
Merge branch 'develop' of github.com:thecodingmachine/workadventure into main
2021-06-22 14:26:47 +02:00