Commit graph

651 commits

Author SHA1 Message Date
samme
ed83c6adc0 Fix undefined state during processing 2020-03-11 13:52:54 -07:00
halilcakar
43f26ad31f Update JSDocs for events 2020-03-10 11:11:43 +03:00
Jason Kwok
f970afb34c Fixed this return type for Phaser.Loader.LoaderPlugin 2020-01-26 00:31:56 +08:00
Richard Davey
0d263be52a Config.loaderWithCredentials is the new global setting for XHRSettings.withCredentials. 2020-01-22 16:30:11 +00:00
Richard Davey
af85f9451d XHRLoader will now use the XHRSettings.withCredentials as set in the file or global loader config. 2020-01-22 16:29:58 +00:00
Richard Davey
bf0feee498 XHRSettings.withCredentials is a new boolean property that controls the withCredentials setting of the XHR Request made by the Loader. It indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. You can set this on a per-file basis, or global in the Game Config. 2020-01-22 16:29:47 +00:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
d5644cf977 If a config object was passed to MultiAtlasFile it expected the atlas URL to be in the url property, however the docs and file config expected it in atlasURL. You can now use either of these properties to declare the url. Fix #4815 2020-01-15 11:36:11 +00:00
Richard Davey
d636189cf7 Fixed JSDoc param type. Fix #4815 2020-01-15 11:30:08 +00:00
Richard Davey
72cbc89817 Fixes Rollup freaking out over an eval 2019-11-20 17:19:20 +00:00
Josh Soref
4670619f6c spelling: dependencies 2019-10-29 01:51:28 -04:00
Josh Soref
22fb1f785f spelling: delimiter 2019-10-29 01:51:13 -04:00
Ilya Apasov
abe3247e47
Enable loading video file as data URI (fixes #4830) 2019-10-29 19:02:56 +02:00
Richard Davey
1df9b9655a Shouldn't remove the blob data, or videos too large for memory cannot replay 2019-10-17 13:25:32 +01:00
Richard Davey
91c0b1c8a4 Create VideoFileConfig.js 2019-10-11 18:31:58 +01:00
Richard Davey
29b9801c5d Load as blob works and finished documentation. 2019-10-10 14:26:03 +01:00
Richard Davey
06047b6d68 Only autoplay if muted, plus some debugging handlers 2019-10-09 10:17:29 +01:00
Richard Davey
35dfd2fb30 Fixed noAudio 2019-10-09 00:40:09 +01:00
Richard Davey
7fb8718c80 Added new noAudio parameter, because it's a load setting, not an instance one 2019-10-08 17:15:06 +01:00
Richard Davey
5ac4afb1f8 Getting autoplay working 2019-10-07 17:08:45 +01:00
Richard Davey
7ef1b06d4c Supports blob and url loading 2019-10-03 17:50:54 +01:00
Richard Davey
c860d1b46c Expose the VideoFile file type 2019-10-03 17:50:30 +01:00
Richard Davey
3dd82c4e02 Working through the Video loader 2019-10-03 14:14:07 +01:00
Richard Davey
237d13ec27 Create VideoFile.js 2019-10-03 02:29:24 +01:00
Richard Davey
9616e8187a MultiAtlasFiles would incorrectly add the atlas JSON into the JSON cache, causing you to not be able to destroy and reload the texture using the same atlas key as before. Fix #4720 2019-09-30 14:24:16 +01:00
Richard Davey
2f976acb13 If more than one MultiAtlasFile used the same internal file name for its images, subsequent multi-atlases would fail to load. Fix #4330 2019-09-30 14:11:29 +01:00
Richard Davey
973bf76b14 MultiAtlasFiles that loaded their own external images would obtain incorrect path and URL values if the path had been changed by another file in the queue. They now retain the loader state and apply it to all child files during load. 2019-09-27 16:11:30 +01:00
Richard Davey
999967c772 MultiFile has three new internal properties: baseURL, path and prefix which allow them to retain the state of the loader at the time of creation, to be passed on to all child-files. Fix #4679. 2019-09-27 16:06:51 +01:00
jorbascrumps
32925001db Added docs to XHRSettingsObject 2019-06-25 19:30:05 -04:00
jorbascrumps
f77e0ccbc1 Added default value 2019-06-25 19:29:24 -04:00
jorbascrumps
d88201604c Added support for multiple Loader headers 2019-06-25 19:26:16 -04:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
a6341a97a8 Fixed Types references 2019-05-09 15:32:53 +01:00
Richard Davey
9fe265121a FileType Defs update 2019-05-09 12:32:00 +01:00
Richard Davey
9a28946069 FileType Types 2019-05-09 12:20:21 +01:00
Richard Davey
ae1b5a664f Loader Types 2019-05-09 12:04:54 +01:00
Richard Davey
8536049b65 Fixed shaderType reference 2019-05-01 14:12:06 +01:00
Richard Davey
8ef5e9789c Renamed from Shader to BaseShader to avoid confusion with the Shader Game Object 2019-05-01 12:58:52 +01:00
Richard Davey
3759714703 Try catch the uniform json parse 2019-05-01 11:12:42 +01:00
Richard Davey
b1de52009d Now extracts uniforms 2019-05-01 00:05:13 +01:00
Richard Davey
0c84853524 Expanding GLSL File Loader 2019-04-30 17:11:18 +01:00
Richard Davey
24bc670424 Merge branch 'master' of https://github.com/photonstorm/phaser 2019-04-23 22:48:24 +01:00
Richard Davey
349a5a1028 Added MultiScriptFile file type 2019-04-23 22:48:20 +01:00
Richard Davey
e2e5c76b8c Added new CSS File Loader FileType. 2019-04-23 11:21:13 +01:00
Richard Davey
0f7eb028c0
Merge pull request #4400 from SirLink/master
Declared dataset as object for internet explorer 10
2019-04-08 16:44:08 +01:00
Richard Davey
c85648e06a The PluginManager.installScenePlugin method has a new optional boolean parameter fromLoader which controls if the plugin is coming in from the result of a Loader operation or not. If it is, it no longer throws a console warning if the plugin already exists. This fixes an issue where if you return to a Scene that loads a Scene Plugin it would throw a warning and then not install the plugin to the Scene. 2019-02-28 12:24:41 +00:00
Wilmer Marchan
378665b912
Declared dataset as object for internet explorer 10
Internet explorer 10 crashed when trying to access the dataset property of the audio object.
2019-02-26 14:39:38 -05:00
Richard Davey
c9bdb83941 GameObject and Loader typedefs 2019-02-13 13:57:59 +00:00
Richard Davey
56dfdb7a74 More jsdoc global fixes 2019-02-12 12:14:26 +00:00
Richard Davey
ccaae460a4 Added jsdoc version numbers to each event 2019-02-12 11:37:58 +00:00
Richard Davey
eb9ed3463f Lots of namespace and jsdoc fixes 2019-02-01 18:02:58 +00:00
Richard Davey
4f6f6ee72f Lots of jsdoc and type fixes 2019-01-31 12:19:01 +00:00
Richard Davey
dc1756bbc8 Pass xhr to onerror 2019-01-24 13:55:36 +00:00
Richard Davey
facd0d0ca4 Better handling of responseURL re #4309 2019-01-24 13:55:27 +00:00
Richard Davey
2a108339f0 Lint fix 2019-01-23 23:17:33 +00:00
Richard Davey
50e292e363
Merge pull request #3864 from Ithamar/patch-1
Allow XHR status 0 as success too
2019-01-23 23:04:27 +00:00
Richard Davey
1eccff1e3b Fixed jsdoc links and markdown bullet lists 2019-01-18 15:20:56 +00:00
Richard Davey
bc962c25dc All listeners use the new Events 2019-01-18 13:41:43 +00:00
Richard Davey
8b9feb8a82 Added all of the Loader Events. 2019-01-17 13:04:26 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
032c7bd405
Merge pull request #4227 from jcyuan/Branch_v3.15.1
TS definition improvements in doc for v3.15.1 release
2018-12-13 11:58:27 +00:00
J.C
b7424fd287 1, removed protected for a few of members, they are used publicly somewhere, for example this.loader.textureManager.addAtlasJSONArray in MultiAtlasFile.prototype.addCache.
2, doc improvement for typescript
2018-12-13 17:19:49 +08:00
Richard Davey
2eb5fb6794 You can now load external Scene files using the new load.sceneFile method. This allows you to dynamically load a Scene into the Scene Manager of your game, and swap to it at will. 2018-11-29 13:44:51 +00:00
Richard Davey
068124b739 Added sceneManager property. 2018-11-29 13:43:44 +00:00
Richard Davey
e6d7a8e68c PluginFile will now install the plugin into the _current_ Scene as long as the start or mapping arguments are provided. 2018-10-23 13:29:44 +01:00
Richard Davey
7e206cf554 UnityAtlas now sets the correct file type key if using a config file object. 2018-10-23 13:28:20 +01:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00
Richard Davey
a9063604dc Replace @readOnly with @readonly 2018-10-09 13:40:00 +01:00
Richard Davey
37d7b7b32d The Loader has been updated to handle the impact of you destroying the game instance while still processing files. It will no longer throw cache and texture related errors. Fix #4049 2018-09-25 15:54:13 +01:00
Richard Davey
1427518930 jsdoc fix 2018-09-20 12:32:02 +01:00
Richard Davey
f3b35f0466 lint fix 2018-08-22 16:14:40 +01:00
Richard Davey
dc868f8368 You can now resize SVG files during load, before they are rendered to textures.
Also added scale support and fixed some viewBox settings (#3941)
2018-08-22 15:43:09 +01:00
Richard Davey
e99dfef136 Docs fixes 2018-08-22 15:42:39 +01:00
YsraelJMM
b8371eba7b
SVG rezise preload. svgConfig object
svgConfig, 
contains the width and height. Change zise.
2018-08-21 20:01:38 -05:00
YsraelJMM
081f4188df
Resize SVG in the preload.
The third time's the charm.
this.load.svg (key, src, {width: number, height: number}).
2018-08-17 14:24:31 -05:00
YsraelJMM
fb414129f8
Resizing SVG in the preload (2)
this.load.svg(key, src, {width: number, height: number});
example: https://www.youtube.com/watch?v=Kd7pNjY-FLk
2018-08-17 13:50:23 -05:00
YsraelJMM
1816e529e1
Resizing of the SVG in the preload
One of the main qualities of SVG images, is its scalability, not being able to use this, is to reduce it to be a bit more image. An SVG file has an XML format, so it can be modified with the DOM.
In order to collaborate, I have put the option to modify the parameters of the SVG and in this way make it adaptable.
The modification gives the option of being able to choose the size in the preload to which you want to have the image before rasterizing it; And so avoid the subsequent scaling that will not have the same quality.
You can see the example here: 
https://www.youtube.com/watch?v=Kd7pNjY-FLk
tested in version 3.11 It does not interfere with the original code.
2018-08-17 12:37:35 -05:00
Chris Andrew
157dc59999 Fixed invalid syntax in the HTMLFile's loader file type documentation example (#3873). 2018-07-30 19:01:53 +01:00
Chris Andrew
3141510fdf Fixed invalid syntax in some loader file type documentation examples (#3873). 2018-07-30 18:52:53 +01:00
Ithamar R. Adema
7d84b54239 Only allow XHR status 0 for local file:// URLs
Since 0 can also be an error situation, limit the amount we okay it.
2018-07-25 15:00:07 +02:00
Ithamar R. Adema
44f9b10e8c
Allow XHR status 0 as success too
Normally only status 200 would be accepted as success, but 0 is returned when a file is loaded from the local filesystem (file://). This happens for example when opening the index.html of a (Phaser) game in a browser directly, or, as it turns out, when using Cordova on iOS.

This fixes #3464
2018-07-25 09:54:50 +02:00
Richard Davey
2a008e6713 FileType.HTML is a new file type loader that will load an HTML snippet and store it in the new html cache. Access it via load.html (this method was previously used to load html to textures, please see load.htmlTexture for this feature now) 2018-07-19 13:21:51 +01:00
Bartosz Kalinowski
264c82fbcb
Update AudioFile.js
fix error
2018-07-14 07:50:00 +02:00
Richard Davey
7aa46657c2 Tidying up jsdocs and changing float to number 2018-06-26 23:19:14 +01:00
Richard Davey
28851ff69b Use hyphens instead of underscores. Fix #3751 2018-06-14 13:30:33 +01:00
Richard Davey
52d04ee5f9 The LoaderPlugin didn't emit the filecomplete event if any of files failed to load, causing it to fail to run the Scene create function as well. Fix #3750 2018-06-14 13:23:15 +01:00
Richard Davey
f0348834c6 The Loader now uses an update loop to release new files to the queue, rather than doing it during the async hell-hole that was the inflight iterator. Fix #3705. 2018-06-12 16:20:55 +01:00
Richard Davey
c51742ad9f New mapping property 2018-05-18 18:43:35 +01:00
Richard Davey
350cb037b7 All systems now register themselves with the new PluginCache 2018-05-15 12:51:50 +01:00
Richard Davey
4741ee02b1 Updated docs and lint fixes 2018-05-11 18:55:44 +01:00
Richard Davey
271c0a08b8 Added new ScenePluginFile and updated PluginFile. External and internal plugins now work. 2018-05-11 18:22:12 +01:00
Richard Davey
0937bff044 Spacing 2018-05-11 18:21:50 +01:00
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
c9ea4dc117 Testing new PluginFile approach. 2018-05-09 23:55:11 +01:00
Richard Davey
4106f7e899 Fixed File call re: #3650 2018-05-09 13:04:18 +01:00
TadejZupancic
b795fbd97a
Missing loader parameter in File.call 2018-05-09 13:27:51 +02:00
Richard Davey
b1d41e506f Typo fix 2018-05-09 12:11:29 +01:00
Richard Davey
c89728de1d lint fix 2018-05-08 21:16:22 +01:00
Richard Davey
0441e19f2b Updated jsdocs 2018-05-08 15:43:12 +01:00
Richard Davey
ee2c0619d8 Updated jsdocs 2018-05-08 13:30:33 +01:00