Kaynağa Gözat

Fx2D text use textColor

Tom Spira 2 yıl önce
ebeveyn
işleme
7d666c132a
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      hrt/prefab/l2d/Text.hx

+ 1 - 2
hrt/prefab/l2d/Text.hx

@@ -45,8 +45,7 @@ class Text extends Object2D {
 		super.updateInstance(ctx, propName);
 		var h2dText = (cast ctx.local2d : h2d.HtmlText);
 		h2dText.visible = visible;
-		h2dText.color = h3d.Vector.fromColor(color);
-		h2dText.color.w = 1;
+		h2dText.textColor = color;
 		h2dText.maxWidth = maxWidth > 0 ? maxWidth : null;
 
 		if (enableTextShadow) {