Browse Source

[scene] Added shadow to debug scene info

Clément Espeute 6 months ago
parent
commit
66e9e14e57
1 changed files with 6 additions and 1 deletions
  1. 6 1
      hide/comp/SceneEditor.hx

+ 6 - 1
hide/comp/SceneEditor.hx

@@ -1688,9 +1688,14 @@ class SceneEditor {
 		view.keys.register("sceneeditor.scalingMode", gizmo.scalingMode);
 		view.keys.register("sceneeditor.switchMode", gizmo.switchMode);
 
-		statusText = new h2d.Text(hxd.res.DefaultFont.get(), scene.s2d);
 		statusText = new h2d.Text(hxd.res.DefaultFont.get(), scene.s2d);
 		statusText.setPosition(5, 5);
+		statusText.dropShadow = {
+			dx: 1,
+			dy: 1,
+			color: 0,
+			alpha: 0.5
+		};
 		updateStats();
 
 		gizmo2d = new hide.view.l3d.Gizmo2D();