- menu lobbies uses real player color
- chat console no longer prefixes with *
This commit is contained in:
parent
cb52b4895d
commit
6b015964bb
|
@ -861,7 +861,8 @@ void Renderer::RenderConsoleLine(int lineIndex, int xPosition, const ConsoleLine
|
|||
}
|
||||
//printf("playerName [%s], line [%s]\n",playerName.c_str(),line.c_str());
|
||||
|
||||
string headerLine = "*" + playerName + ":";
|
||||
//string headerLine = "*" + playerName + ":";
|
||||
string headerLine = playerName + ":";
|
||||
|
||||
renderTextShadow(
|
||||
headerLine,
|
||||
|
@ -870,7 +871,7 @@ void Renderer::RenderConsoleLine(int lineIndex, int xPosition, const ConsoleLine
|
|||
xPosition, lineIndex * 20 + 20);
|
||||
|
||||
fontColor = defaultFontColor;
|
||||
xPosition += (7 * (playerName.length() + 2));
|
||||
xPosition += (8 * (playerName.length() + 2));
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -232,7 +232,7 @@ private:
|
|||
float waterAnim;
|
||||
|
||||
bool allowRenderUnitTitles;
|
||||
std::vector<std::pair<Unit *,Vec3f> > renderUnitTitleList;
|
||||
//std::vector<std::pair<Unit *,Vec3f> > renderUnitTitleList;
|
||||
std::vector<Unit *> visibleFrameUnitList;
|
||||
|
||||
bool no2DMouseRendering;
|
||||
|
|
|
@ -550,8 +550,8 @@ void MenuStateConnectedGame::render() {
|
|||
renderer.renderLabel(&labelPlayers[i],&playerColor);
|
||||
|
||||
// Blend the color with white so make it more readable
|
||||
Vec4f newColor(1.f, 1.f, 1.f, 0.57f);
|
||||
renderer.renderLabel(&labelPlayers[i],&newColor);
|
||||
//Vec4f newColor(1.f, 1.f, 1.f, 0.57f);
|
||||
//renderer.renderLabel(&labelPlayers[i],&newColor);
|
||||
|
||||
//int quadWidth = labelPlayerNames[i].getX() - labelPlayers[i].getX() - 5;
|
||||
//renderer.renderTextureQuad(labelPlayers[i].getX(), labelPlayers[i].getY(), quadWidth, labelPlayers[i].getH(), crcPlayerTextureCache[i],1.0f,&playerColor);
|
||||
|
|
|
@ -1147,8 +1147,8 @@ void MenuStateCustomGame::render() {
|
|||
renderer.renderLabel(&labelPlayers[i],&playerColor);
|
||||
|
||||
// Blend the color with white so make it more readable
|
||||
Vec4f newColor(1.f, 1.f, 1.f, 0.57f);
|
||||
renderer.renderLabel(&labelPlayers[i],&newColor);
|
||||
//Vec4f newColor(1.f, 1.f, 1.f, 0.57f);
|
||||
//renderer.renderLabel(&labelPlayers[i],&newColor);
|
||||
|
||||
//int quadWidth = labelPlayerNames[i].getX() - labelPlayers[i].getX() - 5;
|
||||
//renderer.renderTextureQuad(labelPlayers[i].getX(), labelPlayers[i].getY(), quadWidth, labelPlayers[i].getH(), crcPlayerTextureCache[i],1.0f,&playerColor);
|
||||
|
|
Loading…
Reference in New Issue