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): hotkeys tab in the options menu

Olcay Seygan5ad714a1808a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cafc07e8e..95ea7880c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -59,6 +59,7 @@ found and fixed — EA's own, not port damage.**
- Formation lines are back for everyone. With move, attack move or guard armed, a left drag spreads the selection along the line you draw again; since the one interface it drew a selection box instead, because the line was switched off for the Classic mouse that every player now runs. A drag with no order armed is still the selection box.
- Every key is yours to move. The launcher's Hotkeys page draws the command bar of every building and unit each general can field, cameos and letters as the game shows them, and a click and a keypress gives any button a new letter or none. Two buttons on one bar that would share a letter are marked before you play. The keyboard commands are there too, from bookmarks and team keys to the camera, along with the ones Zero Hour never bound: select every fighting unit, vehicle or aircraft, every barracks, war factory or airfield, the next idle worker or unit, pause, the general's promotions, the three signals to your allies and the general's powers. Your keys are yours alone; the other players in a match keep theirs, and a match never refuses you for them. Every mod you install brings its own generals to the page, ShockWave's fifteen next to Zero Hour's thirteen, and a key you give a ShockWave button stays with ShockWave.
- Some keys now mean one thing on every bar: A attack move, S stop, G guard, Y rally point, V evacuate, N sell, C combat drop, and H for land mines, camo netting and the GLA worker's switch to fake buildings. Sell sits on its own key, so emptying a bunker can never sell it. The 188 buttons Zero Hour had put on one of those letters take another, kept off the 18 letters under your left hand where the bar leaves room (the Avenger is J now), and no bar gained a clash doing it. Those letters are still yours to hand out: the Hotkeys page gives A or H to any other button you pick, and marks the clash. On a bar that has the order as well, the order keeps its key: a Barracks button on A fires from A, and a tank's A is still attack move.
+- The Hotkeys page is in the game as well, as the last tab of the options screen, so a key can move without quitting to the launcher: from the main menu, or from Esc in the middle of a match. Every command sits on the left with its key. On the right you pick a general and one of his buildings or units, and its command bar is listed button by button, each with its cameo and its letter. Double-click a line, or press Enter or Change, and then the key; Esc lets go. Two buttons of one bar on one letter, or two commands on one key, turn red, and the line under the lists names them. Accept writes the file the launcher writes, so a key set in either place is there in the other, and a key changed in a match works from the next press.
- Export and Import on the Hotkeys page take your keys to a file and back, for another PC or a fresh install. Before an import the page tells you how many keys it changes and how many would clash; a file with a line it cannot read changes nothing and quotes that line. Keys for a mod you have not installed come along and wait for it.
- Grid keys are gone. The switch that made a button's key its place on the bar, Q for the first button of every building, is off the Hotkeys page, and the game no longer moves buttons around to give them a place's letter. Each button wears the letter you gave it or the game's own, and the fixed keys above still hold. A hotkeys file saved with grid keys on loads as before, with the switch ignored, so a player who had them on finds the letters of their own buttons back on the bar.
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifest
index 88d303328..cb44b24b8 100644
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@ -9,6 +9,7 @@ Data/Art/Textures/ReforgedBarChinaRight.tga
Data/Art/Textures/ReforgedBarGLACenter.tga
Data/Art/Textures/ReforgedBarGLALeft.tga
Data/Art/Textures/ReforgedBarGLARight.tga
+Data/Art/Textures/ReforgedForceAttack.tga
Data/Art/Textures/ReforgedHudAmericaCommandBar.dds
Data/Art/Textures/ReforgedHudAmericaPowers.dds
Data/Art/Textures/ReforgedHudBlankTexture.tga
@@ -145,6 +146,7 @@ Data/INI/ControlBarSchemeReforged.ini
Data/INI/FXListReforged.ini
Data/INI/FixesReforged.ini
Data/INI/MappedImages/HandCreated/ReforgedBarChinaBeacon.ini
+Data/INI/MappedImages/HandCreated/ReforgedForceAttack.ini
Data/INI/MappedImages/HandCreated/ReforgedHudAmericaCommandBar.ini
Data/INI/MappedImages/HandCreated/ReforgedHudAmericaPowers.ini
Data/INI/MappedImages/HandCreated/ReforgedHudBlankTexture.ini
@@ -1156,6 +1158,7 @@ GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cpp
GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MapSelectMenu.cpp
GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cpp
GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp
+GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenuHotkeys.cpp
GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/PopupCommunicator.cpp
GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/PopupHostGame.cpp
GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/PopupJoinGame.cpp
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index dc04c5f6e..8bc1ecb0f 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -1349,3 +1349,261 @@ END
TOOLTIP:MoveScrollAnchor
"The scroll marker trails the cursor, never more than half a screen behind, so a long drag does not keep speeding up."
END
+
+// The options menu's Hotkeys page (OptionsMenuHotkeys.cpp), the launcher's Hotkeys page in the game.
+// GUI:HotkeysClash takes the key and the buttons' names; the family lines take a number.
+GUI:OptionsTabHotkeys
+"Hotkeys"
+END
+
+GUI:HotkeysCommands
+"Commands"
+END
+
+GUI:HotkeysCommandBar
+"Command bar"
+END
+
+GUI:HotkeysChange
+"Change"
+END
+
+GUI:HotkeysClear
+"No key"
+END
+
+GUI:HotkeysDefault
+"Game's key"
+END
+
+TOOLTIP:HotkeyChange
+"Wait for a new key for the selected command or button. A double click or Enter on it does the same."
+END
+
+TOOLTIP:HotkeyClear
+"Take the key off the selected command or button."
+END
+
+TOOLTIP:HotkeyDefault
+"Put back the game's own key. Keys are written when you press Accept."
+END
+
+GUI:HotkeysNone
+"none"
+END
+
+GUI:HotkeysPressKey
+"Press a key, or Esc to cancel"
+END
+
+GUI:HotkeysPressLetter
+"Press a letter, or Esc to cancel"
+END
+
+GUI:HotkeysPressForceAttack
+"Press a key, or Ctrl or Alt alone. Shift cannot be the hold. Esc cancels."
+END
+
+GUI:HotkeysClash
+"%s: %s share this key. Only one of them gets it in the game, and a fixed order keeps its own."
+END
+
+GUI:HotkeysAlsoOn
+"Same key as %s."
+END
+
+GUI:HotkeysFixed
+"A fixed key on every bar: A attack move, S stop, G guard, Y rally point, V evacuate, C combat drop, N sell, H mines, camo netting and the fake switch."
+END
+
+GUI:HotkeysGameKey
+"The game's own key is %s."
+END
+
+GUI:HotkeysMoved
+"Moved off the command bar's keys; the game's key is %s."
+END
+
+GUI:HotkeysButtonMoved
+"The game gave it the letter of a fixed key, so the launcher moved it."
+END
+
+GUI:HotkeysForceAttack
+"Hold to fire on whatever is under the pointer. Shift plus this key still draws a selection box. Default is Ctrl."
+END
+
+GUI:HotkeysPick
+"Pick a command or a button, then double-click it or press Change."
+END
+
+GUI:HotkeysOnFixedKey
+"A command bar key too: it fires with the button that has it."
+END
+
+GUI:HotkeysCategorySELECTION
+"Selection"
+END
+
+GUI:HotkeysCategoryTEAM
+"Teams"
+END
+
+GUI:HotkeysCategoryINFORMATION
+"Signals and beacons"
+END
+
+GUI:HotkeysCategoryCONTROL
+"Orders"
+END
+
+GUI:HotkeysCategoryINTERFACE
+"Interface"
+END
+
+GUI:HotkeysCategorySHORTCUTS
+"General's powers"
+END
+
+GUI:HotkeysCategoryGRID
+"Command bar by place"
+END
+
+GUI:HotkeysCategoryMISC
+"Camera and chat"
+END
+
+GUI:HotkeysFamilySaveView
+"Set bookmark %d"
+END
+
+GUI:HotkeysFamilyViewView
+"Go to bookmark %d"
+END
+
+GUI:HotkeysFamilyAddTeam
+"Add selection to team %d"
+END
+
+GUI:HotkeysFamilyShortcut
+"General's power %d"
+END
+
+GUI:HotkeysFamilySlot
+"Command bar place %d"
+END
+
+GUI:HotkeysCommandSELECT_HERO
+"Select hero"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_WORKER
+"Next worker"
+END
+
+GUI:HotkeysCommandSELECT_PREV_WORKER
+"Previous worker"
+END
+
+GUI:HotkeysCommandCHAT_ALLIES
+"Chat to allies"
+END
+
+GUI:HotkeysCommandCHAT_EVERYONE
+"Chat to everyone"
+END
+
+GUI:HotkeysCommandDIPLOMACY
+"Diplomacy"
+END
+
+GUI:HotkeysCommandPLACE_BEACON
+"Place beacon"
+END
+
+GUI:HotkeysCommandDELETE_BEACON
+"Delete beacon"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ROTATE_LEFT
+"Turn camera left"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ROTATE_RIGHT
+"Turn camera right"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ZOOM_IN
+"Zoom in"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ZOOM_OUT
+"Zoom out"
+END
+
+GUI:HotkeysCommandCAMERA_RESET
+"Reset camera"
+END
+
+GUI:HotkeysCommandTOGGLE_CAMERA_TRACKING_DRAWABLE
+"Camera follows selection"
+END
+
+GUI:HotkeysCommandTOGGLE_FAST_FORWARD_REPLAY
+"Fast forward replay"
+END
+
+GUI:HotkeysCommandSELECT_ALL
+"Select all units"
+END
+
+GUI:HotkeysCommandSELECT_ALL_MILITARY
+"Select all fighting units"
+END
+
+GUI:HotkeysCommandSELECT_ALL_VEHICLES
+"Select all vehicles"
+END
+
+GUI:HotkeysCommandSELECT_ALL_AIRCRAFT
+"Select all aircraft"
+END
+
+GUI:HotkeysCommandSELECT_ALL_BARRACKS
+"Select all barracks"
+END
+
+GUI:HotkeysCommandSELECT_ALL_WARFACTORIES
+"Select all war factories"
+END
+
+GUI:HotkeysCommandSELECT_ALL_AIRFIELDS
+"Select all airfields"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_WORKER
+"Next idle worker"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_UNIT
+"Next idle unit"
+END
+
+GUI:HotkeysCommandTOGGLE_PAUSE
+"Pause (single player and replays)"
+END
+
+GUI:HotkeysCommandTOGGLE_PURCHASE_SCIENCE
+"General's promotions"
+END
+
+GUI:HotkeysCommandSIGNAL_ATTACK
+"Signal: attack here"
+END
+
+GUI:HotkeysCommandSIGNAL_DEFEND
+"Signal: defend here"
+END
+
+GUI:HotkeysCommandSIGNAL_ATTENTION
+"Signal: look here"
+END
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index 63d601f9a..867e0ee6c 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -15748,3 +15748,259 @@ END
TOOLTIP:MoveScrollAnchor
"Kaydırma işareti imleci en fazla yarım ekran geriden izler, böylece uzun bir sürükleme durmadan hızlanmaz."
END
+
+GUI:OptionsTabHotkeys
+"Kısayollar"
+END
+
+GUI:HotkeysCommands
+"Komutlar"
+END
+
+GUI:HotkeysCommandBar
+"Komut çubuğu"
+END
+
+GUI:HotkeysChange
+"Değiştir"
+END
+
+GUI:HotkeysClear
+"Tuş yok"
+END
+
+GUI:HotkeysDefault
+"Oyunun tuşu"
+END
+
+TOOLTIP:HotkeyChange
+"Seçili komut ya da düğme için yeni bir tuş bekler. Üzerine çift tıklamak ya da Enter da aynısını yapar."
+END
+
+TOOLTIP:HotkeyClear
+"Seçili komutun ya da düğmenin tuşunu kaldırır."
+END
+
+TOOLTIP:HotkeyDefault
+"Oyunun kendi tuşunu geri koyar. Tuşlar Kabul Et'e bastığınızda yazılır."
+END
+
+GUI:HotkeysNone
+"yok"
+END
+
+GUI:HotkeysPressKey
+"Bir tuşa basın, vazgeçmek için Esc"
+END
+
+GUI:HotkeysPressLetter
+"Bir harfe basın, vazgeçmek için Esc"
+END
+
+GUI:HotkeysPressForceAttack
+"Bir tuşa ya da tek başına Ctrl veya Alt tuşuna basın. Shift basılı tutma tuşu olamaz. Esc vazgeçer."
+END
+
+GUI:HotkeysClash
+"%s: %s aynı tuşu kullanıyor. Oyunda tuş yalnızca birinde çalışır, sabit emir kendi tuşunu korur."
+END
+
+GUI:HotkeysAlsoOn
+"Şununla aynı tuş: %s."
+END
+
+GUI:HotkeysFixed
+"Her çubukta sabit tuş: A saldırarak ilerle, S dur, G koru, Y toplanma noktası, V boşalt, C çatışma inişi, N sat, H mayın, kamuflaj ağı ve sahte bina geçişi."
+END
+
+GUI:HotkeysGameKey
+"Oyunun kendi tuşu %s."
+END
+
+GUI:HotkeysMoved
+"Komut çubuğunun tuşlarından taşındı; oyunun tuşu %s."
+END
+
+GUI:HotkeysButtonMoved
+"Oyun ona sabit bir tuşun harfini vermişti, başlatıcı taşıdı."
+END
+
+GUI:HotkeysForceAttack
+"Basılı tutunca imlecin altındakine ateş eder. Bu tuşla Shift, birlik kutusu çizer. Varsayılan Ctrl."
+END
+
+GUI:HotkeysPick
+"Bir komut ya da düğme seçin, sonra çift tıklayın ya da Değiştir'e basın."
+END
+
+GUI:HotkeysOnFixedKey
+"Bu bir komut çubuğu tuşu da: o tuşu taşıyan düğmeyle birlikte çalışır."
+END
+
+GUI:HotkeysCategorySELECTION
+"Seçim"
+END
+
+GUI:HotkeysCategoryTEAM
+"Takımlar"
+END
+
+GUI:HotkeysCategoryINFORMATION
+"İşaretler ve fişekler"
+END
+
+GUI:HotkeysCategoryCONTROL
+"Emirler"
+END
+
+GUI:HotkeysCategoryINTERFACE
+"Arayüz"
+END
+
+GUI:HotkeysCategorySHORTCUTS
+"General güçleri"
+END
+
+GUI:HotkeysCategoryGRID
+"Yerine göre komut çubuğu"
+END
+
+GUI:HotkeysCategoryMISC
+"Kamera ve sohbet"
+END
+
+GUI:HotkeysFamilySaveView
+"%d. yer imini kaydet"
+END
+
+GUI:HotkeysFamilyViewView
+"%d. yer imine git"
+END
+
+GUI:HotkeysFamilyAddTeam
+"Seçimi %d. takıma ekle"
+END
+
+GUI:HotkeysFamilyShortcut
+"%d. general gücü"
+END
+
+GUI:HotkeysFamilySlot
+"Komut çubuğunda %d. yer"
+END
+
+GUI:HotkeysCommandSELECT_HERO
+"Kahramanı seç"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_WORKER
+"Sıradaki işçi"
+END
+
+GUI:HotkeysCommandSELECT_PREV_WORKER
+"Önceki işçi"
+END
+
+GUI:HotkeysCommandCHAT_ALLIES
+"Müttefiklere yaz"
+END
+
+GUI:HotkeysCommandCHAT_EVERYONE
+"Herkese yaz"
+END
+
+GUI:HotkeysCommandDIPLOMACY
+"Diplomasi"
+END
+
+GUI:HotkeysCommandPLACE_BEACON
+"İşaret fişeği koy"
+END
+
+GUI:HotkeysCommandDELETE_BEACON
+"İşaret fişeğini sil"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ROTATE_LEFT
+"Kamerayı sola döndür"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ROTATE_RIGHT
+"Kamerayı sağa döndür"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ZOOM_IN
+"Yakınlaştır"
+END
+
+GUI:HotkeysCommandBEGIN_CAMERA_ZOOM_OUT
+"Uzaklaştır"
+END
+
+GUI:HotkeysCommandCAMERA_RESET
+"Kamerayı sıfırla"
+END
+
+GUI:HotkeysCommandTOGGLE_CAMERA_TRACKING_DRAWABLE
+"Kamera seçimi izlesin"
+END
+
+GUI:HotkeysCommandTOGGLE_FAST_FORWARD_REPLAY
+"Tekrarı hızlı oynat"
+END
+
+GUI:HotkeysCommandSELECT_ALL
+"Bütün birlikleri seç"
+END
+
+GUI:HotkeysCommandSELECT_ALL_MILITARY
+"Bütün savaşan birlikleri seç"
+END
+
+GUI:HotkeysCommandSELECT_ALL_VEHICLES
+"Bütün araçları seç"
+END
+
+GUI:HotkeysCommandSELECT_ALL_AIRCRAFT
+"Bütün hava araçlarını seç"
+END
+
+GUI:HotkeysCommandSELECT_ALL_BARRACKS
+"Bütün kışlaları seç"
+END
+
+GUI:HotkeysCommandSELECT_ALL_WARFACTORIES
+"Bütün savaş fabrikalarını seç"
+END
+
+GUI:HotkeysCommandSELECT_ALL_AIRFIELDS
+"Bütün hava üslerini seç"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_WORKER
+"Sıradaki boştaki işçi"
+END
+
+GUI:HotkeysCommandSELECT_NEXT_IDLE_UNIT
+"Sıradaki boştaki birlik"
+END
+
+GUI:HotkeysCommandTOGGLE_PAUSE
+"Duraklat (tek oyunculu ve tekrarlar)"
+END
+
+GUI:HotkeysCommandTOGGLE_PURCHASE_SCIENCE
+"General terfileri"
+END
+
+GUI:HotkeysCommandSIGNAL_ATTACK
+"İşaret: buraya saldır"
+END
+
+GUI:HotkeysCommandSIGNAL_DEFEND
+"İşaret: burayı savun"
+END
+
+GUI:HotkeysCommandSIGNAL_ATTENTION
+"İşaret: buraya bak"
+END
diff --git a/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd b/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
index 3140a49c2..c959e57d4 100644
--- a/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
@@ -665,7 +665,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 36 108, BOTTOMRIGHT: 136 136, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 36 108, BOTTOMRIGHT: 123 136, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:TabDisplay";
STATUS = ENABLED+IMAGE;
STYLE = PUSHBUTTON+MOUSETRACK;
@@ -709,7 +709,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 140 108, BOTTOMRIGHT: 240 136, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 127 108, BOTTOMRIGHT: 214 136, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:TabGraphics";
STATUS = ENABLED+IMAGE;
STYLE = PUSHBUTTON+MOUSETRACK;
@@ -753,7 +753,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 244 108, BOTTOMRIGHT: 344 136, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 218 108, BOTTOMRIGHT: 305 136, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:TabEffects";
STATUS = ENABLED+IMAGE;
STYLE = PUSHBUTTON+MOUSETRACK;
@@ -797,7 +797,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 348 108, BOTTOMRIGHT: 448 136, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 309 108, BOTTOMRIGHT: 396 136, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:TabAudio";
STATUS = ENABLED+IMAGE;
STYLE = PUSHBUTTON+MOUSETRACK;
@@ -841,7 +841,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 452 108, BOTTOMRIGHT: 552 136, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 400 108, BOTTOMRIGHT: 487 136, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:TabControls";
STATUS = ENABLED+IMAGE;
STYLE = PUSHBUTTON+MOUSETRACK;
@@ -885,7 +885,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 556 108, BOTTOMRIGHT: 656 136, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 491 108, BOTTOMRIGHT: 578 136, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:TabInterface";
STATUS = ENABLED+IMAGE;
STYLE = PUSHBUTTON+MOUSETRACK;
@@ -929,7 +929,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 660 108, BOTTOMRIGHT: 764 136, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 582 108, BOTTOMRIGHT: 669 136, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:TabNetwork";
STATUS = ENABLED+IMAGE;
STYLE = PUSHBUTTON+MOUSETRACK;
@@ -971,6 +971,50 @@ WINDOW
IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
END
CHILD
+ WINDOW
+ WINDOWTYPE = PUSHBUTTON;
+ SCREENRECT = UPPERLEFT: 673 108, BOTTOMRIGHT: 764 136, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:TabHotkeys";
+ STATUS = ENABLED+IMAGE;
+ STYLE = PUSHBUTTON+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
+ HEADERTEMPLATE = "MainButton";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:OptionsTabHotkeys";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
+ ENABLEDDRAWDATA = IMAGE: Buttons-Left, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: NoImage, COLOR: 47 55 168 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: Buttons-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Right, 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: Buttons-Disabled-Left, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 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: Buttons-Disabled-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Disabled-Right, 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: Buttons-HiLite-Left, COLOR: 209 253 4 255, BORDERCOLOR: 59 60 52 255,
+ IMAGE: Buttons-Pushed-Left, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Pushed-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Pushed-Right, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-HiLite-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-HiLite-Right, 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 = USER;
SCREENRECT = UPPERLEFT: 36 142, BOTTOMRIGHT: 764 462, CREATIONRESOLUTION: 800 600;
@@ -11880,6 +11924,1105 @@ WINDOW
END
ENDALLCHILDREN
END
+ CHILD
+ WINDOW
+ WINDOWTYPE = USER;
+ SCREENRECT = UPPERLEFT: 36 142, BOTTOMRIGHT: 764 462, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:PageHotkeys";
+ STATUS = ENABLED+NOFOCUS+SEE_THRU;
+ STYLE = USER;
+ SYSTEMCALLBACK = "PassMessagesToParentSystem";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "[NONE]";
+ TOOLTIPDELAY = -1;
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 255 255 255 255,
+ DISABLED: 255 255 255 255, DISABLEDBORDER: 255 255 255 255,
+ HILITE: 255 255 255 255, HILITEBORDER: 255 255 255 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 47 55 168 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;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 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: 128 128 255 255, BORDERCOLOR: 254 254 254 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;
+ CHILD
+ WINDOW
+ WINDOWTYPE = STATICTEXT;
+ SCREENRECT = UPPERLEFT: 34 150, BOTTOMRIGHT: 378 174, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:GroupHeadingHotkeys0";
+ 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:HotkeysCommands";
+ 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 = STATICTEXT;
+ SCREENRECT = UPPERLEFT: 402 150, BOTTOMRIGHT: 746 174, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:GroupHeadingHotkeys1";
+ 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:HotkeysCommandBar";
+ 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 = SCROLLLISTBOX;
+ SCREENRECT = UPPERLEFT: 40 182, BOTTOMRIGHT: 384 402, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:ListboxHotkeyCommands";
+ STATUS = ENABLED;
+ STYLE = SCROLLLISTBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "LabelRegular";
+ TOOLTIPDELAY = -1;
+ TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 128 128 255 255, HILITEBORDER: 0 0 128 255;
+ ENABLEDDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 126, BORDERCOLOR: 49 55 168 255,
+ IMAGE: ListBoxHiliteItemLeftEnd, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: ListBoxHiliteItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteItemSmallRepeatingCenter, 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: BlackSquare, COLOR: 0 0 0 126, BORDERCOLOR: 49 55 168 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 126, BORDERCOLOR: 49 55 168 255,
+ IMAGE: ListBoxHiliteSelectedItemLeftEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ListBoxHiliteSelectedItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, 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;
+ LISTBOXDATA = LENGTH: 300, AUTOSCROLL: 0, SCROLLIFATEND: 0, AUTOPURGE: 0, SCROLLBAR: 1, MULTISELECT: 0, COLUMNS: 2, COLUMNSWIDTH: 68, COLUMNSWIDTH: 32, FORCESELECT: 0;
+ LISTBOXENABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderUpButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITEUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderUpButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXENABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderDownButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITEDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderDownButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXENABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 255 190 0 0, BORDERCOLOR: 47 55 168 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 0, BORDERCOLOR: 148 112 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITESLIDERDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 0, BORDERCOLOR: 49 55 168 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBENABLEDDRAWDATA = IMAGE: ScrollBarThumbEnabled, COLOR: 255 4 0 0, BORDERCOLOR: 255 243 28 255,
+ IMAGE: ScrollBarThumbHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: ScrollBarThumbDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBHILITEDRAWDATA = IMAGE: ScrollBarThumbHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = COMBOBOX;
+ SCREENRECT = UPPERLEFT: 408 182, BOTTOMRIGHT: 760 206, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:ComboBoxHotkeyFaction";
+ STATUS = ENABLED+IMAGE;
+ STYLE = MOUSETRACK+COMBOBOX;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "ComboBoxEntry";
+ TOOLTIPDELAY = -1;
+ TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 128 128 255 255, HILITEBORDER: 0 0 128 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: NoImage, COLOR: 47 55 168 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,
+ 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: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ListBoxHiliteSelectedItemLeftEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ListBoxHiliteSelectedItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, 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;
+ COMBOBOXDATA = ISEDITABLE: 0, MAXCHARS: 64, MAXDISPLAY: 12, ASCIIONLY: 0, LETTERSANDNUMBERS: 0;
+ COMBOBOXDROPDOWNBUTTONENABLEDDRAWDATA = IMAGE: VSliderDownButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderDownButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ COMBOBOXDROPDOWNBUTTONDISABLEDDRAWDATA = IMAGE: VSliderDownButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ COMBOBOXDROPDOWNBUTTONHILITEDRAWDATA = IMAGE: VSliderDownButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderDownButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ COMBOBOXEDITBOXENABLEDDRAWDATA = IMAGE: TextEntryEnabledLeftEnd, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: TextEntryEnabledRightEnd, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: TextEntryEnabledRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: TextEntryEnabledSmallRepeatingCenter, 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;
+ COMBOBOXEDITBOXDISABLEDDRAWDATA = IMAGE: TextEntryDisabledLeftEnd, COLOR: 128 128 128 255, BORDERCOLOR: 0 0 0 255,
+ IMAGE: TextEntryDisabledRightEnd, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: TextEntryDisabledRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: TextEntryDisabledSmallRepeatingCenter, 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;
+ COMBOBOXEDITBOXHILITEDRAWDATA = IMAGE: TextEntryHiliteLeftEnd, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: TextEntryHiliteRightEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: TextEntryHiliteRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: TextEntryHiliteSmallRepeatingCenter, 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;
+ COMBOBOXLISTBOXENABLEDDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
+ IMAGE: ListBoxHiliteItemLeftEnd, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: ListBoxHiliteItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteItemSmallRepeatingCenter, 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;
+ COMBOBOXLISTBOXDISABLEDDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ COMBOBOXLISTBOXHILITEDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
+ IMAGE: ListBoxHiliteSelectedItemLeftEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ListBoxHiliteSelectedItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, 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;
+ LISTBOXENABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderUpButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITEUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderUpButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXENABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderDownButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITEDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderDownButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXENABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 168 255 12 0, BORDERCOLOR: 47 55 168 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 0, BORDERCOLOR: 148 112 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITESLIDERDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 0, BORDERCOLOR: 49 55 168 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBENABLEDDRAWDATA = IMAGE: ScrollBarThumbEnabled, COLOR: 255 4 0 0, BORDERCOLOR: 255 243 28 255,
+ IMAGE: ScrollBarThumbHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: ScrollBarThumbDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBHILITEDRAWDATA = IMAGE: ScrollBarThumbHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = COMBOBOX;
+ SCREENRECT = UPPERLEFT: 408 214, BOTTOMRIGHT: 760 238, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:ComboBoxHotkeyObject";
+ STATUS = ENABLED+IMAGE;
+ STYLE = MOUSETRACK+COMBOBOX;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "ComboBoxEntry";
+ TOOLTIPDELAY = -1;
+ TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 128 128 255 255, HILITEBORDER: 0 0 128 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: NoImage, COLOR: 47 55 168 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,
+ 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: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ListBoxHiliteSelectedItemLeftEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ListBoxHiliteSelectedItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, 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;
+ COMBOBOXDATA = ISEDITABLE: 0, MAXCHARS: 64, MAXDISPLAY: 12, ASCIIONLY: 0, LETTERSANDNUMBERS: 0;
+ COMBOBOXDROPDOWNBUTTONENABLEDDRAWDATA = IMAGE: VSliderDownButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderDownButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ COMBOBOXDROPDOWNBUTTONDISABLEDDRAWDATA = IMAGE: VSliderDownButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ COMBOBOXDROPDOWNBUTTONHILITEDRAWDATA = IMAGE: VSliderDownButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderDownButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ COMBOBOXEDITBOXENABLEDDRAWDATA = IMAGE: TextEntryEnabledLeftEnd, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: TextEntryEnabledRightEnd, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: TextEntryEnabledRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: TextEntryEnabledSmallRepeatingCenter, 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;
+ COMBOBOXEDITBOXDISABLEDDRAWDATA = IMAGE: TextEntryDisabledLeftEnd, COLOR: 128 128 128 255, BORDERCOLOR: 0 0 0 255,
+ IMAGE: TextEntryDisabledRightEnd, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: TextEntryDisabledRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: TextEntryDisabledSmallRepeatingCenter, 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;
+ COMBOBOXEDITBOXHILITEDRAWDATA = IMAGE: TextEntryHiliteLeftEnd, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: TextEntryHiliteRightEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: TextEntryHiliteRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: TextEntryHiliteSmallRepeatingCenter, 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;
+ COMBOBOXLISTBOXENABLEDDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
+ IMAGE: ListBoxHiliteItemLeftEnd, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: ListBoxHiliteItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteItemSmallRepeatingCenter, 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;
+ COMBOBOXLISTBOXDISABLEDDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ COMBOBOXLISTBOXHILITEDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 255, BORDERCOLOR: 49 55 168 255,
+ IMAGE: ListBoxHiliteSelectedItemLeftEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ListBoxHiliteSelectedItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, 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;
+ LISTBOXENABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderUpButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITEUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderUpButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXENABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderDownButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITEDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderDownButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXENABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 168 255 12 0, BORDERCOLOR: 47 55 168 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 0, BORDERCOLOR: 148 112 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITESLIDERDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 0, BORDERCOLOR: 49 55 168 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBENABLEDDRAWDATA = IMAGE: ScrollBarThumbEnabled, COLOR: 255 4 0 0, BORDERCOLOR: 255 243 28 255,
+ IMAGE: ScrollBarThumbHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: ScrollBarThumbDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBHILITEDRAWDATA = IMAGE: ScrollBarThumbHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = SCROLLLISTBOX;
+ SCREENRECT = UPPERLEFT: 408 246, BOTTOMRIGHT: 760 402, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:ListboxHotkeyButtons";
+ STATUS = ENABLED;
+ STYLE = SCROLLLISTBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "LabelRegular";
+ TOOLTIPDELAY = -1;
+ TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 128 128 255 255, HILITEBORDER: 0 0 128 255;
+ ENABLEDDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 126, BORDERCOLOR: 49 55 168 255,
+ IMAGE: ListBoxHiliteItemLeftEnd, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: ListBoxHiliteItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteItemSmallRepeatingCenter, 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: BlackSquare, COLOR: 0 0 0 126, BORDERCOLOR: 49 55 168 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: BlackSquare, COLOR: 0 0 0 126, BORDERCOLOR: 49 55 168 255,
+ IMAGE: ListBoxHiliteSelectedItemLeftEnd, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ListBoxHiliteSelectedItemRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, 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;
+ LISTBOXDATA = LENGTH: 300, AUTOSCROLL: 0, SCROLLIFATEND: 0, AUTOPURGE: 0, SCROLLBAR: 1, MULTISELECT: 0, COLUMNS: 3, COLUMNSWIDTH: 12, COLUMNSWIDTH: 66, COLUMNSWIDTH: 22, FORCESELECT: 0;
+ LISTBOXENABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderUpButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITEUPBUTTONDRAWDATA = IMAGE: VSliderUpButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderUpButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXENABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonEnabled, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: VSliderDownButtonHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITEDOWNBUTTONDRAWDATA = IMAGE: VSliderDownButtonHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: VSliderDownButtonHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXENABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 255 190 0 0, BORDERCOLOR: 47 55 168 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXDISABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 0, BORDERCOLOR: 148 112 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ LISTBOXHILITESLIDERDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 0, BORDERCOLOR: 49 55 168 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBENABLEDDRAWDATA = IMAGE: ScrollBarThumbEnabled, COLOR: 255 4 0 0, BORDERCOLOR: 255 243 28 255,
+ IMAGE: ScrollBarThumbHiliteSelected, 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: ScrollBarThumbDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ SLIDERTHUMBHILITEDRAWDATA = IMAGE: ScrollBarThumbHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 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,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = STATICTEXT;
+ SCREENRECT = UPPERLEFT: 34 408, BOTTOMRIGHT: 432 462, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:HotkeyNote";
+ STATUS = ENABLED;
+ STYLE = STATICTEXT+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "LabelRegular";
+ TOOLTIPDELAY = -1;
+ TEXTCOLOR = ENABLED: 192 192 192 255, ENABLEDBORDER: 0 0 0 255, DISABLED: 192 192 192 255, DISABLEDBORDER: 0 0 0 255, HILITE: 192 192 192 255, HILITEBORDER: 0 0 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 = PUSHBUTTON;
+ SCREENRECT = UPPERLEFT: 440 412, BOTTOMRIGHT: 544 436, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:ButtonHotkeyChange";
+ STATUS = ENABLED+IMAGE;
+ STYLE = PUSHBUTTON+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "ButtonSmall";
+ TOOLTIPTEXT = "TOOLTIP:HotkeyChange";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:HotkeysChange";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 62 64 92 255, DISABLEDBORDER: 31 32 47 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
+ ENABLEDDRAWDATA = IMAGE: Buttons-Left, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: NoImage, COLOR: 47 55 168 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: Buttons-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Right, 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: Buttons-Disabled-Left, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 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: Buttons-Disabled-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Disabled-Right, 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: Buttons-HiLite-Left, COLOR: 209 253 4 255, BORDERCOLOR: 59 60 52 255,
+ IMAGE: Buttons-Pushed-Left, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Pushed-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Pushed-Right, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-HiLite-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-HiLite-Right, 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 = PUSHBUTTON;
+ SCREENRECT = UPPERLEFT: 548 412, BOTTOMRIGHT: 652 436, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:ButtonHotkeyClear";
+ STATUS = ENABLED+IMAGE;
+ STYLE = PUSHBUTTON+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "ButtonSmall";
+ TOOLTIPTEXT = "TOOLTIP:HotkeyClear";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:HotkeysClear";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 62 64 92 255, DISABLEDBORDER: 31 32 47 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
+ ENABLEDDRAWDATA = IMAGE: Buttons-Left, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: NoImage, COLOR: 47 55 168 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: Buttons-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Right, 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: Buttons-Disabled-Left, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 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: Buttons-Disabled-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Disabled-Right, 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: Buttons-HiLite-Left, COLOR: 209 253 4 255, BORDERCOLOR: 59 60 52 255,
+ IMAGE: Buttons-Pushed-Left, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Pushed-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Pushed-Right, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-HiLite-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-HiLite-Right, 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 = PUSHBUTTON;
+ SCREENRECT = UPPERLEFT: 656 412, BOTTOMRIGHT: 760 436, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:ButtonHotkeyDefault";
+ STATUS = ENABLED+IMAGE;
+ STYLE = PUSHBUTTON+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
+ HEADERTEMPLATE = "ButtonSmall";
+ TOOLTIPTEXT = "TOOLTIP:HotkeyDefault";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:HotkeysDefault";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 62 64 92 255, DISABLEDBORDER: 31 32 47 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
+ ENABLEDDRAWDATA = IMAGE: Buttons-Left, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: NoImage, COLOR: 47 55 168 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: Buttons-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Right, 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: Buttons-Disabled-Left, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 128 128 128 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: Buttons-Disabled-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Disabled-Right, 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: Buttons-HiLite-Left, COLOR: 209 253 4 255, BORDERCOLOR: 59 60 52 255,
+ IMAGE: Buttons-Pushed-Left, COLOR: 47 55 168 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Pushed-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-Pushed-Right, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-HiLite-Middle, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: Buttons-HiLite-Right, 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
+ ENDALLCHILDREN
+ END
ENDALLCHILDREN
END
ENDALLCHILDREN
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/ControlBar.h b/GeneralsMD/Code/GameEngine/Include/GameClient/ControlBar.h
index 4ae3f2136..ce703fc0c 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/ControlBar.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/ControlBar.h
@@ -522,6 +522,8 @@ Int ControlBar_forceAttackSlot( const Int *types, Int count, Bool forceFires );
* plain Chinook lacks CAN_ATTACK). A Speaker Tower is none of them. The launcher's Hotkeys page
* reads KindOf the same way. */
Bool ControlBar_forceFires( const Object *obj );
+/// The same asked of a template, for the options menu's Hotkeys page, which has no object to ask.
+Bool ControlBar_forceFires( const ThingTemplate *thing );
/** The page's keys past attack, hold position and move, which no command set has a button for either. */
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/HotKey.h b/GeneralsMD/Code/GameEngine/Include/GameClient/HotKey.h
index 7c0a6f97e..ebe66b91b 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/HotKey.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/HotKey.h
@@ -53,6 +53,9 @@
//-----------------------------------------------------------------------------
// SYSTEM INCLUDES ////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------
+#include <map>
+#include <string>
+#include <vector>
//-----------------------------------------------------------------------------
// USER INCLUDES //////////////////////////////////////////////////////////////
@@ -117,12 +120,82 @@ public:
* on a bar holding both (addHotKey). Force Attack is 0: it is Ctrl, painted on the
* cameo, never a letter. */
static WideChar playerButtonKey( const AsciiString& button, WideChar labelKey, Int commandType );
+ /// playerButtonKey over `keys` (lower case button name to letter, 0 for none) in place of the file's
+ static WideChar buttonKeyIn( const AsciiString& button, WideChar labelKey, Int commandType,
+ const std::map< std::string, WideChar >& keys );
+ static WideChar fixedKey( const AsciiString& button, Int commandType ); ///< the bar's fixed letter, or 0
+ /** The name Hotkeys.ini gives a button: a mod's own (-modfactions' "M<n>~") or, under a plain
+ * -mod, the last mod's as "<scope>:<button>", retail's as it is; what findPlayerKey looks up. */
+ static std::string fileButtonName( const AsciiString& button );
+
+ /// Hotkeys.ini out of the user data folder: the button letters afresh, its CommandMap blocks over
+ /// the records the MetaMap holds. A block that will not parse ends the file there.
+ static void loadPlayerKeys( void );
+ /// Every key as the engine started with them, from the language's CommandMap.ini and Hotkeys.ini
+ /// again, so a file the options menu has just written counts from the next key press.
+ static void reloadKeys( void );
private:
typedef std::map<AsciiString, HotKey> HotKeyMap;
HotKeyMap m_hotKeyMap;
};
extern HotKeyManager *TheHotKeyManager;
+
+//-----------------------------------------------------------------------------
+/** Hotkeys.ini as the launcher's Hotkeys page writes it (launcher/hotkeys.js, formatOverrides and
+ * parseOverrides), so the options menu's Hotkeys page and the launcher each read what the other
+ * wrote. The player's part comes first; from HOTKEYS_LAUNCHER_PART on are the launcher's own keys,
+ * which the game keeps as they stand except for a block naming a command or a button the player's
+ * part now names, whose later block would otherwise beat the player's choice. */
+//-----------------------------------------------------------------------------
+extern const char HOTKEYS_LAUNCHER_PART[];
+
+struct HotkeyBinding
+{
+ std::string key; ///< a KEY_ name, empty for no key
+ std::string modifiers; ///< a ModifierNames name, NONE for none
+ HotkeyBinding() : modifiers( "NONE" ) {}
+ HotkeyBinding( const std::string& k, const std::string& m ) : key( k ), modifiers( m ) {}
+ bool operator==( const HotkeyBinding& other ) const { return key == other.key && modifiers == other.modifiers; }
+ bool operator!=( const HotkeyBinding& other ) const { return !( *this == other ); }
+};
+
+/** One command a player can bind: the shipped CommandMap.ini's own entry, or one it binds to nothing. */
+struct HotkeyCommandRow
+{
+ std::string id;
+ HotkeyBinding binding; ///< the game's own key
+ std::string usableIn; ///< UseableIn as the file says it
+ std::string category;
+ std::string label; ///< DisplayName, empty for none
+ std::string pair; ///< END_ of a BEGIN_, empty otherwise
+ Bool barOnly; ///< Force Attack's hold, set on the command bar page only
+ Bool launcherDefault; ///< a key the launcher gives a command the game leaves unbound
+};
+
+struct HotkeysFile
+{
+ std::map< std::string, std::string > buttons; ///< button name to its letter, "" for none
+ std::map< std::string, HotkeyBinding > commands; ///< command to its key, key "" for none
+ std::string launcherPart; ///< what followed HOTKEYS_LAUNCHER_PART, verbatim; empty when the file had none
+};
+
+/** The rows of the shipped Data\<language>\CommandMap.ini text, then the commands it leaves unbound
+ * and Force Attack's hold (loadCommands in hotkeys.js). */
+std::vector< HotkeyCommandRow > Hotkeys_commandRows( const std::string& commandMapText );
+/** The player's part of a Hotkeys.ini text, and the launcher's part as it stands (parseOverrides). */
+HotkeysFile Hotkeys_parse( const std::string& text, const std::vector< HotkeyCommandRow >& rows );
+/** The file for these keys, byte for byte what the launcher writes for the same player part. */
+std::string Hotkeys_format( const HotkeysFile& file, const std::vector< HotkeyCommandRow >& rows );
+/** The launcher's part's own blocks, by name to its Key line (CommandMap) or letter (CommandButtonHotKey). */
+void Hotkeys_launcherKeys( const std::string& launcherPart, std::map< std::string, HotkeyBinding > *commands,
+ std::map< std::string, std::string > *buttons );
+/** Whether a KEY_ name is one the launcher reads (hotkeys.js, KEY_NAMES). */
+Bool Hotkeys_isKeyName( const std::string& key );
+/** English words for a binding, the launcher's chordText: "Ctrl + F", "Alt", "Num 4"; empty for none. */
+std::string Hotkeys_chordText( const HotkeyBinding& binding );
+/** The launcher's name order (String.localeCompare), for the blocks of one kind. */
+bool Hotkeys_nameLess( const std::string& left, const std::string& right );
//-----------------------------------------------------------------------------
// INLINING ///////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h b/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
index 768c69697..3fa201874 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
@@ -382,6 +382,8 @@ public:
void update() { }
static void parseMetaMap(INI* ini);
+ void clear(); ///< every record gone, for CommandMap.ini and Hotkeys.ini to be read again
+
const MetaMapRec *getFirstMetaMapRec() const { return m_metaMaps; }
};
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
index 5e8bfd33f..ab9332187 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
@@ -110,6 +110,7 @@
#include "GameClient/Display.h"
#include "GameClient/FXList.h"
#include "GameClient/GameClient.h"
+#include "GameClient/HotKey.h"
#include "GameClient/Keyboard.h"
#include "GameClient/Shell.h"
#include "GameClient/GameText.h"
@@ -1280,23 +1281,9 @@ void GameEngine::init( int argc, char *argv[] )
// CommandMap blocks laid over the ones above, and CommandButtonHotKey blocks for the command
// bar. Client only and never in the INI CRC, so a key here changes nothing for anyone else in
// a match. The file is the player's to edit by hand, and a broken one costs the keys from the
- // broken block on, not the start.
- {
- AsciiString hotkeys = TheGlobalData->getPath_UserData();
- hotkeys.concat( "Hotkeys.ini" );
- if( TheFileSystem->doesFileExist( hotkeys.str() ) )
- {
- try
- {
- ini.load( hotkeys, INI_LOAD_MULTIFILE, NULL );
- DEBUG_LOG(( "HOTKEYS: read %s\n", hotkeys.str() ));
- }
- catch( ... )
- {
- DEBUG_LOG(( "HOTKEYS: %s stopped at a block it could not read; the keys before it stand\n", hotkeys.str() ));
- }
- }
- }
+ // broken block on, not the start. The options menu's Hotkeys page writes it too and reads it
+ // again through HotKeyManager::reloadKeys.
+ HotKeyManager::loadPlayerKeys();
initSubsystem(TheActionManager,"TheActionManager", MSGNEW("GameEngineSubsystem") ActionManager(), NULL);
//initSubsystem((CComObject<WebBrowser> *)TheWebBrowser,"(CComObject<WebBrowser> *)TheWebBrowser", (CComObject<WebBrowser> *)createWebBrowser(), NULL);
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp
index ee1b8d5d2..cdbccaa4c 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp
@@ -440,6 +440,15 @@ Bool ControlBar_forceFires( const Object *obj )
return obj->isKindOf( KINDOF_TRANSPORT ) && obj->isKindOf( KINDOF_CAN_ATTACK );
}
+//-------------------------------------------------------------------------------------------------
+Bool ControlBar_forceFires( const ThingTemplate *thing )
+{
+ if( thing->isKindOf( KINDOF_FS_BASE_DEFENSE ) )
+ return thing->isKindOf( KINDOF_CAN_ATTACK ) || thing->isKindOf( KINDOF_SPAWNS_ARE_THE_WEAPONS )
+ || thing->isKindOf( KINDOF_GARRISONABLE_UNTIL_DESTROYED );
+ return thing->isKindOf( KINDOF_TRANSPORT ) && thing->isKindOf( KINDOF_CAN_ATTACK );
+}
+
//-------------------------------------------------------------------------------------------------
void ControlBar_orderKeyPlaces( const Int *places, Int count, Bool fights, Int *keys )
{
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp
index c5da00037..0129b74c9 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp
@@ -245,7 +245,7 @@ WindowLayout *OptionsLayout = NULL;
// this is the two arrays that name them and the one function that decides which one you are
// looking at. Shell::optionsLayoutFile names the file, OptionsMenuClassic.wnd.
//-------------------------------------------------------------------------------------------------
-enum { OPTIONS_PAGE_COUNT = 7 };
+enum { OPTIONS_PAGE_COUNT = 8 };
static const char *TheOptionsPageNames[ OPTIONS_PAGE_COUNT ] =
{
@@ -256,6 +256,7 @@ static const char *TheOptionsPageNames[ OPTIONS_PAGE_COUNT ] =
"OptionsMenu.wnd:PageControls",
"OptionsMenu.wnd:PageInterface",
"OptionsMenu.wnd:PageNetwork",
+ "OptionsMenu.wnd:PageHotkeys",
};
static const char *TheOptionsTabNames[ OPTIONS_PAGE_COUNT ] =
@@ -267,6 +268,7 @@ static const char *TheOptionsTabNames[ OPTIONS_PAGE_COUNT ] =
"OptionsMenu.wnd:TabControls",
"OptionsMenu.wnd:TabInterface",
"OptionsMenu.wnd:TabNetwork",
+ "OptionsMenu.wnd:TabHotkeys",
};
static GameWindow * optionsPage[ OPTIONS_PAGE_COUNT ] = { NULL };
@@ -274,9 +276,16 @@ static GameWindow * optionsTab[ OPTIONS_PAGE_COUNT ] = { NULL };
static NameKeyType optionsTabID[ OPTIONS_PAGE_COUNT ] =
{
NAMEKEY_INVALID, NAMEKEY_INVALID, NAMEKEY_INVALID, NAMEKEY_INVALID, NAMEKEY_INVALID, NAMEKEY_INVALID,
- NAMEKEY_INVALID
+ NAMEKEY_INVALID, NAMEKEY_INVALID
};
+// The Hotkeys page, OptionsMenuHotkeys.cpp. Its keys are written on Accept like the rest.
+void OptionsHotkeysInit( void );
+Bool OptionsHotkeysSystem( UnsignedInt msg, GameWindow *control, WindowMsgData row );
+Bool OptionsHotkeysKey( UnsignedByte key, Int state );
+void OptionsHotkeysSave( void );
+void OptionsHotkeysClose( void );
+
//-------------------------------------------------------------------------------------------------
/** Show one page and hide the rest.
*
@@ -2670,6 +2679,7 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
fillCatalogWidgets();
updateSliderReadouts();
updateDetailNote();
+ OptionsHotkeysInit();
showOptionsPage( 0 );
// show menu
@@ -2769,6 +2779,10 @@ WindowMsgHandledType OptionsMenuInput( GameWindow *window, UnsignedInt msg,
UnsignedByte key = mData1;
UnsignedByte state = mData2;
+ // the Hotkeys page waiting for a key takes every key, Esc included
+ if( OptionsHotkeysKey( key, (Int)mData2 ) )
+ return MSG_HANDLED;
+
switch( key )
{
@@ -2860,7 +2874,9 @@ WindowMsgHandledType OptionsMenuSystem( GameWindow *window, UnsignedInt msg,
break;
GameWindow *control = (GameWindow *)mData1;
Int controlID = control->winGetWindowId();
-
+ if( OptionsHotkeysSystem( msg, control, mData2 ) )
+ break;
+
if (controlID == comboBoxDetailID)
{
Int index = CUSTOMDETAIL;
@@ -2889,6 +2905,15 @@ WindowMsgHandledType OptionsMenuSystem( GameWindow *window, UnsignedInt msg,
break;
}
+ //---------------------------------------------------------------------------------------------
+ case GLM_SELECTED:
+ case GLM_DOUBLE_CLICKED:
+ {
+ if( ignoreSelected || !OptionsHotkeysSystem( msg, (GameWindow *)mData1, mData2 ) )
+ return MSG_IGNORED;
+ break;
+ }
+
//---------------------------------------------------------------------------------------------
case GSM_SLIDER_TRACK:
case GSM_SLIDER_DONE:
@@ -2916,9 +2941,12 @@ WindowMsgHandledType OptionsMenuSystem( GameWindow *window, UnsignedInt msg,
showOptionsPage( page );
return MSG_HANDLED;
}
+ if( OptionsHotkeysSystem( msg, control, mData2 ) )
+ return MSG_HANDLED;
if( controlID == buttonBack )
{
+ OptionsHotkeysClose();
// go back one screen
//TheShell->pop();
if (pref)
@@ -2941,6 +2969,8 @@ WindowMsgHandledType OptionsMenuSystem( GameWindow *window, UnsignedInt msg,
else if (controlID == buttonAccept )
{
saveOptions();
+ // Hotkeys.ini, and every key read again from it
+ OptionsHotkeysSave();
// the command bar rebuilds its grid letters on its next update
if( TheControlBar )
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenuHotkeys.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenuHotkeys.cpp
new file mode 100644
index 000000000..c6192b07b
--- /dev/null
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenuHotkeys.cpp
@@ -0,0 +1,846 @@
+/*
+** Command & Conquer Generals Zero Hour(tm)
+** Copyright 2025 Electronic Arts Inc.
+**
+** This program is free software: you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation, either version 3 of the License, or
+** (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+// Modified 2026 by Olcay Seygan for Zero Hour Reforged; see the git history.
+
+// OptionsMenuHotkeys.cpp
+//
+// The options menu's Hotkeys page: what the launcher's Hotkeys page does, inside the game. Every
+// command on the left with its chord, and on the right the command bar of one building or unit,
+// picked by general and object, with each button's letter. A double click, Enter or Change waits for
+// the key; Esc lets go. Nothing is written until Accept, which writes Hotkeys.ini in the user data
+// folder in the launcher's own format (Hotkeys_format in HotKey.cpp) and reads every key again, so a
+// key changed from Esc > Options in a match counts from the next press. The bars are found the way
+// the launcher finds them (hotkeys.js, loadHotbars): from each playable general's starting building
+// and unit through every build button, in the engine's own templates instead of the INI text.
+
+#include "PreRTS.h" // This must go first in EVERY cpp file in the GameEngine
+
+#include "Common/FileSystem.h"
+#include "Common/File.h"
+#include "Common/GlobalData.h"
+#include "Common/PlayerTemplate.h"
+#include "Common/Registry.h"
+#include "Common/ThingFactory.h"
+#include "Common/ThingTemplate.h"
+#include "GameClient/ControlBar.h"
+#include "GameClient/GadgetComboBox.h"
+#include "GameClient/GadgetListBox.h"
+#include "GameClient/GadgetPushButton.h"
+#include "GameClient/GadgetStaticText.h"
+#include "GameClient/GameText.h"
+#include "GameClient/GameWindowManager.h"
+#include "GameClient/HotKey.h"
+#include "GameClient/KeyDefs.h"
+#include "GameClient/MetaEvent.h"
+
+namespace
+{
+
+enum { BAR_SLOTS = 14 }; ///< ControlBar.wnd's ButtonCommand01 to 14; 15 to 18 are for scripts
+
+struct BarObject
+{
+ UnicodeString name;
+ Bool building;
+ const CommandButton *slots[ BAR_SLOTS ];
+};
+
+struct BarFaction
+{
+ UnicodeString name;
+ std::vector< BarObject > objects;
+};
+
+enum CaptureKind { CAPTURE_NONE, CAPTURE_COMMAND, CAPTURE_BUTTON };
+
+typedef std::basic_string< WideChar > KeyText; ///< a key as the page shows it, for a map
+
+const Color TEXT_COLOR = GameMakeColor( 254, 254, 254, 255 );
+const Color HEADING_COLOR = GameMakeColor( 186, 255, 12, 255 );
+const Color CHANGED_COLOR = GameMakeColor( 255, 214, 92, 255 );
+const Color CLASH_COLOR = GameMakeColor( 255, 104, 72, 255 );
+const Color QUIET_COLOR = GameMakeColor( 150, 150, 150, 255 );
+const WideChar WAITING[] = u"..."; ///< the key cell while a key is awaited; the note under the lists says what to press
+
+GameWindow *s_parent = NULL;
+GameWindow *s_commandList = NULL;
+GameWindow *s_factionCombo = NULL;
+GameWindow *s_objectCombo = NULL;
+GameWindow *s_buttonList = NULL;
+GameWindow *s_note = NULL;
+GameWindow *s_change = NULL;
+GameWindow *s_clear = NULL;
+GameWindow *s_default = NULL;
+
+std::vector< HotkeyCommandRow > s_rows;
+HotkeysFile s_file;
+std::string s_fileText; ///< Hotkeys.ini as the page opened, to write only what changed
+std::map< std::string, HotkeyBinding > s_launcherCommands;
+std::map< std::string, std::string > s_launcherButtons;
+std::vector< BarFaction > s_factions;
+
+Int s_active = 0; ///< the list touched last: 0 the commands, 1 the bar
+Int s_commandRow = -1; ///< index into s_rows
+const CommandButton *s_button = NULL;
+CaptureKind s_capture = CAPTURE_NONE;
+std::string s_holdCandidate; ///< Force Attack's hold: Ctrl or Alt pressed alone so far
+Bool s_filling = FALSE;
+
+UnicodeString wide( const std::string& text )
+{
+ UnicodeString out;
+ out.translate( AsciiString( text.c_str() ) );
+ return out;
+}
+
+std::string readText( const char *path )
+{
+ File *file = TheFileSystem->openFile( path, File::READ | File::BINARY );
+ if( file == NULL )
+ return std::string();
+ const Int size = file->size();
+ char *contents = file->readEntireAndClose();
+ std::string text( contents, size );
+ delete [] contents;
+ return text;
+}
+
+AsciiString hotkeysPath( void )
+{
+ AsciiString path = TheGlobalData->getPath_UserData();
+ path.concat( "Hotkeys.ini" );
+ return path;
+}
+
+const HotkeyCommandRow *forceAttackRow( void )
+{
+ for( size_t each = 0; each < s_rows.size(); each++ )
+ if( s_rows[ each ].id == "BEGIN_FORCEATTACK" )
+ return &s_rows[ each ];
+ return NULL;
+}
+
+/// What a command answers to in a match with the keys on the page: the player's, else the launcher's
+/// part of the file, else the game's own. The launcher's own defaults reach the game only from its part.
+HotkeyBinding bindingOf( const HotkeyCommandRow& row )
+{
+ std::map< std::string, HotkeyBinding >::const_iterator mine = s_file.commands.find( row.id );
+ if( mine != s_file.commands.end() )
+ return mine->second;
+ std::map< std::string, HotkeyBinding >::const_iterator launcher = s_launcherCommands.find( row.id );
+ if( launcher != s_launcherCommands.end() )
+ return launcher->second;
+ return row.launcherDefault ? HotkeyBinding() : row.binding;
+}
+
+/// One letter as text, upper case; empty for 0.
+UnicodeString letterText( WideChar letter )
+{
+ if( letter >= u'a' && letter <= u'z' )
+ letter -= u'a' - u'A';
+ const WideChar one[ 2 ] = { letter, 0 };
+ return letter != 0 ? UnicodeString( one ) : UnicodeString();
+}
+
+UnicodeString chordOf( const HotkeyBinding& binding )
+{
+ const std::string text = Hotkeys_chordText( binding );
+ return text.empty() ? TheGameText->fetch( "GUI:HotkeysNone" ) : wide( text );
+}
+
+UnicodeString commandName( const HotkeyCommandRow& row )
+{
+ static const struct { const char *prefix; const char *label; } FAMILIES[] =
+ {
+ { "SAVE_VIEW", "GUI:HotkeysFamilySaveView" }, { "VIEW_VIEW", "GUI:HotkeysFamilyViewView" },
+ { "ADD_TEAM", "GUI:HotkeysFamilyAddTeam" }, { "SHORTCUT_SLOT", "GUI:HotkeysFamilyShortcut" },
+ { "COMMAND_SLOT", "GUI:HotkeysFamilySlot" },
+ };
+ for( size_t each = 0; each < sizeof( FAMILIES ) / sizeof( FAMILIES[ 0 ] ); each++ )
+ {
+ const size_t length = strlen( FAMILIES[ each ].prefix );
+ if( row.id.compare( 0, length, FAMILIES[ each ].prefix ) == 0 && row.id.size() > length && isdigit( (unsigned char)row.id[ length ] ) )
+ {
+ UnicodeString name;
+ name.format( TheGameText->fetch( FAMILIES[ each ].label ), atoi( row.id.c_str() + length ) );
+ return name;
+ }
+ }
+ // a command the game's text has no name for has one of the fork's
+ AsciiString own;
+ own.format( "GUI:HotkeysCommand%s", row.id.c_str() );
+ Bool exists = FALSE;
+ const UnicodeString named = TheGameText->fetch( own, &exists );
+ if( exists )
+ return named;
+ if( !row.label.empty() )
+ return TheGameText->fetch( row.label.c_str() );
+ return wide( row.id );
+}
+
+const char *categoryOf( const HotkeyCommandRow& row )
+{
+ // the beacon keys sit with the smoke signals, both being what a player shows allies
+ if( row.id.size() > 7 && row.id.compare( row.id.size() - 7, 7, "_BEACON" ) == 0 )
+ return "INFORMATION";
+ return row.category.c_str();
+}
+
+/// The bar's letters on the page: the launcher's moves, then the player's own over them, by lower case name.
+std::map< std::string, WideChar > buttonKeys( void )
+{
+ std::map< std::string, WideChar > keys;
+ for( int pass = 0; pass < 2; pass++ )
+ {
+ const std::map< std::string, std::string >& from = pass == 0 ? s_launcherButtons : s_file.buttons;
+ for( std::map< std::string, std::string >::const_iterator it = from.begin(); it != from.end(); ++it )
+ {
+ AsciiString name( it->first.c_str() );
+ name.toLower();
+ keys[ name.str() ] = it->second.empty() ? 0 : (WideChar)it->second[ 0 ];
+ }
+ }
+ return keys;
+}
+
+/// A button's key on a bar as text: Force Attack's chord, else its letter; empty for none.
+UnicodeString buttonKeyText( const CommandButton *button, const std::map< std::string, WideChar >& keys )
+{
+ if( button->getCommandType() == GUI_COMMAND_FORCE_ATTACK )
+ return wide( Hotkeys_chordText( bindingOf( *forceAttackRow() ) ) );
+ const WideChar letter = HotKeyManager::buttonKeyIn( button->getName(),
+ TheGameText->fetchEnglishHotKey( button->getTextLabel() ), button->getCommandType(), keys );
+ return letterText( letter );
+}
+
+UnicodeString buttonName( const CommandButton *button )
+{
+ UnicodeString text = TheGameText->fetch( button->getTextLabel() );
+ UnicodeString out;
+ for( const WideChar *at = text.str(); *at; at++ )
+ if( *at != u'&' )
+ {
+ const WideChar one[ 2 ] = { *at, 0 };
+ out.concat( one );
+ }
+ return out.isEmpty() ? wide( button->getName().str() ) : out;
+}
+
+/// A text a player should read: not EA's "<<ANGRY M0B>>" placeholders, not a label the text lacks.
+Bool shownText( const UnicodeString& text )
+{
+ static const WideChar MISSING[] = u"MISSING";
+ if( text.isEmpty() || text.getCharAt( 0 ) == u'<' )
+ return FALSE;
+ for( Int at = 0; MISSING[ at ]; at++ )
+ if( at >= text.getLength() || text.getCharAt( at ) != MISSING[ at ] )
+ return TRUE;
+ return FALSE;
+}
+
+/// Every playable general with each building and unit its first building and worker lead to.
+void findBars( void )
+{
+ s_factions.clear();
+ const CommandButton *force = TheControlBar->findCommandButton( AsciiString( "Command_ForceAttack" ) );
+ for( Int index = 0; index < ThePlayerTemplateStore->getPlayerTemplateCount(); index++ )
+ {
+ const PlayerTemplate *side = ThePlayerTemplateStore->getNthPlayerTemplate( index );
+ if( !side->isPlayableSide() || side->isObserver() )
+ continue;
+ BarFaction faction;
+ faction.name = side->getDisplayName();
+ std::vector< AsciiString > queue;
+ queue.push_back( side->getStartingBuilding() );
+ queue.push_back( side->getStartingUnit( 0 ) );
+ std::map< std::string, Bool > seen;
+ std::map< std::string, UnicodeString > builtBy;
+ for( size_t at = 0; at < queue.size(); at++ )
+ {
+ if( queue[ at ].isEmpty() || seen.count( queue[ at ].str() ) )
+ continue;
+ seen[ queue[ at ].str() ] = TRUE;
+ const ThingTemplate *thing = TheThingFactory->findTemplate( queue[ at ], FALSE );
+ const CommandSet *set = thing ? TheControlBar->findCommandSet( thing->friend_getCommandSetString() ) : NULL;
+ if( set == NULL )
+ continue;
+ const CommandButton *slots[ MAX_COMMANDS_PER_SET ];
+ Int types[ MAX_COMMANDS_PER_SET ];
+ for( Int slot = 0; slot < MAX_COMMANDS_PER_SET; slot++ )
+ {
+ const CommandButton *button = set->getCommandButton( slot );
+ slots[ slot ] = ( button && !BitTest( button->getOptions(), SCRIPT_ONLY ) ) ? button : NULL;
+ types[ slot ] = slots[ slot ] ? slots[ slot ]->getCommandType() : GUI_COMMAND_NONE;
+ }
+ const Int forceSlot = ControlBar_forceAttackSlot( types, MAX_COMMANDS_PER_SET, ControlBar_forceFires( thing ) );
+ if( forceSlot >= 0 && force )
+ slots[ forceSlot ] = force;
+ BarObject object;
+ object.building = thing->isKindOf( KINDOF_STRUCTURE );
+ Bool any = FALSE;
+ for( Int slot = 0; slot < BAR_SLOTS; slot++ )
+ {
+ // a button with no picture is a leftover no player sees, and what only it builds is not reached
+ object.slots[ slot ] = ( slots[ slot ] && slots[ slot ]->getButtonImage() ) ? slots[ slot ] : NULL;
+ const CommandButton *button = object.slots[ slot ];
+ if( button == NULL )
+ continue;
+ any = TRUE;
+ const GUICommandType type = button->getCommandType();
+ const ThingTemplate *built = button->getThingTemplate();
+ if( ( type == GUI_COMMAND_UNIT_BUILD || type == GUI_COMMAND_DOZER_CONSTRUCT ) && built )
+ {
+ queue.push_back( built->getName() );
+ if( !builtBy.count( built->getName().str() ) )
+ builtBy[ built->getName().str() ] = buttonName( button );
+ }
+ }
+ if( !any )
+ continue;
+ object.name = thing->getDisplayName();
+ if( !shownText( object.name ) )
+ object.name = builtBy.count( queue[ at ].str() ) ? builtBy[ queue[ at ].str() ] : wide( queue[ at ].str() );
+ faction.objects.push_back( object );
+ }
+ if( !faction.objects.empty() )
+ s_factions.push_back( faction );
+ }
+}
+
+const BarObject *selectedObject( void )
+{
+ Int faction = -1, object = -1;
+ GadgetComboBoxGetSelectedPos( s_factionCombo, &faction );
+ GadgetComboBoxGetSelectedPos( s_objectCombo, &object );
+ if( faction < 0 || faction >= (Int)s_factions.size() || object < 0 )
+ return NULL;
+ const Int index = (Int)(intptr_t)GadgetComboBoxGetItemData( s_objectCombo, object );
+ return &s_factions[ faction ].objects[ index ];
+}
+
+/// Letters two or more buttons of the open bar share, each with those buttons' names.
+std::map< KeyText, std::vector< UnicodeString > > barClashes( const BarObject *object )
+{
+ std::map< KeyText, std::vector< UnicodeString > > byKey, clashes;
+ if( object == NULL )
+ return clashes;
+ const std::map< std::string, WideChar > keys = buttonKeys();
+ for( Int slot = 0; slot < BAR_SLOTS; slot++ )
+ if( object->slots[ slot ] )
+ {
+ const UnicodeString key = buttonKeyText( object->slots[ slot ], keys );
+ if( !key.isEmpty() )
+ byKey[ key.str() ].push_back( buttonName( object->slots[ slot ] ) );
+ }
+ for( std::map< KeyText, std::vector< UnicodeString > >::const_iterator it = byKey.begin(); it != byKey.end(); ++it )
+ if( it->second.size() > 1 )
+ clashes[ it->first ] = it->second;
+ return clashes;
+}
+
+/// The commands holding the same chord as row, by name.
+std::vector< UnicodeString > sameChord( const HotkeyCommandRow& row )
+{
+ std::vector< UnicodeString > others;
+ const HotkeyBinding binding = bindingOf( row );
+ if( binding.key.empty() )
+ return others;
+ for( size_t each = 0; each < s_rows.size(); each++ )
+ if( !s_rows[ each ].barOnly && s_rows[ each ].id != row.id && bindingOf( s_rows[ each ] ) == binding )
+ others.push_back( commandName( s_rows[ each ] ) );
+ return others;
+}
+
+/// A bare letter one of the bar's fixed orders owns (stop on S excepted, being the same order).
+Bool onFixedKey( const HotkeyCommandRow& row, const HotkeyBinding& binding )
+{
+ static const char FIXED[] = "ASGYVNCH";
+ return binding.modifiers == "NONE" && binding.key.size() == 5 && binding.key.compare( 0, 4, "KEY_" ) == 0
+ && strchr( FIXED, binding.key[ 4 ] ) != NULL && !( row.id == "STOP" && binding.key == "KEY_S" );
+}
+
+UnicodeString joined( const std::vector< UnicodeString >& names )
+{
+ UnicodeString out;
+ for( size_t each = 0; each < names.size(); each++ )
+ {
+ if( each > 0 )
+ out.concat( u", " );
+ out.concat( names[ each ] );
+ }
+ return out;
+}
+
+void fillCommands( void )
+{
+ s_filling = TRUE;
+ const Int top = GadgetListBoxGetTopVisibleEntry( s_commandList );
+ GadgetListBoxReset( s_commandList );
+ static const char *const ORDER[] = { "SELECTION", "TEAM", "INFORMATION", "CONTROL", "INTERFACE", "SHORTCUTS", "GRID", "MISC" };
+ Int selectedRow = -1;
+ for( size_t category = 0; category < sizeof( ORDER ) / sizeof( ORDER[ 0 ] ); category++ )
+ {
+ Bool headed = FALSE;
+ for( size_t each = 0; each < s_rows.size(); each++ )
+ {
+ const HotkeyCommandRow& row = s_rows[ each ];
+ const char *own = categoryOf( row );
+ Bool known = FALSE;
+ for( size_t other = 0; other < sizeof( ORDER ) / sizeof( ORDER[ 0 ] ); other++ )
+ known = known || strcmp( own, ORDER[ other ] ) == 0;
+ if( row.barOnly || strcmp( known ? own : "MISC", ORDER[ category ] ) != 0 )
+ continue;
+ if( !headed )
+ {
+ AsciiString label;
+ label.format( "GUI:HotkeysCategory%s", ORDER[ category ] );
+ const Int heading = GadgetListBoxAddEntryText( s_commandList, TheGameText->fetch( label ), HEADING_COLOR, -1, 0 );
+ GadgetListBoxSetItemData( s_commandList, (void *)0, heading, 0 );
+ headed = TRUE;
+ }
+ const HotkeyBinding binding = bindingOf( row );
+ const Bool waiting = s_capture == CAPTURE_COMMAND && (Int)each == s_commandRow;
+ const Bool changed = s_file.commands.count( row.id ) != 0;
+ const Bool clash = !sameChord( row ).empty() || ( changed && onFixedKey( row, binding ) );
+ const Int at = GadgetListBoxAddEntryText( s_commandList, commandName( row ), changed ? CHANGED_COLOR : TEXT_COLOR, -1, 0 );
+ GadgetListBoxAddEntryText( s_commandList, waiting ? UnicodeString( WAITING ) : chordOf( binding ),
+ waiting ? HEADING_COLOR : clash ? CLASH_COLOR : binding.key.empty() && binding.modifiers == "NONE" ? QUIET_COLOR : TEXT_COLOR, at, 1 );
+ GadgetListBoxSetItemData( s_commandList, (void *)(intptr_t)( each + 1 ), at, 0 );
+ if( (Int)each == s_commandRow )
+ selectedRow = at;
+ }
+ }
+ if( selectedRow >= 0 )
+ GadgetListBoxSetSelected( s_commandList, selectedRow );
+ GadgetListBoxSetTopVisibleEntry( s_commandList, top );
+ s_filling = FALSE;
+}
+
+void fillButtons( void )
+{
+ s_filling = TRUE;
+ GadgetListBoxReset( s_buttonList );
+ const BarObject *object = selectedObject();
+ if( object == NULL )
+ {
+ s_filling = FALSE;
+ return;
+ }
+ const std::map< std::string, WideChar > keys = buttonKeys();
+ const std::map< KeyText, std::vector< UnicodeString > > clashes = barClashes( object );
+ // a cameo is 61 by 48 on the bar; a third of that keeps fourteen rows to a short scroll
+ const Int height = 22;
+ Int selectedRow = -1;
+ // the bar's own order: two rows of seven read down each column, 1 over 2
+ for( Int slot = 0; slot < BAR_SLOTS; slot++ )
+ {
+ const CommandButton *button = object->slots[ slot ];
+ if( button == NULL )
+ continue;
+ const UnicodeString key = buttonKeyText( button, keys );
+ const Bool waiting = s_capture == CAPTURE_BUTTON && button == s_button;
+ const Bool changed = button->getCommandType() == GUI_COMMAND_FORCE_ATTACK
+ ? s_file.commands.count( "BEGIN_FORCEATTACK" ) != 0
+ : s_file.buttons.count( HotKeyManager::fileButtonName( button->getName() ) ) != 0;
+ const Int at = GadgetListBoxAddEntryImage( s_buttonList, button->getButtonImage(), -1, 0, height, height * 61 / 48 );
+ GadgetListBoxAddEntryText( s_buttonList, buttonName( button ), changed ? CHANGED_COLOR : TEXT_COLOR, at, 1 );
+ GadgetListBoxAddEntryText( s_buttonList,
+ waiting ? UnicodeString( WAITING ) : key.isEmpty() ? TheGameText->fetch( "GUI:HotkeysNone" ) : key,
+ waiting ? HEADING_COLOR : clashes.count( key.str() ) ? CLASH_COLOR : key.isEmpty() ? QUIET_COLOR : TEXT_COLOR, at, 2 );
+ GadgetListBoxSetItemData( s_buttonList, const_cast< CommandButton * >( button ), at, 0 );
+ if( button == s_button )
+ selectedRow = at;
+ }
+ if( selectedRow >= 0 )
+ GadgetListBoxSetSelected( s_buttonList, selectedRow );
+ s_filling = FALSE;
+}
+
+void fillObjects( void )
+{
+ s_filling = TRUE;
+ GadgetComboBoxReset( s_objectCombo );
+ Int faction = -1;
+ GadgetComboBoxGetSelectedPos( s_factionCombo, &faction );
+ if( faction >= 0 && faction < (Int)s_factions.size() )
+ {
+ // buildings first, then what they build, each in the order the general reaches them
+ const std::vector< BarObject >& objects = s_factions[ faction ].objects;
+ for( Int pass = 0; pass < 2; pass++ )
+ for( size_t each = 0; each < objects.size(); each++ )
+ if( objects[ each ].building == ( pass == 0 ) )
+ {
+ const Int at = GadgetComboBoxAddEntry( s_objectCombo, objects[ each ].name, TEXT_COLOR );
+ GadgetComboBoxSetItemData( s_objectCombo, at, (void *)(intptr_t)each );
+ }
+ GadgetComboBoxSetSelectedPos( s_objectCombo, 0 );
+ }
+ s_filling = FALSE;
+ s_button = NULL;
+ fillButtons();
+}
+
+/// The line under the lists: what is being waited for, or what the selection's key is and what it clashes with.
+void updateNote( void )
+{
+ UnicodeString note;
+ const BarObject *object = selectedObject();
+ Bool canChange = FALSE, changed = FALSE;
+ if( s_active == 0 && s_commandRow >= 0 )
+ {
+ const HotkeyCommandRow& row = s_rows[ s_commandRow ];
+ const HotkeyBinding binding = bindingOf( row );
+ changed = s_file.commands.count( row.id ) != 0;
+ canChange = TRUE;
+ if( s_capture == CAPTURE_COMMAND )
+ note = TheGameText->fetch( "GUI:HotkeysPressKey" );
+ else
+ {
+ note.format( u"%s: %s.", commandName( row ).str(), chordOf( binding ).str() );
+ const std::vector< UnicodeString > others = sameChord( row );
+ UnicodeString line;
+ if( !others.empty() )
+ {
+ line.format( TheGameText->fetch( "GUI:HotkeysAlsoOn" ), joined( others ).str() );
+ note.concat( u" " );
+ note.concat( line );
+ }
+ if( changed && onFixedKey( row, binding ) )
+ {
+ note.concat( u" " );
+ note.concat( TheGameText->fetch( "GUI:HotkeysOnFixedKey" ) );
+ }
+ if( !changed && s_launcherCommands.count( row.id ) && !row.launcherDefault )
+ {
+ line.format( TheGameText->fetch( "GUI:HotkeysMoved" ), chordOf( row.binding ).str() );
+ note.concat( u" " );
+ note.concat( line );
+ }
+ }
+ }
+ else if( s_active == 1 && s_button )
+ {
+ const Bool force = s_button->getCommandType() == GUI_COMMAND_FORCE_ATTACK;
+ const Bool fixed = !force && HotKeyManager::fixedKey( s_button->getName(), s_button->getCommandType() ) != 0;
+ const std::string name = HotKeyManager::fileButtonName( s_button->getName() );
+ changed = force ? s_file.commands.count( "BEGIN_FORCEATTACK" ) != 0 : s_file.buttons.count( name ) != 0;
+ canChange = !fixed;
+ if( s_capture == CAPTURE_BUTTON )
+ note = TheGameText->fetch( force ? "GUI:HotkeysPressForceAttack" : "GUI:HotkeysPressLetter" );
+ else if( fixed )
+ note = TheGameText->fetch( "GUI:HotkeysFixed" );
+ else if( force )
+ note = TheGameText->fetch( "GUI:HotkeysForceAttack" );
+ else if( changed )
+ {
+ const UnicodeString key = letterText( TheGameText->fetchEnglishHotKey( s_button->getTextLabel() ) );
+ note.format( TheGameText->fetch( "GUI:HotkeysGameKey" ), key.isEmpty() ? TheGameText->fetch( "GUI:HotkeysNone" ).str() : key.str() );
+ }
+ else if( s_launcherButtons.count( name ) )
+ note = TheGameText->fetch( "GUI:HotkeysButtonMoved" );
+ }
+ else
+ note = TheGameText->fetch( "GUI:HotkeysPick" );
+
+ // a clash on the open bar is said whatever is selected, as the launcher says it under the bar
+ if( s_capture == CAPTURE_NONE )
+ {
+ const std::map< KeyText, std::vector< UnicodeString > > clashes = barClashes( object );
+ for( std::map< KeyText, std::vector< UnicodeString > >::const_iterator it = clashes.begin(); it != clashes.end(); ++it )
+ {
+ UnicodeString line;
+ line.format( TheGameText->fetch( "GUI:HotkeysClash" ), it->first.c_str(), joined( it->second ).str() );
+ if( !note.isEmpty() )
+ note.concat( u" " );
+ note.concat( line );
+ }
+ }
+ GadgetStaticTextSetText( s_note, note );
+ s_change->winEnable( canChange );
+ s_clear->winEnable( canChange );
+ s_default->winEnable( changed );
+}
+
+void refresh( void )
+{
+ fillCommands();
+ fillButtons();
+ updateNote();
+}
+
+void startCapture( void )
+{
+ if( s_active == 0 && s_commandRow >= 0 )
+ s_capture = CAPTURE_COMMAND;
+ else if( s_active == 1 && s_button && ( s_button->getCommandType() == GUI_COMMAND_FORCE_ATTACK
+ || HotKeyManager::fixedKey( s_button->getName(), s_button->getCommandType() ) == 0 ) )
+ s_capture = CAPTURE_BUTTON;
+ else
+ return;
+ s_holdCandidate.clear();
+ // every key comes to the menu while it waits, Enter and the arrows included
+ TheWindowManager->winSetFocus( s_parent );
+ refresh();
+}
+
+void setCommand( const std::string& id, const HotkeyBinding *binding )
+{
+ if( binding )
+ s_file.commands[ id ] = *binding;
+ else
+ s_file.commands.erase( id );
+}
+
+/// Change to `binding`, or with NULL back to the game's own, whatever is selected.
+void applySelected( const HotkeyBinding *binding, Bool backToGame )
+{
+ if( s_active == 0 && s_commandRow >= 0 )
+ setCommand( s_rows[ s_commandRow ].id, backToGame ? NULL : binding );
+ else if( s_active == 1 && s_button )
+ {
+ if( s_button->getCommandType() == GUI_COMMAND_FORCE_ATTACK )
+ setCommand( "BEGIN_FORCEATTACK", backToGame ? NULL : binding );
+ else if( backToGame )
+ s_file.buttons.erase( HotKeyManager::fileButtonName( s_button->getName() ) );
+ else
+ s_file.buttons[ HotKeyManager::fileButtonName( s_button->getName() ) ] = binding->key.size() == 5 ? binding->key.substr( 4 ) : std::string();
+ }
+ s_capture = CAPTURE_NONE;
+ refresh();
+}
+
+std::string keyName( UnsignedByte key )
+{
+ for( const LookupListRec *rec = KeyNames; rec->name != NULL; ++rec )
+ if( rec->value == (Int)key && Hotkeys_isKeyName( rec->name ) )
+ return rec->name;
+ return std::string();
+}
+
+const char *modifierName( Bool ctrl, Bool alt, Bool shift )
+{
+ static const char *const NAMES[ 8 ] = { "NONE", "CTRL", "ALT", "CTRL_ALT", "SHIFT", "SHIFT_CTRL", "SHIFT_ALT", "SHIFT_ALT_CTRL" };
+ return NAMES[ ( ctrl ? 1 : 0 ) | ( alt ? 2 : 0 ) | ( shift ? 4 : 0 ) ];
+}
+
+} // namespace
+
+//-------------------------------------------------------------------------------------------------
+void OptionsHotkeysInit( void )
+{
+ s_parent = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:OptionsMenuParent" ) );
+ s_commandList = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:ListboxHotkeyCommands" ) );
+ s_factionCombo = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:ComboBoxHotkeyFaction" ) );
+ s_objectCombo = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:ComboBoxHotkeyObject" ) );
+ s_buttonList = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:ListboxHotkeyButtons" ) );
+ s_note = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:HotkeyNote" ) );
+ s_change = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:ButtonHotkeyChange" ) );
+ s_clear = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:ButtonHotkeyClear" ) );
+ s_default = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:ButtonHotkeyDefault" ) );
+
+ AsciiString commandMap;
+ commandMap.format( "Data\\%s\\CommandMap.ini", GetRegistryLanguage().str() );
+ s_rows = Hotkeys_commandRows( readText( commandMap.str() ) );
+ s_fileText = TheFileSystem->doesFileExist( hotkeysPath().str() ) ? readText( hotkeysPath().str() ) : std::string();
+ s_file = Hotkeys_parse( s_fileText, s_rows );
+ s_launcherCommands.clear();
+ s_launcherButtons.clear();
+ Hotkeys_launcherKeys( s_file.launcherPart, &s_launcherCommands, &s_launcherButtons );
+ s_active = 0;
+ s_commandRow = -1;
+ s_button = NULL;
+ s_capture = CAPTURE_NONE;
+
+ findBars();
+ s_filling = TRUE;
+ GadgetComboBoxReset( s_factionCombo );
+ for( size_t each = 0; each < s_factions.size(); each++ )
+ GadgetComboBoxAddEntry( s_factionCombo, s_factions[ each ].name, TEXT_COLOR );
+ GadgetComboBoxSetSelectedPos( s_factionCombo, 0 );
+ s_filling = FALSE;
+ fillObjects();
+ refresh();
+}
+
+//-------------------------------------------------------------------------------------------------
+Bool OptionsHotkeysSystem( UnsignedInt msg, GameWindow *control, WindowMsgData row )
+{
+ if( s_commandList == NULL || s_filling )
+ return FALSE;
+ const Bool ours = control == s_commandList || control == s_buttonList || control == s_factionCombo
+ || control == s_objectCombo || control == s_change || control == s_clear || control == s_default;
+ if( !ours )
+ return FALSE;
+ // a press anywhere on the page lets go of a key being waited for
+ const Bool wasWaiting = s_capture != CAPTURE_NONE;
+ s_capture = CAPTURE_NONE;
+
+ if( msg == GCM_SELECTED )
+ {
+ if( control == s_factionCombo )
+ fillObjects();
+ else
+ {
+ s_button = NULL;
+ fillButtons();
+ }
+ }
+ else if( msg == GLM_SELECTED || msg == GLM_DOUBLE_CLICKED )
+ {
+ if( (Int)row < 0 )
+ return TRUE;
+ if( control == s_commandList )
+ {
+ const Int index = (Int)(intptr_t)GadgetListBoxGetItemData( s_commandList, (Int)row, 0 ) - 1;
+ if( index < 0 )
+ return TRUE; // a category's heading
+ s_active = 0;
+ s_commandRow = index;
+ }
+ else
+ {
+ s_active = 1;
+ s_button = (const CommandButton *)GadgetListBoxGetItemData( s_buttonList, (Int)row, 0 );
+ }
+ if( msg == GLM_DOUBLE_CLICKED )
+ {
+ startCapture();
+ return TRUE;
+ }
+ }
+ else if( msg == GBM_SELECTED )
+ {
+ if( control == s_change && !wasWaiting )
+ {
+ startCapture();
+ return TRUE;
+ }
+ if( control == s_clear )
+ {
+ const HotkeyBinding none;
+ applySelected( &none, FALSE );
+ return TRUE;
+ }
+ if( control == s_default )
+ {
+ applySelected( NULL, TRUE );
+ return TRUE;
+ }
+ }
+ refresh();
+ return TRUE;
+}
+
+//-------------------------------------------------------------------------------------------------
+Bool OptionsHotkeysKey( UnsignedByte key, Int state )
+{
+ if( s_capture == CAPTURE_NONE )
+ return FALSE;
+ const Bool down = BitTest( state, KEY_STATE_DOWN );
+ if( key == KEY_ESC )
+ {
+ if( !down )
+ {
+ s_capture = CAPTURE_NONE;
+ refresh();
+ }
+ return TRUE;
+ }
+ if( BitTest( state, KEY_STATE_AUTOREPEAT ) )
+ return TRUE;
+ const Bool ctrl = BitTest( state, KEY_STATE_CONTROL ), alt = BitTest( state, KEY_STATE_ALT ), shift = BitTest( state, KEY_STATE_SHIFT );
+ const Bool ctrlKey = key == KEY_LCTRL || key == KEY_RCTRL, altKey = key == KEY_LALT || key == KEY_RALT;
+ const Bool shiftKey = key == KEY_LSHIFT || key == KEY_RSHIFT;
+ const Bool force = s_capture == CAPTURE_BUTTON && s_button->getCommandType() == GUI_COMMAND_FORCE_ATTACK;
+
+ if( force )
+ {
+ // Ctrl or Alt let go with no key between is the hold alone; Shift cannot be the hold
+ if( ctrlKey || altKey )
+ {
+ if( down )
+ s_holdCandidate = s_holdCandidate.empty() ? ( ctrlKey ? "CTRL" : "ALT" ) : std::string( "-" );
+ else if( s_holdCandidate == "CTRL" || s_holdCandidate == "ALT" )
+ {
+ const HotkeyBinding hold( "", s_holdCandidate );
+ applySelected( &hold, FALSE );
+ }
+ return TRUE;
+ }
+ const std::string name = keyName( key );
+ if( down && !shift && !name.empty() )
+ {
+ const HotkeyBinding hold( name, modifierName( ctrl, alt, FALSE ) );
+ applySelected( &hold, FALSE );
+ }
+ else if( down )
+ s_holdCandidate = "-";
+ return TRUE;
+ }
+ if( !down || ctrlKey || altKey || shiftKey )
+ return TRUE;
+ const std::string name = keyName( key );
+ if( name.empty() )
+ return TRUE;
+ if( s_capture == CAPTURE_BUTTON )
+ {
+ // a button takes a letter and nothing else
+ if( name.size() == 5 && isalpha( (unsigned char)name[ 4 ] ) )
+ {
+ const HotkeyBinding letter( name, "NONE" );
+ applySelected( &letter, FALSE );
+ }
+ return TRUE;
+ }
+ const HotkeyBinding chord( name, modifierName( ctrl, alt, shift ) );
+ applySelected( &chord, FALSE );
+ return TRUE;
+}
+
+//-------------------------------------------------------------------------------------------------
+void OptionsHotkeysSave( void )
+{
+ if( s_commandList == NULL )
+ return;
+ const std::string text = Hotkeys_format( s_file, s_rows );
+ // a page looked at and left alone writes nothing, so a file never written stays unwritten
+ if( text == Hotkeys_format( Hotkeys_parse( s_fileText, s_rows ), s_rows ) )
+ {
+ s_commandList = NULL;
+ return;
+ }
+ FILE *file = fopen( hotkeysPath().str(), "wb" );
+ if( file == NULL )
+ {
+ DEBUG_LOG(( "HOTKEYS: %s could not be written\n", hotkeysPath().str() ));
+ s_commandList = NULL;
+ return;
+ }
+ fwrite( text.data(), 1, text.size(), file );
+ fclose( file );
+ DEBUG_LOG(( "HOTKEYS: wrote %s from the options menu\n", hotkeysPath().str() ));
+ s_commandList = NULL;
+ HotKeyManager::reloadKeys();
+}
+
+//-------------------------------------------------------------------------------------------------
+void OptionsHotkeysClose( void )
+{
+ s_commandList = NULL;
+ s_capture = CAPTURE_NONE;
+}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HotKey.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HotKey.cpp
index 1acd50114..18ada4f1b 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HotKey.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HotKey.cpp
@@ -49,10 +49,13 @@
// SYSTEM INCLUDES ////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------
#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
+#include <algorithm>
//-----------------------------------------------------------------------------
// USER INCLUDES //////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------
#include "GameClient/HotKey.h"
+#include "Common/FileSystem.h"
+#include "Common/Registry.h"
#include "GameClient/KeyDefs.h"
#include "GameClient/MetaEvent.h"
#include "GameClient/GameWindow.h"
@@ -411,7 +414,7 @@ static Bool ownsFixedKey( GameWindow *win, const AsciiString& key )
* under -modfactions) takes only its mod's "<scope>:<button>" entry. A plain name, which under a
* plain -mod may be any loaded mod's, takes the last loaded mod's scoped entry that exists, then
* the unscoped one, which is retail's. */
-static Bool findPlayerKey( const std::string& bare, Int ownMod, WideChar *letter )
+static Bool findPlayerKey( const std::map< std::string, WideChar >& keys, const std::string& bare, Int ownMod, WideChar *letter )
{
std::map< std::string, WideChar >::const_iterator it;
const Int modCount = TheGlobalData ? (Int)TheGlobalData->m_mods.size() : 0;
@@ -419,8 +422,8 @@ static Bool findPlayerKey( const std::string& bare, Int ownMod, WideChar *letter
{
if( ownMod >= 0 && mod != ownMod )
continue;
- it = s_playerButtonKeys.find( modScope( mod ) + ":" + bare );
- if( it != s_playerButtonKeys.end() )
+ it = keys.find( modScope( mod ) + ":" + bare );
+ if( it != keys.end() )
{
*letter = it->second;
return TRUE;
@@ -428,8 +431,8 @@ static Bool findPlayerKey( const std::string& bare, Int ownMod, WideChar *letter
}
if( ownMod >= 0 )
return FALSE;
- it = s_playerButtonKeys.find( bare );
- if( it == s_playerButtonKeys.end() )
+ it = keys.find( bare );
+ if( it == keys.end() )
return FALSE;
*letter = it->second;
return TRUE;
@@ -445,6 +448,37 @@ static Bool isOneOf( WideChar letter, const WideChar *letters, Int count )
//-----------------------------------------------------------------------------
WideChar HotKeyManager::playerButtonKey( const AsciiString& button, WideChar labelKey, Int commandType )
+{
+ return buttonKeyIn( button, labelKey, commandType, s_playerButtonKeys );
+}
+
+//-----------------------------------------------------------------------------
+WideChar HotKeyManager::fixedKey( const AsciiString& button, Int commandType )
+{
+ AsciiString lower = button;
+ lower.toLower();
+ Int ownMod = -1;
+ return fixedButtonKey( AsciiString( withoutModPrefix( lower.str(), &ownMod ).c_str() ), commandType );
+}
+
+//-----------------------------------------------------------------------------
+std::string HotKeyManager::fileButtonName( const AsciiString& button )
+{
+ AsciiString lower = button;
+ lower.toLower();
+ Int ownMod = -1;
+ withoutModPrefix( lower.str(), &ownMod );
+ std::string name( button.str() );
+ if( ownMod >= 0 )
+ return modScope( ownMod ) + ":" + name.substr( name.find( '~' ) + 1 );
+ if( !TheGlobalData->m_mods.empty() && !TheGlobalData->m_modFactions )
+ return modScope( (Int)TheGlobalData->m_mods.size() - 1 ) + ":" + name;
+ return name;
+}
+
+//-----------------------------------------------------------------------------
+WideChar HotKeyManager::buttonKeyIn( const AsciiString& button, WideChar labelKey, Int commandType,
+ const std::map< std::string, WideChar >& keys )
{
// Force Attack is Ctrl. The English label's F is not the key and may not bind the button.
if( commandType == GUI_COMMAND_FORCE_ATTACK )
@@ -458,7 +492,7 @@ WideChar HotKeyManager::playerButtonKey( const AsciiString& button, WideChar lab
return fixed;
WideChar letter = labelKey;
- const Bool chosen = findPlayerKey( bare, ownMod, &letter );
+ const Bool chosen = findPlayerKey( keys, bare, ownMod, &letter );
if( letter >= 'a' && letter <= 'z' )
letter -= 'a' - 'A';
// a label's own fixed letter gives way; one the player chose stays, and the bar's fixed order
@@ -508,6 +542,473 @@ WideChar HotKeyManager::playerButtonKey( const AsciiString& button, WideChar lab
DEBUG_LOG(( "HOTKEYS: button %s key %s\n", name.str(), key.str() ));
}
+//-----------------------------------------------------------------------------
+void HotKeyManager::loadPlayerKeys( void )
+{
+ s_playerButtonKeys.clear();
+ AsciiString hotkeys = TheGlobalData->getPath_UserData();
+ hotkeys.concat( "Hotkeys.ini" );
+ if( !TheFileSystem->doesFileExist( hotkeys.str() ) )
+ return;
+ INI ini;
+ try
+ {
+ ini.load( hotkeys, INI_LOAD_MULTIFILE, NULL );
+ DEBUG_LOG(( "HOTKEYS: read %s\n", hotkeys.str() ));
+ }
+ catch( ... )
+ {
+ DEBUG_LOG(( "HOTKEYS: %s stopped at a block it could not read; the keys before it stand\n", hotkeys.str() ));
+ }
+}
+
+//-----------------------------------------------------------------------------
+void HotKeyManager::reloadKeys( void )
+{
+ TheMetaMap->clear();
+ AsciiString commandMap;
+ commandMap.format( "Data\\%s\\CommandMap.ini", GetRegistryLanguage().str() );
+ INI ini;
+ ini.load( commandMap, INI_LOAD_OVERWRITE, NULL );
+#if defined(_DEBUG) || defined(_INTERNAL)
+ ini.load( "Data\\INI\\CommandMapDebug.ini", INI_LOAD_MULTIFILE, NULL );
+#endif
+#if defined(_ALLOW_DEBUG_CHEATS_IN_RELEASE)
+ ini.load( "Data\\INI\\CommandMapDemo.ini", INI_LOAD_MULTIFILE, NULL );
+#endif
+ loadPlayerKeys();
+ // the bar's letters are given out again on its next update
+ if( TheControlBar )
+ TheControlBar->markUIDirty();
+}
+
+//-----------------------------------------------------------------------------
+// Hotkeys.ini, the launcher's format
+//-----------------------------------------------------------------------------
+const char HOTKEYS_LAUNCHER_PART[] = "; the launcher's own keys from here on";
+
+/// KEY_NAMES in hotkeys.js: the keys a command may take there, so what this writes the launcher reads.
+static const char *const HOTKEY_KEY_NAMES[] =
+{
+ "KEY_ESC", "KEY_BACKSPACE", "KEY_ENTER", "KEY_SPACE", "KEY_TAB",
+ "KEY_F1", "KEY_F2", "KEY_F3", "KEY_F4", "KEY_F5", "KEY_F6", "KEY_F7", "KEY_F8", "KEY_F9", "KEY_F10", "KEY_F11", "KEY_F12",
+ "KEY_A", "KEY_B", "KEY_C", "KEY_D", "KEY_E", "KEY_F", "KEY_G", "KEY_H", "KEY_I", "KEY_J", "KEY_K", "KEY_L", "KEY_M",
+ "KEY_N", "KEY_O", "KEY_P", "KEY_Q", "KEY_R", "KEY_S", "KEY_T", "KEY_U", "KEY_V", "KEY_W", "KEY_X", "KEY_Y", "KEY_Z",
+ "KEY_1", "KEY_2", "KEY_3", "KEY_4", "KEY_5", "KEY_6", "KEY_7", "KEY_8", "KEY_9", "KEY_0",
+ "KEY_KP1", "KEY_KP2", "KEY_KP3", "KEY_KP4", "KEY_KP5", "KEY_KP6", "KEY_KP7", "KEY_KP8", "KEY_KP9", "KEY_KP0",
+ "KEY_KPPLUS", "KEY_KPMINUS", "KEY_KPSLASH", "KEY_MINUS", "KEY_EQUAL", "KEY_LBRACKET", "KEY_RBRACKET",
+ "KEY_SEMICOLON", "KEY_APOSTROPHE", "KEY_TICK", "KEY_BACKSLASH", "KEY_COMMA", "KEY_PERIOD", "KEY_SLASH",
+ "KEY_UP", "KEY_DOWN", "KEY_LEFT", "KEY_RIGHT", "KEY_HOME", "KEY_END", "KEY_PGUP", "KEY_PGDN", "KEY_INS", "KEY_DEL",
+};
+
+Bool Hotkeys_isKeyName( const std::string& key )
+{
+ for( size_t each = 0; each < sizeof( HOTKEY_KEY_NAMES ) / sizeof( HOTKEY_KEY_NAMES[ 0 ] ); each++ )
+ if( key == HOTKEY_KEY_NAMES[ each ] )
+ return TRUE;
+ return FALSE;
+}
+
+static std::string lowered( std::string text )
+{
+ for( size_t at = 0; at < text.size(); at++ )
+ text[ at ] = (char)tolower( (unsigned char)text[ at ] );
+ return text;
+}
+
+static Bool startsWith( const std::string& text, const char *prefix )
+{
+ return text.compare( 0, strlen( prefix ), prefix ) == 0;
+}
+
+static std::string trimmed( const std::string& text )
+{
+ size_t first = text.find_first_not_of( " \t\r\n" );
+ if( first == std::string::npos )
+ return std::string();
+ size_t last = text.find_last_not_of( " \t\r\n" );
+ return text.substr( first, last - first + 1 );
+}
+
+/// The file's lines without their CR.
+static std::vector< std::string > linesOf( const std::string& text )
+{
+ std::vector< std::string > lines;
+ size_t start = 0;
+ for( ;; )
+ {
+ size_t end = text.find( '\n', start );
+ std::string line = text.substr( start, end == std::string::npos ? std::string::npos : end - start );
+ if( !line.empty() && line[ line.size() - 1 ] == '\r' )
+ line.erase( line.size() - 1 );
+ lines.push_back( line );
+ if( end == std::string::npos )
+ return lines;
+ start = end + 1;
+ }
+}
+
+/** One top-level block of an INI text the way hotkeys.js parseIni reads it: "Type Name" up to its
+ * End, comments after ; and // gone, fields as key and value. */
+struct HotkeyIniBlock
+{
+ std::string type, name;
+ std::vector< std::pair< std::string, std::string > > fields;
+ std::string field( const char *key, const char *otherwise ) const
+ {
+ for( size_t each = 0; each < fields.size(); each++ )
+ if( lowered( fields[ each ].first ) == lowered( key ) )
+ return fields[ each ].second;
+ return otherwise;
+ }
+ Bool hasField( const char *key ) const
+ {
+ for( size_t each = 0; each < fields.size(); each++ )
+ if( lowered( fields[ each ].first ) == lowered( key ) )
+ return TRUE;
+ return FALSE;
+ }
+};
+
+static std::vector< HotkeyIniBlock > iniBlocks( const std::string& text )
+{
+ std::vector< HotkeyIniBlock > blocks;
+ HotkeyIniBlock block;
+ Bool open = FALSE;
+ Int depth = 0;
+ std::vector< std::string > lines = linesOf( text );
+ for( size_t each = 0; each < lines.size(); each++ )
+ {
+ std::string line = lines[ each ];
+ size_t comment = line.find( ';' );
+ if( comment != std::string::npos )
+ line.erase( comment );
+ comment = line.find( "//" );
+ if( comment != std::string::npos )
+ line.erase( comment );
+ line = trimmed( line );
+ if( line.empty() )
+ continue;
+ const std::string word = line.substr( 0, line.find_first_of( " \t=" ) );
+ if( !open )
+ {
+ block = HotkeyIniBlock();
+ block.type = word;
+ std::string rest = trimmed( line.substr( word.size() ) );
+ block.name = rest.substr( 0, rest.find_first_of( " \t" ) );
+ open = TRUE;
+ depth = 0;
+ continue;
+ }
+ if( lowered( word ) == "end" )
+ {
+ if( depth == 0 )
+ {
+ blocks.push_back( block );
+ open = FALSE;
+ }
+ else
+ depth--;
+ }
+ else if( line.find_first_of( " \t=" ) == std::string::npos )
+ depth++; // a word alone opens a block inside, whose fields are not the block's
+ else if( depth == 0 )
+ {
+ const size_t equals = line.find( '=' );
+ if( equals == std::string::npos )
+ block.fields.push_back( std::make_pair( word, trimmed( line.substr( word.size() ) ) ) );
+ else
+ block.fields.push_back( std::make_pair( trimmed( line.substr( 0, equals ) ), trimmed( line.substr( equals + 1 ) ) ) );
+ }
+ }
+ return blocks;
+}
+
+static HotkeyCommandRow commandRow( const std::string& id, const std::string& category, const char *key = "", const char *modifiers = "NONE" )
+{
+ HotkeyCommandRow row;
+ row.id = id;
+ row.binding = HotkeyBinding( key, modifiers );
+ row.usableIn = "GAME";
+ row.category = category;
+ row.barOnly = FALSE;
+ row.launcherDefault = FALSE;
+ return row;
+}
+
+std::vector< HotkeyCommandRow > Hotkeys_commandRows( const std::string& commandMapText )
+{
+ std::vector< HotkeyCommandRow > rows;
+ std::vector< HotkeyIniBlock > blocks = iniBlocks( commandMapText );
+ for( size_t each = 0; each < blocks.size(); each++ )
+ {
+ const HotkeyIniBlock& block = blocks[ each ];
+ const std::string key = block.field( "Key", "" );
+ if( block.type != "CommandMap" || startsWith( block.name, "DEMO_" ) || startsWith( block.name, "DEBUG_" )
+ || startsWith( block.name, "CHEAT_" ) || startsWith( block.name, "END_" ) || !Hotkeys_isKeyName( key ) )
+ continue;
+ HotkeyCommandRow row = commandRow( block.name, block.field( "Category", "MISC" ), key.c_str(), block.field( "Modifiers", "NONE" ).c_str() );
+ row.usableIn = block.field( "UseableIn", "GAME" );
+ row.label = block.field( "DisplayName", "" );
+ if( startsWith( block.name, "BEGIN_" ) )
+ row.pair = "END_" + block.name.substr( 6 );
+ rows.push_back( row );
+ }
+
+ // UNBOUND_COMMANDS in hotkeys.js: commands the engine knows that the shipped map binds to nothing
+ std::vector< HotkeyCommandRow > unbound;
+ static const char *const SELECTION[] = { "SELECT_ALL", "SELECT_ALL_MILITARY", "SELECT_ALL_VEHICLES", "SELECT_ALL_AIRCRAFT",
+ "SELECT_ALL_BARRACKS", "SELECT_ALL_WARFACTORIES", "SELECT_ALL_AIRFIELDS", "SELECT_NEXT_IDLE_WORKER", "SELECT_NEXT_IDLE_UNIT" };
+ for( size_t each = 0; each < sizeof( SELECTION ) / sizeof( SELECTION[ 0 ] ); each++ )
+ unbound.push_back( commandRow( SELECTION[ each ], "SELECTION" ) );
+ unbound.push_back( commandRow( "TOGGLE_PAUSE", "INTERFACE" ) );
+ unbound.push_back( commandRow( "TOGGLE_PURCHASE_SCIENCE", "INTERFACE" ) );
+ unbound.push_back( commandRow( "SIGNAL_ATTACK", "INFORMATION" ) );
+ unbound.push_back( commandRow( "SIGNAL_DEFEND", "INFORMATION" ) );
+ unbound.push_back( commandRow( "SIGNAL_ATTENTION", "INFORMATION" ) );
+ char name[ 32 ];
+ for( Int slot = 1; slot <= 8; slot++ )
+ {
+ snprintf( name, sizeof( name ), "SHORTCUT_SLOT%02d", slot );
+ unbound.push_back( commandRow( name, "SHORTCUTS" ) );
+ }
+ for( Int slot = 1; slot <= 18; slot++ )
+ {
+ snprintf( name, sizeof( name ), "COMMAND_SLOT%02d", slot );
+ unbound.push_back( commandRow( name, "GRID" ) );
+ }
+ // LAUNCHER_DEFAULTS: I, free in the shipped map, for the next idle worker
+ for( size_t each = 0; each < unbound.size(); each++ )
+ if( unbound[ each ].id == "SELECT_NEXT_IDLE_WORKER" )
+ {
+ unbound[ each ].binding.key = "KEY_I";
+ unbound[ each ].launcherDefault = TRUE;
+ }
+
+ std::vector< HotkeyCommandRow > all = rows;
+ Bool forceAttack = FALSE;
+ for( size_t each = 0; each < unbound.size(); each++ )
+ {
+ Bool known = FALSE;
+ for( size_t row = 0; row < rows.size(); row++ )
+ known = known || rows[ row ].id == unbound[ each ].id;
+ if( !known )
+ all.push_back( unbound[ each ] );
+ }
+ for( size_t row = 0; row < rows.size(); row++ )
+ forceAttack = forceAttack || rows[ row ].id == "BEGIN_FORCEATTACK";
+ if( !forceAttack )
+ {
+ // FORCE_ATTACK_HOLD: KEY_NONE + Ctrl in the shipped file, set from the command bar page
+ HotkeyCommandRow hold = commandRow( "BEGIN_FORCEATTACK", "CONTROL", "", "CTRL" );
+ hold.pair = "END_FORCEATTACK";
+ hold.barOnly = TRUE;
+ all.push_back( hold );
+ }
+ return all;
+}
+
+HotkeysFile Hotkeys_parse( const std::string& text, const std::vector< HotkeyCommandRow >& rows )
+{
+ HotkeysFile file;
+ const size_t part = text.find( HOTKEYS_LAUNCHER_PART );
+ if( part != std::string::npos )
+ file.launcherPart = text.substr( part + strlen( HOTKEYS_LAUNCHER_PART ) );
+ std::vector< HotkeyIniBlock > blocks = iniBlocks( text.substr( 0, part ) );
+ for( size_t each = 0; each < blocks.size(); each++ )
+ {
+ const HotkeyIniBlock& block = blocks[ each ];
+ const std::string key = block.field( "Key", "" );
+ if( block.type == "CommandButtonHotKey" )
+ {
+ const Bool letter = key.size() == 1 && isalpha( (unsigned char)key[ 0 ] );
+ file.buttons[ block.name ] = letter ? std::string( 1, (char)toupper( (unsigned char)key[ 0 ] ) ) : std::string();
+ }
+ else if( block.type == "CommandMap" && !startsWith( block.name, "END_" ) )
+ {
+ const std::string usableIn = block.field( "UseableIn", "" );
+ const std::string modifiers = block.field( "Modifiers", "NONE" );
+ const Bool none = lowered( usableIn ) == "none";
+ const Bool named = Hotkeys_isKeyName( key );
+ const Bool modsOnly = lowered( key ) == "key_none" && !none && modifiers != "NONE";
+ file.commands[ block.name ] = ( none || ( !named && !modsOnly ) )
+ ? HotkeyBinding( "", "NONE" ) : HotkeyBinding( named ? key : "", modifiers );
+ }
+ }
+ // the launcher's own default, written for the game's sake, is not a change the player made
+ for( size_t each = 0; each < rows.size(); each++ )
+ {
+ if( !rows[ each ].barOnly && !rows[ each ].launcherDefault )
+ continue;
+ std::map< std::string, HotkeyBinding >::iterator it = file.commands.find( rows[ each ].id );
+ if( it != file.commands.end() && it->second == rows[ each ].binding )
+ file.commands.erase( it );
+ }
+ return file;
+}
+
+/// The launcher's part without the blocks naming something in `names`, and the blank line after each.
+static std::string launcherPartWithout( const std::string& part, const std::map< std::string, Bool >& names )
+{
+ if( part.empty() )
+ return "\r\n";
+ std::vector< std::string > lines = linesOf( part );
+ std::vector< std::string > kept;
+ for( size_t each = 0; each < lines.size(); each++ )
+ {
+ const std::string line = trimmed( lines[ each ] );
+ const Bool header = startsWith( line, "CommandMap " ) || startsWith( line, "CommandButtonHotKey " );
+ if( header && names.count( trimmed( line.substr( line.find( ' ' ) ) ) ) )
+ {
+ while( each < lines.size() && lowered( trimmed( lines[ each ] ) ) != "end" )
+ each++;
+ if( each + 1 < lines.size() && trimmed( lines[ each + 1 ] ).empty() )
+ each++;
+ continue;
+ }
+ kept.push_back( lines[ each ] );
+ }
+ std::string out;
+ for( size_t each = 0; each < kept.size(); each++ )
+ out += ( each > 0 ? "\r\n" : "" ) + kept[ each ];
+ return out;
+}
+
+void Hotkeys_launcherKeys( const std::string& launcherPart, std::map< std::string, HotkeyBinding > *commands,
+ std::map< std::string, std::string > *buttons )
+{
+ std::vector< HotkeyIniBlock > blocks = iniBlocks( launcherPart );
+ for( size_t each = 0; each < blocks.size(); each++ )
+ {
+ const HotkeyIniBlock& block = blocks[ each ];
+ const std::string key = block.field( "Key", "" );
+ if( block.type == "CommandButtonHotKey" )
+ ( *buttons )[ block.name ] = ( key.size() == 1 && isalpha( (unsigned char)key[ 0 ] ) ) ? key : std::string();
+ else if( block.type == "CommandMap" && !startsWith( block.name, "END_" ) )
+ ( *commands )[ block.name ] = lowered( block.field( "UseableIn", "" ) ) == "none"
+ ? HotkeyBinding( "", "NONE" ) : HotkeyBinding( Hotkeys_isKeyName( key ) ? key : "", block.field( "Modifiers", "NONE" ) );
+ }
+}
+
+/** Where a character falls in String.localeCompare's root collation: blanks, then punctuation in its
+ * own order, then digits, then letters with case set aside. */
+static Int collationWeight( unsigned char c )
+{
+ static const char PUNCTUATION[] = "_-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$";
+ if( isspace( c ) )
+ return 1;
+ const char *at = strchr( PUNCTUATION, c );
+ if( c != 0 && at != NULL )
+ return 10 + (Int)( at - PUNCTUATION );
+ if( isdigit( c ) )
+ return 100 + ( c - '0' );
+ if( isalpha( c ) )
+ return 200 + ( tolower( c ) - 'a' );
+ return 300 + c;
+}
+
+bool Hotkeys_nameLess( const std::string& left, const std::string& right )
+{
+ const size_t common = left.size() < right.size() ? left.size() : right.size();
+ for( size_t at = 0; at < common; at++ )
+ {
+ const Int l = collationWeight( (unsigned char)left[ at ] ), r = collationWeight( (unsigned char)right[ at ] );
+ if( l != r )
+ return l < r;
+ }
+ if( left.size() != right.size() )
+ return left.size() < right.size();
+ // the same letters: lower case first
+ for( size_t at = 0; at < common; at++ )
+ if( left[ at ] != right[ at ] )
+ return islower( (unsigned char)left[ at ] ) != 0;
+ return false;
+}
+
+template< class Map > static std::vector< std::string > sortedNames( const Map& map )
+{
+ std::vector< std::string > names;
+ for( typename Map::const_iterator it = map.begin(); it != map.end(); ++it )
+ names.push_back( it->first );
+ std::sort( names.begin(), names.end(), Hotkeys_nameLess );
+ return names;
+}
+
+std::string Hotkeys_format( const HotkeysFile& file, const std::vector< HotkeyCommandRow >& rows )
+{
+ std::string out =
+ "; Zero Hour Reforged hotkeys, written by the launcher's Hotkeys page. Only what differs from the\r\n"
+ "; game is here. The game reads it at start; it is not part of the multiplayer checksum.\r\n"
+ "\r\n";
+ std::map< std::string, Bool > named;
+ std::vector< std::string > ids = sortedNames( file.commands );
+ for( size_t each = 0; each < ids.size(); each++ )
+ {
+ const HotkeyBinding& binding = file.commands.find( ids[ each ] )->second;
+ const HotkeyCommandRow *row = NULL;
+ for( size_t candidate = 0; candidate < rows.size() && row == NULL; candidate++ )
+ if( rows[ candidate ].id == ids[ each ] )
+ row = &rows[ candidate ];
+ const Bool chord = !binding.key.empty() || binding.modifiers != "NONE";
+ for( Int half = 0; half < 2; half++ )
+ {
+ if( half == 1 && ( row == NULL || row->pair.empty() ) )
+ break;
+ const std::string& name = half == 0 ? ids[ each ] : row->pair;
+ named[ name ] = TRUE;
+ out += "CommandMap " + name + "\r\n";
+ out += " Key = " + ( binding.key.empty() ? std::string( "KEY_NONE" ) : binding.key ) + "\r\n";
+ out += std::string( " Transition = " ) + ( half == 0 ? "DOWN" : "UP" ) + "\r\n";
+ out += " Modifiers = " + ( chord ? binding.modifiers : std::string( "NONE" ) ) + "\r\n";
+ out += " UseableIn = " + ( chord ? ( row ? row->usableIn : std::string( "GAME" ) ) : std::string( "NONE" ) ) + "\r\n";
+ out += "End\r\n\r\n";
+ }
+ }
+ std::vector< std::string > buttons = sortedNames( file.buttons );
+ for( size_t each = 0; each < buttons.size(); each++ )
+ {
+ const std::string& key = file.buttons.find( buttons[ each ] )->second;
+ named[ buttons[ each ] ] = TRUE;
+ out += "CommandButtonHotKey " + buttons[ each ] + "\r\n";
+ out += " Key = " + ( key.empty() ? std::string( "NONE" ) : key ) + "\r\n";
+ out += "End\r\n\r\n";
+ }
+ out += HOTKEYS_LAUNCHER_PART;
+ out += launcherPartWithout( file.launcherPart, named );
+ return out;
+}
+
+std::string Hotkeys_chordText( const HotkeyBinding& binding )
+{
+ std::string text;
+ const std::string& mods = binding.modifiers;
+ if( mods == "CTRL" || mods == "CTRL_ALT" || mods == "SHIFT_CTRL" || mods == "SHIFT_ALT_CTRL" )
+ text = "Ctrl";
+ if( mods == "ALT" || mods == "CTRL_ALT" || mods == "SHIFT_ALT" || mods == "SHIFT_ALT_CTRL" )
+ text += text.empty() ? "Alt" : " + Alt";
+ if( mods == "SHIFT" || mods == "SHIFT_CTRL" || mods == "SHIFT_ALT" || mods == "SHIFT_ALT_CTRL" )
+ text += text.empty() ? "Shift" : " + Shift";
+ if( binding.key.empty() )
+ return text;
+ static const char *const WORDS[][ 2 ] =
+ {
+ { "ESC", "Esc" }, { "BACKSPACE", "Backspace" }, { "ENTER", "Enter" }, { "SPACE", "Space" }, { "TAB", "Tab" },
+ { "LBRACKET", "[" }, { "RBRACKET", "]" }, { "SEMICOLON", ";" }, { "APOSTROPHE", "'" }, { "TICK", "`" },
+ { "BACKSLASH", "\\" }, { "COMMA", "," }, { "PERIOD", "." }, { "SLASH", "/" }, { "MINUS", "-" }, { "EQUAL", "=" },
+ { "UP", "Up" }, { "DOWN", "Down" }, { "LEFT", "Left" }, { "RIGHT", "Right" }, { "HOME", "Home" }, { "END", "End" },
+ { "PGUP", "Page Up" }, { "PGDN", "Page Down" }, { "INS", "Insert" }, { "DEL", "Delete" },
+ { "KPPLUS", "Num +" }, { "KPMINUS", "Num -" }, { "KPSLASH", "Num /" },
+ };
+ std::string name = startsWith( binding.key, "KEY_" ) ? binding.key.substr( 4 ) : binding.key;
+ std::string word = name;
+ for( size_t each = 0; each < sizeof( WORDS ) / sizeof( WORDS[ 0 ] ); each++ )
+ if( name == WORDS[ each ][ 0 ] )
+ word = WORDS[ each ][ 1 ];
+ if( name.size() == 3 && startsWith( name, "KP" ) && isdigit( (unsigned char)name[ 2 ] ) )
+ word = std::string( "Num " ) + name[ 2 ];
+ return text.empty() ? word : text + " + " + word;
+}
+
//-----------------------------------------------------------------------------
HotKeyManager *TheHotKeyManager = NULL;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp
index 731f4dd63..2a69fe6c4 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp
@@ -807,6 +807,12 @@ MetaMap::MetaMap() :
//-------------------------------------------------------------------------------------------------
MetaMap::~MetaMap()
+{
+ clear();
+}
+
+//-------------------------------------------------------------------------------------------------
+void MetaMap::clear()
{
while (m_metaMaps)
{
diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cpp
index 394ef754d..936d08782 100644
--- a/GeneralsMD/Code/Tests/test_gameengine.cpp
+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp
@@ -1661,6 +1661,222 @@ TEST(hotkey_names_fold_turkish_letters_and_case)
CHECK( HotKeyManager::nameOf( 0x015E ) != HotKeyManager::nameOf( L'^' ) ); // not its low byte
}
+/* HotKey.cpp, Hotkeys_*: the options menu's Hotkeys page writes Hotkeys.ini the way the launcher does.
+ HOTKEYS_FROM_LAUNCHER is what launcher/hotkeys.js formatOverrides wrote on 2026-10-15 for these keys
+ over the shipped game (its launcher part cut to three blocks), and HOTKEYS_COMMAND_MAP the shipped
+ CommandMap.ini's entries for the commands it names. */
+static const char HOTKEYS_COMMAND_MAP[] =
+ "; comments go\r\n"
+ "CommandMap DEMO_INSTANT_QUIT\r\n Key = KEY_BACKSPACE\r\n Modifiers = SHIFT_CTRL\r\n UseableIn = GAME SHELL\r\nEnd\r\n"
+ "CommandMap SELECT_TEAM1\r\n Key = KEY_1\r\n Transition = DOWN\r\n Modifiers = NONE\r\n UseableIn = GAME\r\n"
+ " Category = TEAM\r\n DisplayName = GUI:SelectTeam1\r\nEnd\r\n"
+ "CommandMap VIEW_COMMAND_CENTER\r\n Key = KEY_H\r\n Modifiers = NONE\r\n UseableIn = GAME\r\n Category = SELECTION\r\nEnd\r\n"
+ "CommandMap VIEW_LAST_RADAR_EVENT\r\n Key = KEY_SPACE\r\n Modifiers = NONE\r\n UseableIn = GAME\r\nEnd\r\n"
+ "CommandMap TAKE_SCREENSHOT\r\n Key = KEY_F12\r\n Modifiers = NONE\r\n UseableIn = GAME SHELL\r\nEnd\r\n"
+ "CommandMap BEGIN_CAMERA_ROTATE_LEFT\r\n Key = KEY_KP4\r\n Modifiers = NONE\r\n UseableIn = GAME\r\nEnd\r\n"
+ "CommandMap END_CAMERA_ROTATE_LEFT\r\n Key = KEY_KP4\r\n Transition = UP\r\n Modifiers = NONE\r\n UseableIn = GAME\r\nEnd\r\n"
+ "CommandMap BEGIN_FORCEATTACK\r\n Key = KEY_NONE\r\n Modifiers = CTRL\r\n UseableIn = GAME\r\nEnd\r\n";
+
+static const char HOTKEYS_FROM_LAUNCHER[] =
+ "; Zero Hour Reforged hotkeys, written by the launcher's Hotkeys page. Only what differs from the\r\n"
+ "; game is here. The game reads it at start; it is not part of the multiplayer checksum.\r\n"
+ "\r\n"
+ "CommandMap BEGIN_CAMERA_ROTATE_LEFT\r\n"
+ " Key = KEY_LBRACKET\r\n"
+ " Transition = DOWN\r\n"
+ " Modifiers = NONE\r\n"
+ " UseableIn = GAME\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandMap END_CAMERA_ROTATE_LEFT\r\n"
+ " Key = KEY_LBRACKET\r\n"
+ " Transition = UP\r\n"
+ " Modifiers = NONE\r\n"
+ " UseableIn = GAME\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandMap BEGIN_FORCEATTACK\r\n"
+ " Key = KEY_NONE\r\n"
+ " Transition = DOWN\r\n"
+ " Modifiers = ALT\r\n"
+ " UseableIn = GAME\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandMap END_FORCEATTACK\r\n"
+ " Key = KEY_NONE\r\n"
+ " Transition = UP\r\n"
+ " Modifiers = ALT\r\n"
+ " UseableIn = GAME\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandMap SELECT_ALL_MILITARY\r\n"
+ " Key = KEY_Q\r\n"
+ " Transition = DOWN\r\n"
+ " Modifiers = CTRL\r\n"
+ " UseableIn = GAME\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandMap SELECT_TEAM1\r\n"
+ " Key = KEY_KP1\r\n"
+ " Transition = DOWN\r\n"
+ " Modifiers = SHIFT_ALT_CTRL\r\n"
+ " UseableIn = GAME\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandMap TAKE_SCREENSHOT\r\n"
+ " Key = KEY_F11\r\n"
+ " Transition = DOWN\r\n"
+ " Modifiers = CTRL\r\n"
+ " UseableIn = GAME SHELL\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandMap VIEW_LAST_RADAR_EVENT\r\n"
+ " Key = KEY_NONE\r\n"
+ " Transition = DOWN\r\n"
+ " Modifiers = NONE\r\n"
+ " UseableIn = NONE\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandButtonHotKey Command_ConstructAmericaBarracks\r\n"
+ " Key = B\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandButtonHotKey command_lowercase\r\n"
+ " Key = NONE\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandButtonHotKey Command_Sell\r\n"
+ " Key = S\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandButtonHotKey Command_UpgradeChinaMines\r\n"
+ " Key = Q\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandButtonHotKey mymod:Command_Sell\r\n"
+ " Key = K\r\n"
+ "End\r\n"
+ "\r\n"
+ "; the launcher's own keys from here on\r\n"
+ "\r\n"
+ "CommandMap SELECT_NEXT_IDLE_WORKER\r\n"
+ " Key = KEY_I\r\n"
+ " Transition = DOWN\r\n"
+ " Modifiers = NONE\r\n"
+ " UseableIn = GAME\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandMap VIEW_COMMAND_CENTER\r\n"
+ " Key = KEY_P\r\n"
+ " Transition = DOWN\r\n"
+ " Modifiers = NONE\r\n"
+ " UseableIn = GAME\r\n"
+ "End\r\n"
+ "\r\n"
+ "CommandButtonHotKey AirF_Command_A10ThunderboltMissileStrike\r\n"
+ " Key = M\r\n"
+ "End\r\n";
+
+TEST(hotkeys_file_reads_the_launchers_rows_and_leaves_its_defaults_out)
+{
+ const std::vector< HotkeyCommandRow > rows = Hotkeys_commandRows( HOTKEYS_COMMAND_MAP );
+ const HotkeyCommandRow *team = NULL, *hold = NULL, *idle = NULL;
+ Bool demo = FALSE, endHalf = FALSE;
+ for( size_t each = 0; each < rows.size(); each++ )
+ {
+ team = rows[ each ].id == "SELECT_TEAM1" ? &rows[ each ] : team;
+ hold = rows[ each ].id == "BEGIN_FORCEATTACK" ? &rows[ each ] : hold;
+ idle = rows[ each ].id == "SELECT_NEXT_IDLE_WORKER" ? &rows[ each ] : idle;
+ demo = demo || rows[ each ].id == "DEMO_INSTANT_QUIT";
+ endHalf = endHalf || rows[ each ].id == "END_CAMERA_ROTATE_LEFT";
+ }
+ CHECK( !demo );
+ CHECK( !endHalf );
+ CHECK( team != NULL && team->binding == HotkeyBinding( "KEY_1", "NONE" ) && team->category == "TEAM" && team->label == "GUI:SelectTeam1" );
+ // KEY_NONE is not a key the launcher shows, so the shipped hold comes back as its own bar-only row
+ CHECK( hold != NULL && hold->barOnly && hold->binding == HotkeyBinding( "", "CTRL" ) && hold->pair == "END_FORCEATTACK" );
+ CHECK( idle != NULL && idle->launcherDefault && idle->binding.key == "KEY_I" );
+
+ // the launcher's own defaults in the player's part are no change of his
+ const HotkeysFile mine = Hotkeys_parse(
+ "CommandMap SELECT_NEXT_IDLE_WORKER\r\n Key = KEY_I\r\n Modifiers = NONE\r\n UseableIn = GAME\r\nEnd\r\n"
+ "CommandMap BEGIN_FORCEATTACK\r\n Key = KEY_NONE\r\n Modifiers = CTRL\r\n UseableIn = GAME\r\nEnd\r\n"
+ "CommandMap SCATTER\r\n Key = KEY_NOTAKEY\r\n Modifiers = CTRL\r\n UseableIn = GAME\r\nEnd\r\n", rows );
+ CHECK_EQ( (Int)mine.commands.size(), 1 );
+ CHECK( mine.commands.find( "SCATTER" )->second == HotkeyBinding( "", "NONE" ) );
+ CHECK( mine.launcherPart.empty() );
+}
+
+TEST(hotkeys_file_the_launcher_wrote_comes_back_byte_for_byte)
+{
+ const std::vector< HotkeyCommandRow > rows = Hotkeys_commandRows( HOTKEYS_COMMAND_MAP );
+ const HotkeysFile file = Hotkeys_parse( HOTKEYS_FROM_LAUNCHER, rows );
+ CHECK_EQ( (Int)file.commands.size(), 6 );
+ CHECK( file.commands.find( "BEGIN_FORCEATTACK" )->second == HotkeyBinding( "", "ALT" ) );
+ CHECK( file.commands.find( "VIEW_LAST_RADAR_EVENT" )->second == HotkeyBinding( "", "NONE" ) );
+ CHECK( file.commands.find( "SELECT_TEAM1" )->second == HotkeyBinding( "KEY_KP1", "SHIFT_ALT_CTRL" ) );
+ CHECK( file.commands.find( "VIEW_COMMAND_CENTER" ) == file.commands.end() ); // the launcher's, not his
+ CHECK_EQ( (Int)file.buttons.size(), 5 );
+ CHECK_STR( file.buttons.find( "mymod:Command_Sell" )->second.c_str(), "K" );
+ CHECK_STR( file.buttons.find( "command_lowercase" )->second.c_str(), "" );
+ CHECK( Hotkeys_format( file, rows ) == std::string( HOTKEYS_FROM_LAUNCHER ) );
+
+ std::map< std::string, HotkeyBinding > launcherCommands;
+ std::map< std::string, std::string > launcherButtons;
+ Hotkeys_launcherKeys( file.launcherPart, &launcherCommands, &launcherButtons );
+ CHECK( launcherCommands.find( "VIEW_COMMAND_CENTER" )->second == HotkeyBinding( "KEY_P", "NONE" ) );
+ CHECK_STR( launcherButtons.find( "AirF_Command_A10ThunderboltMissileStrike" )->second.c_str(), "M" );
+}
+
+TEST(hotkeys_file_drops_the_launchers_block_for_what_the_player_set)
+{
+ const std::vector< HotkeyCommandRow > rows = Hotkeys_commandRows( HOTKEYS_COMMAND_MAP );
+ HotkeysFile file = Hotkeys_parse( HOTKEYS_FROM_LAUNCHER, rows );
+ // a later block beats an earlier one in the game, so the launcher's move would undo these
+ file.buttons[ "AirF_Command_A10ThunderboltMissileStrike" ] = "Z";
+ file.commands[ "VIEW_COMMAND_CENTER" ] = HotkeyBinding( "KEY_H", "CTRL" );
+ const std::string text = Hotkeys_format( file, rows );
+ const size_t part = text.find( HOTKEYS_LAUNCHER_PART );
+ CHECK( part != std::string::npos );
+ const std::string launcher = text.substr( part );
+ CHECK( launcher.find( "AirF_Command_A10ThunderboltMissileStrike" ) == std::string::npos );
+ CHECK( launcher.find( "VIEW_COMMAND_CENTER" ) == std::string::npos );
+ CHECK( launcher.find( "SELECT_NEXT_IDLE_WORKER" ) != std::string::npos );
+ // the launcher's part still ends the way the launcher ends it, on End and one line break
+ CHECK( launcher.size() > 7 && launcher.compare( launcher.size() - 7, 7, "\r\nEnd\r\n" ) == 0 );
+ CHECK( launcher.find( "End\r\n\r\n\r\n" ) == std::string::npos );
+
+ const HotkeysFile back = Hotkeys_parse( text, rows );
+ CHECK_STR( back.buttons.find( "AirF_Command_A10ThunderboltMissileStrike" )->second.c_str(), "Z" );
+ CHECK( back.commands.find( "VIEW_COMMAND_CENTER" )->second == HotkeyBinding( "KEY_H", "CTRL" ) );
+
+ // a file nobody wrote gets the launcher's line and nothing after it
+ HotkeysFile fresh = Hotkeys_parse( "", rows );
+ fresh.buttons[ "Command_Sell" ] = "";
+ const std::string first = Hotkeys_format( fresh, rows );
+ CHECK( first.compare( first.size() - strlen( HOTKEYS_LAUNCHER_PART ) - 2, std::string::npos,
+ std::string( HOTKEYS_LAUNCHER_PART ) + "\r\n" ) == 0 );
+ CHECK( first.find( "CommandButtonHotKey Command_Sell\r\n Key = NONE\r\nEnd\r\n\r\n" ) != std::string::npos );
+}
+
+TEST(hotkeys_names_sort_and_chords_read_as_the_launcher_has_them)
+{
+ // String.localeCompare: case aside, '_' before the letters, then lower case first
+ CHECK( Hotkeys_nameLess( "command_lowercase", "Command_Sell" ) );
+ CHECK( Hotkeys_nameLess( "Command_Sell", "Command_UpgradeChinaMines" ) );
+ CHECK( Hotkeys_nameLess( "Command_UpgradeChinaMines", "mymod:Command_Sell" ) );
+ CHECK( Hotkeys_nameLess( "SELECT_ALL", "SELECT_ALL_MILITARY" ) );
+ CHECK( Hotkeys_nameLess( "SELECT_ALL_MILITARY", "SELECT_TEAM1" ) );
+ CHECK( Hotkeys_nameLess( "command_sell", "Command_Sell" ) );
+ CHECK( !Hotkeys_nameLess( "Command_Sell", "Command_Sell" ) );
+
+ CHECK_STR( Hotkeys_chordText( HotkeyBinding( "KEY_KP1", "SHIFT_ALT_CTRL" ) ).c_str(), "Ctrl + Alt + Shift + Num 1" );
+ CHECK_STR( Hotkeys_chordText( HotkeyBinding( "", "ALT" ) ).c_str(), "Alt" );
+ CHECK_STR( Hotkeys_chordText( HotkeyBinding( "KEY_LBRACKET", "NONE" ) ).c_str(), "[" );
+ CHECK_STR( Hotkeys_chordText( HotkeyBinding( "", "NONE" ) ).c_str(), "" );
+ CHECK( Hotkeys_isKeyName( "KEY_PGDN" ) && !Hotkeys_isKeyName( "KEY_NONE" ) && !Hotkeys_isKeyName( "KEY_LCTRL" ) );
+}
+
/* GlobalData.h: which button orders. The classic mouse is 1.04's left button, or the right under EA's
Alternate Mouse Setup (UseAlternateMouse, off out of the box); Reforged is the right whatever Options.ini says. */
TEST(alternate_mouse_moves_the_order_button_in_classic_only)
diff --git a/GeneralsMD/Code/Tools/optionsmenu_layout.py b/GeneralsMD/Code/Tools/optionsmenu_layout.py
index b1ab91dd8..1db7e9190 100644
--- a/GeneralsMD/Code/Tools/optionsmenu_layout.py
+++ b/GeneralsMD/Code/Tools/optionsmenu_layout.py
@@ -1,13 +1,13 @@
#!/usr/bin/env python3
-"""Rebuild OptionsMenu.wnd as seven tabbed pages on one grid.
+"""Rebuild OptionsMenu.wnd as eight tabbed pages on one grid.
EA's options screen is one 800x600 panel with everything on it at once, and it was already full
when it shipped: the language filter, the keyboard button and the four camera checkboxes are all
still in the file, parked off the right edge with HIDDEN set, because there was nowhere left to put
them. Seventeen settings later there is no version of "find room" that works.
-So the screen becomes seven pages behind seven buttons: Display, Graphics, Effects, Audio, Controls,
-Interface and Network. Every graphics setting is on Graphics or Effects, including the ones EA hid in
+So the screen becomes eight pages behind eight buttons: Display, Graphics, Effects, Audio, Controls,
+Interface, Network and Hotkeys, the last two lists rather than settings (build_hotkeys_page). Every graphics setting is on Graphics or Effects, including the ones EA hid in
a popup that only opened when Custom was picked from a combo box on another page. Each page is a list
of titled groups, sorted by what a setting does, flowed into three columns on one grid, so a heading,
a label and a box start in the same place whichever tab is open, and every slider has a readout
@@ -48,8 +48,8 @@ from wndlayout import clone
# and the version line all start and stop. The frame is as tall as the tallest group column needs -
# Effects' Shadows column and Graphics' Quality column both end 312 pixels below their heading, on the
# page's last pixel - plus the title, the tabs and the buttons, and it is centred on the 600 line: 58
-# above it, 58 below. A column that runs past the page is refused when the layout is built. Seven tabs
-# still fit the inner width at 100 pixels each.
+# above it, 58 below. A column that runs past the page is refused when the layout is built. Eight tabs
+# still fit the inner width at 87 pixels each.
PANEL = (20, 58, 760, 484) # left, top, width, height
INNER_LEFT, INNER_WIDTH = 36, 728
TITLE = (INNER_LEFT, 64, 400, 32)
@@ -67,8 +67,37 @@ TABS = [
("PageControls", "TabControls", "GUI:OptionsTabControls"),
("PageInterface", "TabInterface", "GUI:OptionsTabInterface"),
("PageNetwork", "TabNetwork", "GUI:OptionsTabNetwork"),
+ ("PageHotkeys", "TabHotkeys", "GUI:OptionsTabHotkeys"),
]
+# The Hotkeys page is two lists rather than groups of settings: every command on the left, and on the
+# right the command bar of one building or unit, picked by general and object. Its lists are cloned
+# from the LAN lobby's chat list, the one scrolling list box with EA's art that is two layouts away,
+# and its buttons from the Network page's Refresh. OptionsMenuHotkeys.cpp fills all of it in.
+# (name, left, top, width, height)
+HOTKEY_LIST_SOURCE = "ListboxChatWindowLanGame"
+HOTKEY_COMMANDS = ("ListboxHotkeyCommands", 40, 182, 344, 220)
+HOTKEY_FACTION = ("ComboBoxHotkeyFaction", 408, 182, 352, 24)
+HOTKEY_OBJECT = ("ComboBoxHotkeyObject", 408, 214, 352, 24)
+HOTKEY_BUTTONS = ("ListboxHotkeyButtons", 408, 246, 352, 156)
+# four lines of the notes' 10 point lettering: a clash names every button on the letter
+HOTKEY_NOTE = ("HotkeyNote", 34, 408, 398, 54)
+HOTKEY_HEADINGS = [("GUI:HotkeysCommands", 40), ("GUI:HotkeysCommandBar", 408)]
+# (name, caption key, left)
+HOTKEY_BUTTON_ROW = [("ButtonHotkeyChange", "GUI:HotkeysChange", 440),
+ ("ButtonHotkeyClear", "GUI:HotkeysClear", 548),
+ ("ButtonHotkeyDefault", "GUI:HotkeysDefault", 656)]
+HOTKEY_BUTTON_TOP, HOTKEY_BUTTON_WIDTH = 412, 104
+# the share of each list's width a column takes: name and key, and on the bar a cameo first
+HOTKEY_COMMAND_COLUMNS = (68, 32)
+HOTKEY_BUTTON_COLUMNS = (12, 66, 22)
+# strings OptionsMenuHotkeys.cpp shows besides the captions above
+HOTKEY_STRINGS = ["GUI:HotkeysNone", "GUI:HotkeysPressKey", "GUI:HotkeysPressLetter", "GUI:HotkeysPressForceAttack",
+ "GUI:HotkeysClash", "GUI:HotkeysAlsoOn", "GUI:HotkeysFixed", "GUI:HotkeysGameKey",
+ "GUI:HotkeysMoved", "GUI:HotkeysForceAttack", "GUI:HotkeysPick", "GUI:HotkeysOnFixedKey",
+ "GUI:HotkeysButtonMoved", "TOOLTIP:HotkeyChange", "TOOLTIP:HotkeyClear",
+ "TOOLTIP:HotkeyDefault"]
+
# EA's four group panels. Each drew a framed box of its own inside the page, sized for a heading
# and a row that are gone, so no two pages had their first control in the same place. The panels
# go and their controls stand on the page; the two volume sliders EA left outside the audio panel
@@ -553,10 +582,63 @@ def drop_by_text(root, texts):
if drawn_text(child) not in wanted]
+def make_heading(templates, name, key):
+ """A group's heading: a label in the buttons' lettering and the heading green."""
+ heading = clone(templates[LABEL], _named(name))
+ heading.children = []
+ heading.put_prop("TEXT", '"%s"' % key)
+ drop_prop(heading, "TOOLTIPTEXT")
+ restyle(heading, templates["ButtonDefaults"], keys=("FONT", "HEADERTEMPLATE"))
+ heading.set_prop("TEXTCOLOR", GROUP_HEADING_COLOR)
+ heading.put_prop("STATICTEXTDATA", "CENTERED: 0")
+ return heading
+
+
+def make_list(templates, spec, columns):
+ """A scrolling list cloned from the LAN lobby's chat, which takes the focus so the arrow keys
+ walk it, and keeps no more rows than it is given."""
+ name, left, top, width, height = spec
+ listbox = clone(templates[HOTKEY_LIST_SOURCE], _named(name))
+ listbox.place(left, top, width, height)
+ listbox.set_prop("STATUS", "ENABLED")
+ widths = "".join("COLUMNSWIDTH: %d, " % share for share in columns)
+ listbox.set_prop("LISTBOXDATA", "LENGTH: 300, AUTOSCROLL: 0, SCROLLIFATEND: 0, AUTOPURGE: 0, SCROLLBAR: 1, "
+ "MULTISELECT: 0, COLUMNS: %d, %sFORCESELECT: 0" % (len(columns), widths))
+ return listbox
+
+
+def build_hotkeys_page(page, templates):
+ for index, (key, left) in enumerate(HOTKEY_HEADINGS):
+ heading = make_heading(templates, "GroupHeadingHotkeys%d" % index, key)
+ heading.place(left - TEXT_NUDGE, HEADING_TOP, 344, ROW_HEIGHT)
+ page.children.append(heading)
+ page.children.append(make_list(templates, HOTKEY_COMMANDS, HOTKEY_COMMAND_COLUMNS))
+ for name, left, top, width, height in (HOTKEY_FACTION, HOTKEY_OBJECT):
+ combo = clone(templates[COMBO], _named(name))
+ combo.place(left, top, width, height)
+ drop_prop(combo, "TOOLTIPTEXT")
+ combo.set_prop("COMBOBOXDATA", "ISEDITABLE: 0, MAXCHARS: 64, MAXDISPLAY: 12, ASCIIONLY: 0, LETTERSANDNUMBERS: 0")
+ page.children.append(combo)
+ page.children.append(make_list(templates, HOTKEY_BUTTONS, HOTKEY_BUTTON_COLUMNS))
+ name, left, top, width, height = HOTKEY_NOTE
+ note = make_note(templates[LABEL], name)
+ note.place(left, top, width, height)
+ page.children.append(note)
+ for name, key, left in HOTKEY_BUTTON_ROW:
+ button = clone(templates["ButtonFirewallRefresh"], _named(name))
+ button.children = []
+ button.place(left, HOTKEY_BUTTON_TOP, HOTKEY_BUTTON_WIDTH, ROW_HEIGHT)
+ button.put_prop("TEXT", '"%s"' % key)
+ button.put_prop("TOOLTIPTEXT", '"TOOLTIP:%s"' % name[len("Button"):])
+ page.children.append(button)
+
+
def build(layout):
old = layout.find("OptionsMenuParentOld")
templates = dict((name, layout.find(name))
- for name in (CHECK, LABEL, COMBO, SLIDER, "VideoParent", "ButtonDefaults"))
+ for name in (CHECK, LABEL, COMBO, SLIDER, "VideoParent", "ButtonDefaults",
+ "ButtonFirewallRefresh"))
+ templates[HOTKEY_LIST_SOURCE] = wndlayout.load(LAN_LAYOUT).find(HOTKEY_LIST_SOURCE)
for text, name in NAME_THE_UNNAMED:
for node in layout.root.walk():
@@ -617,14 +699,7 @@ def build(layout):
for heading_key, items in stack:
heading_name = "GroupHeading%s%d" % (page_name[len("Page"):], index)
index += 1
- heading = clone(templates[LABEL], _named(heading_name))
- heading.children = []
- heading.put_prop("TEXT", '"%s"' % heading_key)
- drop_prop(heading, "TOOLTIPTEXT")
- restyle(heading, templates["ButtonDefaults"], keys=("FONT", "HEADERTEMPLATE"))
- heading.set_prop("TEXTCOLOR", GROUP_HEADING_COLOR)
- heading.put_prop("STATICTEXTDATA", "CENTERED: 0")
- waiting[heading_name] = heading
+ waiting[heading_name] = make_heading(templates, heading_name, heading_key)
put(page_name, heading_name, left - TEXT_NUDGE, heading_top, COLUMN_WIDTH, ROW_HEIGHT)
top = heading_top + HEADING_PITCH
@@ -650,6 +725,7 @@ def build(layout):
heading_top = top + GROUP_GAP
for page_name, name, column, top in HIDDEN_PARKED:
put(page_name, name, COLUMNS[column], top, COLUMN_WIDTH, ROW_HEIGHT)
+ build_hotkeys_page(pages["PageHotkeys"], templates)
if waiting:
raise KeyError("given no place on a page: %s" % ", ".join(sorted(waiting)))
@@ -690,6 +766,7 @@ _CODE = os.path.dirname(_HERE)
CATALOG = os.path.join(_CODE, "GameEngine", "Source", "Common", "OptionsCatalog.cpp")
STRINGS = os.path.join(_CODE, "Data", "Patch.str")
LAYOUT = os.path.join(_CODE, "Data", "Window", "Menus", "OptionsMenuClassic.wnd")
+LAN_LAYOUT = os.path.join(_CODE, "Data", "Window", "Menus", "LanGameOptionsMenu.wnd")
INCLUDE = os.path.join(_CODE, "GameEngine", "Include")
_ROW = re.compile(
@@ -814,6 +891,13 @@ def selfcheck():
for group in [g for _page, groups in GROUP_LAYOUT for g in groups]:
if group[0] not in keys:
problems.append("group heading %s is not in Patch.str" % group[0])
+ hotkey_controls = [spec[0] for spec in (HOTKEY_COMMANDS, HOTKEY_FACTION, HOTKEY_OBJECT, HOTKEY_BUTTONS, HOTKEY_NOTE)]
+ for name in hotkey_controls + [name for name, _key, _left in HOTKEY_BUTTON_ROW]:
+ if name not in controls:
+ problems.append("%s has no %s, which OptionsMenuHotkeys.cpp fills in" % (os.path.basename(LAYOUT), name))
+ for key in [key for key, _left in HOTKEY_HEADINGS] + [key for _n, key, _l in HOTKEY_BUTTON_ROW] + HOTKEY_STRINGS:
+ if key not in keys:
+ problems.append("the Hotkeys page needs %s in Patch.str" % key)
for name, key, count in NOTES:
for entry in range(count):
if "%s%d" % (key, entry) not in keys: