Draw Hud icons white by default
This commit is contained in:
parent
9ef0948e5d
commit
539b70d38b
@ -878,7 +878,7 @@ namespace Components
|
|||||||
if(letter == '^' && (*curText == '\x01' || *curText == '\x02'))
|
if(letter == '^' && (*curText == '\x01' || *curText == '\x02'))
|
||||||
{
|
{
|
||||||
RotateXY(cosAngle, sinAngle, startX, startY, xa, xy, &xRot, &yRot);
|
RotateXY(cosAngle, sinAngle, startX, startY, xa, xy, &xRot, &yRot);
|
||||||
xa += DrawHudIcon(curText, xRot, yRot, sinAngle, cosAngle, font, xScale, yScale, finalColor.packed);
|
xa += DrawHudIcon(curText, xRot, yRot, sinAngle, cosAngle, font, xScale, yScale, ColorRgba(255, 255, 255, finalColor.array[3]));
|
||||||
|
|
||||||
if (renderFlags & Game::TEXT_RENDERFLAG_PADDING)
|
if (renderFlags & Game::TEXT_RENDERFLAG_PADDING)
|
||||||
xa += xScale * padding;
|
xa += xScale * padding;
|
||||||
|
@ -114,6 +114,13 @@ namespace Components
|
|||||||
{1.0f, -1.0f},
|
{1.0f, -1.0f},
|
||||||
{1.0f, 1.0f},
|
{1.0f, 1.0f},
|
||||||
};
|
};
|
||||||
|
static constexpr float WHITE_COLOR[4]
|
||||||
|
{
|
||||||
|
1.0f,
|
||||||
|
1.0f,
|
||||||
|
1.0f,
|
||||||
|
1.0f
|
||||||
|
};
|
||||||
static constexpr float TEXT_COLOR[4]
|
static constexpr float TEXT_COLOR[4]
|
||||||
{
|
{
|
||||||
1.0f,
|
1.0f,
|
||||||
|
Loading…
Reference in New Issue
Block a user