|
@@ -31,6 +31,7 @@ class FileTree {
|
|
pairedExt.set("fnt", ["png"]);
|
|
pairedExt.set("fnt", ["png"]);
|
|
pairedExt.set("fbx", ["png","jpg","jpeg","gif"]);
|
|
pairedExt.set("fbx", ["png","jpg","jpeg","gif"]);
|
|
pairedExt.set("cdb", ["img"]);
|
|
pairedExt.set("cdb", ["img"]);
|
|
|
|
+ pairedExt.set("atlas", ["png"]);
|
|
isFlash = Context.defined("flash");
|
|
isFlash = Context.defined("flash");
|
|
isJS = Context.defined("js");
|
|
isJS = Context.defined("js");
|
|
isCPP = Context.defined("cpp");
|
|
isCPP = Context.defined("cpp");
|
|
@@ -366,7 +367,7 @@ class FileTree {
|
|
switch( ext.toLowerCase() ) {
|
|
switch( ext.toLowerCase() ) {
|
|
case "jpg", "png", "jpeg", "gif":
|
|
case "jpg", "png", "jpeg", "gif":
|
|
return { e : macro loader.loadImage($epath), t : macro : hxd.res.Image };
|
|
return { e : macro loader.loadImage($epath), t : macro : hxd.res.Image };
|
|
- case "fbx":
|
|
|
|
|
|
+ case "fbx", "hmd":
|
|
return { e : macro loader.loadFbxModel($epath), t : macro : hxd.res.FbxModel };
|
|
return { e : macro loader.loadFbxModel($epath), t : macro : hxd.res.FbxModel };
|
|
case "ttf":
|
|
case "ttf":
|
|
return { e : macro loader.loadFont($epath), t : macro : hxd.res.Font };
|
|
return { e : macro loader.loadFont($epath), t : macro : hxd.res.Font };
|
|
@@ -376,6 +377,8 @@ class FileTree {
|
|
return { e : macro loader.loadSound($epath), t : macro : hxd.res.Sound };
|
|
return { e : macro loader.loadSound($epath), t : macro : hxd.res.Sound };
|
|
case "tmx":
|
|
case "tmx":
|
|
return { e : macro loader.loadTiledMap($epath), t : macro : hxd.res.TiledMap };
|
|
return { e : macro loader.loadTiledMap($epath), t : macro : hxd.res.TiledMap };
|
|
|
|
+ case "atlas":
|
|
|
|
+ return { e : macro loader.loadAtlas($epath), t : macro : hxd.res.Atlas };
|
|
default:
|
|
default:
|
|
return { e : macro loader.loadData($epath), t : macro : hxd.res.Resource };
|
|
return { e : macro loader.loadData($epath), t : macro : hxd.res.Resource };
|
|
}
|
|
}
|