Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

feat(gameclient): take the top-left message list down a font size

Olcay Seygan9e2a1cfa3d5b
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
index 861cca572..7893ec1ba 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
@@ -1324,6 +1324,11 @@ void InGameUI::init( void )
}
}
+ // the message list is overlay text in the top-left corner of the battlefield, not panel text -
+ // take it down a notch, same as the superweapon countdown above. (line spacing follows the
+ // font height in postDraw(), so the whole stack shrinks with it.)
+ m_messagePointSize = max( 8, (m_messagePointSize * 4) / 5 );
+
/**@ todo we used to put in the hint spy translator, but it's difficult
to order the translators when the code is not centralized so it has
been moved to where all the other translators are attached in game client */