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): placement and camera snaps off, match opens at 300

Olcay Seygane46f55bb1cb8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 28d2c6c87..b1da1ed4d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1089,7 +1089,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- Display, graphics, effects, audio, controls, interface and network, behind seven buttons across the top. The original screen was one panel with everything on it at once, and it was already full the day it shipped: the language filter, the keyboard button and four camera checkboxes are all still in there, parked off the right edge where nobody can reach them, because there was nowhere left to put them.
- Every setting sits with the ones that do the same kind of job. Display is the screen and its brightness. Graphics is what the picture costs and how sharp it is, with the glow and the lighting in a group of their own instead of mixed in with the anti-aliasing. Effects is what stands in the world: all seven shadow boxes together, cloud shadows included, then the scenery, then smoke. Controls splits the camera, the orders, building placement and the mouse into four groups, and Interface holds the command bar size, the income readout, the health bars, the colours, the order lines and the language. In Classic the screen leaves out the twelve boxes Classic ignores anyway, from zoom to cursor and grid placement to the HUD size and the health bar choice, and closes the gaps they leave, so a box on that screen always does something.
- Classic Graphics, on the Graphics page, puts the game back the way it looked in 2003 in one click: its own textures and ground in place of the upscaled ones, the old hard shadows, the round dark patch under every tree where Reforged lays the tree's own outline on the ground, and no glow or sharpening over the picture. Leave it off and you have Reforged. The rest of the options stay yours either way, and the box takes effect the next time the game starts.
-- Interface, in the launcher, picks between Classic and Reforged. Classic is the command bar, mouse and hotkeys of Zero Hour 1.04 that your hands still remember; Reforged is the console in the middle, right-click orders and the key grid this version built. Every player starts on Classic, and a game started without the launcher is Classic too. The choice is yours alone: two players on different styles still play the same match and the same replay. It takes effect the next time the game starts. Classic's screen is EA's again: the one-piece command bar in each side's own painting, the radar with its flashing under-attack lamp, the beacon button, six lines of messages in the top left that fade as they did, superweapon countdowns written out by name, the old chat line and quit menu, lettering at the old sizes, and Tab opening diplomacy. On a 16:9 or 21:9 screen every menu outside a match sits in a 4:3 frame in the middle at its drawn shape, backdrop and border included, with black down both sides the way a 4:3 game looks on a wide monitor; in a match the options and save screens keep that 4:3 frame over the battlefield. The command bar runs edge to edge up to 16:9, as it always did. Past that, on 21:9 or 32:9, the match's own furniture keeps the 16:9 layout in the middle of the screen: the bar, your general's powers beside it, the build tooltip over it, the promotion screen, the superweapon countdowns, the messages, the chat line, the quit menu and diplomacy sit where a 16:9 screen has them, and the battlefield runs on past both ends, 320 pixels either side at 2560x1080. On 16:10 and anything wider the bar is one painted for 16:9, so it is not pulled out of shape the way EA's 4:3 one was: the radar and your selection sit at its two ends, the build grid has a longer field, the money box is in the middle and the power bar is nearly twice as long. A 4:3 or 5:4 screen keeps EA's bar as it was. The wide bar is the work of moddb_dev, from the "C&C Generals HD User Interface" mod on ModDB, itself built on pWn3d_1337's Operation Firestorm interface, and it is here with its author's permission. The mouse and keys are 1.04's as well. The left button selects and gives the order, so an enemy under it is an attack and a bunker under your infantry is a way in; the right button drops your selection or takes back a half-given order, and a right drag scrolls the map. Ctrl held is force fire. Alt held lays waypoints, and the white path joining them is drawn again. A guard order holds the range it always held, Shift and a number adds that group to what you have selected, and a build button is one unit a click. The keys are your language's own key map from the game's files, with nothing of Reforged's grid laid over it, and a build button's key is the letter 1.04 gave it, taken from the English name in every language, so a Turkish or German player presses the same key an English one does. The letter sits in the button's corner on the dark badge Reforged puts its grid keys on, in the middle of a square plate the same size for every letter, larger than Reforged's and in gold while the button can be pressed; the tooltip's name is plain white with no letter picked out. A structure is selected on its own, as it always was. The radar shows no money piles or tech buildings, and the clock plate, the frame counter and the experience bar under the portrait stay off the screen. So does the peace time plate, though a host's truce still holds. The money readout is the money alone, with no income figure beside it. Health bars and garrison squares look and behave as they do in Reforged, and the Health Bars and empty garrison squares settings are back on Classic's options page. The build buttons are the pictures alone, without the seconds, price and power figures. Those seconds were measured against the wall clock, so on a match running just under full speed a 120 second build read 125. An upgrade bought for a group of buildings goes to the one whose buttons you see. In a network game a Classic player's camera is not sent to observers, as it never was in 1.04. The camera zooms on the middle of the screen ten units a notch, as near and as far as Reforged's camera goes, turns without snapping, and scrolls from the last three pixels of a full screen and not at all in a window, whatever the options say. It runs past the edge of the map as far as Reforged's camera does, 200 units unless `CameraBoundaryMargin` says otherwise, so a base in a corner comes to the middle of the screen in either interface. A move order puts 1.04's animated ring on the ground where it lands, and no marker or line stays behind it. None of it reaches the battle itself: Classic sends the game only the orders 1.04 sent, so a Classic player and a Reforged one share a match, and a replay plays back the same in either.
+- Interface, in the launcher, picks between Classic and Reforged. Classic is the command bar, mouse and hotkeys of Zero Hour 1.04 that your hands still remember; Reforged is the console in the middle, right-click orders and the key grid this version built. Every player starts on Classic, and a game started without the launcher is Classic too. The choice is yours alone: two players on different styles still play the same match and the same replay. It takes effect the next time the game starts. Classic's screen is EA's again: the one-piece command bar in each side's own painting, the radar with its flashing under-attack lamp, the beacon button, six lines of messages in the top left that fade as they did, superweapon countdowns written out by name, the old chat line and quit menu, lettering at the old sizes, and Tab opening diplomacy. On a 16:9 or 21:9 screen every menu outside a match sits in a 4:3 frame in the middle at its drawn shape, backdrop and border included, with black down both sides the way a 4:3 game looks on a wide monitor; in a match the options and save screens keep that 4:3 frame over the battlefield. The command bar runs edge to edge up to 16:9, as it always did. Past that, on 21:9 or 32:9, the match's own furniture keeps the 16:9 layout in the middle of the screen: the bar, your general's powers beside it, the build tooltip over it, the promotion screen, the superweapon countdowns, the messages, the chat line, the quit menu and diplomacy sit where a 16:9 screen has them, and the battlefield runs on past both ends, 320 pixels either side at 2560x1080. On 16:10 and anything wider the bar is one painted for 16:9, so it is not pulled out of shape the way EA's 4:3 one was: the radar and your selection sit at its two ends, the build grid has a longer field, the money box is in the middle and the power bar is nearly twice as long. A 4:3 or 5:4 screen keeps EA's bar as it was. The wide bar is the work of moddb_dev, from the "C&C Generals HD User Interface" mod on ModDB, itself built on pWn3d_1337's Operation Firestorm interface, and it is here with its author's permission. The mouse and keys are 1.04's as well. The left button selects and gives the order, so an enemy under it is an attack and a bunker under your infantry is a way in; the right button drops your selection or takes back a half-given order, and a right drag scrolls the map. Ctrl held is force fire. Alt held lays waypoints, and the white path joining them is drawn again. A guard order holds the range it always held, Shift and a number adds that group to what you have selected, and a build button is one unit a click. The keys are your language's own key map from the game's files, with nothing of Reforged's grid laid over it, and a build button's key is the letter 1.04 gave it, taken from the English name in every language, so a Turkish or German player presses the same key an English one does. The letter sits in the button's corner on the dark badge Reforged puts its grid keys on, in the middle of a square plate the same size for every letter, larger than Reforged's and in gold while the button can be pressed; the tooltip's name is plain white with no letter picked out. A structure is selected on its own, as it always was. The radar shows no money piles or tech buildings, and the clock plate, the frame counter and the experience bar under the portrait stay off the screen. So does the peace time plate, though a host's truce still holds. The money readout is the money alone, with no income figure beside it. Health bars and garrison squares look and behave as they do in Reforged, and the Health Bars and empty garrison squares settings are back on Classic's options page. The build buttons are the pictures alone, without the seconds, price and power figures. Those seconds were measured against the wall clock, so on a match running just under full speed a 120 second build read 125. An upgrade bought for a group of buildings goes to the one whose buttons you see. In a network game a Classic player's camera is not sent to observers, as it never was in 1.04. The camera zooms on the middle of the screen ten units a notch, as near and as far as Reforged's camera goes, turns without snapping unless you tick Snap Camera Rotation, and scrolls from the last three pixels of a full screen and not at all in a window, whatever the options say. It runs past the edge of the map as far as Reforged's camera does, 200 units unless `CameraBoundaryMargin` says otherwise, so a base in a corner comes to the middle of the screen in either interface. A move order puts 1.04's animated ring on the ground where it lands, and no marker or line stays behind it. None of it reaches the battle itself: Classic sends the game only the orders 1.04 sent, so a Classic player and a Reforged one share a match, and a replay plays back the same in either.
- Classic shows what a factory is building again. Select one with anything queued and its queue takes the portrait's place, the unit in production wearing its build clock, and a click on any entry cancels it; the portrait comes back when the queue runs dry. Until now a Classic factory could queue a hundred units with nothing on screen to count them by. The queue stops at nine, the number of slots that show it, and the build buttons grey out at nine as they did in 1.04. Your general's powers climb the right edge of the screen from the top of the bar, one over the other, as they did in 1.04, and the empty strip above them no longer swallows clicks on the battlefield. They carry how many are ready, with no key letter and no recharge seconds, and the promotion screen carries no number keys either, since Classic's number keys pick teams. Every button on that screen takes its click again: the right half used to sit under the powers bar's empty frame and the bottom row under the command bar's top edge, and a click there went nowhere.
- Supply piles stop shouting their cash over the whole map. A small pile shows its amount only while your cursor is on it or close by, in a smaller font; a big supply dock keeps its label all the time. Classic has the same labels now, with the radar still leaving the piles off.
- The Esc menu and the general's promotion screen close the way they open, in both interfaces. Both used to vanish in a single frame, and Classic's Esc menu had lost its opening flash as well. Classic plays 1.04's flash and fade, forwards to open and backwards to close; Reforged fades its pages out over a little more than a tenth of a second, as fast as they fade in.
@@ -1103,7 +1103,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- Accept sits in the bottom right corner with Cancel beside it, and Defaults stands alone on the far left, out of reach of a slip off Accept. The window is as tall as its busiest page and centred on the screen, instead of reaching from the top of the screen to the bottom with half of every page empty. The box that asks whether to keep a new resolution opens in the middle of the screen too, where it used to sit jammed in the top left corner.
- Eight settings that used to need a text editor have a control now: window mode on display, antialiasing, the two glow settings, texture filtering and anisotropic samples on graphics, and who wears a health bar and which colours the players wear on gameplay.
- More are decided for you instead of asked about. Nudging a blocked building, the placement range ring, workers going back to supply, detailed build tooltips, the HUD overlay and archived replays are simply on - every one of them is the version of the game people were choosing anyway, and a page of six checkboxes nobody unticks is a page of six decisions nobody wanted to make. Middle-mouse panning left the screen too, and edge scrolling in a window is still yours by name in `Options.ini` if the default is wrong for your setup.
-- Grid placement, 45 degree building rotation and 45 degree camera steps are back as checkboxes on the Controls page, all three on until you untick them. Turn grid placement off and a building goes down exactly where the cursor puts it, and the white grid lines under the ghost go with it. The red squares where nothing can be built still show, so you can see the rock before you click on it.
+- Grid placement, 45 degree building rotation, snapping to nearby buildings and 45 degree camera steps are checkboxes on the Controls page in both Classic and Reforged, and every one starts unticked, the way 1.04 played. A setting you saved while they were on does not carry over: the boxes start empty once and remember what you pick after that. Snap to Nearby Buildings pulls a building put down a cell or so short of another one flush against its edge. With grid placement off a building goes down exactly where the cursor puts it, and the white grid lines under the ghost go with it. The red squares where nothing can be built still show, so you can see the rock before you click on it.
- A page no longer says its own name twice. Every tab used to open onto a heading repeating the word already written on the button you just pressed, with a rule under it dividing nothing from nothing.
- An open dropdown covers what is under it instead of the other way round. The list of resolutions grew downwards behind the labels below it, so half the entries were readable and half were words on top of words.
- Every button, slider and checkbox is the artwork the game already had, down to the fonts and the hover colours.
@@ -1208,7 +1208,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- Edge scrolling works windowed, and scroll speed no longer follows your frame rate. It also stops when you take the pointer off the window. Windows says nothing about a cursor that has walked out onto the desktop, so the game kept reading the last edge it crossed and the map slid on its own until you brought the mouse back. A game that has only just opened asks Windows where the pointer actually is instead of assuming the top left corner, which is an edge like any other and used to drag the camera there before you had touched anything.
- Edge scrolling starts as the pointer nears the edge of the screen and speeds up the closer it gets, reaching the old speed at the edge itself. Over the command bar and the minimap nothing moves until the last three pixels.
- Taking over another base no longer squeezes the picture into the top four fifths of the screen.
-- A skirmish opens zoomed all the way out. Start Zoomed Out on Options > Controls is the box for it: untick it and a map opens at the height it was framed for.
+- A match opens with the camera 300 over the ground, close enough to read your base, in Classic and Reforged alike. Start Zoomed Out on Options > Controls opens it as far out as the wheel goes instead; it starts unticked.
- Hold Ctrl and roll the wheel to turn a building before placing it.
- Buildings snap to the pathfinder's own grid (`GridBuildPlacement = No` for the old way).
- The grid under a structure is drawn, with blocked squares crossed out.
diff --git a/GeneralsMD/Code/Data/German/Generals.str b/GeneralsMD/Code/Data/German/Generals.str
index 43949041d..fb0a1b25a 100644
--- a/GeneralsMD/Code/Data/German/Generals.str
+++ b/GeneralsMD/Code/Data/German/Generals.str
@@ -14714,7 +14714,7 @@ GUI:StartAtMaxZoom
END
TOOLTIP:StartAtMaxZoom
-"Ein Spiel beginnt mit der Kamera so weit draußen, wie das Rad reicht. Aus beginnt es in der Höhe, für die die Karte gerahmt wurde."
+"Ein Spiel beginnt mit der Kamera so weit draußen, wie das Rad reicht. Aus beginnt es nah dran, in der Höhe des Originalspiels."
END
GUI:DragTolerance
@@ -14781,6 +14781,14 @@ TOOLTIP:SnapBuild45
"Drehen per Ziehen rastet auf den acht 45-Grad-Richtungen ein, was Mauern und Verteidigung am Basisrand brauchen."
END
+GUI:SnapBuildNeighbour
+"An Nachbargebäude anlegen"
+END
+
+TOOLTIP:SnapBuildNeighbour
+"Ein Gebäude, das etwa eine Zelle vor einem anderen abgesetzt wird, wird bündig an dessen Kante gezogen, sodass keine Lücke bleibt."
+END
+
GUI:RangeRing
"Reichweitenring beim Bauen"
END
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index b73c52268..60a7ac954 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -870,7 +870,7 @@ GUI:StartAtMaxZoom
END
TOOLTIP:StartAtMaxZoom
-"A match opens with the camera as far out as the wheel goes. Off, it opens at the height the map was framed for."
+"A match opens with the camera as far out as the wheel goes. Off, it opens close in, at the height the original game used."
END
GUI:DragTolerance
@@ -937,6 +937,14 @@ TOOLTIP:SnapBuild45
"Drag-to-rotate clicks to the eight 45 degree headings, which is what walls and defenses along a base edge want."
END
+GUI:SnapBuildNeighbour
+"Snap to Nearby Buildings"
+END
+
+TOOLTIP:SnapBuildNeighbour
+"A structure put down a cell or so short of another one is pulled flush against its edge, so the two leave no gap."
+END
+
GUI:RangeRing
"Placement Range Ring"
END
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index 933eb5a02..bd4747e02 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -15358,7 +15358,7 @@ GUI:StartAtMaxZoom
END
TOOLTIP:StartAtMaxZoom
-"Maç, kamera tekerleğin gittiği en uzak noktadayken açılır. Kapalıyken haritanın kendisi için ayarlanan yükseklikte açılır."
+"Maç, kamera tekerleğin gittiği en uzak noktadayken açılır. Kapalıyken yakından, oyunun orijinalinde kullanılan yükseklikte açılır."
END
GUI:DragTolerance
@@ -15425,6 +15425,14 @@ TOOLTIP:SnapBuild45
"Sürükleyerek döndürme sekiz 45 derecelik yönden birine oturur; üssün kenarı boyunca dizilen duvarlar ve savunmalar için gereken de budur."
END
+GUI:SnapBuildNeighbour
+"Yakındaki Binalara Yapıştır"
+END
+
+TOOLTIP:SnapBuildNeighbour
+"Başka bir yapının bir hücre kadar gerisine konan yapı onun kenarına çekilir, iki bina arasında boşluk kalmaz."
+END
+
GUI:RangeRing
"Yerleşim Menzil Halkası"
END
diff --git a/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
index f5a699aed..23cf45f2f 100644
--- a/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
@@ -7512,6 +7512,53 @@ WINDOW
IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
END
CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 288 342, BOTTOMRIGHT: 512 366, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckSnapBuildNeighbour";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:SnapBuildNeighbour";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:SnapBuildNeighbour";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
diff --git a/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd b/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
index 698b7650c..7975ea9f6 100644
--- a/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
@@ -7046,6 +7046,100 @@ WINDOW
IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
END
CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 40 266, BOTTOMRIGHT: 264 290, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckStartAtMaxZoom";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:StartAtMaxZoom";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:StartAtMaxZoom";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 40 294, BOTTOMRIGHT: 264 318, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckSnapCamera45";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:SnapCamera45";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:SnapCamera45";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
@@ -7187,7 +7281,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 282 254, BOTTOMRIGHT: 506 278, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:GroupHeadingControls2";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
@@ -7198,6 +7292,192 @@ WINDOW
FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
HEADERTEMPLATE = "MainButton";
TOOLTIPDELAY = -1;
+ TEXT = "GUI:OptionsGroupPlacement";
+ TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ STATICTEXTDATA = CENTERED: 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 288 286, BOTTOMRIGHT: 512 310, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckGridBuild";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:GridBuild";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:GridBuild";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 288 314, BOTTOMRIGHT: 512 338, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckSnapBuild45";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:SnapBuild45";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:SnapBuild45";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 288 342, BOTTOMRIGHT: 512 366, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckSnapBuildNeighbour";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:SnapBuildNeighbour";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:SnapBuildNeighbour";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = STATICTEXT;
+ SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:GroupHeadingControls3";
+ STATUS = ENABLED;
+ STYLE = STATICTEXT+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
+ HEADERTEMPLATE = "MainButton";
+ TOOLTIPDELAY = -1;
TEXT = "GUI:OptionsGroupInput";
TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
index a223dfbad..24117ddad 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
@@ -195,7 +195,7 @@ public:
Bool m_useShadowVolumesForSkins; // "UseShadowVolumesForSkins": also cast volume shadows off skinned meshes
Bool m_useShadowDecals;
Bool m_shadowsForProjectiles; // "ShadowsForProjectiles": missiles and bombs that have no shadow of their own get a decal one
- Bool m_startAtMaxZoom; // "StartAtMaxZoom": a game opens as far out as the wheel goes, not at the map's own default
+ Bool m_startAtMaxZoom; // "OpenAtMaxZoom" in Options.ini: a game opens as far out as the wheel goes, not 300 over the ground
Bool m_shadowsForProps; // "ShadowsForProps": fences, rubbish, shrubs - scenery the art gave no shadow at all
Bool m_shadowsForParticles; // "ShadowsForParticles": big alpha-blended particle clouds drop a soft blob on the ground
Bool m_volumetricSmokeShadows; // "VolumetricSmokeShadows": smoke and dust shade the world and themselves through the sun's map (Direct3D 11)
@@ -421,6 +421,7 @@ public:
Bool m_snapBuildPlacementTo45; ///< quantize the drag-to-rotate build placement angle to 45 degrees
Bool m_snapCameraRotateTo45; ///< quantize the camera heading to 45 degrees when a middle-drag rotate ends
Bool m_gridBuildPlacement; ///< quantize structure placement to the pathfinder's build grid
+ Bool m_snapBuildToNeighbour; ///< pull a structure flush against the edge of one already standing beside it
Bool m_nudgeBuildPlacement; ///< slide a blocked structure to the nearest spot it does fit
Int m_moneyPerMinute; ///< income every player gets once a minute regardless of supply lines; 0 = off
Real m_buildPlacementOpacity; ///< how solid the structure riding the cursor is drawn, 0..1
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/View.h b/GeneralsMD/Code/GameEngine/Include/GameClient/View.h
index ade073bd9..5eaaa0606 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/View.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/View.h
@@ -191,7 +191,8 @@ public:
virtual void anchorZoomAt( const ICoord2D *pixel ) { } ///< ZoomToCursor: hold the ground under this pixel there while the zoom settles
virtual void setZoomToDefault( void ) { } ///< Set zoom to default value
virtual void setZoomToMax( void ) { } ///< Set zoom as far out as the player may zoom by hand
- void setZoomToStart( Bool shellMap ); ///< the zoom a match opens at: max under StartAtMaxZoom, else default
+ virtual void setZoomToHeight( Real heightAboveGround ) { } ///< Frame the camera at this height above the terrain
+ void setZoomToStart( Bool shellMap ); ///< the zoom a match opens at: max under StartAtMaxZoom, else START_CAMERA_HEIGHT
virtual void setOkToAdjustHeight( Bool val ) { m_okToAdjustHeight = val; } ///< Set this to adjust camera height
// for debugging
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
index d49d4fe09..010356e93 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
@@ -689,7 +689,7 @@ GlobalData::GlobalData()
m_useShadowVolumesForSkins = TRUE; //on by default: the shipped INI has no entry for it
m_useShadowDecals = FALSE;
m_shadowsForProjectiles = TRUE; //on by default: the shipped INI has no entry for it
- m_startAtMaxZoom = TRUE; //open a game framed as wide as the player could zoom by hand
+ m_startAtMaxZoom = FALSE; //off, a match opens at START_CAMERA_HEIGHT (View.cpp); on, as far out as the wheel goes
m_shadowsForProps = TRUE; //likewise: scenery with no shadow of its own gets one
m_shadowsForParticles = TRUE; //on by default: the shipped INI has no entry for it
m_volumetricSmokeShadows = TRUE;
@@ -1141,10 +1141,13 @@ GlobalData::GlobalData()
// controls that used to set them, and what is written here is what every game gets. GameData.ini
// remains the way to change one, because the field table above still names it.
//
+ // The snaps are the exception: the camera's and a building's 45 degree steps, grid placement and
+ // the snap to a neighbour's edge start off, ticked on Options > Controls by whoever wants them.
+ //
m_useCameraConstraints = TRUE;
m_cameraBoundaryMargin = 200;
m_edgeScrollInWindowedMode = TRUE;
- m_snapCameraRotateTo45 = TRUE;
+ m_snapCameraRotateTo45 = FALSE;
m_zoomToCursor = TRUE;
m_isometricCamera = FALSE;
// R1, smooth motion: the picture only, one logic tick behind, and never the game (W3DSmoothMotion.h).
@@ -1164,8 +1167,9 @@ GlobalData::GlobalData()
m_textureFilterMode = 2; // anisotropic; retail shipped bilinear on a 2003 fill-rate budget
m_anisotropyLevel = 0; // whatever the card offers, capped at 16 in _Init_Filters
- m_snapBuildPlacementTo45 = TRUE;
- m_gridBuildPlacement = TRUE;
+ m_snapBuildPlacementTo45 = FALSE;
+ m_gridBuildPlacement = FALSE;
+ m_snapBuildToNeighbour = FALSE;
m_nudgeBuildPlacement = TRUE;
m_moneyPerMinute = 0;
m_buildPlacementOpacity = PLACEMENT_SILHOUETTE_OPACITY;
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
index 633ee3d60..4ee58d11b 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
@@ -60,6 +60,7 @@ OPTION_BOOL_ACCESSORS( m_edgeScrollInWindowedMode )
OPTION_BOOL_ACCESSORS( m_snapCameraRotateTo45 )
OPTION_BOOL_ACCESSORS( m_gridBuildPlacement )
OPTION_BOOL_ACCESSORS( m_snapBuildPlacementTo45 )
+OPTION_BOOL_ACCESSORS( m_snapBuildToNeighbour )
OPTION_BOOL_ACCESSORS( m_zoomToCursor )
OPTION_BOOL_ACCESSORS( m_isometricCamera )
OPTION_BOOL_ACCESSORS( m_smoothMotion )
@@ -236,21 +237,30 @@ const OptionDef TheOptionCatalog[] =
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_edgeScrollInWindowedMode, set_m_edgeScrollInWindowedMode },
- // Back on Options > Controls, with the two building placement rows below it.
- { "SnapCameraRotateTo45", OPT_WND( "CheckSnapCamera45" ), "GUI:SnapCamera45",
+ // On Options > Controls in both interfaces, with the three building placement rows below it, and
+ // all four off until ticked. Their keys are new: the old ones (SnapCameraRotateTo45,
+ // GridBuildPlacement, SnapBuildPlacementTo45) sit in every Options.ini saved while they defaulted
+ // on, as a "yes" nobody chose, and would have kept the snaps on. GameData.ini keeps the old names.
+ { "CameraSnapTo45", OPT_WND( "CheckSnapCamera45" ), "GUI:SnapCamera45",
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_snapCameraRotateTo45, set_m_snapCameraRotateTo45 },
// Off, a structure goes wherever the cursor is and the white grid lines under the ghost go
// with it; the red wash over cells nothing can stand on stays (W3DInGameUI::drawBuildGrid).
- { "GridBuildPlacement", OPT_WND( "CheckGridBuild" ), "GUI:GridBuild",
+ { "BuildGrid", OPT_WND( "CheckGridBuild" ), "GUI:GridBuild",
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_gridBuildPlacement, set_m_gridBuildPlacement },
- { "SnapBuildPlacementTo45", OPT_WND( "CheckSnapBuild45" ), "GUI:SnapBuild45",
+ { "BuildSnapTo45", OPT_WND( "CheckSnapBuild45" ), "GUI:SnapBuild45",
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_snapBuildPlacementTo45, set_m_snapBuildPlacementTo45 },
+ // InGameUI::snapPlacementToNeighbour: a structure dropped within a few cells of another lands
+ // flush against its edge.
+ { "BuildSnapToNeighbour", OPT_WND( "CheckSnapBuildNeighbour" ), "GUI:SnapBuildNeighbour",
+ OPTION_BOOL, APPLY_LIVE, 0, 1,
+ get_m_snapBuildToNeighbour, set_m_snapBuildToNeighbour },
+
// MiddleMousePans used to sit here. There is nothing left to choose: a right drag pans and a
// middle drag turns the camera.
@@ -271,9 +281,10 @@ const OptionDef TheOptionCatalog[] =
{ "SmoothMotion", OPT_WND( "CheckSmoothMotion" ), "GUI:SmoothMotion",
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_smoothMotion, set_m_smoothMotion },
- // A match opens as far out as the wheel goes, or at the height the map's author framed it for.
- // Read when the map loads, so it counts from the next match. On Options > Controls.
- { "StartAtMaxZoom", OPT_WND( "CheckStartAtMaxZoom" ), "GUI:StartAtMaxZoom",
+ // A match opens as far out as the wheel goes, or 300 over the ground (View::setZoomToStart).
+ // Read when the map loads, so it counts from the next match. On Options > Controls in both
+ // interfaces. A new key for the snaps' reason above: StartAtMaxZoom is a "yes" in old files.
+ { "OpenAtMaxZoom", OPT_WND( "CheckStartAtMaxZoom" ), "GUI:StartAtMaxZoom",
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_startAtMaxZoom, set_m_startAtMaxZoom },
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
index 3f1e10a70..f46be384b 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
@@ -4175,7 +4175,7 @@ void InGameUI::update( void )
// interval, which is what the rotate keys do in Stronghold.
//
const UnsignedInt CAMERA_SNAP_REPEAT_MS = 250;
- if( TheGlobalData->m_snapCameraRotateTo45 && !TheGlobalData->isClassicUI() )
+ if( TheGlobalData->m_snapCameraRotateTo45 )
{
if( (m_cameraRotatingLeft || m_cameraRotatingRight) && m_cameraRotatingLeft != m_cameraRotatingRight
&& cameraNowMs - m_cameraSnapRepeatMs >= CAMERA_SNAP_REPEAT_MS )
@@ -7553,9 +7553,9 @@ Real InGameUI::computePlacementAngle( const ICoord2D *start, const ICoord2D *end
Real angle = v.toAngle();
- // optional 45 degree snap (SnapBuildPlacementTo45 in Options.ini) - lines walls and
+ // optional 45 degree snap (BuildSnapTo45 in Options.ini) - lines walls and
// defenses up with the base instead of leaving them at whatever the drag produced.
- if( TheGlobalData->m_snapBuildPlacementTo45 && !TheGlobalData->isClassicUI() )
+ if( TheGlobalData->m_snapBuildPlacementTo45 )
angle = snapAngleTo45( angle );
return angle;
@@ -7605,7 +7605,7 @@ static void placementHalfExtents( const ThingTemplate *what, Real angle, Real *h
void InGameUI::snapPlacementToGrid( Coord3D *world, const ThingTemplate *what, Real angle ) const
{
- if( world == NULL || what == NULL || TheGlobalData->m_gridBuildPlacement == FALSE || TheGlobalData->isClassicUI() )
+ if( world == NULL || what == NULL || TheGlobalData->m_gridBuildPlacement == FALSE )
return;
Real halfX, halfY;
@@ -7980,7 +7980,7 @@ Bool InGameUI::overlapsPendingPlacement( const Coord3D *world, const ThingTempla
//-------------------------------------------------------------------------------------------------
void InGameUI::snapPlacementToNeighbour( Coord3D *world, const ThingTemplate *what, Real angle ) const
{
- if( TheBuildAssistant->isLineBuildTemplate( what ) || TheGlobalData->isClassicUI() )
+ if( !TheGlobalData->m_snapBuildToNeighbour || TheBuildAssistant->isLineBuildTemplate( what ) )
return;
const Real largestFootprint = 150.0f; // half-diagonal of the biggest structure it may lean on
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp
index 1db166671..bb0fd7433 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp
@@ -442,7 +442,7 @@ GameMessageDisposition LookAtTranslator::translateGameMessage(const GameMessage
Real angle = FACTOR * (m_currentPos.x - m_anchor.x);
- if (TheGlobalData->m_snapCameraRotateTo45 && !TheGlobalData->isClassicUI())
+ if (TheGlobalData->m_snapCameraRotateTo45)
{
// discrete heading: the drag turns an angle we keep to ourselves and the camera
// jumps to the eighth it is nearest, as the mouse crosses each halfway point.
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/View.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/View.cpp
index a962c77ad..2e577ad38 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/View.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/View.cpp
@@ -171,17 +171,22 @@ View *View::prependViewToList( View *list )
#define ZOOM_STEP_HEIGHT (TheGlobalData->isClassicUI() ? 10.0f : 60.0f)
//-------------------------------------------------------------------------------------------------
-/** The zoom a match opens at. StartAtMaxZoom opens it as far out as the wheel itself may go rather
- * than at the map's own default height; Classic and the shell map behind the menus keep the map's
- * framing. Here rather than in GameLogic, which calls it, because both answers are client
- * settings. */
+/** The zoom a match opens at: START_CAMERA_HEIGHT over the ground in either interface, a little
+ * inside GameData.ini's MaxCameraHeight of 310, the map default a Classic match opened at before.
+ * StartAtMaxZoom opens it as far out as the wheel itself may go instead. The shell map behind the
+ * menus keeps the map's framing. Here rather than in GameLogic, which calls it, because both
+ * answers are client settings. */
//-------------------------------------------------------------------------------------------------
+#define START_CAMERA_HEIGHT (300.0f)
void View::setZoomToStart( Bool shellMap )
{
- if( TheGlobalData->m_startAtMaxZoom && !TheGlobalData->isClassicUI() && !shellMap )
+ if( shellMap )
+ setZoomToDefault();
+ else if( TheGlobalData->m_startAtMaxZoom )
setZoomToMax();
else
- setZoomToDefault();
+ setZoomToHeight( START_CAMERA_HEIGHT );
+ DEBUG_LOG(( "CAMERA START height %.1f\n", getHeightAboveGround() ));
}
void View::zoomIn( Real steps )
diff --git a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DView.h b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DView.h
index d51560b9b..4ca87064a 100644
--- a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DView.h
+++ b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DView.h
@@ -203,7 +203,7 @@ public:
virtual void setZoom(Real z);
virtual void setZoomToDefault( void ); ///< Set zoom to default value
virtual void setZoomToMax( void ); ///< Set zoom as far out as the player may zoom by hand
- void setZoomToHeight( Real heightAboveGround ); ///< Frame the camera at this height above the terrain
+ virtual void setZoomToHeight( Real heightAboveGround ); ///< Frame the camera at this height above the terrain
virtual void anchorZoomAt( const ICoord2D *pixel );
virtual void setFieldOfView( Real angle ); ///< Set the horizontal field of view angle
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
index ffd3b0858..b930cca63 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
@@ -748,7 +748,7 @@ void W3DInGameUI::drawBuildGrid( void )
return;
// the grid you see is the grid you snap to: with the snap off the lines would mean nothing, but
// the cells nothing can stand on still do
- const Bool drawLines = TheGlobalData->m_gridBuildPlacement && !TheGlobalData->isClassicUI();
+ const Bool drawLines = TheGlobalData->m_gridBuildPlacement;
if( m_placeIcon == NULL || m_placeIcon[ 0 ] == NULL )
return;
if( TheTerrainLogic == NULL || TheAI == NULL )
diff --git a/GeneralsMD/Code/Tests/test_camera_behavior.inc b/GeneralsMD/Code/Tests/test_camera_behavior.inc
index 2f2bdb79d..b9c7a80ee 100644
--- a/GeneralsMD/Code/Tests/test_camera_behavior.inc
+++ b/GeneralsMD/Code/Tests/test_camera_behavior.inc
@@ -61,6 +61,10 @@ public:
void lookAt(const Coord3D *pos) { ++lookAtCalls; setPosition(pos); }
void anchorZoomAt(const ICoord2D *pixel) { zoomAnchor = *pixel; ++zoomAnchors; }
void forceCameraConstraintRecalc() { ++constraintRecalcs; }
+ // what the opening zoom asked for: -1 the map's default, -2 as far out as the wheel goes
+ void setZoomToHeight(Real height) { setHeightAboveGround(height); }
+ void setZoomToDefault() { setHeightAboveGround(-1.0f); }
+ void setZoomToMax() { setHeightAboveGround(-2.0f); }
void scrollBy(Coord2D *delta) { last = *delta; ++samples; }
Drawable *pickDrawable(const ICoord2D*, Bool, PickType) { return NULL; }
Int iterateDrawablesInRegion(IRegion2D*, Bool (*)(Drawable*, void*), void*) { return 0; }
@@ -324,6 +328,27 @@ TEST(arrow_keys_scroll_the_camera_and_w_a_s_d_stay_grid_keys)
CHECK(!f.ui->scrolling);
}
+TEST(a_match_opens_300_over_the_ground_in_both_interfaces)
+{
+ CHECK(bootOnce());
+ CameraInputFixture f;
+ CHECK(!f.global->m_startAtMaxZoom);
+ for (Int style = 0; style < 2; ++style)
+ {
+ f.global->m_interfaceStyle = style ? INTERFACE_STYLE_CLASSIC : INTERFACE_STYLE_REFORGED;
+ f.global->m_startAtMaxZoom = FALSE;
+ f.view.setZoomToStart(FALSE);
+ CHECK_NEAR(f.view.getHeightAboveGround(), 300.0f, 0.001f);
+ // the shell map behind the menus keeps its own framing
+ f.view.setZoomToStart(TRUE);
+ CHECK_NEAR(f.view.getHeightAboveGround(), -1.0f, 0.001f);
+ // the box ticked opens it as far out as the wheel goes, Classic too
+ f.global->m_startAtMaxZoom = TRUE;
+ f.view.setZoomToStart(FALSE);
+ CHECK_NEAR(f.view.getHeightAboveGround(), -2.0f, 0.001f);
+ }
+}
+
TEST(scroll_speed_follows_the_zoom_in_both_interfaces)
{
CHECK(bootOnce());
diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cpp
index 6bce62f24..e30bfd567 100644
--- a/GeneralsMD/Code/Tests/test_gameengine.cpp
+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp
@@ -12680,9 +12680,7 @@ TEST(gameplay_conveniences_are_forced_on_and_left_the_catalog)
GlobalData *scratch = NEW GlobalData;
TheWritableGlobalData = scratch;
- CHECK( scratch->m_gridBuildPlacement );
CHECK( scratch->m_nudgeBuildPlacement );
- CHECK( scratch->m_snapBuildPlacementTo45 );
CHECK( scratch->m_showPlacementRangeRing );
CHECK( scratch->m_workersReturnToSupply );
CHECK( scratch->m_detailedBuildTooltips );
@@ -12713,11 +12711,11 @@ TEST(gameplay_conveniences_are_forced_on_and_left_the_catalog)
CHECK( def->widgetName == NULL || def->widgetName[ 0 ] == '\0' );
}
- /* The two snaps and grid placement are Controls check boxes, on by default. */
- CHECK( scratch->m_snapCameraRotateTo45 );
+ /* The snaps, grid placement and the opening zoom are Controls check boxes, off by default, under
+ keys of their own: the old ones are a "yes" in every Options.ini saved while they defaulted on. */
static const char *const menu[] =
{
- "SnapCameraRotateTo45", "GridBuildPlacement", "SnapBuildPlacementTo45", NULL
+ "CameraSnapTo45", "BuildGrid", "BuildSnapTo45", "BuildSnapToNeighbour", "OpenAtMaxZoom", NULL
};
for( Int i = 0; menu[ i ] != NULL; ++i )
{
@@ -12727,7 +12725,14 @@ TEST(gameplay_conveniences_are_forced_on_and_left_the_catalog)
continue;
CHECK( def->kind == OPTION_BOOL );
CHECK( def->widgetName != NULL && def->widgetName[ 0 ] != '\0' );
+ CHECK_EQ( def->get(), 0 );
}
+ static const char *const retired[] =
+ {
+ "SnapCameraRotateTo45", "GridBuildPlacement", "SnapBuildPlacementTo45", "StartAtMaxZoom", NULL
+ };
+ for( Int i = 0; retired[ i ] != NULL; ++i )
+ CHECK( findOptionDef( retired[ i ] ) == NULL );
delete scratch; // while it is the current one: a Debug build's ~GlobalData reads TheWritableGlobalData
TheWritableGlobalData = saved;
@@ -13053,7 +13058,7 @@ TEST(texture_filter_defaults_to_anisotropic)
check and the far one is how much of the map a player sees. */
TEST(start_zoom_and_drag_threshold_are_rows_that_change_nothing_until_asked)
{
- const OptionDef *start = findOptionDef( "StartAtMaxZoom" );
+ const OptionDef *start = findOptionDef( "OpenAtMaxZoom" );
const OptionDef *drag = findOptionDef( "DragTolerance" );
CHECK( start != NULL && drag != NULL );
if( start == NULL || drag == NULL )
@@ -13068,13 +13073,13 @@ TEST(start_zoom_and_drag_threshold_are_rows_that_change_nothing_until_asked)
GlobalData *scratch = NEW GlobalData;
TheWritableGlobalData = scratch;
- // an Options.ini with neither key plays the way the last version did
- CHECK_EQ( start->get(), 1 );
+ // an Options.ini with neither key opens close in and drags at Mouse.ini's tolerance
+ CHECK_EQ( start->get(), 0 );
CHECK_EQ( drag->get(), 25 ); // DragTolerance in INIZH.big's Mouse.ini
CHECK( drag->lo > 0 && drag->lo <= 25 && drag->hi >= 25 );
- start->set( 0 );
- CHECK_EQ( (Int)scratch->m_startAtMaxZoom, 0 );
+ start->set( 1 );
+ CHECK_EQ( (Int)scratch->m_startAtMaxZoom, 1 );
drag->set( 8 );
CHECK_EQ( scratch->m_dragTolerance, 8 );
diff --git a/GeneralsMD/Code/Tools/optionsmenu_layout.py b/GeneralsMD/Code/Tools/optionsmenu_layout.py
index 078b66b2c..d47a6b3b5 100644
--- a/GeneralsMD/Code/Tools/optionsmenu_layout.py
+++ b/GeneralsMD/Code/Tools/optionsmenu_layout.py
@@ -170,6 +170,7 @@ NEW_CONTROLS = [
(CHECK, "CheckSnapCamera45", "GUI:SnapCamera45"),
(CHECK, "CheckGridBuild", "GUI:GridBuild"),
(CHECK, "CheckSnapBuild45", "GUI:SnapBuild45"),
+ (CHECK, "CheckSnapBuildNeighbour", "GUI:SnapBuildNeighbour"),
(LABEL, "LabelDragTolerance", "GUI:DragTolerance"),
(SLIDER, "SliderDragTolerance", None),
(CHECK, "CheckTreeSway", "GUI:TreeSway"),
@@ -310,7 +311,8 @@ GROUP_LAYOUT = [
("check", "CheckDoubleClickAttackMove")]),
("GUI:OptionsGroupPlacement", [
("check", "CheckGridBuild"),
- ("check", "CheckSnapBuild45")]),
+ ("check", "CheckSnapBuild45"),
+ ("check", "CheckSnapBuildNeighbour")]),
("GUI:OptionsGroupInput", [
setting("LabelDragTolerance", "SliderDragTolerance", "ValueDragTolerance"),
("check", "CheckChromaLighting")])]),
@@ -342,14 +344,14 @@ GROUP_LAYOUT = [
# Settings the Classic interface overrules whatever Options.ini says, each behind an isClassicUI()
# gate where the value is read: smooth motion (W3DDisplay.cpp), zoom to cursor (LookAtXlat.cpp), the
-# opening zoom (View.cpp), 45 degree camera snaps (LookAtXlat.cpp, InGameUI.cpp), grid placement and
-# 45 degree building snaps (InGameUI.cpp, W3DInGameUI.cpp), the HUD scale (ControlBar.cpp), the corner
-# net box (InGameUI.cpp, no HTML pages in Classic), the income beside the money (InGameUI.cpp), health bar mode and empty garrison pips
-# (Drawable.cpp) and order lines (W3DInGameUI.cpp). Every one is a catalog row, whose menu passes
-# skip a control the layout does not carry, so the Classic layout leaves them out and keeps the value.
+# HUD scale (ControlBar.cpp), the corner net box (InGameUI.cpp, no HTML pages in Classic), the income
+# beside the money (InGameUI.cpp), health bar mode and empty garrison pips (Drawable.cpp) and order
+# lines (W3DInGameUI.cpp). Every one is a catalog row, whose menu passes skip a control the layout
+# does not carry, so the Classic layout leaves them out and keeps the value. The opening zoom, the
+# camera's 45 degree steps and the three placement snaps are not here: they start off, which is how
+# 1.04 played, and Classic honours them once ticked.
REFORGED_ONLY = [
- "CheckSmoothMotion", "CheckZoomToCursor", "CheckStartAtMaxZoom", "CheckSnapCamera45",
- "CheckGridBuild", "CheckSnapBuild45", "ComboBoxHudScale", "CheckNetBox", "ComboBoxIncomeRate",
+ "CheckSmoothMotion", "CheckZoomToCursor", "ComboBoxHudScale", "CheckNetBox", "ComboBoxIncomeRate",
"CheckOrderLines",
]