Add the ability to group image assets into a .zip file, removing the number of indivi...
authorRichard Fairhurst <richard@systemeD.net>
Sat, 3 Sep 2011 17:19:52 +0000 (18:19 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Sat, 3 Sep 2011 17:19:52 +0000 (18:19 +0100)
commit06fc709ad38e991fe2d9a250996fbc0edea953fb
tree5448f2ba634088c3a684c2093107f69dde262101
parentffb88f30eacd11479e08471b3174b2ac89215bf6
Add the ability to group image assets into a .zip file, removing the number of individual file requests.
To use, supply a Flash parameter with the location of the zips and the place they're "substituting" for, like this:
args["assets"] = "assets/icons.zip=icons/;assets/features_pois.zip=features/pois/";
Current limitations:
- Preloader indication is not smooth. (There was a trac ticket for this anyway :) )
- Only features and MapCSS icons are loaded - other image references don't yet look in ImageBank
- Nested folders in the .zip file are not supported (a limitation of the library we're using)
net/systemeD/halcyon/ImageBank.as
net/systemeD/potlatch2/Preloader.as
net/systemeD/potlatch2/mapfeatures/Feature.as
potlatch2.mxml