Commit graph

53 commits

Author SHA1 Message Date
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
ae1b5a664f Loader Types 2019-05-09 12:04:54 +01: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
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
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
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +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
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
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
ee2c0619d8 Updated jsdocs 2018-05-08 13:30:33 +01:00
Richard Davey
1cb68a9895 New per file event dispatched. 2018-05-08 01:12:20 +01:00
Richard Davey
8e7df2a234 You can now set the X-Requested-With header in the XHR requests by specifying it in your XHRSettings config, either in the game, scene or file configs. 2018-05-04 17:33:48 +01:00
Richard Davey
faef3449f5 Added jsdocs 2018-05-04 16:00:02 +01:00
Richard Davey
9b7d6d0254 Added linkFile support back in, so images can bind to other data. 2018-05-04 14:31:43 +01:00
Richard Davey
04584ad191 Renamed LinkFile to MultiFile 2018-05-04 11:33:51 +01:00
Richard Davey
2859e05d74 Removed logs 2018-05-04 02:39:15 +01:00
Richard Davey
d40b9c2a10 Fixed call 2018-05-03 17:12:44 +01:00
Richard Davey
04487f7510 Added pendingDestroy method and prefix to the key 2018-05-03 00:36:29 +01:00
Richard Davey
77dd16dc8d Removed callbacks and added new onProcess methods 2018-05-02 17:24:25 +01:00
Richard Davey
e6a3747291 loader.path doesn't need to be in the config. Added prefix. 2018-05-02 13:11:17 +01:00
Richard Davey
9a974514ff Added new LinkFile class and updated other file types to use it. 2018-04-27 18:44:12 +01:00
Richard Davey
038bbcc7bc Fixed the remaining file types. 2018-04-25 23:16:17 +01:00
Richard Davey
75a49d284c Added hasCacheConflict and addToCache methods/ 2018-04-25 17:13:06 +01:00
Richard Davey
b0544c73b8 jsdoc fixes 2018-04-18 13:29:22 +01:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
orblazer
0c1ced8d86 Fix "object" types on Loader 2018-03-21 13:03:14 +01:00
orblazer
7fba122321 Fix "any" types 2018-03-20 17:15:49 +01:00
orblazer
44103dc475 Fix remaining multiple types 2018-03-20 16:12:42 +01:00
orblazer
fa13b597e3 Add more callbacks 2018-03-19 23:08:05 +01:00
Richard Davey
625394a24c Don't reset the callbacks unless xhrLoader is set 2018-03-16 17:00:45 +00:00
Richard Davey
ae1c91cf6a eslint fixes 2018-03-05 01:40:11 +00:00
Richard Davey
de9cfb6ee2
Merge pull request #3234 from nkholski/master
load.plugin now accepts class as an argument besides an url-string
2018-02-28 20:50:32 +00:00
samme
2b309c06e5 Elevate console message for loading data URIs 2018-02-22 09:28:02 -08:00
Richard Davey
50dac412be eslint fixes and console removal 2018-02-16 19:08:50 +00:00
Niklas Berg
6dde7002dc fixed formatting 2018-02-15 18:11:55 +01:00
Niklas Berg
6a77790aef load.plugin now accepts class as an argument besides an url-string 2018-02-14 23:35:05 +01:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
e5f32ef546 Added jsdocs and moved FileTypes to their own namespace 2018-02-08 17:00:14 +00:00
Richard Davey
40689d1e35 Updated jsdocs. 2018-02-07 15:27:21 +00:00
Richard Davey
f0726d4060 Added the ability to provide a data source image to go with a standard image
This allows you to load a normal map, specular map, or other format of image based data alongside a regular image and have them bound together internally, without creating duplicate entries in the Texture Manager or loader
2018-01-29 23:38:27 +00:00
Richard Davey
a4e9ae5fdd Added jsdocs. 2018-01-26 14:23:00 +00:00
Richard Davey
1d22f5a59a File has a reference to its Loader, will also now emit progress events on itself. 2018-01-19 19:13:02 +00:00
Richard Davey
7577f470ae You can now pass in a JS object to the JSON Loader instead of a URL. It will use the object to populate the data with. This impacts any loader type that uses json, so atlas, tilemap, audio sprite, etc. Closes #3147. 2018-01-19 17:53:07 +00:00
Richard Davey
76c7639b20 If a file load 404s then handle this case, as it'll return the 404 page as the response type which will then try to be parsed. 2018-01-19 17:29:14 +00:00