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.

fix(gameclient): steel under the command grid so it does not run off the screen

Olcay Seygane0c3b48249d3
diff --git a/GeneralsMD/Code/Data/Window/Html/ControlBar.html b/GeneralsMD/Code/Data/Window/Html/ControlBar.html
index 55e5b500a..0d574a2b9 100644
--- a/GeneralsMD/Code/Data/Window/Html/ControlBar.html
+++ b/GeneralsMD/Code/Data/Window/Html/ControlBar.html
@@ -214,8 +214,8 @@
.worker { border-left: 1px solid #b3bbc4; }
.china .worker { border-left-color: #d58a70; }
.gla .worker { border-left-color: #cabe86; }
- /* the step is 28 tall, 29 with its lit edge, and the key 20 with its rim three pixels down, so its
- bottom is four over the screen's edge, level with the command buttons' */
+ /* the step is 30 tall, 31 with its lit edge, and the key 20 with its rim three pixels down, so its
+ bottom is six over the screen's edge, level with the command buttons' */
.worker .key { left: 3px; top: 3px; }
.worker .icon { background-image: url(Icons/IdleWorker.svg); }
.watching .worker { display: none; }
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
index 44b6d39e9..49017605c 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
@@ -10312,8 +10312,10 @@ enum
SKILLS_BUTTON_WIDTH = 58, ///< wide enough for its name in either language
ALERT_TAB_WIDTH = 54, ///< the under-attack light, a lamp on the radar panel's border
WORKER_TAB_WIDTH = 39, ///< the idle worker's step, against the command grid panel's border, as wide as the signals' column
- WORKER_STEP_HEIGHT = 28, ///< and its height, its key's bottom GRID_BOTTOM_GAP over the screen's bottom edge
- GRID_BOTTOM_GAP = 4 ///< the command buttons' bottom over the screen's bottom edge, level with that key's
+ WORKER_STEP_HEIGHT = 30, ///< and its height, its key's bottom GRID_BOTTOM_GAP over the screen's bottom edge
+ GRID_BOTTOM_GAP = 6 ///< the command buttons' bottom over the screen's bottom edge, level with that key's:
+ ///< the grid's two pixel well and four of steel under it; at 4 the well's lit
+ ///< bottom edge sat on the screen's last row and the grid looked cut off
};
static const char *const SKILLS_FOLDED = "skills"; ///< the flip the skills button toggles; flipped is folded away
static const UnsignedInt SIGNAL_RISE_MS = 360; ///< each smoke signal button's climb out of the screen's bottom edge