changed chat text size,background color and opacity to suit legacy's style

This commit is contained in:
KKNecmi 2026-03-06 23:09:18 +03:00
parent 9983756f85
commit b987e135b8

View file

@ -994,16 +994,22 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
if (alpha > 0) if (alpha > 0)
{ {
int x = iSafezoneXHalf+2; int x = iSafezoneXHalf+2;
int y = -(static_cast<int>(i)) * 9; int y = -(static_cast<int>(i)) * 9 - 10;
if(bTwoPlayerSplitscreen) if(bTwoPlayerSplitscreen)
{ {
y+= iHeightOffset; y+= iHeightOffset;
} }
wstring msg = guiMessages[iPad][i].string; wstring msg = guiMessages[iPad][i].string;
this->fill(0, y - 1, screenWidth/fScaleFactorWidth, y + 8, (alpha / 2) << 24); int bgColor = ((alpha / 4) << 24) | (0x404040);
this->fill(0, y - 1, screenWidth/fScaleFactorWidth, y + 8, bgColor);
glEnable(GL_BLEND); glEnable(GL_BLEND);
font->drawShadow(msg, iSafezoneXHalf+4, y, 0xffffff + (alpha << 24));
glPushMatrix();
glTranslatef((float)(iSafezoneXHalf+4), (float)y, 0);
glScalef(0.6f, 0.6f, 1.0f);
font->drawShadow(msg, 0, 0, 0xffffff + (alpha << 24));
glPopMatrix();
} }
} }
} }