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(controlbar): keep China side buttons off the build grid

Olcay Seygan7a1b3a9c5d70
diff --git a/GeneralsMD/Code/Data/INI/ControlBarSchemeReforged.ini b/GeneralsMD/Code/Data/INI/ControlBarSchemeReforged.ini
index 907500002..a898f009f 100644
--- a/GeneralsMD/Code/Data/INI/ControlBarSchemeReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ControlBarSchemeReforged.ini
@@ -6,9 +6,12 @@
; The Classic bar's four small buttons down the left of the middle plate: options, idle worker,
; beacon and chat. EA put them at x 184-220, 36 wide, on every side. Each faction's plate leaves
; them a strip between its left rib and the dark screen, and the strips do not agree: America's runs
-; from design x 187 to 223, China's from 188 to 226, the GLA's from 182 to 220 (measured at
-; 1920x1080). EA's buttons fit the GLA strip and lay over the American and Chinese ribs, so the
-; American schemes move them 3 to the right and the Chinese ones 5, at EA's size and on EA's rows.
+; from design x 187 to 223, China's from 188 to 223, the GLA's from 182 to 220 (measured at
+; 1920x1080). Every strip ends at 223 or before because the build grid's first column starts
+; there (ControlBar.wnd, ButtonCommand01), and a button past it covers that column's picture and
+; key letter. EA's buttons fit the GLA strip and lay over the American and Chinese ribs, so the
+; American schemes move them 3 to the right at EA's size, and the Chinese ones run 188 to 222,
+; two narrower than EA's, since China's strip is a unit short of 36. All keep EA's rows.
; The Observer scheme wears the American plate and moves with America. Watching a player puts his
; side's scheme on, so the observer bar follows whichever side it shows. The Reforged interface
; stands the four buttons down and draws its own.
@@ -73,61 +76,61 @@ ControlBarScheme Observer8x6
End
ControlBarScheme China8x6
- OptionsUL X:192 Y:490
- OptionsLR X:228 Y:514
- WorkerUL X:192 Y:516
- WorkerLR X:228 Y:540
- BeaconUL X:192 Y:545
- BeaconLR X:228 Y:566
- ChatUL X:192 Y:568
- ChatLR X:228 Y:592
+ OptionsUL X:188 Y:490
+ OptionsLR X:222 Y:514
+ WorkerUL X:188 Y:516
+ WorkerLR X:222 Y:540
+ BeaconUL X:188 Y:545
+ BeaconLR X:222 Y:566
+ ChatUL X:188 Y:568
+ ChatLR X:222 Y:592
BeaconButtonEnable ReforgedChinaBeacon
End
ControlBarScheme ChinaTankGeneral8x6
- OptionsUL X:192 Y:490
- OptionsLR X:228 Y:514
- WorkerUL X:192 Y:516
- WorkerLR X:228 Y:540
- BeaconUL X:192 Y:545
- BeaconLR X:228 Y:566
- ChatUL X:192 Y:568
- ChatLR X:228 Y:592
+ OptionsUL X:188 Y:490
+ OptionsLR X:222 Y:514
+ WorkerUL X:188 Y:516
+ WorkerLR X:222 Y:540
+ BeaconUL X:188 Y:545
+ BeaconLR X:222 Y:566
+ ChatUL X:188 Y:568
+ ChatLR X:222 Y:592
BeaconButtonEnable ReforgedChinaBeacon
End
ControlBarScheme ChinaInfantryGeneral8x6
- OptionsUL X:192 Y:490
- OptionsLR X:228 Y:514
- WorkerUL X:192 Y:516
- WorkerLR X:228 Y:540
- BeaconUL X:192 Y:545
- BeaconLR X:228 Y:566
- ChatUL X:192 Y:568
- ChatLR X:228 Y:592
+ OptionsUL X:188 Y:490
+ OptionsLR X:222 Y:514
+ WorkerUL X:188 Y:516
+ WorkerLR X:222 Y:540
+ BeaconUL X:188 Y:545
+ BeaconLR X:222 Y:566
+ ChatUL X:188 Y:568
+ ChatLR X:222 Y:592
BeaconButtonEnable ReforgedChinaBeacon
End
ControlBarScheme ChinaNukeGeneral8x6
- OptionsUL X:192 Y:490
- OptionsLR X:228 Y:514
- WorkerUL X:192 Y:516
- WorkerLR X:228 Y:540
- BeaconUL X:192 Y:545
- BeaconLR X:228 Y:566
- ChatUL X:192 Y:568
- ChatLR X:228 Y:592
+ OptionsUL X:188 Y:490
+ OptionsLR X:222 Y:514
+ WorkerUL X:188 Y:516
+ WorkerLR X:222 Y:540
+ BeaconUL X:188 Y:545
+ BeaconLR X:222 Y:566
+ ChatUL X:188 Y:568
+ ChatLR X:222 Y:592
BeaconButtonEnable ReforgedChinaBeacon
End
ControlBarScheme ChinaBossGeneral8x6
- OptionsUL X:192 Y:490
- OptionsLR X:228 Y:514
- WorkerUL X:192 Y:516
- WorkerLR X:228 Y:540
- BeaconUL X:192 Y:545
- BeaconLR X:228 Y:566
- ChatUL X:192 Y:568
- ChatLR X:228 Y:592
+ OptionsUL X:188 Y:490
+ OptionsLR X:222 Y:514
+ WorkerUL X:188 Y:516
+ WorkerLR X:222 Y:540
+ BeaconUL X:188 Y:545
+ BeaconLR X:222 Y:566
+ ChatUL X:188 Y:568
+ ChatLR X:222 Y:592
BeaconButtonEnable ReforgedChinaBeacon
End