Alexis Faizeau
d4470568ec
Fix change layer api functions
2021-10-29 23:16:36 +02:00
Alexis Faizeau
934e24f837
Implement on enter/leave layer events
2021-10-29 19:44:58 +02:00
Alexis Faizeau
fb7fe0dc0a
Rename cowebsite API functions
2021-10-25 19:00:26 +02:00
Alexis Faizeau
f84c4b3276
Refacto insert cowebsite
2021-10-25 19:00:26 +02:00
Alexis Faizeau
b81b1ff68b
Implement new cowbesite system on API
2021-10-25 19:00:26 +02:00
David Négrier
f92b728a8e
Fixing broken chat API
2021-09-13 14:50:02 +02:00
kharhamel
4160235b92
ran pretty on the front
2021-09-06 14:31:59 +02:00
David Négrier
7576fbbe6d
Merge pull request #1392 from thecodingmachine/iframeMenuScript
...
Iframe menu script
2021-08-27 17:41:04 +02:00
David Négrier
10c08dea6d
Merge pull request #1393 from thecodingmachine/variableHasProxy
...
Fixing "has/in" on variables proxy object
2021-08-27 15:07:50 +02:00
David Négrier
a0d3685227
Fixing "has/in" on variables proxy object
...
When using WA.state, using `"myVariable" in WA.state` would always return false.
This is now fixed by adding a "has" method on the Proxy class.
Also, added a `WA.state.hasVariable` method.
2021-08-27 11:29:59 +02:00
GRL
706f531ca2
Add types file in API
2021-08-27 11:17:48 +02:00
GRL
cf7bfe79ca
Refactor to only have one function registerMenuCommand
...
When selected custom menu is removed, go to settings menu
Allow iframe in custom menu to use Scripting API
Return menu object when it is registered, can call remove function on it
2021-08-27 10:34:03 +02:00
GRL78
7c956d1481
REVIEW : Migration Menu and Report Menu in Svelte ( #1363 )
...
* WIP: svelte menu
* temp
* temp
* New menu svelte
* Migration of report menu in svelte
* Migration of registerCustomMenu for Menu in Svelte
Refactor subMenuStore
Suppression of old MenuScene and ReportMenu
* Suppression of HTML files that aren't use anymore
* fix deeployer
* First pass on css
* First pass on css
* Second pass on css and reportMenu
* Second pass on css and reportMenu
* Second pass on css and reportMenu
* Third pass on css and reportMenu
* Correction following test
* Contact page only if environment variable exist
* Update service worker
Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
* Change requested
* Change requested
Co-authored-by: kharhamel <oognic@gmail.com>
Co-authored-by: Gregoire Parant <g.parant@thecodingmachine.com>
2021-08-26 12:01:07 +02:00
David Négrier
5cd3ab4b4c
Removing ts-ignore
2021-08-25 09:30:05 +02:00
GRL
f3c4d344b3
Add iframe submenu by scripting API
...
Delete menu by scripting API
2021-08-24 17:35:06 +02:00
GRL
49eb28dacf
Merge branch 'develop' of github.com:thecodingmachine/workadventure into menuInSvelte
2021-08-24 09:38:24 +02:00
GRL
ad95fa5e11
Execute scripts of the map after creating gameScene
2021-08-23 18:53:59 +02:00
GRL
edfe440c6e
Merge branch 'develop' of github.com:thecodingmachine/workadventure into menuInSvelte
2021-08-20 16:18:45 +02:00
David Négrier
8a64491952
Improving popup
...
If a popup message is empty, only the buttons will be displayed (not the container)
Unrelated: the Sound.play method in the API now accepts 0 arguments.
2021-08-18 11:53:41 +02:00
GRL
f4ce5f9a3b
Merge branch 'ReportMenuSvelte' of github.com:thecodingmachine/workadventure into menuInSvelte
2021-08-11 15:04:47 +02:00
GRL
8105e966ff
Migration of registerCustomMenu for Menu in Svelte
...
Refactor subMenuStore
Suppression of old MenuScene and ReportMenu
2021-08-11 14:07:34 +02:00
GRL78
e0fb31fc58
WIP: Migrate AudioManager in Svelte ( #1325 )
...
* Migrate AudioManager in Svelte
* use import type when needed
2021-08-06 09:11:17 +02:00
David Négrier
6b9b999996
Making embedded iframes scriptable using the WA.room.website namespace.
2021-08-05 12:37:05 +02:00
David Négrier
bc1c6a4986
Refactoring displayActionMessage signature. Now accepting an options object. This should allow for more options in the future.
2021-08-05 12:02:00 +02:00
David Négrier
d1e5d57459
Changing the method name from "triggerMessage" to "displayActionMessage".
...
Generally speaking, I like to call the message at the bottom an "action message".
And things can "trigger" it, but in the case of a method that actually proactively displays the message, I find "displayActionMessage" to be a better name.
Also, removing package-lock files and improving code style
2021-08-05 09:17:33 +02:00
David Négrier
4713010929
Merge branch 'develop' of github.com:thecodingmachine/workadventure into trigger-message-refv3
2021-08-03 19:01:16 +02:00
Gregoire Parant
14b4229019
Merge branch 'develop' into GlobalMessageToWorld
...
# Conflicts:
# CHANGELOG.md
# front/src/Api/Events/IframeEvent.ts
# front/src/Components/App.svelte
# pusher/src/Services/SocketManager.ts
2021-08-02 23:07:39 +02:00
GRL
73d589ad11
Load a json file that describe a tileset in Tile format.
...
Then add it to the tilemap of the GameScene
Then add if to the GameMap
2021-07-28 18:03:19 +02:00
David Négrier
cdd61bdb2c
Merging with develop
2021-07-23 16:41:38 +02:00
David Négrier
3d5c222957
Reverting changes regarding single quotes
2021-07-23 14:59:56 +02:00
GRL
ba6e6235d6
Merge branch 'develop' of github.com:thecodingmachine/workadventure into GlobalMessageToWorld
2021-07-23 14:10:43 +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
GRL
9fa7c7aac0
Merge branch 'develop' of github.com:thecodingmachine/workadventure into GlobalMessageToWorld
2021-07-22 17:29:00 +02:00
David Négrier
84df25f863
Improving WA.state typings
2021-07-22 17:14:36 +02:00
GRL
68ff1b9e17
Merge branch 'develop' of github.com:thecodingmachine/workadventure into GlobalMessageToWorld
2021-07-22 16:26:01 +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
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
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
jonny
4ea6a12d20
cast callback
2021-07-05 16:26:29 +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
jonny
310e131a6e
eslint restart
2021-07-02 19:03:34 +02:00
jonny
369d453455
Merge remote-tracking branch 'remotes/upstream/develop' into trigger-message-refv3
2021-07-02 18:49:22 +02:00