Kaynağa Gözat

minor cleanup

ncannasse 12 yıl önce
ebeveyn
işleme
772637034c
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 1 1
      tools/fbx/Viewer.hx
  2. 2 2
      tools/parts/Main.hx

+ 1 - 1
tools/fbx/Viewer.hx

@@ -484,7 +484,7 @@ class Viewer {
 		
 		time++;
 		
-		var fmt = h3d.FMath.fmt;
+		var fmt = hxd.Math.fmt;
 		
 		tf_keys.text = [
 			"[F1] Load model",

+ 2 - 2
tools/parts/Main.hx

@@ -122,7 +122,7 @@ class Main {
 		};
 		var p = new h2d.comp.Parser( { props : props } );
 		p.register("range", function(x:haxe.xml.Fast, parent) return new RangeSlider(parent));
-		ui = p.build(new haxe.xml.Fast(Xml.parse(hxd.System.getFileContent("ui.html")).firstElement()));
+		ui = p.build(new haxe.xml.Fast(Xml.parse(hxd.res.Embed.getFileContent("ui.html")).firstElement()));
 		engine.onResized = function() ui.setStyle(null);
 		s2d.addChild(ui);
 		s3d.addPass(s2d);
@@ -180,7 +180,7 @@ class Main {
 				parts.remove(p);
 			}
 		}
-		stats.text = parts.length + " p\n" + h3d.FMath.fmt(engine.fps) + " fps";
+		stats.text = parts.length + " p\n" + hxd.Math.fmt(engine.fps) + " fps";
 		if( props.add )
 			emit.material.blend(SrcAlpha, One);
 		else