.xml -> .mxml

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4189 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2006-06-13 18:46:45 +00:00
parent 6deb8cd2cf
commit c90819ca69
4 changed files with 7 additions and 7 deletions
@@ -65,7 +65,7 @@ public class CompileModel
String spath = source.toString(); String spath = source.toString();
int didx = spath.lastIndexOf('.'); int didx = spath.lastIndexOf('.');
String root = (didx == -1) ? spath : spath.substring(0, didx); String root = (didx == -1) ? spath : spath.substring(0, didx);
File content = new File(root + ".xml"), File content = new File(root + ".mxml"),
target = new File(root + ".dat"); target = new File(root + ".dat");
boolean needsUpdate = false; boolean needsUpdate = false;
if (source.lastModified() >= target.lastModified() || if (source.lastModified() >= target.lastModified() ||
@@ -85,7 +85,7 @@ public class CompileModel
File[] afiles = new File[anims.length]; File[] afiles = new File[anims.length];
File dir = source.getParentFile(); File dir = source.getParentFile();
for (int ii = 0; ii < anims.length; ii++) { for (int ii = 0; ii < anims.length; ii++) {
afiles[ii] = new File(dir, anims[ii] + ".xml"); afiles[ii] = new File(dir, anims[ii] + ".mxml");
if (afiles[ii].lastModified() >= target.lastModified()) { if (afiles[ii].lastModified() >= target.lastModified()) {
needsUpdate = true; needsUpdate = true;
} }
@@ -109,7 +109,7 @@ import com.threerings.jme.model.TextureProvider;
/** /**
* A simple viewer application that allows users to examine models and their * A simple viewer application that allows users to examine models and their
* animations by loading them from their uncompiled <code>.properties</code> / * animations by loading them from their uncompiled <code>.properties</code> /
* <code>.xml</code> representations or their compiled <code>.dat</code> * <code>.mxml</code> representations or their compiled <code>.dat</code>
* representations. * representations.
*/ */
public class ModelViewer extends JmeCanvasApp public class ModelViewer extends JmeCanvasApp
+2 -2
View File
@@ -85,12 +85,12 @@ macroScript TRAnimationExporter category:"File" \
persistent global xmlAnimFileName persistent global xmlAnimFileName
local fileName local fileName
if (xmlAnimFileName == undefined) then ( if (xmlAnimFileName == undefined) then (
fileName = maxFilePath + (getFilenameFile maxFileName) + ".xml" fileName = maxFilePath + (getFilenameFile maxFileName) + ".mxml"
) else ( ) else (
fileName = xmlAnimFileName fileName = xmlAnimFileName
) )
fileName = getSaveFileName caption:"Select File to Export" \ fileName = getSaveFileName caption:"Select File to Export" \
filename:fileName types:"XML Animations (*.XML)|*.xml|All|*.*" filename:fileName types:"XML Animations (*.MXML)|*.mxml|All|*.*"
if fileName != undefined do ( if fileName != undefined do (
xmlAnimFileName = fileName xmlAnimFileName = fileName
writeAnimation fileName writeAnimation fileName
+2 -2
View File
@@ -179,12 +179,12 @@ macroScript TRModelExporter category:"File" \
persistent global xmlModelFileName persistent global xmlModelFileName
local fileName local fileName
if (xmlModelFileName == undefined) then ( if (xmlModelFileName == undefined) then (
fileName = maxFilePath + (getFilenameFile maxFileName) + ".xml" fileName = maxFilePath + (getFilenameFile maxFileName) + ".mxml"
) else ( ) else (
fileName = xmlModelFileName fileName = xmlModelFileName
) )
fileName = getSaveFileName caption:"Select File to Export" \ fileName = getSaveFileName caption:"Select File to Export" \
filename:fileName types:"XML Models (*.XML)|*.xml|All|*.*" filename:fileName types:"XML Models (*.MXML)|*.mxml|All|*.*"
if fileName != undefined do ( if fileName != undefined do (
xmlModelFileName = fileName xmlModelFileName = fileName
writeModel fileName writeModel fileName