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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
feat(gameclient): the power bar crosses the gap under the money
Olcay Seygane1ee76561a78
diff --git a/GeneralsMD/Code/Data/Window/Html/ControlBar.html b/GeneralsMD/Code/Data/Window/Html/ControlBar.htmlindex a67e10cde..8cce20c28 100644--- a/GeneralsMD/Code/Data/Window/Html/ControlBar.html+++ b/GeneralsMD/Code/Data/Window/Html/ControlBar.html@@ -21,8 +21,9 @@moving with the bar when it slides or minimises; .w and .h are 0 and{{panelN.shown}} is "hidden" when a minimised bar has stood it down{{left.x}} .y .w .h the box round the radar, so the left panel is only as big as its bezel- {{centre.x}} .y .w .h the box round the command grid and the power bar over it; {{centre.shown}}- as above. The money's step over it is drawn from MoneyDisplay+ {{centre.x}} .y .w .h the box round the command grid; {{centre.shown}} as above. The money's step+ over it is drawn from MoneyDisplay, and the power bar crosses the gap+ between them in its groove alone{{right.x}} .y .w .h the box round the portrait and the experience bar. The promotion andminimise buttons are moved to sit over its top right corner{{Name.x}} .y .w .h the rectangle of the bar's window Name, {{Name.shown}} "shown" or "hidden"@@ -64,7 +65,8 @@.centre { margin: -10px 0 0 -6px; padding: 10px 6px 6px 6px; }/* over the centre, a narrower step for the money. It hangs down behind the centre, which is drawn- after it and covers the join, so it needs no idea where the centre starts */+ after it and covers the join, so it needs no idea where the centre starts. The power bar+ crosses in front of it on the way down, in its groove and nothing else */.step { padding-bottom: 30px; }.step .rail { height: 3px; }.moneystep { margin: -5px 0 0 -8px; padding-top: 5px; padding-left: 8px; padding-right: 8px; }diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cppindex f96997d09..99026ff12 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp@@ -10108,15 +10108,13 @@ static const char *const CONTROL_BAR_STOOD_DOWN[] = { "ButtonOptions", "ButtonIdstatic const std::string PRESS_ACTION = "press:";/** The windows each panel is drawn round, so a panel is only as big as what it holds: the left one- * the radar, the right one the portrait and the experience bar, the centre the command grid with- * the power bar over it. The money stands on a step of its own over the centre, drawn from its- * window's rectangle. NULL ends each list. */+ * the radar, the right one the portrait and the experience bar, the centre the command grid. The+ * money stands on a step of its own over the centre, drawn from its window's rectangle, and the+ * power bar crosses the gap between the two in its groove with no steel of its own. NULL ends+ * each list. */static const char *const CONTROL_BAR_LEFT[] = { "LeftHUD", NULL };static const char *const CONTROL_BAR_RIGHT[] = { "RightHUD", "GeneralsExp", "ExpBarForeground", NULL };-static const char *const CONTROL_BAR_CENTRE[] =-{- "CommandWindow", "ObserverPlayerListWindow", "PowerWindow", "ButtonPlaceBeacon", NULL-};+static const char *const CONTROL_BAR_CENTRE[] = { "CommandWindow", "ObserverPlayerListWindow", "ButtonPlaceBeacon", NULL };/** The promotion and minimise buttons, small, side by side in the right panel's top right corner,* the minimise button outermost. 800x600 pixels. */