Use the color arg when drawing a font character in world space (#5626)

This commit is contained in:
wixoa
2025-01-21 16:39:07 -05:00
committed by GitHub
parent d818c5aa0c
commit e205ae3627

View File

@@ -133,7 +133,7 @@ namespace Robust.Client.Graphics
baseline += new Vector2(metrics.Value.BearingX, -metrics.Value.BearingY);
if(handle is DrawingHandleWorld worldhandle)
worldhandle.DrawTextureRect(texture, Box2.FromDimensions(baseline, texture.Size));
worldhandle.DrawTextureRect(texture, Box2.FromDimensions(baseline, texture.Size), color);
else
handle.DrawTexture(texture, baseline, color);
return metrics.Value.Advance;