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(gameengine): one interface, laid out as zero hour shipped

Olcay Seyganeeb964a4ed87
diff --git a/.gitattributes b/.gitattributes
index 75d32d257..015a82cb8 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -4,10 +4,8 @@
# the same.
*.sh text eol=lf
-# litehtml's sources are LF, and a patch for them in CRLF matches none of their lines.
-GeneralsMD/Code/Libraries/Source/litehtml-*.patch text eol=lf
-
-# So are LZH-Light's (the fetched archive), and the same holds for its patch.
+# LZH-Light's sources (the fetched archive) are LF, and a patch for them in CRLF matches none of
+# their lines.
GeneralsMD/Code/Libraries/Source/lzhl-*.patch text eol=lf
# So are SDL3's, and the same holds for its patches.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7f6603e9a..1381374c0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,10 @@ found and fixed — EA's own, not port damage.**
- Joining a LAN game that runs different mods used to end in a box about a mismatch and nothing else. It names the host's mods now, or tells you the host plays without any.
- Two total conversions in one match. Add `-modfactions` to the mods you give, and each mod's armies join Zero Hour's own instead of replacing them: the faction list reads "ShockWave - USA" and "The End of Days - USA" under plain "USA", and a ShockWave army can fight an End of Days one. Each side builds from its own mod's units, weapons, upgrades and generals' powers, and each looks and sounds like its own mod: a ShockWave tank wears ShockWave's model and textures even where The End of Days replaces the same file, and speaks with ShockWave's voice. Playing a mod's faction, your command bar, build pictures, unit names and tooltips are that mod's; on one of Zero Hour's own you keep our bar. The End of Days' Russia is in the list under its own name. Menus, lobby and colours stay ours whatever mods you load. The skirmish AI lays out a mod's base from the mod's own buildings, but it still trains the army it knows from Zero Hour.
+## One interface
+
+- The choice between a Classic and a Reforged interface is gone. There is one, laid out the way Zero Hour shipped, and the orders Reforged added now live on the keys you already know: A attack-moves, holding Ctrl fires on whatever is under the cursor as it did in 2003, a guard order can cover a patch of ground instead of one spot, and orders queue up one after another. Everything your base is building stands on the screen as a line of text each, the six closest to done first and "+N more" for the rest. Superweapon countdowns are listed the same way, up to eighteen. Whether the right button gives orders, or the left as in 1.04, is a setting in the launcher.
+
## The command bar moves to the middle
- The command bar is one console standing in the middle of the bottom edge: a taller radar, your selection and the build grid side by side, with the power bar over the grid. The idle worker and rank keys sit in a row over your selection, and in multiplayer the smoke signals join them. The red under-attack lamp is gone: the ping on the radar, the voice and the line in the event feed already tell you where you are hit, and the lamp only blinked about it a second time.
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifest
index 39ee5886f..afc55ac4e 100644
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@ -10,7 +10,6 @@ Data/Art/Textures/ReforgedBarGLACenter.tga
Data/Art/Textures/ReforgedBarGLALeft.tga
Data/Art/Textures/ReforgedBarGLARight.tga
Data/Art/Textures/ReforgedLaserPink.tga
-Data/Art/Textures/ReforgedOrders.tga
Data/Art/Textures/ReforgedSignalAttack.tga
Data/Art/Textures/ReforgedSignalDefend.tga
Data/Art/Textures/ReforgedSignalLook.tga
@@ -106,13 +105,11 @@ Data/Cinema/v240_tank.txt
Data/Cinema/wreckcheck.txt
Data/German/Generals.str
Data/INI/BalanceReforged.ini
-Data/INI/CommandMapReforged.ini
Data/INI/CommandSetReforged.ini
Data/INI/ControlBarSchemeReforged.ini
Data/INI/FXListReforged.ini
Data/INI/FixesReforged.ini
Data/INI/MappedImages/HandCreated/ReforgedBarChinaBeacon.ini
-Data/INI/MappedImages/HandCreated/ReforgedOrders.ini
Data/INI/ObjectCreationListReforged.ini
Data/INI/ParticleSystemReforged.ini
Data/INI/ScienceReforged.ini
@@ -272,28 +269,8 @@ Data/Scenarios/vision.txt
Data/Scenarios/wreckcheck.txt
Data/Scripts/SkirmishScripts.scb
Data/Turkish/Generals.str
-Data/Window/Html/Alert.html
-Data/Window/Html/Chat.html
-Data/Window/Html/Cheats.html
-Data/Window/Html/ControlBar.html
-Data/Window/Html/Feed.html
-Data/Window/Html/Icons/IdleWorker.svg
-Data/Window/Html/Icons/RankStar.svg
-Data/Window/Html/Icons/RankStarDark.svg
-Data/Window/Html/Icons/SignalAttack.svg
-Data/Window/Html/Icons/SignalDefend.svg
-Data/Window/Html/Icons/SignalLook.svg
-Data/Window/Html/Net.html
-Data/Window/Html/Promotion.html
-Data/Window/Html/Queue.html
-Data/Window/Html/QuitMenu.html
-Data/Window/Html/Readout.html
-Data/Window/Html/Scoreboard.html
-Data/Window/Html/Spectator.html
-Data/Window/Html/Tooltip.html
Data/Window/Menus/GameSpyGameOptionsMenu.wnd
Data/Window/Menus/LanGameOptionsMenu.wnd
-Data/Window/Menus/OptionsMenu.wnd
Data/Window/Menus/OptionsMenuClassic.wnd
Data/Window/Menus/SkirmishGameOptionsMenu.wnd
Data/Window/Trainer.wnd
@@ -516,8 +493,6 @@ GameEngine/Include/GameClient/GraphDraw.h
GameEngine/Include/GameClient/HeaderTemplate.h
GameEngine/Include/GameClient/HintSpy.h
GameEngine/Include/GameClient/HotKey.h
-GameEngine/Include/GameClient/HtmlOverlay.h
-GameEngine/Include/GameClient/HtmlTemplate.h
GameEngine/Include/GameClient/IMEManager.h
GameEngine/Include/GameClient/IMEManagerPosix.h
GameEngine/Include/GameClient/Image.h
@@ -1160,8 +1135,6 @@ GameEngine/Source/GameClient/GameConsole.cpp
GameEngine/Source/GameClient/GameText.cpp
GameEngine/Source/GameClient/GlobalLanguage.cpp
GameEngine/Source/GameClient/GraphDraw.cpp
-GameEngine/Source/GameClient/HtmlOverlay.cpp
-GameEngine/Source/GameClient/HtmlTemplate.cpp
GameEngine/Source/GameClient/InGameUI.cpp
GameEngine/Source/GameClient/Input/Keyboard.cpp
GameEngine/Source/GameClient/Input/Mouse.cpp
@@ -2786,12 +2759,9 @@ Libraries/Source/freetype/.gitignore
Libraries/Source/gamespy-gsi-unix.patch
Libraries/Source/gamespy-strlwr-c-only.patch
Libraries/Source/glslang/.gitignore
-Libraries/Source/litehtml-parsed-css.patch
-Libraries/Source/litehtml/.gitignore
Libraries/Source/lzhl-clear-history.patch
Libraries/Source/max4sdk/.gitignore
Libraries/Source/miniaudio/.gitignore
-Libraries/Source/nanosvg/.gitignore
Libraries/Source/profile/_pch.cpp
Libraries/Source/profile/_pch.h
Libraries/Source/profile/compile_doxygen.bat
@@ -3914,7 +3884,6 @@ Tools/matchbot/wnet/udp.h
Tools/net-check.sh
Tools/net_check.py
Tools/optionsmenu_layout.py
-Tools/order_cameos.py
Tools/overlay-crc-check.sh
Tools/package-common.sh
Tools/packaging-resolution-check.sh
@@ -3923,7 +3892,6 @@ Tools/pink_laser.py
Tools/record-dx11-shaders.ps1
Tools/replay-check.sh
Tools/root-readonly-check.sh
-Tools/run_with_modules.py
Tools/signal_marks.py
Tools/stage-overlay.sh
Tools/syntax_sweep.py
diff --git a/GeneralsMD/Code/CMakeLists.txt b/GeneralsMD/Code/CMakeLists.txt
index a1eb67af9..e0bf6eab5 100644
--- a/GeneralsMD/Code/CMakeLists.txt
+++ b/GeneralsMD/Code/CMakeLists.txt
@@ -128,10 +128,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Libraries/Include)
set(VENDORED
${COMP}/ZLib/deflate.c
${COMP}/LZHCompress/CompLibSource/Lzhl.cpp
- # litehtml and nanosvg are common rather than Windows-only: gameengine links litehtml and
- # compiles nanosvg into HtmlOverlay.cpp, and gameengine is what the macOS build is for.
- ${CMAKE_CURRENT_SOURCE_DIR}/Libraries/Source/litehtml/CMakeLists.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/Libraries/Source/nanosvg/nanosvgrast.h
# The GameSpy SDK is built everywhere since B6 (see "gamespy" below).
${CMAKE_CURRENT_SOURCE_DIR}/Libraries/Source/GameSpy/CMakeLists.txt)
# The DirectX 8 headers are only read by targets this file does not define on macOS, and A2 decides
@@ -866,14 +862,6 @@ set(GS_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GS_INCLUDE_VOICE OFF CACHE BOOL "" FORCE)
add_subdirectory(${LIBSRC}/GameSpy ${CMAKE_CURRENT_BINARY_DIR}/gamespy)
-# ---- litehtml -------------------------------------------------------------
-# The HTML and CSS layout engine behind the pages drawn over the battlefield (GameClient/
-# HtmlOverlay.cpp). It lays a page out and calls back to draw each box and each run of text, so
-# the drawing stays the game's own. Its own CMakeLists sets /permissive- and C++17 for itself
-# alone, and brings the gumbo HTML parser with it.
-set(LITEHTML_BUILD_TESTING OFF CACHE BOOL "" FORCE)
-add_subdirectory(${LIBSRC}/litehtml ${CMAKE_CURRENT_BINARY_DIR}/litehtml)
-
# ---- SDL3 and miniaudio: the platform layer off Windows (decision 3) -------------------------------
# Both are fetched by Tools/vendor.sh and neither is fetched on Windows, which keeps Win32Device and
# Miles. Nothing links either yet: C2/C3 take SDL3's window and events, D4 its GPU API, C4 miniaudio.
@@ -1161,9 +1149,7 @@ target_include_directories(gameengine PUBLIC
# WW3D2 is here for d3dx9math.h alone: BezierSegment carries D3DXMATRIX, and
# DumbProjectileBehavior steers a shell with it. dinput.h now comes out of the
# Windows SDK like d3d9.h does.
- ${WW}/WW3D2
- # nanosvg's two headers, compiled into HtmlOverlay.cpp alone: the SVG pictures a page names.
- ${LIBSRC}/nanosvg)
+ ${WW}/WW3D2)
# _RELEASE/_DEBUG pick the game's own build flavour; IG_DEBUG_STACKTRACE and
# Z_PREFIX are what GameEngine.dsp sets.
target_compile_definitions(gameengine PUBLIC
@@ -1216,7 +1202,7 @@ if(ZH_PLATFORM_WINDOWS)
endif()
target_link_libraries(gameengine PUBLIC
${ZH_GAMEENGINE_WW3D2} wwlib wwmath wwsaveload wwdebug wwutil compression ${ZH_GAMEENGINE_DEBUGLIB} ${ZH_GAMEENGINE_WWDOWNLOAD}
- benchmark ${ZH_GAMEENGINE_EABROWSERDISPATCH} ${ZH_GAMEENGINE_PROFILE} gamespy litehtml
+ benchmark ${ZH_GAMEENGINE_EABROWSERDISPATCH} ${ZH_GAMEENGINE_PROFILE} gamespy
${ZH_GAMEENGINE_DINPUT8} ${ZH_GAMEENGINE_WIN32_SDK_LIBS})
# B1's gate: the bytes a UnicodeString puts into the replay and network CRC, before and after
@@ -1772,10 +1758,8 @@ add_custom_command(TARGET generals POST_BUILD
${CMAKE_CURRENT_SOURCE_DIR}/Data/Install_Final.bmp
${CMAKE_CURRENT_SOURCE_DIR}/../Run/
# The three command bar plates per side, the smoke signals' ground marks and the
- # SupW uplink's pink laser strip (Tools/pink_laser.py) and the attack, hold and move cameos
- # (Tools/order_cameos.py). A loose
- # texture beats every .big, so these land in Run/Art/Textures where the W3D file
- # system looks first.
+ # SupW uplink's pink laser strip (Tools/pink_laser.py). A loose texture beats every .big,
+ # so these land in Run/Art/Textures where the W3D file system looks first.
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/Data/Art/Textures
${CMAKE_CURRENT_SOURCE_DIR}/../Run/Art/Textures
@@ -2322,14 +2306,10 @@ set_tests_properties(test_gameengine PROPERTIES TIMEOUT 2700)
# fxlist_reforged_ini_parses_and_keeps_its_light runs the fork's own FXList file through the real
# INI parser, so it needs the tracked master rather than whatever sits in Run/.
# the_options_menu_buttons_all_wear_one_font reads the tracked layout master, not Run/'s copy.
-# the_spectator_page_names_only_on_off_options reads the tracked page master the same way, and
-# the_command_grid_keys_are_the_places_and_n_sells_and_b_rallies the tracked command map.
target_compile_definitions(test_gameengine PRIVATE
GAMEENGINE_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}/GameEngine"
FXLIST_REFORGED_INI="${CMAKE_CURRENT_SOURCE_DIR}/Data/INI/FXListReforged.ini"
- OPTIONS_MENU_WND="${CMAKE_CURRENT_SOURCE_DIR}/Data/Window/Menus/OptionsMenu.wnd"
- SPECTATOR_HTML="${CMAKE_CURRENT_SOURCE_DIR}/Data/Window/Html/Spectator.html"
- COMMAND_MAP_REFORGED_INI="${CMAKE_CURRENT_SOURCE_DIR}/Data/INI/CommandMapReforged.ini"
+ OPTIONS_MENU_WND="${CMAKE_CURRENT_SOURCE_DIR}/Data/Window/Menus/OptionsMenuClassic.wnd"
PLATE_TEXTURE_DIR="${CMAKE_CURRENT_SOURCE_DIR}/Data/Art/Textures")
# W3: these three link the engine without its device and WinMain, whose Debug-only names it reads
@@ -2651,16 +2631,8 @@ if(Python3_Interpreter_FOUND)
# synthetic one and checks the block parser did not eat an End or duplicate a key.
add_test(NAME vfx_tune_selfcheck
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Tools/vfx_tune.py selfcheck)
- # Tools/order_cameos.py paints the command bar's order key cameos: seven whole pictures in the
- # places the mapped images name, told apart by colour, the same every run.
- add_test(NAME order_cameos_selfcheck
- COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Tools/run_with_modules.py numpy,PIL
- ${CMAKE_CURRENT_SOURCE_DIR}/Tools/order_cameos.py selfcheck)
- # numpy and Pillow are not on every machine (a Mac's system Python has neither): without them the
- # test is skipped and says which is missing, instead of failing on an ImportError
- set_tests_properties(order_cameos_selfcheck PROPERTIES SKIP_RETURN_CODE 77)
# The options screen is three tracked files that have to agree: TheOptionCatalog names a widget,
- # Data/Window/Menus/OptionsMenu.wnd has to carry it, and Data/Patch.str has to carry its label,
+ # Data/Window/Menus/OptionsMenuClassic.wnd has to carry it, and Data/Patch.str has to carry its label,
# its tooltip and every combo box entry. Nothing at build time notices a typo in any of them -
# the control is just never filled in, or the screen draws the key name - so it is checked here.
add_test(NAME optionsmenu_selfcheck
@@ -2848,7 +2820,7 @@ endif()
# P2: on macOS our own code may not call an API newer than the deployment target without guarding it
# (@available / __builtin_available): that is a build error here, not a crash on a player's older Mac.
# Every target this file defines - the game, the port's libraries, the tests - but not the vendored
-# projects add_subdirectory brings in (SDL3, freetype, glslang, SPIRV-Cross, litehtml, GameSpy), which
+# projects add_subdirectory brings in (SDL3, freetype, glslang, SPIRV-Cross, GameSpy), which
# guard their own calls and are not ours to fail. Clang's unguarded-availability-new covers every API
# introduced since macOS 10.13, so it reaches everything above a 13.0 target.
if(APPLE)
diff --git a/GeneralsMD/Code/Data/Art/Textures/ReforgedOrders.tga b/GeneralsMD/Code/Data/Art/Textures/ReforgedOrders.tga
deleted file mode 100644
index 2deb0b02f..000000000
Binary files a/GeneralsMD/Code/Data/Art/Textures/ReforgedOrders.tga and /dev/null differ
diff --git a/GeneralsMD/Code/Data/German/Generals.str b/GeneralsMD/Code/Data/German/Generals.str
index ee3135f9c..7badcf314 100644
--- a/GeneralsMD/Code/Data/German/Generals.str
+++ b/GeneralsMD/Code/Data/German/Generals.str
@@ -14037,198 +14037,18 @@ GUI:StartCustomMission
"SPIEL STARTEN"
END
-GUI:SelectNextIdleWorker
-"Nächsten untätigen Arbeiter wählen"
-END
-
-GUI:SelectNextIdleWorkerDescription
-"Wählt den nächsten Dozer oder Arbeiter ohne Aufgabe und zentriert die Ansicht auf ihn."
-END
-
-GUI:SelectNextIdleUnit
-"Nächste untätige Einheit wählen"
-END
-
-GUI:SelectNextIdleUnitDescription
-"Wählt die nächste Kampfeinheit ohne Befehle und zentriert die Ansicht auf sie."
-END
-
-GUI:CommandSlot01
-"Befehlsleiste Feld 01"
-END
-
-GUI:CommandSlot01Description
-"Drückt Feld 01 der Befehlsleiste (Spalte 1, obere Reihe, 'Q' im Standardraster)."
-END
-
-GUI:CommandSlot02
-"Befehlsleiste Feld 02"
-END
-
-GUI:CommandSlot02Description
-"Drückt Feld 02 der Befehlsleiste (Spalte 2, obere Reihe, 'W' im Standardraster)."
-END
-
-GUI:CommandSlot03
-"Befehlsleiste Feld 03"
-END
-
-GUI:CommandSlot03Description
-"Drückt Befehlsfeld 03 (Spalte 3, obere Reihe, 'E' im Standardlayout)."
-END
-
-GUI:CommandSlot04
-"Befehlsfeld 04"
-END
-
-GUI:CommandSlot04Description
-"Drückt Befehlsfeld 04 (Spalte 4, obere Reihe, 'R' im Standardlayout)."
-END
-
-GUI:CommandSlot05
-"Befehlsfeld 05"
-END
-
-GUI:CommandSlot05Description
-"Drückt Befehlsfeld 05 (Spalte 5, obere Reihe, 'T' im Standardlayout)."
-END
-
-GUI:CommandSlot06
-"Befehlsfeld 06"
-END
-
-GUI:CommandSlot06Description
-"Drückt Befehlsfeld 06 (Spalte 6, obere Reihe, 'Y' im Standardlayout)."
-END
-
-GUI:CommandSlot07
-"Befehlsfeld 07"
-END
-
-GUI:CommandSlot07Description
-"Drückt Befehlsfeld 07 (Spalte 1, mittlere Reihe, 'A' im Standardlayout), wo der Angriff einer Einheit liegt."
-END
-
-GUI:CommandSlot08
-"Befehlsfeld 08"
-END
-
-GUI:CommandSlot08Description
-"Drückt Befehlsfeld 08 (Spalte 2, mittlere Reihe, 'S' im Standardlayout), wo Stopp einer Einheit liegt."
-END
-
-GUI:CommandSlot09
-"Befehlsfeld 09"
-END
-
-GUI:CommandSlot09Description
-"Drückt Befehlsfeld 09 (Spalte 3, mittlere Reihe, 'D' im Standardlayout), wo Angriffsmarsch liegt."
-END
-
-GUI:CommandSlot10
-"Befehlsfeld 10"
-END
-
-GUI:CommandSlot10Description
-"Drückt Befehlsfeld 10 (Spalte 4, mittlere Reihe, 'F' im Standardlayout)."
-END
-
-GUI:CommandSlot11
-"Befehlsfeld 11"
-END
-
-GUI:CommandSlot11Description
-"Drückt Befehlsfeld 11 (Spalte 5, mittlere Reihe, 'G' im Standardlayout)."
-END
-
-GUI:CommandSlot12
-"Befehlsfeld 12"
-END
-
-GUI:CommandSlot12Description
-"Drückt Befehlsfeld 12 (Spalte 6, mittlere Reihe, 'H' im Standardlayout)."
-END
-
-GUI:CommandSlot13
-"Befehlsfeld 13"
-END
-
-GUI:CommandSlot13Description
-"Drückt Befehlsfeld 13 (Spalte 1, untere Reihe, 'Z' im Standardlayout), wo Aussteigen liegt, für Passagiere einer Einheit oder die Besatzung eines Gebäudes."
-END
-
-GUI:CommandSlot14
-"Befehlsfeld 14"
-END
-
-GUI:CommandSlot14Description
-"Drückt Befehlsfeld 14 (Spalte 2, untere Reihe, 'X' im Standardlayout), wo Bewachen liegt."
-END
-
-GUI:CommandSlot15
-"Befehlsfeld 15"
-END
-
-GUI:CommandSlot15Description
-"Drückt Befehlsfeld 15 (Spalte 3, untere Reihe, 'C' im Standardlayout), wo Position halten liegt."
-END
-
-GUI:CommandSlot16
-"Befehlsfeld 16"
-END
-
-GUI:CommandSlot16Description
-"Drückt Befehlsfeld 16 (Spalte 4, untere Reihe, 'V' im Standardlayout)."
-END
-
-GUI:CommandSlot17
-"Befehlsfeld 17"
-END
-
-GUI:CommandSlot17Description
-"Drückt Befehlsfeld 17 (Spalte 5, untere Reihe, 'B' im Standardlayout), wo der Sammelpunkt eines Gebäudes liegt."
-END
-
-GUI:CommandSlot18
-"Befehlsfeld 18"
-END
-
-GUI:CommandSlot18Description
-"Drückt Befehlsfeld 18 (Spalte 6, untere Reihe, 'N' im Standardlayout), wo Verkaufen liegt."
-END
-
-GUI:TogglePurchaseScience
-"General-Beförderungen"
-END
-
-GUI:TogglePurchaseScienceDescription
-"Öffnet und schließt den Beförderungsbildschirm des Generals."
-END
-
GUI:StopDescription
"Stoppt, was die ausgewählten Einheiten gerade tun."
END
-GUI:OrderForceAttack
-"Angriff erzwingen"
-END
-
GUI:OrderForceAttackDescription
"Der nächste Klick greift alles unter dem Zeiger an, auch den Boden und deine eigene Seite. Drücke die Taste erneut, um abzubrechen."
END
-GUI:OrderHoldPosition
-"Position halten"
-END
-
GUI:OrderHoldPositionDescription
"Die ausgewählten Einheiten bewachen ihren Standort und bekämpfen alles in der Nähe, ohne es aus dem Gebiet zu verfolgen."
END
-GUI:OrderMove
-"Bewegen"
-END
-
GUI:OrderMoveDescription
"Der nächste Klick auf den Boden schickt die ausgewählten Einheiten dorthin. Ziehe stattdessen, und sie verteilen sich entlang der gezogenen Linie."
END
@@ -14237,18 +14057,10 @@ GUI:SelectionTypeDescription
"Klicke, um nur diese ausgewählt zu lassen. Mit Umschalt und Klick nimmst du sie aus der Auswahl."
END
-GUI:OrderStanceDefensive
-"Haltung: Defensiv"
-END
-
GUI:OrderStanceDefensiveDescription
"Die ausgewählten Einheiten schießen auf alles in Reichweite und halten ihre Stellung. Klicke, um sie aggressiv zu machen: Sie gehen auf jeden Feind los, den sie sehen."
END
-GUI:OrderStanceAggressive
-"Haltung: Aggressiv"
-END
-
GUI:OrderStanceAggressiveDescription
"Die ausgewählten Einheiten gehen auf jeden Feind los, den sie sehen, und verfolgen ihn. Klicke, um sie wieder defensiv zu machen: Sie schießen nur auf alles in Reichweite und bleiben stehen."
END
@@ -14257,26 +14069,14 @@ GUI:SignalAttack
"Signal: Angriff"
END
-GUI:SignalAttackDescription
-"Rauch in deiner Farbe und gekreuzte Schwerter am Boden für zehn Sekunden, am Cursor oder auf der Radarstelle darunter. Nur deine Verbündeten sehen es."
-END
-
GUI:SignalDefend
"Signal: Verteidigen"
END
-GUI:SignalDefendDescription
-"Rauch in deiner Farbe und ein Schild am Boden für zehn Sekunden, am Cursor oder auf der Radarstelle darunter. Nur deine Verbündeten sehen es."
-END
-
GUI:SignalAttention
"Signal: Hierher schauen"
END
-GUI:SignalAttentionDescription
-"Rauch in deiner Farbe und ein Auge am Boden für zehn Sekunden, am Cursor oder auf der Radarstelle darunter. Nur deine Verbündeten sehen es."
-END
-
GUI:SignalAttackPlaced
"%s: Angriff hier!"
END
@@ -14289,10 +14089,6 @@ GUI:SignalAttentionPlaced
"%s: Schaut hierher!"
END
-GUI:TogglePauseDescription
-"Pausiert und setzt das Spiel fort. Nur Einzelspieler und Replays."
-END
-
GUI:GamePaused
"Spiel pausiert."
END
@@ -14301,110 +14097,6 @@ GUI:GameResumed
"Spiel fortgesetzt."
END
-GUI:SelectAllMilitary
-"Kampfeinheiten auswählen"
-END
-
-GUI:SelectAllMilitaryDescription
-"Wählt deine bewaffneten Einheiten auf dem Bildschirm aus. Drücke erneut, um sie auf der ganzen Karte auszuwählen."
-END
-
-GUI:SelectAllVehicles
-"Fahrzeuge auswählen"
-END
-
-GUI:SelectAllVehiclesDescription
-"Wählt deine Bodenfahrzeuge auf dem Bildschirm aus, ohne Dozer und Arbeiter. Drücke erneut für die ganze Karte."
-END
-
-GUI:SelectAllBarracks
-"Kasernen auswählen"
-END
-
-GUI:SelectAllBarracksDescription
-"Wählt deine Gebäude zur Infanterieproduktion auf dem Bildschirm aus. Drücke erneut, um sie auf der ganzen Karte auszuwählen."
-END
-
-GUI:SelectAllWarFactories
-"Kriegsfabriken auswählen"
-END
-
-GUI:SelectAllWarFactoriesDescription
-"Wählt deine Gebäude zur Fahrzeugproduktion auf dem Bildschirm aus. Drücke erneut, um sie auf der ganzen Karte auszuwählen."
-END
-
-GUI:SelectAllAirfields
-"Flugfelder auswählen"
-END
-
-GUI:SelectAllAirfieldsDescription
-"Wählt deine Flugfelder und Hubschrauberlandeplätze auf dem Bildschirm aus. Drücke erneut, um sie auf der ganzen Karte auszuwählen."
-END
-
-GUI:ShortcutSlot01
-"Generalsfähigkeit 1"
-END
-
-GUI:ShortcutSlot01Description
-"Drückt die erste Taste der Fähigkeitenleiste des Generals oben rechts."
-END
-
-GUI:ShortcutSlot02
-"Generalsfähigkeit 2"
-END
-
-GUI:ShortcutSlot02Description
-"Drückt die zweite Taste der Fähigkeitenleiste des Generals oben rechts."
-END
-
-GUI:ShortcutSlot03
-"Generalsfähigkeit 3"
-END
-
-GUI:ShortcutSlot03Description
-"Drückt die dritte Taste der Fähigkeitenleiste des Generals oben rechts."
-END
-
-GUI:ShortcutSlot04
-"Generalsfähigkeit 4"
-END
-
-GUI:ShortcutSlot04Description
-"Drückt die vierte Taste der Fähigkeitenleiste des Generals oben rechts."
-END
-
-GUI:ShortcutSlot05
-"Generalsfähigkeit 5"
-END
-
-GUI:ShortcutSlot05Description
-"Drückt die fünfte Taste der Fähigkeitenleiste des Generals oben rechts."
-END
-
-GUI:ShortcutSlot06
-"Generalsfähigkeit 6"
-END
-
-GUI:ShortcutSlot06Description
-"Drückt die sechste Taste der Fähigkeitenleiste des Generals oben rechts."
-END
-
-GUI:ShortcutSlot07
-"Generalsfähigkeit 7"
-END
-
-GUI:ShortcutSlot07Description
-"Drückt die siebte Taste der Fähigkeitenleiste des Generals oben rechts."
-END
-
-GUI:ShortcutSlot08
-"Generalsfähigkeit 8"
-END
-
-GUI:ShortcutSlot08Description
-"Drückt die achte Taste der Fähigkeitenleiste des Generals oben rechts."
-END
-
GUI:HumanSlot
"Mensch"
END
@@ -14717,14 +14409,6 @@ TOOLTIP:IsometricCamera
"Das Schlachtfeld aus der Ferne gesehen, sodass eine Einheit oben auf dem Bildschirm so groß ist wie unten. Kamera drehen und zoomen kannst du weiterhin."
END
-GUI:SmoothMotion
-"Flüssige Bewegung"
-END
-
-TOOLTIP:SmoothMotion
-"Einheiten werden zwischen den 30 Schritten des Spiels pro Sekunde gezeichnet und bewegen sich auf schnellen Displays flüssig. Das Bild hängt einen Schritt (33 ms) hinterher; das Spiel selbst bleibt unverändert."
-END
-
GUI:EdgeScrollWindowed
"Randscrollen im Fenster"
END
@@ -14813,26 +14497,6 @@ TOOLTIP:NetBox
"Das Feld oben rechts mit Spieluhr, Bildraten und Verbindung. Aus rücken die Superwaffen-Timer in die Ecke."
END
-GUI:IncomeRate
-"Einkommensanzeige"
-END
-
-GUI:IncomeRate0
-"Pro Sekunde"
-END
-
-GUI:IncomeRate1
-"Pro Minute"
-END
-
-GUI:IncomeRate2
-"Automatisch"
-END
-
-TOOLTIP:IncomeRate
-"Worüber das Einkommen neben deinem Geld gezählt wird. Automatisch zeigt es pro Minute, solange du weniger als $10 pro Sekunde verdienst, wo eine ganze Zahl pro Sekunde das meiste der Änderung verbirgt, und darüber pro Sekunde."
-END
-
GUI:EmptyBuildingPips
"Leere Gebäudeplätze"
END
@@ -14873,14 +14537,6 @@ TOOLTIP:HealthBars
"Intelligent zeigt einen Balken über allem Verletzten, plus Auswahl und was unter dem Cursor liegt. Nur Auswahl war im Original so."
END
-GUI:HudScale
-"HUD-Größe"
-END
-
-TOOLTIP:HudScale
-"Zeichnet die Befehlsleiste und das übrige untere HUD größer, als deine Auflösung es täte."
-END
-
GUI:OptionsGroupInput
"Eingabe"
END
@@ -14929,82 +14585,14 @@ TOOLTIP:Language
"Die Sprache von Menüs, Befehlen, Einsatzbesprechungen und Untertiteln. Sprachausgabe und Videos bleiben wie installiert. Gilt ab dem nächsten Spielstart."
END
-TOOLTIP:SupplyWarehousePercent
-"\n Noch $%d übrig (%d%%)"
-END
-
TOOLTIP:SupplyPileFull
"\n Belegt: Das Haufenlimit hält deine Sammler fern"
END
-TOOLTIP:BuildTimeSeconds
-"\nZeit %ds"
-END
-
-TOOLTIP:WeaponStats
-"Schaden %d Reichw. %d"
-END
-
-TOOLTIP:StatTime
-"Bauzeit"
-END
-
-TOOLTIP:StatDamage
-"Schaden"
-END
-
-TOOLTIP:StatRange
-"Reichweite"
-END
-
-TOOLTIP:StatHealth
-"Gesundheit"
-END
-
-TOOLTIP:StatAttackSpeed
-"Angriffstempo"
-END
-
-TOOLTIP:StatDamagePerSecond
-"Schaden pro Sekunde"
-END
-
-TOOLTIP:StatArmor
-"Panzerung"
-END
-
-TOOLTIP:StatArmorStronger
-"stärker"
-END
-
-TOOLTIP:StatNewWeapon
-"Neue Waffe"
-END
-
-TOOLTIP:StatNewWeaponGround
-"Bodenwaffe"
-END
-
-TOOLTIP:StatNewWeaponAir
-"Luftabwehrwaffe"
-END
-
-TOOLTIP:StatNewWeaponFigures
-"%d Schaden, %d Reichweite"
-END
-
TOOLTIP:Upgrades
"AUFRÜSTUNGEN"
END
-TOOLTIP:UpgradeChanges
-"ÄNDERUNGEN"
-END
-
-TOOLTIP:UpgradeOwned
-"vorhanden"
-END
-
GUI:PeaceTimeOff
"Keine Friedenszeit"
END
@@ -15133,78 +14721,10 @@ GUI:CantBuildTooManyDerrickDefenses
"Du hast schon zwei Verteidigungen an diesen Ölbohrtürmen."
END
-GUI:HudSkillStrip
-"Beförderungen der Generäle"
-END
-
-GUI:HudSuperweaponStrip
-"Superwaffen-Timer"
-END
-
-GUI:HudNetWorth
-"Gesamtwert"
-END
-
-GUI:HudGameStats
-"Spielstatistik"
-END
-
-GUI:HudStatCash
-"Geld"
-END
-
-GUI:HudStatIncome
-"Einkommen pro Minute"
-END
-
GUI:HudStatArmy
"Armeewert"
END
-GUI:HudStatKills
-"Abschüsse / Verluste"
-END
-
-GUI:HudStatRank
-"Rang des Generals"
-END
-
-GUI:HudStatPower
-"Energie"
-END
-
-GUI:HudArmies
-"Armeen"
-END
-
-GUI:HudCamera
-"Kamera"
-END
-
-GUI:HudCameraDirector
-"Regisseur"
-END
-
-GUI:HudCameraFree
-"Frei"
-END
-
-GUI:HudCameraPlayer
-"Spielerkamera"
-END
-
-GUI:HudFollow
-"Spieler"
-END
-
-GUI:HudFollowNobody
-"Keiner"
-END
-
-GUI:HudFog
-"Kriegsnebel"
-END
-
GUI:CheatMoney
"Geld"
END
@@ -15257,42 +14777,6 @@ GUI:CheatApply
"LOS"
END
-GUI:HudSuperweaponReady
-"feuerbereit"
-END
-
-GUI:HudSuperweaponLaunched
-"abgefeuert"
-END
-
-GUI:HudAlertBuilt
-"%s gebaut"
-END
-
-GUI:HudAlertReady
-"%s bereit"
-END
-
-GUI:HudAlertLaunched
-"%s abgefeuert"
-END
-
-GUI:HudPowerUsed
-"genutzt"
-END
-
-GUI:HudPromotionBought
-"freigeschaltet"
-END
-
-GUI:HudStructureStarted
-"Bau begonnen"
-END
-
-GUI:HudStructureBuilt
-"gebaut"
-END
-
GUI:HudNoDozerLeft
"%s hat keinen Dozer mehr"
END
@@ -15305,58 +14789,6 @@ GUI:BarIdleWorker
"Arbeiter"
END
-GUI:BarNetReady
-"bereit"
-END
-
-GUI:BarNetRoom
-"Platz"
-END
-
-GUI:BarNetUnits
-"Einheiten"
-END
-
-GUI:ScoreboardAllies
-"DEINE SEITE"
-END
-
-GUI:ScoreboardEnemies
-"FEINDE"
-END
-
-GUI:ScoreboardPlayer
-"SPIELER"
-END
-
-GUI:ScoreboardLevel
-"RANG"
-END
-
-GUI:ScoreboardMoney
-"GELD"
-END
-
-GUI:ScoreboardPerMinute
-"PRO MIN"
-END
-
-GUI:ScoreboardPerSecond
-"PRO SEK"
-END
-
-GUI:ScoreboardKills
-"A"
-END
-
-GUI:ScoreboardDeaths
-"T"
-END
-
-GUI:ScoreboardPowers
-"KRÄFTE"
-END
-
GUI:ScoreboardFavourite
"LIEBLING"
END
diff --git a/GeneralsMD/Code/Data/INI/CommandMapReforged.ini b/GeneralsMD/Code/Data/INI/CommandMapReforged.ini
deleted file mode 100644
index a7733416b..000000000
--- a/GeneralsMD/Code/Data/INI/CommandMapReforged.ini
+++ /dev/null
@@ -1,629 +0,0 @@
-;//////////////////////////////////////////////////////////////////////////////
-;FILE: CommandMapReforged.ini (SYSTEM) ////////////////////////////////////////
-;//////////////////////////////////////////////////////////////////////////////
-;
-; MASTER COPY - this is the tracked one. The build copies it to
-; Run/Data/INI/CommandMapReforged.ini, which is where the game reads it from and
-; which is gitignored, so edit THIS file and rebuild (or copy it across by hand).
-;
-; It used to be Data\INI\CommandMap.ini, a name EA's own exe reads too. When
-; Steam put the retail generals.exe back over this build, that exe met the
-; commands below it has never heard of and died at start with "Error parsing
-; INI file 'Data\INI\CommandMap.ini'" - three crash reports on 2026-09-23 alone.
-; Under a name only this exe asks for, a retail exe starts as plain Zero Hour.
-;
-; Loose overlay, loaded after Data\<Language>\CommandMap.ini, so a block here
-; overrides that file entry-for-entry and new commands can be added. Every
-; binding this fork adds or moves lives here.
-;
-; Grid command bar, which is how the bar is driven - there is no other scheme and
-; no switch: the command grid is 6 columns x 3 rows and the keys sit under the
-; left hand in the same shape, one key per place.
-;
-; slot 01 02 03 04 05 06 (top row) Q W E R T Y
-; slot 07 08 09 10 11 12 (middle row) A S D F G H
-; slot 13 14 15 16 17 18 (bottom row) Z X C V B N
-;
-; The owner's fixed places: a unit's A attack, S stop, D attack move, Z eject,
-; X guard, C hold position; a building's N sell, B rally point, Z evacuate. The
-; rest of a command set fills the free places in reading order, what it builds
-; first and its abilities and upgrades after (ControlBar_commandPlaces). A key
-; whose place holds its own order, or nothing, still does that order.
-
-CommandMap COMMAND_SLOT01
- Key = KEY_Q
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot01Description
- DisplayName = GUI:CommandSlot01
-End
-
-CommandMap COMMAND_SLOT02
- Key = KEY_W
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot02Description
- DisplayName = GUI:CommandSlot02
-End
-
-CommandMap COMMAND_SLOT03
- Key = KEY_E
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot03Description
- DisplayName = GUI:CommandSlot03
-End
-
-CommandMap COMMAND_SLOT04
- Key = KEY_R
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot04Description
- DisplayName = GUI:CommandSlot04
-End
-
-CommandMap COMMAND_SLOT05
- Key = KEY_T
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot05Description
- DisplayName = GUI:CommandSlot05
-End
-
-CommandMap COMMAND_SLOT06
- Key = KEY_Y
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot06Description
- DisplayName = GUI:CommandSlot06
-End
-
-CommandMap COMMAND_SLOT07
- Key = KEY_A
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot07Description
- DisplayName = GUI:CommandSlot07
-End
-
-CommandMap COMMAND_SLOT08
- Key = KEY_S
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot08Description
- DisplayName = GUI:CommandSlot08
-End
-
-CommandMap COMMAND_SLOT09
- Key = KEY_D
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot09Description
- DisplayName = GUI:CommandSlot09
-End
-
-CommandMap COMMAND_SLOT10
- Key = KEY_F
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot10Description
- DisplayName = GUI:CommandSlot10
-End
-
-CommandMap COMMAND_SLOT11
- Key = KEY_G
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot11Description
- DisplayName = GUI:CommandSlot11
-End
-
-CommandMap COMMAND_SLOT12
- Key = KEY_H
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot12Description
- DisplayName = GUI:CommandSlot12
-End
-
-CommandMap COMMAND_SLOT13
- Key = KEY_Z
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot13Description
- DisplayName = GUI:CommandSlot13
-End
-
-CommandMap COMMAND_SLOT14
- Key = KEY_X
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot14Description
- DisplayName = GUI:CommandSlot14
-End
-
-CommandMap COMMAND_SLOT15
- Key = KEY_C
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot15Description
- DisplayName = GUI:CommandSlot15
-End
-
-CommandMap COMMAND_SLOT16
- Key = KEY_V
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot16Description
- DisplayName = GUI:CommandSlot16
-End
-
-CommandMap COMMAND_SLOT17
- Key = KEY_B
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot17Description
- DisplayName = GUI:CommandSlot17
-End
-
-CommandMap COMMAND_SLOT18
- Key = KEY_N
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:CommandSlot18Description
- DisplayName = GUI:CommandSlot18
-End
-
-;------------------------------------------------------------------------------
-; Category selection. CTRL + a grid letter picks a whole class of thing: the
-; row under the left hand reads Q W E / Z X C = units, and the second press of
-; the same key widens the same selection from the screen to the whole map.
-;------------------------------------------------------------------------------
-
-CommandMap SELECT_ALL_MILITARY
- Key = KEY_Q
- Transition = DOWN
- Modifiers = CTRL
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectAllMilitaryDescription
- DisplayName = GUI:SelectAllMilitary
-End
-
-CommandMap SELECT_ALL_VEHICLES
- Key = KEY_W
- Transition = DOWN
- Modifiers = CTRL
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectAllVehiclesDescription
- DisplayName = GUI:SelectAllVehicles
-End
-
-CommandMap SELECT_ALL_AIRCRAFT
- Key = KEY_E
- Transition = DOWN
- Modifiers = CTRL
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectAllAircraftDescription
- DisplayName = GUI:SelectAllAircraft
-End
-
-CommandMap SELECT_ALL_BARRACKS
- Key = KEY_Z
- Transition = DOWN
- Modifiers = CTRL
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectAllBarracksDescription
- DisplayName = GUI:SelectAllBarracks
-End
-
-CommandMap SELECT_ALL_WARFACTORIES
- Key = KEY_X
- Transition = DOWN
- Modifiers = CTRL
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectAllWarFactoriesDescription
- DisplayName = GUI:SelectAllWarFactories
-End
-
-CommandMap SELECT_ALL_AIRFIELDS
- Key = KEY_C
- Transition = DOWN
- Modifiers = CTRL
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectAllAirfieldsDescription
- DisplayName = GUI:SelectAllAirfields
-End
-
-;------------------------------------------------------------------------------
-; Displaced: the retail owners of the grid letters, and of the CTRL letters the
-; category selection above took.
-;------------------------------------------------------------------------------
-
-CommandMap SELECT_ALL
- Key = KEY_A
- Transition = DOWN
- Modifiers = CTRL
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectAllDescription
- DisplayName = GUI:SelectAll
-End
-
-; Ctrl+D takes every unit of the selected types on the screen; pressed twice
-; inside half a second it takes them across the whole map. D sits under the
-; same hand as the category keys above and next to nothing else in this list.
-CommandMap SELECT_MATCHING_UNITS
- Key = KEY_D
- Transition = DOWN
- Modifiers = CTRL
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:TypeSelectDescription
- DisplayName = GUI:TypeSelect
-End
-
-CommandMap SCATTER
- Key = KEY_X
- Transition = DOWN
- Modifiers = SHIFT_CTRL
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ScatterDescription
- DisplayName = GUI:SCATTER
-End
-
-CommandMap ALL_CHEER
- Key = KEY_C
- Transition = DOWN
- Modifiers = SHIFT_CTRL
- UseableIn = GAME
- Category = TAUNT
- Description = GUI:AllCheerDescription
- DisplayName = GUI:AllCheer
-End
-
-;------------------------------------------------------------------------------
-; Fork commands.
-;------------------------------------------------------------------------------
-
-; cycle the dozers and workers that have nothing to do
-CommandMap SELECT_NEXT_IDLE_WORKER
- Key = KEY_I
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectNextIdleWorkerDescription
- DisplayName = GUI:SelectNextIdleWorker
-End
-
-; the same cycle for fighting units standing with no order, on the key beside it
-CommandMap SELECT_NEXT_IDLE_UNIT
- Key = KEY_U
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = SELECTION
- Description = GUI:SelectNextIdleUnitDescription
- DisplayName = GUI:SelectNextIdleUnit
-End
-
-; Attack (A), stop (S), attack move (D), guard (X) and hold position (C) have no
-; record of their own any more: they are the grid's places on those keys, and
-; the grid posts the same message a record here used to (orderAtPlace in
-; ControlBar.cpp). A record of their own on the same letter would come before
-; the grid's in the list and steal the key from a structure standing there.
-
-; the order queue. Retail put it on ALT; here it is SHIFT, the key every other RTS
-; queues with, and the same key that adds to the selection - the two records both
-; fire on the one modifier (MetaEvent.cpp), so a shift-click still adds a unit and
-; a shift-right-click still queues an order. Each queued point draws its own
-; thread and marker, and they stay up after the key is let go.
-CommandMap BEGIN_WAYPOINTS
- Key = KEY_NONE
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
-End
-
-CommandMap END_WAYPOINTS
- Key = KEY_NONE
- Transition = UP
- Modifiers = SHIFT
- UseableIn = GAME
-End
-
-; the general's promotion screen. It used to sit on the key above tab; the console took that
-; key, and takes it in the translator before the command map is consulted, so a binding there
-; would never fire again.
-CommandMap TOGGLE_PURCHASE_SCIENCE
- Key = KEY_BACKSLASH
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:TogglePurchaseScienceDescription
- DisplayName = GUI:TogglePurchaseScience
-End
-
-; smoke signals for your allies, where the cursor is or on the radar spot under it,
-; gone after three seconds. The grid's bottom row again, on the one modifier the
-; grid leaves alone: Z attack here, X defend here, C look here. Network games only.
-CommandMap SIGNAL_ATTACK
- Key = KEY_Z
- Transition = DOWN
- Modifiers = ALT
- UseableIn = GAME
- Category = INFORMATION
- Description = GUI:SignalAttackDescription
- DisplayName = GUI:SignalAttack
-End
-
-CommandMap SIGNAL_DEFEND
- Key = KEY_X
- Transition = DOWN
- Modifiers = ALT
- UseableIn = GAME
- Category = INFORMATION
- Description = GUI:SignalDefendDescription
- DisplayName = GUI:SignalDefend
-End
-
-CommandMap SIGNAL_ATTENTION
- Key = KEY_C
- Transition = DOWN
- Modifiers = ALT
- UseableIn = GAME
- Category = INFORMATION
- Description = GUI:SignalAttentionDescription
- DisplayName = GUI:SignalAttention
-End
-
-; Chat the way Dota opens it: Enter to your team, Shift+Enter to everybody.
-; Retail had Enter for everybody and Backspace for allies, and Backspace is also
-; the key a player reaches for while typing.
-CommandMap CHAT_ALLIES
- Key = KEY_ENTER
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
-End
-
-CommandMap CHAT_EVERYONE
- Key = KEY_ENTER
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
-End
-
-; single player and replays only
-CommandMap TOGGLE_PAUSE
- Key = KEY_P
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:TogglePauseDescription
- DisplayName = GUI:TogglePause
-End
-
-;------------------------------------------------------------------------------
-; General's power shortcut bar, top right: F1..F8 press its visible buttons in
-; order. Retail's F1..F8 (go to a saved camera position) move onto SHIFT.
-; Slots 09..11 exist but are left unbound - an unbound slot just draws no label.
-;------------------------------------------------------------------------------
-
-CommandMap SHORTCUT_SLOT01
- Key = KEY_F1
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ShortcutSlot01Description
- DisplayName = GUI:ShortcutSlot01
-End
-
-CommandMap SHORTCUT_SLOT02
- Key = KEY_F2
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ShortcutSlot02Description
- DisplayName = GUI:ShortcutSlot02
-End
-
-CommandMap SHORTCUT_SLOT03
- Key = KEY_F3
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ShortcutSlot03Description
- DisplayName = GUI:ShortcutSlot03
-End
-
-CommandMap SHORTCUT_SLOT04
- Key = KEY_F4
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ShortcutSlot04Description
- DisplayName = GUI:ShortcutSlot04
-End
-
-CommandMap SHORTCUT_SLOT05
- Key = KEY_F5
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ShortcutSlot05Description
- DisplayName = GUI:ShortcutSlot05
-End
-
-CommandMap SHORTCUT_SLOT06
- Key = KEY_F6
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ShortcutSlot06Description
- DisplayName = GUI:ShortcutSlot06
-End
-
-CommandMap SHORTCUT_SLOT07
- Key = KEY_F7
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ShortcutSlot07Description
- DisplayName = GUI:ShortcutSlot07
-End
-
-CommandMap SHORTCUT_SLOT08
- Key = KEY_F8
- Transition = DOWN
- Modifiers = NONE
- UseableIn = GAME
- Category = CONTROL
- Description = GUI:ShortcutSlot08Description
- DisplayName = GUI:ShortcutSlot08
-End
-
-CommandMap VIEW_VIEW1
- Key = KEY_F1
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:ViewView1Description
- DisplayName = GUI:ViewView1
-End
-
-CommandMap VIEW_VIEW2
- Key = KEY_F2
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:ViewView2Description
- DisplayName = GUI:ViewView2
-End
-
-CommandMap VIEW_VIEW3
- Key = KEY_F3
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:ViewView3Description
- DisplayName = GUI:ViewView3
-End
-
-CommandMap VIEW_VIEW4
- Key = KEY_F4
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:ViewView4Description
- DisplayName = GUI:ViewView4
-End
-
-CommandMap VIEW_VIEW5
- Key = KEY_F5
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:ViewView5Description
- DisplayName = GUI:ViewView5
-End
-
-CommandMap VIEW_VIEW6
- Key = KEY_F6
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:ViewView6Description
- DisplayName = GUI:ViewView6
-End
-
-CommandMap VIEW_VIEW7
- Key = KEY_F7
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:ViewView7Description
- DisplayName = GUI:ViewView7
-End
-
-CommandMap VIEW_VIEW8
- Key = KEY_F8
- Transition = DOWN
- Modifiers = SHIFT
- UseableIn = GAME
- Category = INTERFACE
- Description = GUI:ViewView8Description
- DisplayName = GUI:ViewView8
-End
-
-;-----------------------------------------------------------------------------
-; Single-player test hook: take over the next player - its AI is thrown away,
-; so its base and units answer to you and nothing fights you for them. Press
-; again to walk on to the next one and eventually back to your own. Does
-; nothing in a network game or a replay.
-CommandMap SWITCH_CONTROL
- Key = KEY_T
- Transition = DOWN
- Modifiers = SHIFT_CTRL
- UseableIn = GAME
- Category = DEBUG
-End
diff --git a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedOrders.ini b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedOrders.ini
deleted file mode 100644
index 70d076703..000000000
--- a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedOrders.ini
+++ /dev/null
@@ -1,43 +0,0 @@
-; The command bar's attack, hold position, move and stance cameos, painted
-; by Tools/order_cameos.py into Art/Textures/ReforgedOrders.tga. ControlBar.html draws them on the
-; page's order keys. Mapped images are not in the multiplayer INI checksum.
-
-MappedImage ReforgedOrderAttack
- Texture = ReforgedOrders.tga
- TextureWidth = 256
- TextureHeight = 128
- Coords = Left:0 Top:0 Right:60 Bottom:48
- Status = NONE
-End
-
-MappedImage ReforgedOrderHold
- Texture = ReforgedOrders.tga
- TextureWidth = 256
- TextureHeight = 128
- Coords = Left:64 Top:0 Right:124 Bottom:48
- Status = NONE
-End
-
-MappedImage ReforgedOrderMove
- Texture = ReforgedOrders.tga
- TextureWidth = 256
- TextureHeight = 128
- Coords = Left:0 Top:64 Right:60 Bottom:112
- Status = NONE
-End
-
-MappedImage ReforgedOrderAggressive
- Texture = ReforgedOrders.tga
- TextureWidth = 256
- TextureHeight = 128
- Coords = Left:192 Top:0 Right:252 Bottom:48
- Status = NONE
-End
-
-MappedImage ReforgedOrderDefensive
- Texture = ReforgedOrders.tga
- TextureWidth = 256
- TextureHeight = 128
- Coords = Left:128 Top:64 Right:188 Bottom:112
- Status = NONE
-End
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index 3a144e993..c99662d84 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -3,9 +3,7 @@
// gitignored, so edit THIS file and rebuild (or copy it across by hand).
//
// Patch.str is the 1.04 string overlay from PatchData.big. The two original
-// strings are kept; everything after them is this fork's, and every command
-// added to Data/INI/CommandMapReforged.ini needs a pair here or Options > Keyboard
-// shows a blank row.
+// strings are kept; everything after them is this fork's.
//
// Comments are '//' - GameText.cpp parseStringFile skips exactly that.
@@ -17,174 +15,6 @@ GUI:StartCustomMission
"START GAME"
END
-GUI:SelectNextIdleWorker
-"Select Next Idle Worker"
-END
-
-GUI:SelectNextIdleWorkerDescription
-"Selects the next dozer or worker that has nothing to do and centers the view on it."
-END
-
-GUI:SelectNextIdleUnit
-"Select Next Idle Unit"
-END
-
-GUI:SelectNextIdleUnitDescription
-"Selects the next combat unit that has no orders and centers the view on it."
-END
-
-GUI:CommandSlot01
-"Command Bar Slot 01"
-END
-
-GUI:CommandSlot01Description
-"Presses command bar slot 01 (column 1, top row, 'Q' in the default grid layout)."
-END
-
-GUI:CommandSlot02
-"Command Bar Slot 02"
-END
-
-GUI:CommandSlot02Description
-"Presses command bar slot 02 (column 2, top row, 'W' in the default grid layout)."
-END
-
-GUI:CommandSlot03
-"Command Bar Slot 03"
-END
-
-GUI:CommandSlot03Description
-"Presses command bar slot 03 (column 3, top row, 'E' in the default grid layout)."
-END
-
-GUI:CommandSlot04
-"Command Bar Slot 04"
-END
-
-GUI:CommandSlot04Description
-"Presses command bar slot 04 (column 4, top row, 'R' in the default grid layout)."
-END
-
-GUI:CommandSlot05
-"Command Bar Slot 05"
-END
-
-GUI:CommandSlot05Description
-"Presses command bar slot 05 (column 5, top row, 'T' in the default grid layout)."
-END
-
-GUI:CommandSlot06
-"Command Bar Slot 06"
-END
-
-GUI:CommandSlot06Description
-"Presses command bar slot 06 (column 6, top row, 'Y' in the default grid layout)."
-END
-
-GUI:CommandSlot07
-"Command Bar Slot 07"
-END
-
-GUI:CommandSlot07Description
-"Presses command bar slot 07 (column 1, middle row, 'A' in the default grid layout), where a unit's Attack sits."
-END
-
-GUI:CommandSlot08
-"Command Bar Slot 08"
-END
-
-GUI:CommandSlot08Description
-"Presses command bar slot 08 (column 2, middle row, 'S' in the default grid layout), where a unit's Stop sits."
-END
-
-GUI:CommandSlot09
-"Command Bar Slot 09"
-END
-
-GUI:CommandSlot09Description
-"Presses command bar slot 09 (column 3, middle row, 'D' in the default grid layout), where Attack Move sits."
-END
-
-GUI:CommandSlot10
-"Command Bar Slot 10"
-END
-
-GUI:CommandSlot10Description
-"Presses command bar slot 10 (column 4, middle row, 'F' in the default grid layout)."
-END
-
-GUI:CommandSlot11
-"Command Bar Slot 11"
-END
-
-GUI:CommandSlot11Description
-"Presses command bar slot 11 (column 5, middle row, 'G' in the default grid layout)."
-END
-
-GUI:CommandSlot12
-"Command Bar Slot 12"
-END
-
-GUI:CommandSlot12Description
-"Presses command bar slot 12 (column 6, middle row, 'H' in the default grid layout)."
-END
-
-GUI:CommandSlot13
-"Command Bar Slot 13"
-END
-
-GUI:CommandSlot13Description
-"Presses command bar slot 13 (column 1, bottom row, 'Z' in the default grid layout), where Eject sits, for a unit's passengers or a building's garrison."
-END
-
-GUI:CommandSlot14
-"Command Bar Slot 14"
-END
-
-GUI:CommandSlot14Description
-"Presses command bar slot 14 (column 2, bottom row, 'X' in the default grid layout), where Guard sits."
-END
-
-GUI:CommandSlot15
-"Command Bar Slot 15"
-END
-
-GUI:CommandSlot15Description
-"Presses command bar slot 15 (column 3, bottom row, 'C' in the default grid layout), where Hold Position sits."
-END
-
-GUI:CommandSlot16
-"Command Bar Slot 16"
-END
-
-GUI:CommandSlot16Description
-"Presses command bar slot 16 (column 4, bottom row, 'V' in the default grid layout)."
-END
-
-GUI:CommandSlot17
-"Command Bar Slot 17"
-END
-
-GUI:CommandSlot17Description
-"Presses command bar slot 17 (column 5, bottom row, 'B' in the default grid layout), where a building's rally point sits."
-END
-
-GUI:CommandSlot18
-"Command Bar Slot 18"
-END
-
-GUI:CommandSlot18Description
-"Presses command bar slot 18 (column 6, bottom row, 'N' in the default grid layout), where Sell sits."
-END
-
-GUI:TogglePurchaseScience
-"Generals Promotions"
-END
-
-GUI:TogglePurchaseScienceDescription
-"Opens and closes the general's promotion screen."
-END
-
GUI:Stop
"Stop"
END
@@ -196,26 +26,14 @@ END
// The command grid's own attack, hold position and move keys, which stand in no command set:
// the cards they show under the pointer.
-GUI:OrderForceAttack
-"Force Attack"
-END
-
GUI:OrderForceAttackDescription
"The next click attacks whatever is under the pointer, the ground and your own side included. Click the key again to call it off."
END
-GUI:OrderHoldPosition
-"Hold Position"
-END
-
GUI:OrderHoldPositionDescription
"The selected units guard the spot they stand on and fight whatever comes near, without chasing it out of the area."
END
-GUI:OrderMove
-"Move"
-END
-
GUI:OrderMoveDescription
"The next click on the ground sends the selected units there. Drag instead and they spread out along the line you draw."
END
@@ -224,18 +42,10 @@ GUI:SelectionTypeDescription
"Click to keep only these selected. Shift-click to take them out of the selection."
END
-GUI:OrderStanceDefensive
-"Stance: Defensive"
-END
-
GUI:OrderStanceDefensiveDescription
"The selected units shoot what comes into range and hold the ground you put them on. Click to make them aggressive: they go after any enemy they see."
END
-GUI:OrderStanceAggressive
-"Stance: Aggressive"
-END
-
GUI:OrderStanceAggressiveDescription
"The selected units go after any enemy they see and chase it. Click to make them defensive again: they only shoot what comes into range and stay where they are."
END
@@ -246,26 +56,14 @@ GUI:SignalAttack
"Signal: Attack"
END
-GUI:SignalAttackDescription
-"Smoke in your colour and crossed swords on the ground for ten seconds, where the cursor is or on the radar spot under it. Only your allies see it."
-END
-
GUI:SignalDefend
"Signal: Defend"
END
-GUI:SignalDefendDescription
-"Smoke in your colour and a shield on the ground for ten seconds, where the cursor is or on the radar spot under it. Only your allies see it."
-END
-
GUI:SignalAttention
"Signal: Look Here"
END
-GUI:SignalAttentionDescription
-"Smoke in your colour and an eye on the ground for ten seconds, where the cursor is or on the radar spot under it. Only your allies see it."
-END
-
GUI:SignalAttackPlaced
"%s: attack here!"
END
@@ -278,14 +76,6 @@ GUI:SignalAttentionPlaced
"%s: look here!"
END
-GUI:TogglePause
-"Pause"
-END
-
-GUI:TogglePauseDescription
-"Pauses and resumes the game. Single player and replays only."
-END
-
GUI:GamePaused
"Game paused."
END
@@ -294,110 +84,6 @@ GUI:GameResumed
"Game resumed."
END
-GUI:SelectAllMilitary
-"Select Military Units"
-END
-
-GUI:SelectAllMilitaryDescription
-"Selects your armed units on screen. Press again to select them across the whole map."
-END
-
-GUI:SelectAllVehicles
-"Select Vehicles"
-END
-
-GUI:SelectAllVehiclesDescription
-"Selects your ground vehicles on screen, dozers and workers excluded. Press again for the whole map."
-END
-
-GUI:SelectAllBarracks
-"Select Barracks"
-END
-
-GUI:SelectAllBarracksDescription
-"Selects your infantry-producing buildings on screen. Press again to select them across the whole map."
-END
-
-GUI:SelectAllWarFactories
-"Select War Factories"
-END
-
-GUI:SelectAllWarFactoriesDescription
-"Selects your vehicle-producing buildings on screen. Press again to select them across the whole map."
-END
-
-GUI:SelectAllAirfields
-"Select Airfields"
-END
-
-GUI:SelectAllAirfieldsDescription
-"Selects your airfields and helipads on screen. Press again to select them across the whole map."
-END
-
-GUI:ShortcutSlot01
-"General's Power 1"
-END
-
-GUI:ShortcutSlot01Description
-"Presses the first button of the general's power bar in the top right corner."
-END
-
-GUI:ShortcutSlot02
-"General's Power 2"
-END
-
-GUI:ShortcutSlot02Description
-"Presses the second button of the general's power bar in the top right corner."
-END
-
-GUI:ShortcutSlot03
-"General's Power 3"
-END
-
-GUI:ShortcutSlot03Description
-"Presses the third button of the general's power bar in the top right corner."
-END
-
-GUI:ShortcutSlot04
-"General's Power 4"
-END
-
-GUI:ShortcutSlot04Description
-"Presses the fourth button of the general's power bar in the top right corner."
-END
-
-GUI:ShortcutSlot05
-"General's Power 5"
-END
-
-GUI:ShortcutSlot05Description
-"Presses the fifth button of the general's power bar in the top right corner."
-END
-
-GUI:ShortcutSlot06
-"General's Power 6"
-END
-
-GUI:ShortcutSlot06Description
-"Presses the sixth button of the general's power bar in the top right corner."
-END
-
-GUI:ShortcutSlot07
-"General's Power 7"
-END
-
-GUI:ShortcutSlot07Description
-"Presses the seventh button of the general's power bar in the top right corner."
-END
-
-GUI:ShortcutSlot08
-"General's Power 8"
-END
-
-GUI:ShortcutSlot08Description
-"Presses the eighth button of the general's power bar in the top right corner."
-END
-
// Skirmish lobby: an opponent seat with no AI behind it (Shift-Ctrl-T takes it over).
GUI:HumanSlot
"Human"
@@ -913,14 +599,6 @@ TOOLTIP:IsometricCamera
"The battlefield seen from far off, so a unit is the same size at the top of the screen as at the bottom. You still turn and zoom the camera."
END
-GUI:SmoothMotion
-"Smooth Motion"
-END
-
-TOOLTIP:SmoothMotion
-"Units are drawn between the game's 30 steps a second, so they move smoothly on a fast display. The picture is one step (33 ms) behind; the game itself is unchanged."
-END
-
GUI:EdgeScrollWindowed
"Edge Scroll In A Window"
END
@@ -1013,26 +691,6 @@ GUI:OptionsGroupHud
"HUD"
END
-GUI:IncomeRate
-"Income Shown"
-END
-
-GUI:IncomeRate0
-"Per Second"
-END
-
-GUI:IncomeRate1
-"Per Minute"
-END
-
-GUI:IncomeRate2
-"Automatic"
-END
-
-TOOLTIP:IncomeRate
-"What the income beside your money is counted over. Automatic shows it per minute while you earn less than $10 a second, where a whole number per second hides most of the change, and per second above that."
-END
-
GUI:EmptyBuildingPips
"Empty Building Slots"
END
@@ -1073,30 +731,6 @@ TOOLTIP:HealthBars
"Smart shows a bar over anything hurt, plus the selection and whatever is under the cursor. Selection only is what retail did."
END
-GUI:HudScale
-"HUD Size"
-END
-
-GUI:HudScale0
-"100%"
-END
-
-GUI:HudScale1
-"115%"
-END
-
-GUI:HudScale2
-"130%"
-END
-
-GUI:HudScale3
-"150%"
-END
-
-TOOLTIP:HudScale
-"Draws the command bar and the rest of the bottom HUD larger than your resolution would."
-END
-
GUI:OptionsGroupInput
"Input"
END
@@ -1164,121 +798,18 @@ TOOLTIP:Language
"The language of menus, orders, briefings and subtitles. Voices and videos stay as installed. Takes effect the next time the game starts."
END
-// Hovering a supply pile: EA's TOOLTIP:SupplyWarehouse line with the share of the pile's starting
-// cash that is left. The cash first, then the percentage.
-
-TOOLTIP:SupplyWarehousePercent
-"\n $%d remain (%d%%)"
-END
-
// The line under it when the lobby's Pile Limit has the pile closed to the player looking at it.
TOOLTIP:SupplyPileFull
"\n Taken: the pile limit keeps your gatherers out"
END
-// The numbers the build tooltip adds under a unit's description: its build time, then its best
-// weapon's damage and range. ControlBarPopupDescription.cpp puts the gap between the two.
-
-TOOLTIP:BuildTimeSeconds
-"\nTime %ds"
-END
-
-TOOLTIP:WeaponStats
-"Dmg %d Range %d"
-END
-
-// The same figures as rows of Window/Html/Tooltip.html, a label and its value each.
-
-TOOLTIP:StatTime
-"Build time"
-END
-
-TOOLTIP:StatSeconds
-"%ds"
-END
-
-TOOLTIP:StatDamage
-"Damage"
-END
-
-TOOLTIP:StatRange
-"Range"
-END
-
-TOOLTIP:StatHealth
-"Health"
-END
-
-TOOLTIP:StatAttackSpeed
-"Attack speed"
-END
-
-TOOLTIP:StatPerSecond
-"/s"
-END
-
-TOOLTIP:StatDamagePerSecond
-"Damage per second"
-END
-
-TOOLTIP:StatArmor
-"Armor"
-END
-
-TOOLTIP:StatArmorStronger
-"stronger"
-END
-
-TOOLTIP:StatNewWeapon
-"New weapon"
-END
-
-TOOLTIP:StatNewWeaponGround
-"Ground weapon"
-END
-
-TOOLTIP:StatNewWeaponAir
-"Anti-air weapon"
-END
-
-TOOLTIP:StatNewWeaponFigures
-"%d damage, %d range"
-END
-
-// Beside a lone unit's portrait, short enough for a column of a third of it: damage a second,
-// and the armour's change to three kinds of damage.
-
-TOOLTIP:StatShortDamagePerSecond
-"DPS"
-END
-
-TOOLTIP:StatVsGuns
-"Gun"
-END
-
-TOOLTIP:StatVsShells
-"Shell"
-END
-
-TOOLTIP:StatVsRockets
-"Rocket"
-END
-
// Under the figures: a unit's upgrades, or on an upgrade's card the units it changes.
TOOLTIP:Upgrades
"UPGRADES"
END
-TOOLTIP:UpgradeChanges
-"CHANGES"
-END
-
-TOOLTIP:UpgradeOwned
-"owned"
-END
-
// Peace time - the lobby combo box, its tooltip, the corner countdown and the three things the game
// says while the clock runs. Tools/peacetime_layout.py selfcheck fails if any of these goes missing.
@@ -1314,12 +845,8 @@ GUI:PeaceTimeHudLabel
"PEACE"
END
-GUI:WireframeNotice
-"Reforged HUD: early preview"
-END
-
-GUI:WireframeNotice2
-"Final artwork is on the way"
+GUI:ListMore
+"+%d more"
END
GUI:LobbyTabChat
@@ -1436,89 +963,11 @@ GUI:CantBuildTooManyDerrickDefenses
"You already have two defenses round these oil derricks."
END
-GUI:HudSkillStrip
-"Generals' promotions"
-END
-
-GUI:HudSuperweaponStrip
-"Superweapon timers"
-END
-
-// the spectator's list of every player's cash plus what everything he has standing cost
-GUI:HudNetWorth
-"Net worth"
-END
-
-// the heading of the spectator's stat drop-down, and the other numbers it can rank every player by
-GUI:HudGameStats
-"Game stats"
-END
-
-GUI:HudStatCash
-"Cash"
-END
-
-GUI:HudStatIncome
-"Income per minute"
-END
-
GUI:HudStatArmy
"Army value"
END
-GUI:HudStatKills
-"Kills / losses"
-END
-
-GUI:HudStatRank
-"General's rank"
-END
-
-GUI:HudStatPower
-"Power"
-END
-
-// each player's most expensive units, with how many he has
-GUI:HudArmies
-"Armies"
-END
-
-// the spectator's camera drop-down, "Camera: Director"
-GUI:HudCamera
-"Camera"
-END
-
-// the camera goes to the biggest fight on the map by itself
-GUI:HudCameraDirector
-"Director"
-END
-
-// the camera is the spectator's own again
-GUI:HudCameraFree
-"Free"
-END
-
-// the camera shows what the followed player's own screen shows
-GUI:HudCameraPlayer
-"Player camera"
-END
-
-// the spectator's second drop-down, "Player: Nova", the player the camera and the fog follow
-GUI:HudFollow
-"Player"
-END
-
-// in that drop-down, following nobody
-GUI:HudFollowNobody
-"None"
-END
-
-// draw the followed player's fog of war, so the spectator sees only what he sees
-GUI:HudFog
-"Fog of war"
-END
-
-// The cheat panel the console's "trainer" command opens, Window/Html/Cheats.html.
+// The cheat panel the console's "trainer" command opens.
GUI:CheatPanelTitle
"Cheats"
END
@@ -1579,48 +1028,6 @@ GUI:CheatApply
"GO"
END
-// after a superweapon's name in the event feed over the radar, the moment it can fire
-GUI:HudSuperweaponReady
-"ready to fire"
-END
-
-// after a superweapon's name in the event feed, the moment it is fired
-GUI:HudSuperweaponLaunched
-"launched"
-END
-
-// the superweapon banner under the clock: %s is the superweapon's own name, "Nuclear Missile"
-GUI:HudAlertBuilt
-"%s built"
-END
-
-GUI:HudAlertReady
-"%s ready"
-END
-
-GUI:HudAlertLaunched
-"%s launched"
-END
-
-// after a general's power's name in the event feed, the moment it is used
-GUI:HudPowerUsed
-"used"
-END
-
-// after a promotion's name in the event feed, the moment it is bought
-GUI:HudPromotionBought
-"unlocked"
-END
-
-// after a superweapon's or an advanced tech building's name in the event feed
-GUI:HudStructureStarted
-"construction started"
-END
-
-GUI:HudStructureBuilt
-"built"
-END
-
// a line of the event feed when a player's last dozer or worker is gone; %s is his name
GUI:HudNoDozerLeft
"%s has no dozer left"
@@ -1635,77 +1042,10 @@ GUI:BarIdleWorker
"Worker"
END
-// the network box in the top right corner: frames ready out of the input delay, the room's frame
-// rate, and the traffic in and out in kilobytes a second
-GUI:BarNetReady
-"ready"
-END
-
-GUI:BarNetRoom
-"room"
-END
-
-GUI:BarNetUnits
-"units"
-END
-
-// the scoreboard on Tab
-GUI:ScoreboardAllies
-"YOUR SIDE"
-END
-
-GUI:ScoreboardEnemies
-"ENEMIES"
-END
-
-GUI:ScoreboardPlayer
-"PLAYER"
-END
-
-GUI:ScoreboardTeam
-"TEAM"
-END
-
-GUI:ScoreboardLevel
-"RANK"
-END
-
-GUI:ScoreboardMoney
-"MONEY"
-END
-
-GUI:ScoreboardPerMinute
-"PER MIN"
-END
-
-GUI:ScoreboardPerSecond
-"PER SEC"
-END
-
-GUI:ControlBarMoneyEarning
-"$ %d +%d/s"
-END
-
-GUI:ControlBarMoneyEarningMinute
-"$ %d +%d/min"
-END
-
CONTROLBAR:MoneyDescription
"The money you have, and what you earned a second over the last half minute"
END
-GUI:ScoreboardKills
-"K"
-END
-
-GUI:ScoreboardDeaths
-"D"
-END
-
-GUI:ScoreboardPowers
-"POWERS"
-END
-
GUI:ScoreboardFavourite
"FAVOURITE"
END
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index e987601d0..50ae55e80 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -1033,10 +1033,6 @@ TOOLTIP:SupplyWarehouse
"\n $%d kaldı"
END
-TOOLTIP:SupplyWarehousePercent
-"\n $%d kaldı (%d%%)"
-END
-
TOOLTIP:SupplyPileFull
"\n Dolu: yığın sınırı toplayıcılarınızı almıyor"
END
@@ -14641,198 +14637,18 @@ GUI:StartCustomMission
"OYUNU BAŞLAT"
END
-GUI:SelectNextIdleWorker
-"Sonraki Boştaki İşçiyi Seç"
-END
-
-GUI:SelectNextIdleWorkerDescription
-"Yapacak işi olmayan sonraki dozeri veya işçiyi seçer ve görüntüyü ona odaklar."
-END
-
-GUI:SelectNextIdleUnit
-"Sonraki Boştaki Birliği Seç"
-END
-
-GUI:SelectNextIdleUnitDescription
-"Emri olmayan sonraki savaş birliğini seçer ve görüntüyü ona odaklar."
-END
-
-GUI:CommandSlot01
-"Komut Çubuğu Yuvası 01"
-END
-
-GUI:CommandSlot01Description
-"Komut çubuğunun 1. yuvasına basar (1. sütun, üst sıra; varsayılan ızgara düzeninde 'Q')."
-END
-
-GUI:CommandSlot02
-"Komut Çubuğu Yuvası 02"
-END
-
-GUI:CommandSlot02Description
-"Komut çubuğunun 2. yuvasına basar (2. sütun, üst sıra; varsayılan ızgara düzeninde 'W')."
-END
-
-GUI:CommandSlot03
-"Komut Çubuğu Yuvası 03"
-END
-
-GUI:CommandSlot03Description
-"Komut çubuğunun 3. yuvasına basar (3. sütun, üst sıra; varsayılan ızgara düzeninde 'E')."
-END
-
-GUI:CommandSlot04
-"Komut Çubuğu Yuvası 04"
-END
-
-GUI:CommandSlot04Description
-"Komut çubuğunun 4. yuvasına basar (4. sütun, üst sıra; varsayılan ızgara düzeninde 'R')."
-END
-
-GUI:CommandSlot05
-"Komut Çubuğu Yuvası 05"
-END
-
-GUI:CommandSlot05Description
-"Komut çubuğunun 5. yuvasına basar (5. sütun, üst sıra; varsayılan ızgara düzeninde 'T')."
-END
-
-GUI:CommandSlot06
-"Komut Çubuğu Yuvası 06"
-END
-
-GUI:CommandSlot06Description
-"Komut çubuğunun 6. yuvasına basar (6. sütun, üst sıra; varsayılan ızgara düzeninde 'Y')."
-END
-
-GUI:CommandSlot07
-"Komut Çubuğu Yuvası 07"
-END
-
-GUI:CommandSlot07Description
-"Komut çubuğunun 7. yuvasına basar (1. sütun, orta sıra; varsayılan ızgara düzeninde 'A'). Birliğin Saldır düğmesi buradadır."
-END
-
-GUI:CommandSlot08
-"Komut Çubuğu Yuvası 08"
-END
-
-GUI:CommandSlot08Description
-"Komut çubuğunun 8. yuvasına basar (2. sütun, orta sıra; varsayılan ızgara düzeninde 'S'). Birliğin Dur düğmesi buradadır."
-END
-
-GUI:CommandSlot09
-"Komut Çubuğu Yuvası 09"
-END
-
-GUI:CommandSlot09Description
-"Komut çubuğunun 9. yuvasına basar (3. sütun, orta sıra; varsayılan ızgara düzeninde 'D'). Saldırarak İlerle düğmesi buradadır."
-END
-
-GUI:CommandSlot10
-"Komut Çubuğu Yuvası 10"
-END
-
-GUI:CommandSlot10Description
-"Komut çubuğunun 10. yuvasına basar (4. sütun, orta sıra; varsayılan ızgara düzeninde 'F')."
-END
-
-GUI:CommandSlot11
-"Komut Çubuğu Yuvası 11"
-END
-
-GUI:CommandSlot11Description
-"Komut çubuğunun 11. yuvasına basar (5. sütun, orta sıra; varsayılan ızgara düzeninde 'G')."
-END
-
-GUI:CommandSlot12
-"Komut Çubuğu Yuvası 12"
-END
-
-GUI:CommandSlot12Description
-"Komut çubuğunun 12. yuvasına basar (6. sütun, orta sıra; varsayılan ızgara düzeninde 'H')."
-END
-
-GUI:CommandSlot13
-"Komut Çubuğu Yuvası 13"
-END
-
-GUI:CommandSlot13Description
-"Komut çubuğunun 13. yuvasına basar (1. sütun, alt sıra; varsayılan ızgara düzeninde 'Z'). Tahliye düğmesi buradadır: birliğin yolcularını ya da binadaki garnizonu indirir."
-END
-
-GUI:CommandSlot14
-"Komut Çubuğu Yuvası 14"
-END
-
-GUI:CommandSlot14Description
-"Komut çubuğunun 14. yuvasına basar (2. sütun, alt sıra; varsayılan ızgara düzeninde 'X'). Koru düğmesi buradadır."
-END
-
-GUI:CommandSlot15
-"Komut Çubuğu Yuvası 15"
-END
-
-GUI:CommandSlot15Description
-"Komut çubuğunun 15. yuvasına basar (3. sütun, alt sıra; varsayılan ızgara düzeninde 'C'). Mevzini Koru düğmesi buradadır."
-END
-
-GUI:CommandSlot16
-"Komut Çubuğu Yuvası 16"
-END
-
-GUI:CommandSlot16Description
-"Komut çubuğunun 16. yuvasına basar (4. sütun, alt sıra; varsayılan ızgara düzeninde 'V')."
-END
-
-GUI:CommandSlot17
-"Komut Çubuğu Yuvası 17"
-END
-
-GUI:CommandSlot17Description
-"Komut çubuğunun 17. yuvasına basar (5. sütun, alt sıra; varsayılan ızgara düzeninde 'B'). Binanın toplanma noktası düğmesi buradadır."
-END
-
-GUI:CommandSlot18
-"Komut Çubuğu Yuvası 18"
-END
-
-GUI:CommandSlot18Description
-"Komut çubuğunun 18. yuvasına basar (6. sütun, alt sıra; varsayılan ızgara düzeninde 'N'). Sat düğmesi buradadır."
-END
-
-GUI:TogglePurchaseScience
-"General Terfileri"
-END
-
-GUI:TogglePurchaseScienceDescription
-"General terfi ekranını açar ve kapatır."
-END
-
GUI:StopDescription
"Seçili birliklerin yaptığı işi durdurur."
END
-GUI:OrderForceAttack
-"Zorla Saldır"
-END
-
GUI:OrderForceAttackDescription
"Bir sonraki tıklama imlecin altındaki her şeye saldırır, zemin ve kendi tarafınız da buna dahil. Vazgeçmek için tuşa yeniden tıklayın."
END
-GUI:OrderHoldPosition
-"Mevzini Koru"
-END
-
GUI:OrderHoldPositionDescription
"Seçili birlikler durdukları yeri korur ve yaklaşan her şeyle savaşır, ama onu bölgenin dışına kadar kovalamaz."
END
-GUI:OrderMove
-"Hareket Et"
-END
-
GUI:OrderMoveDescription
"Zemine bir sonraki tıklama seçili birlikleri oraya gönderir. Bunun yerine sürüklerseniz birlikler çizdiğiniz çizgi boyunca dizilir."
END
@@ -14841,18 +14657,10 @@ GUI:SelectionTypeDescription
"Tıklayın, seçimde yalnızca bunlar kalsın. Shift ile tıklayın, bunlar seçimden çıksın."
END
-GUI:OrderStanceDefensive
-"Tutum: Savunmacı"
-END
-
GUI:OrderStanceDefensiveDescription
"Seçili birlikler menzile gireni vurur ve koyduğunuz yeri tutar. Saldırgan yapmak için tıklayın: gördükleri her düşmanın peşine düşerler."
END
-GUI:OrderStanceAggressive
-"Tutum: Saldırgan"
-END
-
GUI:OrderStanceAggressiveDescription
"Seçili birlikler gördükleri her düşmanın peşine düşer ve onu kovalar. Yeniden savunmacı yapmak için tıklayın: yalnızca menzile gireni vururlar ve yerlerinde kalırlar."
END
@@ -14861,26 +14669,14 @@ GUI:SignalAttack
"Sinyal: Saldır"
END
-GUI:SignalAttackDescription
-"İmlecin olduğu yere ya da altındaki radar noktasına on saniyeliğine sizin renginizde bir duman ve yere çapraz kılıçlar bırakır. Yalnızca müttefikleriniz görür."
-END
-
GUI:SignalDefend
"Sinyal: Savun"
END
-GUI:SignalDefendDescription
-"İmlecin olduğu yere ya da altındaki radar noktasına on saniyeliğine sizin renginizde bir duman ve yere bir kalkan bırakır. Yalnızca müttefikleriniz görür."
-END
-
GUI:SignalAttention
"Sinyal: Buraya Bak"
END
-GUI:SignalAttentionDescription
-"İmlecin olduğu yere ya da altındaki radar noktasına on saniyeliğine sizin renginizde bir duman ve yere bir göz bırakır. Yalnızca müttefikleriniz görür."
-END
-
GUI:SignalAttackPlaced
"%s: buraya saldırın!"
END
@@ -14893,14 +14689,6 @@ GUI:SignalAttentionPlaced
"%s: buraya bakın!"
END
-GUI:TogglePause
-"Duraklat"
-END
-
-GUI:TogglePauseDescription
-"Oyunu duraklatır ve devam ettirir. Yalnızca tek oyunculu oyunlarda ve tekrarlarda."
-END
-
GUI:GamePaused
"Oyun duraklatıldı."
END
@@ -14909,110 +14697,6 @@ GUI:GameResumed
"Oyun devam ediyor."
END
-GUI:SelectAllMilitary
-"Askeri Birlikleri Seç"
-END
-
-GUI:SelectAllMilitaryDescription
-"Ekrandaki silahlı birliklerinizi seçer. Bütün haritadakileri seçmek için tekrar basın."
-END
-
-GUI:SelectAllVehicles
-"Araçları Seç"
-END
-
-GUI:SelectAllVehiclesDescription
-"Ekrandaki kara araçlarınızı seçer; dozerler ve işçiler hariç. Bütün harita için tekrar basın."
-END
-
-GUI:SelectAllBarracks
-"Kışlaları Seç"
-END
-
-GUI:SelectAllBarracksDescription
-"Ekrandaki piyade üreten binalarınızı seçer. Bütün haritadakileri seçmek için tekrar basın."
-END
-
-GUI:SelectAllWarFactories
-"Savaş Fabrikalarını Seç"
-END
-
-GUI:SelectAllWarFactoriesDescription
-"Ekrandaki araç üreten binalarınızı seçer. Bütün haritadakileri seçmek için tekrar basın."
-END
-
-GUI:SelectAllAirfields
-"Hava Üslerini Seç"
-END
-
-GUI:SelectAllAirfieldsDescription
-"Ekrandaki hava üslerinizi ve helikopter pistlerinizi seçer. Bütün haritadakileri seçmek için tekrar basın."
-END
-
-GUI:ShortcutSlot01
-"General Gücü 1"
-END
-
-GUI:ShortcutSlot01Description
-"Sağ üst köşedeki general güçleri çubuğunun birinci butonuna basar."
-END
-
-GUI:ShortcutSlot02
-"General Gücü 2"
-END
-
-GUI:ShortcutSlot02Description
-"Sağ üst köşedeki general güçleri çubuğunun ikinci butonuna basar."
-END
-
-GUI:ShortcutSlot03
-"General Gücü 3"
-END
-
-GUI:ShortcutSlot03Description
-"Sağ üst köşedeki general güçleri çubuğunun üçüncü butonuna basar."
-END
-
-GUI:ShortcutSlot04
-"General Gücü 4"
-END
-
-GUI:ShortcutSlot04Description
-"Sağ üst köşedeki general güçleri çubuğunun dördüncü butonuna basar."
-END
-
-GUI:ShortcutSlot05
-"General Gücü 5"
-END
-
-GUI:ShortcutSlot05Description
-"Sağ üst köşedeki general güçleri çubuğunun beşinci butonuna basar."
-END
-
-GUI:ShortcutSlot06
-"General Gücü 6"
-END
-
-GUI:ShortcutSlot06Description
-"Sağ üst köşedeki general güçleri çubuğunun altıncı butonuna basar."
-END
-
-GUI:ShortcutSlot07
-"General Gücü 7"
-END
-
-GUI:ShortcutSlot07Description
-"Sağ üst köşedeki general güçleri çubuğunun yedinci butonuna basar."
-END
-
-GUI:ShortcutSlot08
-"General Gücü 8"
-END
-
-GUI:ShortcutSlot08Description
-"Sağ üst köşedeki general güçleri çubuğunun sekizinci butonuna basar."
-END
-
GUI:HumanSlot
"İnsan"
END
@@ -15401,14 +15085,6 @@ TOOLTIP:IsometricCamera
"Savaş alanı uzaktan görünür, bir birlik ekranın üstünde de altında da aynı boyda çizilir. Kamerayı yine sen döndürür ve yakınlaştırırsın."
END
-GUI:SmoothMotion
-"Akıcı Hareket"
-END
-
-TOOLTIP:SmoothMotion
-"Birlikler oyunun saniyedeki 30 adımının arasında da çizilir, böylece hızlı bir ekranda akıcı hareket eder. Görüntü bir adım (33 ms) geriden gelir; oyunun kendisi değişmez."
-END
-
GUI:EdgeScrollWindowed
"Pencerede Kenardan Kaydır"
END
@@ -15501,26 +15177,6 @@ GUI:OptionsGroupHud
"Göstergeler"
END
-GUI:IncomeRate
-"Gelir Gösterimi"
-END
-
-GUI:IncomeRate0
-"Saniyelik"
-END
-
-GUI:IncomeRate1
-"Dakikalık"
-END
-
-GUI:IncomeRate2
-"Otomatik"
-END
-
-TOOLTIP:IncomeRate
-"Paranızın yanındaki gelirin hangi süreye göre yazılacağı. Otomatik, saniyede 10 dolardan az kazanırken dakikalık yazar, çünkü o düzeyde saniyelik tam sayı değişimin çoğunu göstermez; üstünde saniyelik yazar."
-END
-
GUI:EmptyBuildingPips
"Boş Bina Yuvaları"
END
@@ -15561,14 +15217,6 @@ TOOLTIP:HealthBars
"Akıllı; hasar almış her şeyin, seçili birliklerin ve imlecin altındakinin üzerinde çubuk gösterir. Yalnızca seçili, orijinal oyunun davranışıdır."
END
-GUI:HudScale
-"Arayüz Boyutu"
-END
-
-TOOLTIP:HudScale
-"Komuta çubuğunu ve alttaki arayüzü çözünürlüğün seçtiğinden daha büyük çizer."
-END
-
GUI:OptionsGroupInput
"Kontrol Düzeni"
END
@@ -15649,12 +15297,8 @@ GUI:PeaceTimeHudLabel
"BARIŞ"
END
-GUI:WireframeNotice
-"Reforged arayüz: ön sürüm"
-END
-
-GUI:WireframeNotice2
-"Son tasarım yolda"
+GUI:ListMore
+"+%d daha"
END
GUI:LobbyTabChat
@@ -15765,170 +15409,14 @@ GUI:CantBuildTooManyDerrickDefenses
"Bu petrol kuyularının çevresinde zaten iki savunmanız var."
END
-TOOLTIP:BuildTimeSeconds
-"\nSüre %d sn"
-END
-
-TOOLTIP:WeaponStats
-"Hasar %d Menzil %d"
-END
-
-TOOLTIP:StatTime
-"Üretim süresi"
-END
-
-TOOLTIP:StatSeconds
-"%d sn"
-END
-
-TOOLTIP:StatDamage
-"Hasar"
-END
-
-TOOLTIP:StatRange
-"Menzil"
-END
-
-TOOLTIP:StatHealth
-"Can"
-END
-
-TOOLTIP:StatAttackSpeed
-"Atış hızı"
-END
-
-TOOLTIP:StatPerSecond
-"/sn"
-END
-
-TOOLTIP:StatDamagePerSecond
-"Saniyelik hasar"
-END
-
-TOOLTIP:StatArmor
-"Zırh"
-END
-
-TOOLTIP:StatArmorStronger
-"güçlenir"
-END
-
-TOOLTIP:StatNewWeapon
-"Yeni silah"
-END
-
-TOOLTIP:StatNewWeaponGround
-"Kara silahı"
-END
-
-TOOLTIP:StatNewWeaponAir
-"Uçaksavar silahı"
-END
-
-TOOLTIP:StatNewWeaponFigures
-"%d hasar, %d menzil"
-END
-
-TOOLTIP:StatShortDamagePerSecond
-"DPS"
-END
-
-TOOLTIP:StatVsGuns
-"Mermi"
-END
-
-TOOLTIP:StatVsShells
-"Top"
-END
-
-TOOLTIP:StatVsRockets
-"Roket"
-END
-
TOOLTIP:Upgrades
"GELİŞTİRMELER"
END
-TOOLTIP:UpgradeChanges
-"ETKİLEDİKLERİ"
-END
-
-TOOLTIP:UpgradeOwned
-"alındı"
-END
-
-GUI:HudSkillStrip
-"General yetenekleri"
-END
-
-GUI:HudSuperweaponStrip
-"Süper silah sayaçları"
-END
-
-GUI:HudNetWorth
-"Net değer"
-END
-
-GUI:HudGameStats
-"Oyun istatistikleri"
-END
-
-GUI:HudStatCash
-"Nakit"
-END
-
-GUI:HudStatIncome
-"Dakikalık gelir"
-END
-
GUI:HudStatArmy
"Ordu değeri"
END
-GUI:HudStatKills
-"Öldürme / kayıp"
-END
-
-GUI:HudStatRank
-"General rütbesi"
-END
-
-GUI:HudStatPower
-"Elektrik"
-END
-
-GUI:HudArmies
-"Ordular"
-END
-
-GUI:HudCamera
-"Kamera"
-END
-
-GUI:HudCameraDirector
-"Yönetmen"
-END
-
-GUI:HudCameraFree
-"Serbest"
-END
-
-GUI:HudCameraPlayer
-"Oyuncu kamerası"
-END
-
-GUI:HudFollow
-"Oyuncu"
-END
-
-GUI:HudFollowNobody
-"Hiçbiri"
-END
-
-GUI:HudFog
-"Savaş sisi"
-END
-
GUI:CheatPanelTitle
"Hileler"
END
@@ -15989,42 +15477,6 @@ GUI:CheatApply
"YAP"
END
-GUI:HudSuperweaponReady
-"ateşe hazır"
-END
-
-GUI:HudSuperweaponLaunched
-"ateşlendi"
-END
-
-GUI:HudAlertBuilt
-"%s tamamlandı"
-END
-
-GUI:HudAlertReady
-"%s hazır"
-END
-
-GUI:HudAlertLaunched
-"%s ateşlendi"
-END
-
-GUI:HudPowerUsed
-"kullanıldı"
-END
-
-GUI:HudPromotionBought
-"açıldı"
-END
-
-GUI:HudStructureStarted
-"inşaatı başladı"
-END
-
-GUI:HudStructureBuilt
-"tamamlandı"
-END
-
GUI:HudNoDozerLeft
"%s için hiç dozer kalmadı"
END
@@ -16037,74 +15489,6 @@ GUI:BarIdleWorker
"İşçi"
END
-GUI:BarNetReady
-"hazır"
-END
-
-GUI:BarNetRoom
-"oda"
-END
-
-GUI:BarNetUnits
-"birim"
-END
-
-GUI:ScoreboardAllies
-"TAKIMIN"
-END
-
-GUI:ScoreboardEnemies
-"DÜŞMANLAR"
-END
-
-GUI:ScoreboardPlayer
-"OYUNCU"
-END
-
-GUI:ScoreboardTeam
-"TAKIM"
-END
-
-GUI:ScoreboardLevel
-"RÜTBE"
-END
-
-GUI:ScoreboardMoney
-"PARA"
-END
-
-GUI:ScoreboardPerMinute
-"DAKİKADA"
-END
-
-GUI:ScoreboardPerSecond
-"SANİYEDE"
-END
-
-GUI:ControlBarMoneyEarning
-"$ %d +%d/sn"
-END
-
-GUI:ControlBarMoneyEarningMinute
-"$ %d +%d/dk"
-END
-
-GUI:ScoreboardKills
-"K"
-END
-
-GUI:ScoreboardDeaths
-"D"
-END
-
-GUI:ScoreboardPowers
-"YETENEKLER"
-END
-
-GUI:ScoreboardFavourite
-"FAVORİ"
-END
-
CONTROLBAR:AirF_TooltipSpectreGunship
"Güçlü: Araçlar \n \n Geri Sayım: 3:00"
END
diff --git a/GeneralsMD/Code/Data/Window/Html/Alert.html b/GeneralsMD/Code/Data/Window/Html/Alert.html
deleted file mode 100644
index b38deb959..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Alert.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
- The superweapon banner: words alone, no plate, hanging a little under the top page's plates in the
- middle of the screen while a superweapon is built, charged or fired. Whose it is is the colour,
- nothing else: the player's own neutral, an ally's blue, an enemy's red. The line is written five
- times, four black copies a pixel to each side under the coloured one, so the letters carry their
- own outline and read over snow as well as over a night sky. A page of its own, laid out once per
- banner; it fades through the page's alpha, which the game sets as it draws
- (InGameUI::drawAlertPage).
-
- The game fills in, in the page's pixels, laid out at ControlBarHudScale() as the bar's page is:
- {{left}} {{top}} the banner's corner: centred on the screen, under the top page's plates
- {{width}} its width; the words are centred in it
- {{whose}} "own", "ally" or "enemy"
- {{text}} "Nuclear Missile launched"
-
- Edit the copy under Run/Window/Html and the next match reads it.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Superweapon banner</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; font-size: 8px; color: #dfe5ea; }
- .piece { position: absolute; }
-
- #alert { height: 24px; }
- .text { position: absolute; left: 0; top: 0; height: 24px; line-height: 24px; font-size: 20px; font-weight: bold;
- text-align: center; white-space: nowrap; }
- .edge { color: #000000; }
- .own .face { color: #f1f4f6; }
- .ally .face { color: #9fd2ff; }
- .enemy .face { color: #ff3030; }
-</style>
-</head>
-<body>
-<div id="alert" class="piece {{whose}}" style="left: {{left}}px; top: {{top}}px; width: {{width}}px">
- <div class="text edge" style="width: {{width}}px; margin-left: -1px">{{text}}</div>
- <div class="text edge" style="width: {{width}}px; margin-left: 1px">{{text}}</div>
- <div class="text edge" style="width: {{width}}px; margin-top: -1px">{{text}}</div>
- <div class="text edge" style="width: {{width}}px; margin-top: 1px">{{text}}</div>
- <div class="text face" style="width: {{width}}px">{{text}}</div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Chat.html b/GeneralsMD/Code/Data/Window/Html/Chat.html
deleted file mode 100644
index 7eb374dbe..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Chat.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<!--
- The chat, in the screen's top left corner under the event feed (Window/Html/Feed.html) and
- clear of it even with all six of its lines up, the way Dota writes it: each line opens on the
- speaker's general's flag and his name in his colour. With the chat shut the talk round the
- newest line is up, every line that came in the ten seconds before it, for ten seconds after it,
- the whole of it fading out over the last second and a half; the game fades the page, since the
- renderer draws no opacity. Enter opens the typing bar to the team, Shift+Enter to everybody, and
- every line held, eight at most, stays up until it shuts. The chat's own windows sit under the bar
- and take the keys; this page draws everything. Same materials as Window/Html/Spectator.html,
- whose header says what the renderer draws.
-
- The game fills in, every frame the chat is up (InGameUI::drawChat):
- {{bar}} the typing bar's top edge, under room for all eight lines, so it holds
- still as lines come in; the lines stand on it
- {{open}} "open" while the chat is open
- {{typed}} what has been typed so far, {{caret}} "lit" for half of every second
- {{audience}} whom it goes to: everyone, allies or observers, in the player's language
- data-each="chat" one entry a line, the oldest first: {{image}} the speaker's general,
- {{color}} {{name}} and {{text}} what he said
- All in the page's pixels, a pixel of an 800x600 screen.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Chat</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; color: #eef2f5; font-size: 9px; }
-
- #chat { position: absolute; left: 0; top: 0; width: 360px; }
- #lines { position: absolute; left: 0; bottom: 2px; width: 360px; }
- .line { height: 15px; line-height: 15px; margin-top: 1px; padding-left: 2px; white-space: nowrap;
- background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0)); }
- .flag { width: 20px; height: 12px; margin-right: 4px; vertical-align: middle; }
- .who { font-weight: bold; }
-
- #bar { display: none; position: absolute; left: 0; width: 342px; height: 14px; line-height: 14px; padding: 3px 8px;
- background-color: rgba(0, 0, 0, 0.88); border: 1px solid #3a414a; border-top-color: #000000; }
- .open #bar { display: block; }
- .audience { color: #8a949f; margin-right: 5px; }
- .caret { display: none; color: #f2cf4a; }
- .caret.lit { display: inline; }
-</style>
-</head>
-<body>
-<div class="{{open}}">
- <div id="chat" style="height: {{bar}}px">
- <div id="lines">
- <div class="line" data-each="chat"><img class="flag" src="{{image}}"><span class="who" style="color: {{color}}">{{name}}:</span> {{text}}</div>
- </div>
- </div>
- <div id="bar" style="top: {{bar}}px"><span class="audience">{{audience}}</span>{{typed}}<span class="caret {{caret}}">|</span></div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Cheats.html b/GeneralsMD/Code/Data/Window/Html/Cheats.html
deleted file mode 100644
index c6073db8e..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Cheats.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
- The cheat panel the console's "trainer" command opens: every console cheat as a row, a toggle
- lit while it is on, an amount cheat with its ready amounts. Same steel as
- Window/Html/QuitMenu.html. A click runs the cheat through the console, so it is a MSG_CHEAT like
- a typed one: recorded in the replay, refused in a network game.
-
- The game fills in (GameClient/GameConsole.cpp):
- {{side}} "america", "china" or "gla": the side whose command bar is on screen
- {{text:Label}} a string table label, in the player's language
- data-each="cells" every cell of the panel in reading order: a {{kind}} "name" entry with the
- cheat's {{label}} opens each row, then its keys, {{kind}} "key" and "key on"
- for a toggle that is on, each with its {{label}} and the {{click}} it sends
- All in the page's pixels, a pixel of an 800x600 screen. data-click="close" shuts the panel.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Cheats</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; font-size: 10px; color: #e8eef2; }
-
- .plate { position: absolute; left: 10px; top: 60px; width: 307px; padding: 4px 6px 7px 6px;
- background: linear-gradient(to bottom, #9aa3ad, #5a626c 12%, #353c45); border: 1px solid #0c1114;
- border-top-color: #dde4ea; border-left-color: #b3bbc4; }
- .china .plate { background: linear-gradient(to bottom, #c06a52, #7a3120 12%, #3f160f); border-top-color: #f0b8a4; border-left-color: #d58a70; }
- .gla .plate { background: linear-gradient(to bottom, #b8ab6e, #766a3a 12%, #3c3519); border-top-color: #ebe2b4; border-left-color: #cabe86; }
-
- .title { height: 16px; line-height: 16px; font-weight: bold; color: #f2cf4a; }
-
- .well { padding: 3px 4px 4px 4px; border: 2px solid #06090b; border-bottom-color: #b4bec8; border-right-color: #b4bec8;
- background-color: #3a414a; }
- .china .well { border-bottom-color: #d98a72; border-right-color: #d98a72; background-color: #45190f; }
- .gla .well { border-bottom-color: #cbbf82; border-right-color: #cbbf82; background-color: #423a1c; }
- .end { clear: left; height: 0; }
-
- /* the well is exactly one name and three keys wide, so each row's keys stay on its line */
- .name { float: left; clear: left; white-space: nowrap; width: 124px; height: 14px; line-height: 14px; margin-top: 3px; }
- .key { float: left; white-space: nowrap; width: 52px; height: 12px; line-height: 12px; margin: 3px 0 0 3px; text-align: center; font-weight: bold;
- border: 1px solid #06090b; border-bottom-color: #9aa4ae; border-right-color: #9aa4ae; background-color: rgba(4, 8, 10, 0.9); }
- .china .key { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .key { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
- .key:hover { background: linear-gradient(to bottom, #b3bbc4, #5a626c); border-color: #e8d27a; color: #ffffff; }
- .china .key:hover { background: linear-gradient(to bottom, #d58a70, #7a3120); }
- .gla .key:hover { background: linear-gradient(to bottom, #cabe86, #766a3a); }
- /* a toggle that is on stays lit in the power bar's green */
- .key.on { background: linear-gradient(to bottom, #9be07a, #2f7a1c); border-color: #e8d27a; color: #ffffff; }
-
- .close { position: absolute; right: 6px; top: 4px; width: 14px; height: 12px; line-height: 12px; }
-</style>
-</head>
-<body>
-<div class="{{side}}">
- <div class="plate">
- <div class="title">{{text:GUI:CheatPanelTitle}}</div>
- <div class="key close" data-click="close">X</div>
- <div class="well">
- <div class="{{kind}}" data-each="cells" data-click="{{click}}">{{label}}</div>
- <div class="end"></div>
- </div>
- </div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/ControlBar.html b/GeneralsMD/Code/Data/Window/Html/ControlBar.html
deleted file mode 100644
index 2cafc222a..000000000
--- a/GeneralsMD/Code/Data/Window/Html/ControlBar.html
+++ /dev/null
@@ -1,468 +0,0 @@
-<!DOCTYPE html>
-<!--
- The command bar's frame, drawn where its three plates used to be, and the bar's own buttons, laid
- out the way the owner drew them on 2026-10-01: the console standing on the middle of the screen's
- bottom edge, one plate of steel with a well for each section side by side - the radar with the
- experience bar beside it, as tall as the console; the selection with, in the header strip over
- it, the idle worker's key, the skills key and the smoke signals; the
- command grid with the power bar in its header - with the general's powers growing out of its right
- hand end, and the top page hanging from the middle of the top edge, the match clock's plate over
- the money's. Laid out at
- ControlBarHudScale(), 70 percent of the uniform scale the
- tooltips and the boards use. The command buttons, the radar, the money and the
- portrait are still the bar's windows and paint over this page. The power bar and the experience
- bar are the page's to draw: their windows take the clicks and draw
- nothing. The menu, idle worker and promotion buttons are the page's altogether, pressed through
- data-click="press:Name"; the chat button is gone and Enter still opens the chat. Same materials
- as Window/Html/Spectator.html, whose header says what the renderer draws and what not.
-
- Everything with class "solid" catches clicks for the bar; the rest of the screen is battlefield,
- whatever the old plates covered. A data-click="press:Name" button must not be solid: its click
- reaches the page as a click on the battlefield.
-
- The game fills in, every frame (GameClient/HtmlTemplate.h):
- {{layer}} "back" under the bar's windows; "front" drawn again after one grid's
- buttons with nothing but {{side}} and data-each="frontcells", that grid's
- cells, each {{cell.x}} .y .w .h, whose frames then lie over the buttons.
- Every cell of every grid is its picture's rectangle, with {{ring}} the
- steel round it in page pixels
- {{side}} "america", "china" or "gla": the side whose bar is on screen
- {{promotion}} "ready" while the general has a promotion to spend
- {{watching}} "watching" while the local player is an observer or out of the match
- {{power.fill}} the power bar: production as a percent of the bar, on the bar's own
- {{power.needle}} logarithmic scale, consumption as the same ({{power.consumes}} "hidden"
- while it is nought), and {{power.state}} "green",
- "yellow" or "red"; the watched player's while watching. The bar lies
- flat: {{power.needlex}} is the needle's place in pixels along the groove
- data-each="powercells" the same production as 20 cells from the left, each {{lit}} "lit" up to
- it, standing at {{x}} pixels inside the frame's lip, {{w}} wide, {{segw}}
- without its black line
- {{expframe.x}} ... the experience bar's groove beside the radar, .w and .h its inside,
- {{expframe.innerw}} the width inside its lip; data-each="expcells" its
- ten rungs from the bottom up, each {{lit}} "lit" up to the way from this
- rank to the next, at {{y}} inside the lip, {{h}} tall, {{segh}} without
- its black line
- data-each="rankstars" a star for every rank there is, {{lit}} "lit" up to the one reached, at
- {{x}} inside the 56 wide key so the row is centred on it
- data-each="commandcells" each {{cell.x}} .y .w .h: the command grid's places that hold a command,
- six by three, each its key (Q W E R T Y, A S D F G H, Z X C V B N), an
- empty one left as steel; its cells are a fifth bigger than the others
- {{attackkey.x}} ... the attack, hold position and move places, where the page's own keys
- {{holdkey.x}} ... stand, data-click="order:attack", "order:hold" and "order:move", for a
- {{movekey.x}} ... selection that attack moves; no command set has a button for any of
- them. The game letters each with the key bound to its place
- {{stancekey.x}} ... the stance key, data-click="order:stance", wherever the grid has room for it; {{stance}} is "aggressive" or "defensive", the first selected unit's
- data-each="portraitcells" the selection's cells, the portrait's first and then only what it
- holds, each {{cell.x}} .y .w .h
- {{selinfo.x}} ... beside a lone unit's portrait: {{sel.name}}, data-each="selstars" a star
- at {{x}} from the right for each veterancy level, the health bar's dark
- groove, {{sel.healthshown}} "hidden" for an enemy in disguise, and
- data-each="selweapon" the main weapon's damage, damage a second and
- range and data-each="selarmor" the armour's change to three kinds of
- damage, each at {{x}} with {{label}} over {{value}} and {{state}}
- "strong", "weak" or nothing; both empty for a disguise, the weapon's
- for an unarmed unit. The health's figure and its lit length are
- Window/Html/Readout.html's
- data-each="skillcells" a cell behind each of the general's powers, each {{cell.x}} .y .w .h
- data-each="powersteel" the powers' steel, a column of it under each column of their cells from
- the left, {{plate.x}} .y .w .h, against the console's right hand end and
- down to the screen's bottom edge, each as high as its own cells, and
- {{shadeh}} how far down its right hand side no column beside it covers
- {{signals.x}} ... the smoke signals, three slots after the light in the selection's header;
- data-click="signal:attack", "signal:defend" or "signal:look" sends one
- to the middle of the view; {{signals.shown}} is "hidden" where the keys
- would do nothing either, a game with no allies to see the smoke, and
- {{signal0.drop}} to {{signal2.drop}} how far below its place each button
- still is while they rise into the header
- url(Name.svg) an SVG file under Window/Html, fitted whole into the box and centred
- {{blink}} "lit" for half of every second while the general has a promotion to
- spend, the one thing that blinks: a value that changes lays the whole
- page out again. The network box in the top right corner is
- Window/Html/Net.html for the same reason, and the match clock and a
- unit's health Window/Html/Readout.html
- {{panelN.x}} .y .w .h N 0 to 2, left, centre and right: where the plates would have gone,
- moving with the bar when it slides or minimises; .w and .h are 0 and
- {{panelN.shown}} is "hidden" when a minimised bar has stood it down
- {{console.x}} .y .w .h the console's plate, {{clockbar.x}} ... the clock's on the top page and
- {{clockbar.x}} ... {{moneybar.x}} ... the money's under it, each a container and a border
- {{moneybar.x}} ... outside it: .x and .y the border's outer corner, .w and .h the
- container, and .bt .br .bb .bl the border's four widths
- data-each="wells" each of the console's wells, {{well.x}} .y .w .h, and the header strip
- over it, {{header.x}} .y .w .h, {{header.shown}} "hidden" over the
- radar's, which reaches up to the console's top line
- {{idletab.x}} ... in the selection's header from its left, on a grid of seven 30 pixel
- {{skillstab.x}} ... slots: the idle worker's key, {{idleflash}} "flash" for half of every
- 0.7 seconds of the client's clock while one is idle; and the skills key,
- two slots, the rank's stars, pressed through
- data-click="press:ButtonGeneral" for the promotion screen
- {{powerframe.x}} ... the power bar's groove in the command grid's header strip;
- {{powerframe.inner}} the height inside the frame and its lip
- {{clock.x}} ... the match clock's well at the top of the top page, its figure
- Readout.html's
- {{moneyblock.x}} ... the money's well under it, the money's window moved into it
- {{peacebar.x}} ... while the lobby's peace time runs, a third plate under the money's,
- {{peace.x}} ... framed as the other two, and its well; the figure is Readout.html's
- {{Name.x}} .y .w .h the rectangle of the bar's window Name, {{Name.shown}} "shown" or "hidden"
- and {{Name.state}} any of "disabled", "hilite", "pushed", for LeftHUD (the
- radar), RightHUD (the portrait's box), CameoWindow (the portrait),
- CommandWindow, MoneyDisplay, PowerWindow, GeneralsExp, ButtonGeneral,
- ButtonLarge (the minimise button, stood down), ButtonOptions, ButtonIdleWorker
- and PopupCommunicator
- All in the page's pixels, a pixel of an 800x600 screen. Without this page the plates draw.
-
- Edit the copy under Run/Window/Html and the next match reads it.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Command bar</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; font-size: 8px; color: #dfe5ea; }
- .hidden { display: none; }
- .piece { position: absolute; }
-
- /* a panel: a dark body under a steel rail, lit along the top and left like the other pages */
- .panel { background-color: rgba(10, 16, 20, 0.94); border-top: 1px solid #aab4bf; border-left: 1px solid #8a949f;
- border-right: 1px solid #1a2026; }
- .rail { position: absolute; left: 0; right: 0; top: 0; height: 7px;
- background: linear-gradient(to bottom, #7d8691, #3f4650); border-bottom: 1px solid #0c1114; }
- .china .panel { background-color: rgba(24, 9, 7, 0.94); border-top-color: #d98a72; border-left-color: #b8604b; }
- .china .rail { background: linear-gradient(to bottom, #9a4331, #4c1b13); }
- .gla .panel { background-color: rgba(21, 18, 8, 0.94); border-top-color: #cbbf82; border-left-color: #a99d62; }
- .gla .rail { background: linear-gradient(to bottom, #8f8249, #48401e); }
-
- /* a panel is a container exactly as big as what it holds - the radar, the command grid, the
- portrait - and a border of steel outside it, out to the screen's edge on the sides against it.
- The game hands each one its corner, its container's size and the four border widths. The
- container is dark behind what it holds; everything else stands outside the border */
- .frame { border-style: solid; border-color: #6f7782; border-top-color: #aab4bf; border-left-color: #8a949f;
- border-bottom-color: #3f4650; border-right-color: #4b535e; background-color: rgba(4, 8, 10, 0.94); }
- .china .frame { border-color: #8e3b2b; border-top-color: #d98a72; border-left-color: #b8604b; border-bottom-color: #4c1b13; border-right-color: #6a2a1e;
- background-color: rgba(12, 4, 3, 0.94); }
- .gla .frame { border-color: #867a45; border-top-color: #cbbf82; border-left-color: #a99d62; border-bottom-color: #48401e; border-right-color: #625a31;
- background-color: rgba(10, 9, 4, 0.94); }
-
- /* a bezel, the console's plate and the top page's: steel lit from above over the whole border, a
- light line along its top and down a left side that faces the battlefield, a dark one down its
- right. Every piece is placed from the container's corner with the border's widths written in,
- since the page cannot add a width to a width */
- /* every steel fill of the bar is 60 percent of the light it had until 2026-09-28, the owner's call
- for a darker bar: the plates, the grid wells and the tabs. The light and dark bevel
- lines keep their colours, so the edges read as clearly on the darker steel */
- .bezel .steel { position: absolute; background: linear-gradient(to bottom, #5c6268, #363b41 30%, #20242a); }
- .bezel .shine { position: absolute; height: 1px; background-color: #dde4ea; }
- .bezel .lit { position: absolute; width: 1px; background-color: #b3bbc4; }
- .bezel .shade { position: absolute; width: 1px; background-color: #0c1114; }
- .china .bezel .lit { background-color: #d58a70; }
- .gla .bezel .lit { background-color: #cabe86; }
- .china .bezel .steel { background: linear-gradient(to bottom, #733f31, #491d13 30%, #260d09); }
- .china .bezel .shine { background-color: #f0b8a4; }
- .gla .bezel .steel { background: linear-gradient(to bottom, #6e6742, #473f23 30%, #24200f); }
- .gla .bezel .shine { background-color: #ebe2b4; }
- /* the command grid: its well is steel, and each of the fourteen places a dark hole exactly its
- picture's size, a ring of the well's steel {{ring}} wide round it, half the gap to the next, and
- a bevel on the hole's edge; an empty place shows as a hole. The page is drawn a second time as
- the front, after each grid's buttons, with only the rings and the bevels, so the grid lies over
- the buttons and takes no more than the bevel's pixel off a picture */
- .front .piece { display: none; }
- .front .piece.over { display: block; }
- .commandcell { background-color: #020405; }
- .commandcell.over { background: none; }
- .commandcell .edge { position: absolute; border-style: solid; border-color: #23272c; }
- .china .commandcell .edge { border-color: #290f09; }
- .gla .commandcell .edge { border-color: #282311; }
- /* the bevel lies on the picture's outermost pixel, where a button draws its own border line */
- .commandcell .bevel { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 1px solid #06090b;
- border-bottom-color: #9aa4ae; border-right-color: #9aa4ae; }
- .china .commandcell .bevel { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .commandcell .bevel { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
-
- /* the console's sections: a header strip of the tabs' steel over each, and a well sunk two pixels
- in the plate under it, its edge outside the well's own size since the page adds a border to a
- width rather than taking it out */
- .header { background: linear-gradient(to bottom, #4a4f55, #33383e); border-top: 1px solid #8a949f; }
- .china .header { background: linear-gradient(to bottom, #5e3326, #3f1911); border-top-color: #b8604b; }
- .gla .header { background: linear-gradient(to bottom, #5a5434, #3d371d); border-top-color: #a99d62; }
- .hollow { position: absolute; left: -2px; top: -2px; border: 2px solid #06090b; border-bottom-color: #b4bec8; border-right-color: #b4bec8;
- background-color: #23272c; }
- .china .hollow { border-bottom-color: #d98a72; border-right-color: #d98a72; background-color: #290f09; }
- .gla .hollow { border-bottom-color: #cbbf82; border-right-color: #cbbf82; background-color: #282311; }
-
- /* a lone unit's name, its health's groove, which Readout.html lights and writes the figure under,
- its veterancy as gold stars at the right hand end of that figure's line, and then two rows of
- figures, a small grey label over each: its main weapon's, and what its armour does to the damage
- most of the fighting deals, green where it takes less and red where it takes more. The column
- beside the portrait is 108 by 78 page pixels from just under the well's top, so the name takes
- two lines and every row is cut to the pixel to fit. The game's 9 pixel bold font sets a name's
- letters 10 high and its 7 pixel font a label's 8, so a name's line is 11, a label's 8, and its
- figure starts a pixel under that */
- .selinfo .name { position: absolute; left: 0; top: 0; height: 22px; line-height: 11px; font-size: 9px; font-weight: bold;
- color: #f1f4f6; }
- .selinfo .vet { position: absolute; top: 29px; width: 9px; height: 9px; background-size: 100% 100%;
- background-repeat: no-repeat; background-image: url(Icons/RankStar.svg); }
- .selinfo .health { position: absolute; left: 0; top: 23px; height: 4px; background-color: #0d1512; border-bottom: 1px solid #3f4650; }
- .selinfo .figure { position: absolute; height: 18px; white-space: nowrap; }
- .selinfo .weapon { top: 40px; }
- .selinfo .armor { top: 60px; }
- .selinfo .figure .label { position: absolute; left: 0; top: 0; height: 8px; line-height: 8px; font-size: 7px; color: #8a949f; }
- .selinfo .figure .value { position: absolute; left: 0; top: 9px; height: 9px; line-height: 9px; font-size: 8px; font-weight: bold; color: #f1f4f6; }
- .selinfo .figure.strong .value { color: #7fd36a; }
- .selinfo .figure.weak .value { color: #ef6a4c; }
-
- /* the general's powers' steel, a column at a time: the console's steel with its light top line,
- and a dark line down the part of its right hand side that faces the battlefield */
- .powersteel .steel { left: 0; top: 0; right: 0; bottom: 0; }
- .powersteel .shine { left: 0; right: 0; top: 0; }
- .powersteel .shade { right: 0; top: 0; }
-
- /* the money's well on the top page. The money's figure is the bar's own window over its well */
- .stack { box-sizing: border-box; margin: 0; }
- .moneywell { background-color: #020405; }
- .moneywell .lip { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 1px solid #06090b;
- border-bottom-color: #b4bec8; border-right-color: #b4bec8; }
- .china .moneywell .lip { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .moneywell .lip { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
-
- /* a groove: the power bar sunk in its block the way the radar and the grid are, two pixels dark
- along the top and left and lit along the bottom and right, round a black lip */
- .groove { margin: -3px 0 0 -3px; border: 2px solid #06090b; border-bottom-color: #b4bec8; border-right-color: #b4bec8;
- background-color: #020405; }
- .groove .lip { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 1px solid #000000; }
- /* the power bar's frame in the stack arrives placed exactly, and the groove's own pull up and left
- left a gap under it */
- .groove.stack { margin: 0; }
-
- /* the power bar is the page's: a row of cells along the groove, lit from the left up to the
- production in the power bar's own green, yellow or red, a black line between every two, and the
- consumption a white needle across them. Full is every cell, lip to lip */
- /* the row's height is the frame's inside, {{powerframe.inner}}, written in: a percentage of a
- height set by top and bottom does not resolve here, and the cells came out with none */
- .cells { position: absolute; left: 1px; top: 1px; right: 1px; }
- /* each cell stands at its own {{x}} and {{w}} in pixels, and the gap is the inner block's margin:
- a percentage of an absolutely placed box does not resolve here at all */
- .cells .cell { position: absolute; top: 0; }
- .cells .seg { margin-left: 1px; background-color: #0d1512; background-size: 100% 100%; background-repeat: no-repeat; }
- .cells .lit .seg { background-image: url(PowerBarGreen); }
- .cells.yellow .lit .seg { background-image: url(PowerBarYellow); }
- .cells.red .lit .seg { background-image: url(PowerBarRed); }
- /* the needle is a gauge pointer through the whole groove at {{power.needlex}} pixels in: a white
- stem outlined in black so it reads on a lit cell as well as a dark one, capped top and bottom
- where it crosses the groove's edges. It stands after the lip so the lip does not cut it */
- .needle { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -1px; background-color: #000000; }
- .needle .stem { position: absolute; left: 1px; right: 1px; top: 1px; bottom: 1px; background-color: #f4f6f8; }
- .needle .cap { position: absolute; left: -1px; width: 4px; height: 1px; border: 1px solid #000000; background-color: #f4f6f8; }
- .needle .head { top: -1px; }
- .needle .foot { bottom: -1px; }
- .china .groove { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .groove { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
-
- /* the bar's own buttons: a steel cap, lit gold under the pointer and pressed in when pushed */
- .button { text-align: center; color: #e8eef2; font-weight: bold;
- background: linear-gradient(to bottom, #7d8691, #3f4650); border: 1px solid #0c1114;
- border-top-color: #c3ccd3; border-left-color: #aab4bf; }
- .china .button { background: linear-gradient(to bottom, #a44734, #4c1b13); border-top-color: #e8a28a; border-left-color: #d98a72; }
- .gla .button { background: linear-gradient(to bottom, #978a50, #48401e); border-top-color: #ddd29a; border-left-color: #cbbf82; }
- .button.hilite, .button:hover { color: #ffffff; border-color: #e8d27a; }
- .button.pushed { background: linear-gradient(to bottom, #2a3036, #4b535e); border-top-color: #0c1114; border-left-color: #0c1114; }
- .button.disabled { color: #6f7782; }
- .button .cap { position: absolute; left: 0; right: 0; top: 50%; margin-top: -5px; line-height: 10px; }
-
- /* the menu: three bars in a square cap in the screen's top left corner */
- .menu { left: 4px; top: 4px; width: 18px; height: 16px; }
- .menu .bar { position: absolute; left: 4px; right: 4px; height: 2px; background-color: #e8eef2; }
- .menu:hover .bar { background-color: #e8d27a; }
-
- /* a tab cut from a bezel's own steel, standing on its top edge and running down into it */
- .tab { background: linear-gradient(to bottom, #6b7076, #53595f); border-top: 1px solid #dde4ea; border-right: 1px solid #0c1114; }
- .china .tab { background: linear-gradient(to bottom, #805343, #733f31); border-top-color: #f0b8a4; }
- .gla .tab { background: linear-gradient(to bottom, #797250, #6e6742); border-top-color: #ebe2b4; }
-
- /* a key sunk in the steel with a one-colour SVG on it, the smoke signals' and the idle worker's:
- under the pointer it comes up out of its well as lit steel with a gold rim, and a key whose
- button has nothing to do is veiled */
- .key { position: absolute; top: 1px; width: 26px; height: 18px; background-color: rgba(4, 8, 10, 0.9);
- border: 1px solid #06090b; border-bottom-color: #9aa4ae; border-right-color: #9aa4ae; }
- .key:hover { background: linear-gradient(to bottom, #b3bbc4, #5a626c); border-color: #e8d27a; }
- .china .key:hover { background: linear-gradient(to bottom, #d58a70, #7a3120); }
- .gla .key:hover { background: linear-gradient(to bottom, #cabe86, #766a3a); }
- .key .icon { position: absolute; left: 6px; top: 2px; width: 14px; height: 14px;
- background-size: 100% 100%; background-repeat: no-repeat; }
- /* pressed, the key under the pointer while the left button is {{held}}: sunk deeper than at rest,
- dark on top and lit below, the gold rim kept and the picture a pixel down */
- .held .key:hover { background: linear-gradient(to bottom, #151a1f, #3a414a); border-color: #e8d27a; }
- .china .held .key:hover { background: linear-gradient(to bottom, #1c0906, #5a2217); }
- .gla .held .key:hover { background: linear-gradient(to bottom, #19160a, #4f4623); }
- .held .key:hover .icon { top: 3px; }
- .key .veil { display: none; }
- .disabled .key .veil { display: block; position: absolute; left: 0; top: 0; width: 26px; height: 18px;
- background-color: rgba(4, 8, 10, 0.65); }
-
- /* the header's tabs stand on a grid of 30 pixel slots, a key 28 wide with its rim a pixel in from
- each slot's left. The idle worker: a key in a tab of a slot at the selection's header's left end */
- .idle .key { left: 1px; }
- .idle .icon { background-image: url(Icons/IdleWorker.svg); }
- .watching .idle { display: none; }
- /* while a worker stands idle the key flashes, {{idleflash}} "flash" for half of every 0.7 seconds:
- amber and white-rimmed, the brightest thing on the bar, then back to the sunk key */
- .idle.flash .key { background: linear-gradient(to bottom, #ffc640, #d06a00); border-color: #ffffff; }
-
- /* the command panel's attack, hold position and move: keys over their places' holes wearing
- cameos painted for them (Code/Tools/order_cameos.py, the mapped images ReforgedOrderAttack,
- ReforgedOrderHold and ReforgedOrderMove), with the game's own lit and pushed overlays over them
- the way its command buttons wear them */
- .order { background-size: 100% 100%; background-repeat: no-repeat; }
- .order.attack { background-image: url(ReforgedOrderAttack); }
- .order.hold { background-image: url(ReforgedOrderHold); }
- .order.move { background-image: url(ReforgedOrderMove); }
- .order.aggressive { background-image: url(ReforgedOrderAggressive); }
- .order.defensive { background-image: url(ReforgedOrderDefensive); }
- .order .glow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: 100% 100%; background-repeat: no-repeat; }
- .order:hover .glow { background-image: url(Cameo_hilited); }
- .held .order:hover .glow { background-image: url(Cameo_push); }
- /* the key in each one's top left corner is the game's, lettered the way the command buttons'
- are (InGameUI::drawCellGridFront) */
-
- /* the skills key: the rank, and the promotion button, a key like the idle worker's in a tab of two
- slots after the idle worker's, a star on it for every rank there
- is, gold up to the one reached and dark past it. The key is 58 by 17 with its rim, a pixel in
- from the tab's left and two down. Under the pointer it comes
- up as lit steel with a gold rim, and while a promotion waits to be spent it blinks in the side's own
- steel at its brightest, a white rim round it. The stars carry a dark outline so the gold reads
- on the lit key as well, and an unreached one is a dark star rimmed in light steel */
- .rank .key { left: 1px; top: 2px; width: 56px; height: 15px; }
- .rank.hilite .key { background: linear-gradient(to bottom, #b3bbc4, #5a626c); border-color: #e8d27a; }
- .china .rank.hilite .key { background: linear-gradient(to bottom, #d58a70, #7a3120); }
- .gla .rank.hilite .key { background: linear-gradient(to bottom, #cabe86, #766a3a); }
- .rank.ready.lit .key { background: linear-gradient(to bottom, #eef3f7, #6f7883); border-color: #ffffff; }
- .china .rank.ready.lit .key { background: linear-gradient(to bottom, #ffc4ae, #a4432e); border-color: #ffe4d8; }
- .gla .rank.ready.lit .key { background: linear-gradient(to bottom, #f4ecc0, #8f8249); border-color: #fff8dc; }
- /* pressed through its own window, which the bar marks pushed, or held under the pointer */
- .rank.pushed .key, .held .rank .key:hover { background: linear-gradient(to bottom, #151a1f, #3a414a); border-color: #e8d27a; }
- .china .rank.pushed .key, .china .held .rank .key:hover { background: linear-gradient(to bottom, #1c0906, #5a2217); }
- .gla .rank.pushed .key, .gla .held .rank .key:hover { background: linear-gradient(to bottom, #19160a, #4f4623); }
- .rank.pushed .star, .held .rank .key:hover .star { margin-top: 1px; }
- .rank .star { position: absolute; top: 2px; width: 10px; height: 10px; background-size: 100% 100%;
- background-repeat: no-repeat; background-image: url(Icons/RankStarDark.svg); }
- .rank .star.lit { background-image: url(Icons/RankStar.svg); }
- .rank.disabled .key .veil { display: block; position: absolute; left: 0; top: 0; width: 56px; height: 15px;
- background-color: rgba(4, 8, 10, 0.65); }
-
- /* the experience bar: rungs up the groove beside the radar, lit gold from the bottom up to the way
- from this rank to the next, a black line over each */
- .rungs { position: absolute; left: 1px; top: 1px; bottom: 1px; }
- .rungs .rung { position: absolute; left: 0; }
- .rungs .seg { margin-top: 1px; background-color: #15130c; }
- .rungs .lit .seg { background: linear-gradient(to right, #8a6a14, #f6d860, #b08a24); }
-
- /* the top page's bottom edge is shaded, since it hangs over the battlefield rather than standing
- on the screen's edge */
- .bezel .base { position: absolute; height: 1px; background-color: #0c1114; }
-
- /* the smoke signals: three slots after the skills key, a key in each: a crosshair to
- attack, a shield to defend, an eye to look */
- /* each key stands at its own left, pushed down by {{signalN.drop}} while it rises: a relatively
- placed box inside an absolutely placed one is laid out from the screen's corner here, and the
- row came out in the top left */
- .signal.attack .icon { background-image: url(Icons/SignalAttack.svg); }
- .signal.defend .icon { background-image: url(Icons/SignalDefend.svg); }
- .signal.look .icon { background-image: url(Icons/SignalLook.svg); }
-</style>
-</head>
-<body>
-<div class="{{layer}} {{side}} {{watching}} {{held}}">
-
- <!-- the console: one plate of steel, and a header strip and a well for each of its sections -->
- <div class="piece frame bezel solid {{console.shown}}" style="left: {{console.x}}px; top: {{console.y}}px; width: {{console.w}}px; height: {{console.h}}px; border-width: {{console.bt}}px {{console.br}}px {{console.bb}}px {{console.bl}}px">
- <div class="steel" style="left: -{{console.bl}}px; right: -{{console.br}}px; top: -{{console.bt}}px; bottom: -{{console.bb}}px"></div>
- <div class="shine" style="left: -{{console.bl}}px; right: -{{console.br}}px; top: -{{console.bt}}px"></div>
- <div class="lit" style="left: -{{console.bl}}px; top: -{{console.bt}}px; bottom: -{{console.bb}}px"></div>
- <div class="shade" style="right: -{{console.br}}px; top: -{{console.bt}}px; bottom: -{{console.bb}}px"></div>
- </div>
- <div data-each="wells">
- <div class="piece header {{header.shown}}" style="left: {{header.x}}px; top: {{header.y}}px; width: {{header.w}}px; height: {{header.h}}px"></div>
- <div class="piece" style="left: {{well.x}}px; top: {{well.y}}px; width: {{well.w}}px; height: {{well.h}}px"><div class="hollow" style="width: {{well.w}}px; height: {{well.h}}px"></div></div>
- </div>
- <div class="piece groove solid stack {{expframe.shown}}" style="left: {{expframe.x}}px; top: {{expframe.y}}px; width: {{expframe.w}}px; height: {{expframe.h}}px">
- <div class="rungs" style="width: {{expframe.innerw}}px"><div class="rung {{lit}}" data-each="expcells" style="top: {{y}}px; height: {{h}}px; width: {{expframe.innerw}}px"><div class="seg" style="width: {{expframe.innerw}}px; height: {{segh}}px"></div></div></div>
- <div class="lip"></div>
- </div>
- <div class="piece tab rank {{skillstab.shown}} {{promotion}} {{blink}} {{ButtonGeneral.state}}" style="left: {{skillstab.x}}px; top: {{skillstab.y}}px; width: {{skillstab.w}}px; height: {{skillstab.h}}px">
- <div class="key" data-click="press:ButtonGeneral"><div class="star {{lit}}" data-each="rankstars" style="left: {{x}}px"></div><div class="veil"></div></div>
- </div>
- <div class="piece tab signals solid {{signals.shown}}" style="left: {{signals.x}}px; top: {{signals.y}}px; width: {{signals.w}}px; height: {{signals.h}}px">
- <div class="key signal attack" data-click="signal:attack" style="left: 1px; margin-top: {{signal0.drop}}px"><div class="icon"></div></div>
- <div class="key signal defend" data-click="signal:defend" style="left: 31px; margin-top: {{signal1.drop}}px"><div class="icon"></div></div>
- <div class="key signal look" data-click="signal:look" style="left: 61px; margin-top: {{signal2.drop}}px"><div class="icon"></div></div>
- </div>
-
- <!-- the general's powers' steel, stepping down from the console's right hand end -->
- <div class="piece bezel solid powersteel" data-each="powersteel" style="left: {{plate.x}}px; top: {{plate.y}}px; width: {{plate.w}}px; height: {{plate.h}}px">
- <div class="steel"></div>
- <div class="shine"></div>
- <div class="shade" style="height: {{shadeh}}px"></div>
- </div>
-
- <!-- the top page: the match clock in a plate from the top edge, and the money in its own plate
- hung under it -->
- <div class="piece frame bezel solid {{clockbar.shown}}" style="left: {{clockbar.x}}px; top: {{clockbar.y}}px; width: {{clockbar.w}}px; height: {{clockbar.h}}px; border-width: {{clockbar.bt}}px {{clockbar.br}}px {{clockbar.bb}}px {{clockbar.bl}}px">
- <div class="steel" style="left: -{{clockbar.bl}}px; right: -{{clockbar.br}}px; top: -{{clockbar.bt}}px; bottom: -{{clockbar.bb}}px"></div>
- <div class="lit" style="left: -{{clockbar.bl}}px; top: -{{clockbar.bt}}px; bottom: -{{clockbar.bb}}px"></div>
- <div class="shade" style="right: -{{clockbar.br}}px; top: -{{clockbar.bt}}px; bottom: -{{clockbar.bb}}px"></div>
- <div class="base" style="left: -{{clockbar.bl}}px; right: -{{clockbar.br}}px; bottom: -{{clockbar.bb}}px"></div>
- </div>
- <div class="piece frame bezel solid {{moneybar.shown}}" style="left: {{moneybar.x}}px; top: {{moneybar.y}}px; width: {{moneybar.w}}px; height: {{moneybar.h}}px; border-width: {{moneybar.bt}}px {{moneybar.br}}px {{moneybar.bb}}px {{moneybar.bl}}px">
- <div class="steel" style="left: -{{moneybar.bl}}px; right: -{{moneybar.br}}px; top: -{{moneybar.bt}}px; bottom: -{{moneybar.bb}}px"></div>
- <div class="shine" style="left: -{{moneybar.bl}}px; right: -{{moneybar.br}}px; top: -{{moneybar.bt}}px"></div>
- <div class="lit" style="left: -{{moneybar.bl}}px; top: -{{moneybar.bt}}px; bottom: -{{moneybar.bb}}px"></div>
- <div class="shade" style="right: -{{moneybar.br}}px; top: -{{moneybar.bt}}px; bottom: -{{moneybar.bb}}px"></div>
- <div class="base" style="left: -{{moneybar.bl}}px; right: -{{moneybar.br}}px; bottom: -{{moneybar.bb}}px"></div>
- </div>
- <div class="piece frame bezel solid {{peacebar.shown}}" style="left: {{peacebar.x}}px; top: {{peacebar.y}}px; width: {{peacebar.w}}px; height: {{peacebar.h}}px; border-width: {{peacebar.bt}}px {{peacebar.br}}px {{peacebar.bb}}px {{peacebar.bl}}px">
- <div class="steel" style="left: -{{peacebar.bl}}px; right: -{{peacebar.br}}px; top: -{{peacebar.bt}}px; bottom: -{{peacebar.bb}}px"></div>
- <div class="shine" style="left: -{{peacebar.bl}}px; right: -{{peacebar.br}}px; top: -{{peacebar.bt}}px"></div>
- <div class="lit" style="left: -{{peacebar.bl}}px; top: -{{peacebar.bt}}px; bottom: -{{peacebar.bb}}px"></div>
- <div class="shade" style="right: -{{peacebar.br}}px; top: -{{peacebar.bt}}px; bottom: -{{peacebar.bb}}px"></div>
- <div class="base" style="left: -{{peacebar.bl}}px; right: -{{peacebar.br}}px; bottom: -{{peacebar.bb}}px"></div>
- </div>
- <div class="piece moneywell {{peace.shown}}" style="left: {{peace.x}}px; top: {{peace.y}}px; width: {{peace.w}}px; height: {{peace.h}}px"><div class="lip"></div></div>
- <div class="piece moneywell {{clock.shown}}" style="left: {{clock.x}}px; top: {{clock.y}}px; width: {{clock.w}}px; height: {{clock.h}}px"><div class="lip"></div></div>
- <div class="piece groove stack {{powerframe.shown}}" style="left: {{powerframe.x}}px; top: {{powerframe.y}}px; width: {{powerframe.w}}px; height: {{powerframe.h}}px">
- <div class="cells {{power.state}}" style="height: {{powerframe.inner}}px"><div class="cell {{lit}}" data-each="powercells" style="left: {{x}}px; width: {{w}}px; height: {{powerframe.inner}}px"><div class="seg" style="height: {{powerframe.inner}}px; width: {{segw}}px"></div></div></div>
- <div class="lip"></div>
- <div class="needle {{power.consumes}}" style="left: {{power.needlex}}px"><div class="stem"></div><div class="cap head"></div><div class="cap foot"></div></div>
- </div>
- <div class="piece tab idle {{idletab.shown}} {{ButtonIdleWorker.state}} {{idleflash}}" style="left: {{idletab.x}}px; top: {{idletab.y}}px; width: {{idletab.w}}px; height: {{idletab.h}}px">
- <div class="key" data-click="press:ButtonIdleWorker"><div class="icon"></div><div class="veil"></div></div>
- </div>
- <!-- the money, under the clock; the figure is the bar's own window over its well -->
- <div class="piece moneywell {{moneyblock.shown}}" style="left: {{moneyblock.x}}px; top: {{moneyblock.y}}px; width: {{moneyblock.w}}px; height: {{moneyblock.h}}px"><div class="lip"></div></div>
- <!-- a lone unit's name, health, veterancy, weapon and armour beside its portrait in the selection's well -->
- <div class="piece selinfo {{selinfo.shown}}" style="left: {{selinfo.x}}px; top: {{selinfo.y}}px; width: {{selinfo.w}}px; height: {{selinfo.h}}px">
- <div class="name" style="width: {{selinfo.w}}px">{{sel.name}}</div>
- <div class="vet" data-each="selstars" style="right: {{x}}px"></div>
- <div class="health {{sel.healthshown}}" style="width: {{selinfo.w}}px"></div>
- <div class="figure weapon {{state}}" data-each="selweapon" style="left: {{x}}px"><div class="label">{{label}}</div><div class="value">{{value}}</div></div>
- <div class="figure armor {{state}}" data-each="selarmor" style="left: {{x}}px"><div class="label">{{label}}</div><div class="value">{{value}}</div></div>
- </div>
- <div class="piece commandcell" data-each="commandcells" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px"><div class="edge" style="left: -{{ring}}px; top: -{{ring}}px; right: -{{ring}}px; bottom: -{{ring}}px; border-width: {{ring}}px"></div><div class="bevel"></div></div>
- <div class="piece commandcell" data-each="portraitcells" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px"><div class="edge" style="left: -{{ring}}px; top: -{{ring}}px; right: -{{ring}}px; bottom: -{{ring}}px; border-width: {{ring}}px"></div><div class="bevel"></div></div>
- <div class="piece order attack {{attackkey.shown}}" data-click="order:attack" style="left: {{attackkey.x}}px; top: {{attackkey.y}}px; width: {{attackkey.w}}px; height: {{attackkey.h}}px"><div class="glow"></div></div>
- <div class="piece order hold {{holdkey.shown}}" data-click="order:hold" style="left: {{holdkey.x}}px; top: {{holdkey.y}}px; width: {{holdkey.w}}px; height: {{holdkey.h}}px"><div class="glow"></div></div>
- <div class="piece order move {{movekey.shown}}" data-click="order:move" style="left: {{movekey.x}}px; top: {{movekey.y}}px; width: {{movekey.w}}px; height: {{movekey.h}}px"><div class="glow"></div></div>
- <div class="piece order {{stance}} {{stancekey.shown}}" data-click="order:stance" style="left: {{stancekey.x}}px; top: {{stancekey.y}}px; width: {{stancekey.w}}px; height: {{stancekey.h}}px"><div class="glow"></div></div>
-
- <div class="piece commandcell" data-each="skillcells" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px"><div class="edge" style="left: -{{ring}}px; top: -{{ring}}px; right: -{{ring}}px; bottom: -{{ring}}px; border-width: {{ring}}px"></div><div class="bevel"></div></div>
-
- <!-- the front: one grid's frames again, drawn after its buttons -->
- <div class="piece commandcell over" data-each="frontcells" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px"><div class="edge" style="left: -{{ring}}px; top: -{{ring}}px; right: -{{ring}}px; bottom: -{{ring}}px; border-width: {{ring}}px"></div><div class="bevel"></div></div>
-
- <div class="piece button menu {{ButtonOptions.state}}" data-click="press:ButtonOptions">
- <div class="bar" style="top: 4px"></div>
- <div class="bar" style="top: 7px"></div>
- <div class="bar" style="top: 10px"></div>
- </div>
-
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Feed.html b/GeneralsMD/Code/Data/Window/Html/Feed.html
deleted file mode 100644
index a5f1957b4..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Feed.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
- The event feed, for a player and a watcher alike: every message the game writes, a smoke signal
- or a beacon, a superweapon coming ready or being fired, a general's power used, a promotion bought,
- a superweapon or advanced tech building started or finished, a player beaten, gone or left with no
- dozer. Chat has its own page, Window/Html/Chat.html. The feed hangs under the menu key in the
- screen's top left corner, the oldest line at the top and the newest under it, growing down. A line
- is up for ten seconds, six at most, and the oldest goes first; while the chat is open the last
- twelve are up however old they are, and the chat hangs under them. Same materials as
- Window/Html/Spectator.html, whose header says what the renderer draws.
-
- The game fills in, every frame a line is up (InGameUI::drawFeed):
- {{top}} where the feed starts: under the menu key
- data-each="feed" one entry a line, the oldest first, {{kind}} one of
- "note" a plain message, all of it in {{before}}
- "player" a message about one player: {{portrait}} his general's flag,
- {{color}} his colour, and the text as {{before}} {{name}}
- {{after}}, his name cut out of it wherever it says it
- "act" something a player did: {{portrait}} {{color}} {{name}},
- {{image}} its cameo, {{what}} its name and {{tagtext}} what
- happened, {{tag}} one of "ready" "launched" "used" "unlocked"
- "started" "built"
- All in the page's pixels, a pixel of an 800x600 screen.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Feed</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; color: #e6ebef; font-size: 9px; }
-
- #lines { position: absolute; left: 0; width: 400px; }
- .line { height: 15px; margin-top: 1px; }
- /* a black band under the words that thins out to nothing on the right, over the battlefield */
- .strip { display: inline-block; height: 15px; line-height: 15px; padding: 0 40px 0 2px; white-space: nowrap;
- background: linear-gradient(to right, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0)); }
-
- .flag { width: 20px; height: 12px; margin-right: 4px; vertical-align: middle; }
- /* a plain message has no player, so a steel plate the flag's size with a mark on it stands where
- the flag would, and every line's words start in one column. The mark is an exclamation mark
- lying down, a bar and its dot, since the renderer turns no text */
- .chip { display: inline-block; position: relative; width: 20px; height: 10px; margin-right: 4px; vertical-align: middle;
- background: linear-gradient(to bottom, #6f7782, #3f4650); border-top: 1px solid #aab4bf; border-bottom: 1px solid #0c1114; }
- .chip .bang { position: absolute; left: 4px; top: 4px; width: 8px; height: 2px; background-color: #f2cf4a; }
- .chip .dot { position: absolute; left: 14px; top: 4px; width: 2px; height: 2px; background-color: #f2cf4a; }
- .who { font-weight: bold; }
- .cameo { width: 18px; height: 13px; margin: 0 4px; vertical-align: middle; }
- .what { color: #e8d27a; }
- .tag { margin-left: 4px; font-weight: bold; }
- .tag.ready, .tag.built { color: #b8f08a; }
- .tag.launched { color: #ff6a55; }
- .tag.used { color: #f2cf4a; }
- .tag.unlocked { color: #7fc8ff; }
- .tag.started { color: #c9d2d9; }
-
- .knote .flag, .knote .cameo, .knote .what, .knote .tag { display: none; }
- .kplayer .chip, .kplayer .cameo, .kplayer .what, .kplayer .tag { display: none; }
- .kact .chip { display: none; }
-</style>
-</head>
-<body>
-<div id="lines" style="top: {{top}}px">
- <div class="line" data-each="feed">
- <div class="strip k{{kind}}"><span class="chip"><span class="bang"></span><span class="dot"></span></span><img class="flag" src="{{portrait}}">{{before}}<span class="who" style="color: {{color}}">{{name}}</span>{{after}}<img class="cameo" src="{{image}}"><span class="what">{{what}}</span><span class="tag {{tag}}">{{tagtext}}</span></div>
- </div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Icons/IdleWorker.svg b/GeneralsMD/Code/Data/Window/Html/Icons/IdleWorker.svg
deleted file mode 100644
index c22f1596e..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Icons/IdleWorker.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M4 15.5C4 10.2 7.6 6.5 12 6.5S20 10.2 20 15.5Z" fill="#eef2f5"/>
- <rect x="10.9" y="4.2" width="2.2" height="3" fill="#eef2f5"/>
- <rect x="1.5" y="16.8" width="21" height="2.6" fill="#eef2f5"/>
-</svg>
diff --git a/GeneralsMD/Code/Data/Window/Html/Icons/RankStar.svg b/GeneralsMD/Code/Data/Window/Html/Icons/RankStar.svg
deleted file mode 100644
index 00b3cfb5c..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Icons/RankStar.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M12.0 1.8 14.6 9.2 22.5 9.4 16.2 14.2 18.5 21.7 12.0 17.2 5.5 21.7 7.8 14.2 1.5 9.4 9.4 9.2Z" fill="#ffd84a" stroke="#8a5c0a" stroke-width="1.2" stroke-linejoin="round"/>
-</svg>
diff --git a/GeneralsMD/Code/Data/Window/Html/Icons/RankStarDark.svg b/GeneralsMD/Code/Data/Window/Html/Icons/RankStarDark.svg
deleted file mode 100644
index 09a1ecfd3..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Icons/RankStarDark.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M12.0 1.8 14.6 9.2 22.5 9.4 16.2 14.2 18.5 21.7 12.0 17.2 5.5 21.7 7.8 14.2 1.5 9.4 9.4 9.2Z" fill="#1a1f24" stroke="#9aa4ae" stroke-width="2" stroke-linejoin="round"/>
-</svg>
diff --git a/GeneralsMD/Code/Data/Window/Html/Icons/SignalAttack.svg b/GeneralsMD/Code/Data/Window/Html/Icons/SignalAttack.svg
deleted file mode 100644
index 5aef2c2dc..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Icons/SignalAttack.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <circle cx="12" cy="12" r="7" fill="none" stroke="#eef2f5" stroke-width="2.4"/>
- <path d="M12 1v6.5M12 16.5V23M1 12h6.5M16.5 12H23" fill="none" stroke="#eef2f5" stroke-width="2.4"/>
- <circle cx="12" cy="12" r="2" fill="#eef2f5"/>
-</svg>
diff --git a/GeneralsMD/Code/Data/Window/Html/Icons/SignalDefend.svg b/GeneralsMD/Code/Data/Window/Html/Icons/SignalDefend.svg
deleted file mode 100644
index b56ebeb54..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Icons/SignalDefend.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M12 2.2 20.3 5.2V11.4C20.3 16.6 16.9 20.2 12 22 7.1 20.2 3.7 16.6 3.7 11.4V5.2Z" fill="none" stroke="#eef2f5" stroke-width="2.2" stroke-linejoin="round"/>
- <path d="M12 6 7.2 7.7V11.6C7.2 14.9 9.2 17.2 12 18.5Z" fill="#eef2f5"/>
-</svg>
diff --git a/GeneralsMD/Code/Data/Window/Html/Icons/SignalLook.svg b/GeneralsMD/Code/Data/Window/Html/Icons/SignalLook.svg
deleted file mode 100644
index 12a310388..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Icons/SignalLook.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path d="M1.5 12C4.5 6.8 8 4.8 12 4.8S19.5 6.8 22.5 12C19.5 17.2 16 19.2 12 19.2S4.5 17.2 1.5 12Z" fill="none" stroke="#eef2f5" stroke-width="2.2" stroke-linejoin="round"/>
- <circle cx="12" cy="12" r="4" fill="#eef2f5"/>
-</svg>
diff --git a/GeneralsMD/Code/Data/Window/Html/Net.html b/GeneralsMD/Code/Data/Window/Html/Net.html
deleted file mode 100644
index ee386590f..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Net.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<!--
- The network box in the screen's top right corner, drawn with Window/Html/ControlBar.html and only
- while that page is up. It is a page of its own because its clock and rates change several times a
- second, and a page is laid out again from its text every time any value in it changes: inside the
- command bar's page each of those changes laid out the whole bar, fifteen milliseconds a time.
-
- The game fills in, every frame (GameClient/HtmlTemplate.h):
- {{side}} "america", "china" or "gla": the side whose bar is on screen
- {{net.clock}} ... net.clock, net.game, net.real, net.hz, net.fps, net.renderer and
- net.frame always, net.frame as of the last rate reading; net.ready,
- net.runahead, net.room, net.in and net.out with {{net.online}} "online"
- in a network game; net.units and net.cap with {{net.capped}} "capped"
- under a unit limit
- All in the page's pixels, a pixel of an 800x600 screen.
-
- Edit the copy under Run/Window/Html and the next match reads it.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Network box</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; font-size: 8px; color: #dfe5ea; }
-
- /* ControlBar.html's panel: a dark body under a steel rail, lit along the top and left */
- .panel { background-color: rgba(10, 16, 20, 0.94); border-top: 1px solid #aab4bf; border-left: 1px solid #8a949f;
- border-right: 1px solid #1a2026; }
- .china .panel { background-color: rgba(24, 9, 7, 0.94); border-top-color: #d98a72; border-left-color: #b8604b; }
- .gla .panel { background-color: rgba(21, 18, 8, 0.94); border-top-color: #cbbf82; border-left-color: #a99d62; }
-
- #net { position: absolute; right: 0; top: 0; padding: 3px 6px 3px 8px; border-right: 0; font-size: 7px; color: #c9d2d9; text-align: right; }
- #net .line { line-height: 10px; white-space: nowrap; }
- #net .big { font-size: 9px; font-weight: bold; color: #e8d27a; }
- #net .dim { color: #7d8a93; }
- #net .onlineonly { display: none; }
- #net.online .onlineonly { display: block; }
- #net .cappedonly { display: none; }
- #net .cappedonly.capped { display: block; }
-</style>
-</head>
-<body>
-<div class="{{side}}">
- <div id="net" class="panel {{net.online}}">
- <div class="line"><span class="big">{{net.clock}}</span> {{net.game}} <span class="dim">({{net.real}})</span></div>
- <div class="line">{{net.hz}}hz {{net.fps}}fps <span class="dim">{{net.renderer}} frame {{net.frame}}</span></div>
- <div class="line onlineonly">{{text:GUI:BarNetReady}} {{net.ready}}/{{net.runahead}} {{text:GUI:BarNetRoom}} {{net.room}}fps <span class="dim">&#8595;{{net.in}} &#8593;{{net.out}} KB/s</span></div>
- <div class="line cappedonly {{net.capped}}">{{net.units}}/{{net.cap}} {{text:GUI:BarNetUnits}}</div>
- </div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Promotion.html b/GeneralsMD/Code/Data/Window/Html/Promotion.html
deleted file mode 100644
index 94875f8e7..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Promotion.html
+++ /dev/null
@@ -1,130 +0,0 @@
-<!DOCTYPE html>
-<!--
- The general's promotion screen, drawn in the place of the side's painting, in the command bar's
- steel. The promotions are the screen's own buttons and paint over this page, each on its cell; the
- close button, the title, the points and the experience bar are the screen's windows too, drawing
- nothing now and still taking their clicks, and the page draws them. Same materials as
- Window/Html/ControlBar.html.
-
- The game fills in, twice every frame the screen is up (InGameUI::drawPromotionPage):
- {{layer}} "back" under the promotions' buttons, "front" over them
- {{side}} "america", "china" or "gla"
- {{held}} "held" while the left mouse button is down
- {{panel.x}} .y .w .h the screen's plate
- {{screen.x}} .y .w .h the whole screen, dimmed under the back layer as the Esc menu dims it
- data-each="wells" a well round each row and its heading, {{well.x}} .y .w .h
- {{Name.x}} .y .w .h StaticTextTitle, ProgressBarExperience, StaticTextRankPointsAvailable and
- ButtonExit, each with {{Name.shown}} and {{Name.state}} ("disabled",
- "hilite", "pushed")
- {{title}} the rank's name, {{points}} the promotions left to spend
- data-each="exprungs" the experience bar's twenty rungs, each {{lit}} "lit" up to the way from
- this rank to the next, at {{x}} and {{w}} inside the bar
- data-each="headings" a heading over each row of promotions, {{heading.x}} .y .w .h and {{label}}
- data-each="cells" every place of every row's grid, {{cell.x}} .y .w .h, {{ring}} the steel
- round it in page pixels, and {{state}}
- "owned" once bought, "ready" while it can be, "locked" while it cannot,
- "empty" where no promotion stands
- All in the page's pixels, a pixel of an 800x600 screen. The game fades both layers in as the
- screen comes up. Without this page the painting draws.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Promotion</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; font-size: 8px; color: #dfe5ea; }
- .hidden { display: none; }
- .piece { position: absolute; }
- /* the battlefield and the bar behind the screen, dimmed as the Esc menu dims them */
- .dim { background-color: rgba(0, 0, 0, 0.65); }
-
- /* the plate: steel lit from above, a light line along its top and down its left, dark along its
- right and bottom */
- .plate { background: linear-gradient(to bottom, #9aa3ad, #5a626c 18%, #353c45); border: 1px solid #0c1114;
- border-top-color: #dde4ea; border-left-color: #b3bbc4; }
- .china .plate { background: linear-gradient(to bottom, #c06a52, #7a3120 18%, #3f160f); border-top-color: #f0b8a4; border-left-color: #d58a70; }
- .gla .plate { background: linear-gradient(to bottom, #b8ab6e, #766a3a 18%, #3c3519); border-top-color: #ebe2b4; border-left-color: #cabe86; }
-
- /* a well sunk two pixels, dark along the top and left and lit along the bottom and right */
- .well { margin: -2px 0 0 -2px; border: 2px solid #06090b; border-bottom-color: #b4bec8; border-right-color: #b4bec8;
- background-color: #3a414a; }
- .china .well { border-bottom-color: #d98a72; border-right-color: #d98a72; background-color: #45190f; }
- .gla .well { border-bottom-color: #cbbf82; border-right-color: #cbbf82; background-color: #423a1c; }
-
- .title { text-align: left; font-size: 10px; font-weight: bold; color: #f2cf4a; }
-
- /* the experience bar: twenty rungs in a groove, gold from the left up to the way to the next rank */
- .groove { margin: -3px 0 0 -3px; border: 2px solid #06090b; border-bottom-color: #b4bec8; border-right-color: #b4bec8;
- background-color: #020405; }
- .china .groove { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .groove { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
- .groove .lip { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 1px solid #000000; }
- .rung { position: absolute; top: 1px; bottom: 1px; }
- .rung .seg { position: absolute; left: 0; right: 1px; top: 0; bottom: 0; background-color: #15130c; }
- .rung.lit .seg { background: linear-gradient(to bottom, #f6d860, #8a6a14); }
-
- /* the promotions left to spend: a gold figure in a small dark window */
- .points { margin: -2px 0 0 -2px; border: 2px solid #06090b; border-bottom-color: #b4bec8; border-right-color: #b4bec8;
- background-color: #020405; text-align: center; font-size: 11px; font-weight: bold; color: #f2cf4a; }
- .china .points { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .points { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
-
- /* a row's heading, over a lit rule the width of the well */
- .heading { padding-left: 4px; font-size: 8px; font-weight: bold; color: #c9d2d9; text-align: left; line-height: 11px; }
- .heading .rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background-color: #5a626c; }
- .china .heading .rule { background-color: #7a3120; }
- .gla .heading .rule { background-color: #766a3a; }
-
- /* the page is drawn twice a frame: the back under the promotions, the front over them */
- .front .under, .back .over { display: none; }
-
- /* the grid, as the command bar's: every place a dark hole the promotion's size, a ring of the
- well's steel {{ring}} wide round it, half the gap to the next, and a bevel on its edge. The front
- lays the rings and bevels again over the promotions, so the grid reads as laid over them; a
- promotion's bevel is a rim that says where it stands - gold once bought, light steel while it can
- be bought */
- .cell { background-color: #020405; }
- .cell.over { background: none; }
- .cell .edge { position: absolute; border-style: solid; border-color: #3a414a; }
- .china .cell .edge { border-color: #45190f; }
- .gla .cell .edge { border-color: #423a1c; }
- .cell .bevel { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 1px solid #06090b;
- border-bottom-color: #9aa4ae; border-right-color: #9aa4ae; }
- .china .cell .bevel { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .cell .bevel { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
- .cell.owned .bevel { border-color: #e8c24a; }
- .cell.ready .bevel { border-color: #eef3f7; }
-
- /* the close button: a key sunk in the steel, lit steel with a gold rim under the pointer, pressed in
- while held */
- .close { border: 1px solid #06090b; border-bottom-color: #9aa4ae; border-right-color: #9aa4ae; background-color: rgba(4, 8, 10, 0.9);
- text-align: center; font-size: 8px; font-weight: bold; color: #e8eef2; }
- .close.hilite { background: linear-gradient(to bottom, #b3bbc4, #5a626c); border-color: #e8d27a; color: #ffffff; }
- .china .close.hilite { background: linear-gradient(to bottom, #d58a70, #7a3120); }
- .gla .close.hilite { background: linear-gradient(to bottom, #cabe86, #766a3a); }
- .held .close.hilite, .close.pushed { background: linear-gradient(to bottom, #151a1f, #3a414a); border-color: #e8d27a; }
- .close .label { position: absolute; left: 0; right: 0; top: 50%; margin-top: -6px; line-height: 12px; }
-</style>
-</head>
-<body>
-<div class="{{layer}} {{side}} {{held}}">
- <div class="piece dim under" style="left: {{screen.x}}px; top: {{screen.y}}px; width: {{screen.w}}px; height: {{screen.h}}px"></div>
- <div class="piece plate under" style="left: {{panel.x}}px; top: {{panel.y}}px; width: {{panel.w}}px; height: {{panel.h}}px"></div>
- <div class="piece well under" data-each="wells" style="left: {{well.x}}px; top: {{well.y}}px; width: {{well.w}}px; height: {{well.h}}px"></div>
-
- <div class="piece title under {{StaticTextTitle.shown}}" style="left: {{StaticTextTitle.x}}px; top: {{StaticTextTitle.y}}px; width: {{StaticTextTitle.w}}px; height: {{StaticTextTitle.h}}px; line-height: {{StaticTextTitle.h}}px">{{title}}</div>
- <div class="piece groove under {{ProgressBarExperience.shown}}" style="left: {{ProgressBarExperience.x}}px; top: {{ProgressBarExperience.y}}px; width: {{ProgressBarExperience.w}}px; height: {{ProgressBarExperience.h}}px">
- <div class="rung {{lit}}" data-each="exprungs" style="left: {{x}}px; width: {{w}}px"><div class="seg"></div></div>
- <div class="lip"></div>
- </div>
- <div class="piece points under {{StaticTextRankPointsAvailable.shown}}" style="left: {{StaticTextRankPointsAvailable.x}}px; top: {{StaticTextRankPointsAvailable.y}}px; width: {{StaticTextRankPointsAvailable.w}}px; height: {{StaticTextRankPointsAvailable.h}}px; line-height: {{StaticTextRankPointsAvailable.h}}px">{{points}}</div>
-
- <div class="piece heading under" data-each="headings" style="left: {{heading.x}}px; top: {{heading.y}}px; width: {{heading.w}}px; height: {{heading.h}}px">{{label}}<div class="rule"></div></div>
- <div class="piece cell under" data-each="cells" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px"></div>
- <div class="piece cell over {{state}}" data-each="cells" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px"><div class="edge" style="left: -{{ring}}px; top: -{{ring}}px; right: -{{ring}}px; bottom: -{{ring}}px; border-width: {{ring}}px"></div><div class="bevel"></div></div>
-
- <div class="piece close under {{ButtonExit.shown}} {{ButtonExit.state}}" style="left: {{ButtonExit.x}}px; top: {{ButtonExit.y}}px; width: {{ButtonExit.w}}px; height: {{ButtonExit.h}}px"><div class="label">{{text:GUI:CloseExpScreen}}</div></div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Queue.html b/GeneralsMD/Code/Data/Window/Html/Queue.html
deleted file mode 100644
index b05bd6e43..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Queue.html
+++ /dev/null
@@ -1,117 +0,0 @@
-<!DOCTYPE html>
-<!--
- Everything the player has coming, playing: one cameo for each item queued in any factory or going
- up on the ground, the soonest first, in rows of five standing on the console over the selection's
- well, each row growing right and the next one over it, in a tray of the console's steel only as
- long as each row.
- The cameos, their clocks, their countdowns and the "+N" are the game's own and
- draw between the page's two layers. Same materials as Window/Html/ControlBar.html.
-
- The game fills in, twice every frame the row is up (InGameUI::drawQueueTray):
- {{layer}} "back" under the cameos, "front" over them: the cells' frames again, so
- the steel lies over each picture's edge
- {{side}} "america", "china" or "gla"
- data-each="trays" the tray, a frame as ControlBar.html's {{console.x}} is: {{tray.x}} and .y
- the border's outer corner, .w and .h the cells it holds, .bt .br .bb .bl
- its border's four widths. The queue has one, and a second over it for a
- last row shorter than five
- data-each="cells" a cell behind each cameo and the "+N", each {{cell.x}} .y .w .h, the
- cameo's own rectangle, and {{ring}} the steel round it
- {{line}} how thick the tray's light and dark lines are, 1
- {{well}} how deep the well round its cells is, 2
- All in the page's pixels, a pixel of an 800x600 screen. Without this page the strip draws its
- column of the power bar's trays.
-
- The superweapon countdowns in the screen's top right corner stand in the same tray turned round
- (InGameUI::drawSuperweaponStrip). That page is laid out in the screen's own pixels, every length
- above already multiplied out by the game: rows of cells under each other and a tray stepped round
- them have too many edges that must meet for each to be rounded onto the screen by itself. It adds:
- {{mirrored}} "mirrored": the tray is against the screen's right edge, so the dark line
- goes down its left
- data-each="owned" a box under each superweapon's cameo, {{cell.x}} .y .w .h, in
- {{cell.color}}, the colour of the player whose weapon it is, lifted
- toward white and back while the weapon is charged. The game draws the
- cameo inside the box, the same distance in from every side, so what shows
- of the box is the cell's frame. The queue has no owned box, and this
- strip no `cells`
- {{tray.step}} "step" on a second tray: a last row shorter than the six over it hangs
- under them only as wide as its own cells, against the same edge, its
- top where the rows over it end, so the two read as one stepped plate.
- The production queue's turned up: "standing" on its plate of full rows,
- which stands on the console, and "rise" on a shorter last row over it
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Queue</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; }
- .piece { position: absolute; }
- .front .under, .back .over { display: none; }
-
- /* the tray: ControlBar.html's console steel and wells, a light line along its top, dark down its
- right, which faces the battlefield, and along its bottom, which stands over it; the cells in a
- well. The border's widths are written into each piece, since the page cannot add a width to a
- width */
- .tray { border-style: solid; border-color: transparent; }
- .tray .steel { position: absolute; background: linear-gradient(to bottom, #5c6268, #363b41 30%, #20242a); }
- .tray .shine { position: absolute; height: {{line}}px; background-color: #dde4ea; }
- .tray .shade { position: absolute; width: {{line}}px; background-color: #0c1114; }
- .tray .base { position: absolute; height: {{line}}px; background-color: #0c1114; }
- .tray .lefthand, .mirrored .tray .righthand { display: none; }
- .mirrored .tray .lefthand { display: block; }
- .tray .sunk { position: absolute; left: -{{well}}px; top: -{{well}}px; border: {{well}}px solid #06090b;
- border-bottom-color: #b4bec8; border-right-color: #b4bec8; background-color: #23272c; }
- .china .tray .steel { background: linear-gradient(to bottom, #733f31, #491d13 30%, #260d09); }
- .china .tray .shine { background-color: #f0b8a4; }
- .china .tray .sunk { border-bottom-color: #d98a72; border-right-color: #d98a72; background-color: #290f09; }
- .gla .tray .steel { background: linear-gradient(to bottom, #6e6742, #473f23 30%, #24200f); }
- .gla .tray .shine { background-color: #ebe2b4; }
- .gla .tray .sunk { border-bottom-color: #cbbf82; border-right-color: #cbbf82; background-color: #282311; }
- /* a step: a shorter row hung under the tray over it as one plate. It has no top of its own, so
- no light line, and its well's top edge is the well's steel, the gap between two rows */
- .tray.step .shine { display: none; }
- .tray.step .sunk { border-top-color: #23272c; }
- .china .tray.step .sunk { border-top-color: #290f09; }
- .gla .tray.step .sunk { border-top-color: #282311; }
- /* the production queue stands on the console's top line, so its plate has no shaded bottom; a
- shorter last row rises from the plate under it, its well's bottom edge the well's steel */
- .tray.standing .base, .tray.rise .base { display: none; }
- /* its steel runs down into the console's top, the shade that steel has there, not out to a dark foot */
- .tray.standing .steel, .tray.rise .steel { background: linear-gradient(to bottom, #6a7076, #5c6268); }
- .china .tray.standing .steel, .china .tray.rise .steel { background: linear-gradient(to bottom, #814a3a, #733f31); }
- .gla .tray.standing .steel, .gla .tray.rise .steel { background: linear-gradient(to bottom, #7b744c, #6e6742); }
- .tray.rise .sunk { border-bottom-color: #23272c; }
- .china .tray.rise .sunk { border-bottom-color: #290f09; }
- .gla .tray.rise .sunk { border-bottom-color: #282311; }
-
- /* a cell as the command grid's: a dark hole the cameo's size, a ring of the well's steel {{ring}}
- wide round it and a bevel on its edge */
- .cell { background-color: #020405; }
- .cell.over { background: none; }
- .cell .edge { position: absolute; border-style: solid; border-color: #23272c; }
- .china .cell .edge { border-color: #290f09; }
- .gla .cell .edge { border-color: #282311; }
- .cell .bevel { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border: 1px solid #06090b;
- border-bottom-color: #9aa4ae; border-right-color: #9aa4ae; }
- .china .cell .bevel { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .cell .bevel { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
-</style>
-</head>
-<body>
-<div class="{{layer}} {{side}} {{mirrored}}">
- <div class="piece tray under {{tray.step}}" data-each="trays" style="left: {{tray.x}}px; top: {{tray.y}}px; width: {{tray.w}}px; height: {{tray.h}}px; border-width: {{tray.bt}}px {{tray.br}}px {{tray.bb}}px {{tray.bl}}px">
- <div class="steel" style="left: -{{tray.bl}}px; right: -{{tray.br}}px; top: -{{tray.bt}}px; bottom: -{{tray.bb}}px"></div>
- <div class="shine" style="left: -{{tray.bl}}px; right: -{{tray.br}}px; top: -{{tray.bt}}px"></div>
- <div class="shade righthand" style="right: -{{tray.br}}px; top: -{{tray.bt}}px; bottom: -{{tray.bb}}px"></div>
- <div class="shade lefthand" style="left: -{{tray.bl}}px; top: -{{tray.bt}}px; bottom: -{{tray.bb}}px"></div>
- <div class="base" style="left: -{{tray.bl}}px; right: -{{tray.br}}px; bottom: -{{tray.bb}}px"></div>
- <div class="sunk" style="width: {{tray.w}}px; height: {{tray.h}}px"></div>
- </div>
- <div class="piece under" data-each="owned" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px; background-color: {{cell.color}}"></div>
- <div class="piece cell under" data-each="cells" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px"><div class="edge" style="left: -{{ring}}px; top: -{{ring}}px; right: -{{ring}}px; bottom: -{{ring}}px; border-width: {{ring}}px"></div><div class="bevel"></div></div>
- <div class="piece cell over" data-each="cells" style="left: {{cell.x}}px; top: {{cell.y}}px; width: {{cell.w}}px; height: {{cell.h}}px"><div class="edge" style="left: -{{ring}}px; top: -{{ring}}px; right: -{{ring}}px; bottom: -{{ring}}px; border-width: {{ring}}px"></div><div class="bevel"></div></div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/QuitMenu.html b/GeneralsMD/Code/Data/Window/Html/QuitMenu.html
deleted file mode 100644
index d9172529d..000000000
--- a/GeneralsMD/Code/Data/Window/Html/QuitMenu.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
- The Esc menu in the command bar's steel, drawn as the menu's own plate in the middle of the
- screen. Its keys are the menu's buttons, drawing nothing now and still taking their clicks, laid
- out again every frame in a stack; the logo is stood down. Same materials as
- Window/Html/Promotion.html.
-
- The game fills in, every frame the menu is up (InGameUI::drawQuitMenuPage):
- {{side}} "america", "china" or "gla"
- {{screen.x}} .y .w .h the whole screen, dimmed under the menu
- {{panel.x}} .y .w .h the menu's plate
- {{well.x}} .y .w .h the well the keys stand in
- data-each="keys" every key the menu shows, top to bottom, {{key.x}} .y .w .h, {{label}} the
- button's own text and {{state}} any of "disabled", "hilite", "pushed",
- or "flash" for a moment as the key comes in
- {{frame}} "bare" when the page is drawn for one key alone, fading in over the
- menu: everything but the keys stands down
- All in the page's pixels, a pixel of an 800x600 screen. The game fades the whole page in as the
- menu comes up, and each key after it. Without this page the menu draws as EA
- drew it.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Quit menu</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; font-size: 10px; color: #e8eef2; }
- .piece { position: absolute; }
-
- /* the plate: steel lit from above, a light line along its top and down its left, dark along its
- right and bottom */
- .plate { background: linear-gradient(to bottom, #9aa3ad, #5a626c 12%, #353c45); border: 1px solid #0c1114;
- border-top-color: #dde4ea; border-left-color: #b3bbc4; }
- .china .plate { background: linear-gradient(to bottom, #c06a52, #7a3120 12%, #3f160f); border-top-color: #f0b8a4; border-left-color: #d58a70; }
- .gla .plate { background: linear-gradient(to bottom, #b8ab6e, #766a3a 12%, #3c3519); border-top-color: #ebe2b4; border-left-color: #cabe86; }
-
- /* the keys stand in a well sunk two pixels, dark along the top and left and lit along the bottom
- and right */
- .well { margin: -2px 0 0 -2px; border: 2px solid #06090b; border-bottom-color: #b4bec8; border-right-color: #b4bec8;
- background-color: #3a414a; }
- .china .well { border-bottom-color: #d98a72; border-right-color: #d98a72; background-color: #45190f; }
- .gla .well { border-bottom-color: #cbbf82; border-right-color: #cbbf82; background-color: #423a1c; }
-
- /* a key sunk in the steel, lit steel with a gold rim under the pointer, pressed in while held, and
- dim when it does nothing */
- .key { border: 1px solid #06090b; border-bottom-color: #9aa4ae; border-right-color: #9aa4ae; background-color: rgba(4, 8, 10, 0.9);
- text-align: center; font-weight: bold; }
- .china .key { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .key { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
- .key.hilite { background: linear-gradient(to bottom, #b3bbc4, #5a626c); border-color: #e8d27a; color: #ffffff; }
- .china .key.hilite { background: linear-gradient(to bottom, #d58a70, #7a3120); }
- .gla .key.hilite { background: linear-gradient(to bottom, #cabe86, #766a3a); }
- .key.pushed { background: linear-gradient(to bottom, #151a1f, #3a414a); border-color: #e8d27a; color: #f2cf4a; }
- .key.disabled { color: #5d666f; }
- /* a key coming in is lit bright in its side's own steel */
- .key.flash { background: linear-gradient(to bottom, #f4f8fb, #9aa3ad); border-color: #ffffff; color: #ffffff; }
- .china .key.flash { background: linear-gradient(to bottom, #ffd6c8, #c06a52); border-color: #ffe6dc; }
- .gla .key.flash { background: linear-gradient(to bottom, #fff4c8, #b8ab6e); border-color: #fff8dc; }
- .bare .dim, .bare .plate, .bare .well { display: none; }
-
- /* the battlefield behind the menu, dimmed while the game waits on it */
- .dim { background-color: rgba(0, 0, 0, 0.65); }
- .key .label { position: absolute; left: 0; right: 0; top: 50%; margin-top: -7px; line-height: 14px; }
-</style>
-</head>
-<body>
-<div class="{{side}} {{frame}}">
- <div class="piece dim" style="left: {{screen.x}}px; top: {{screen.y}}px; width: {{screen.w}}px; height: {{screen.h}}px"></div>
- <div class="piece plate" style="left: {{panel.x}}px; top: {{panel.y}}px; width: {{panel.w}}px; height: {{panel.h}}px"></div>
- <div class="piece well" style="left: {{well.x}}px; top: {{well.y}}px; width: {{well.w}}px; height: {{well.h}}px"></div>
- <div class="piece key {{state}}" data-each="keys" style="left: {{key.x}}px; top: {{key.y}}px; width: {{key.w}}px; height: {{key.h}}px"><div class="label">{{label}}</div></div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Readout.html b/GeneralsMD/Code/Data/Window/Html/Readout.html
deleted file mode 100644
index 015e84d2d..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Readout.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html>
-<!--
- The command bar's two figures that move while the rest of it stands still: the match clock on the
- top page and a lone unit's health beside his portrait. Drawn over Window/Html/ControlBar.html
- right after it. A page is laid out again from its text every time any value in it changes, and
- inside the bar's page the clock did that every second and a fight with every hit, fifteen
- milliseconds a time; this page is a handful of boxes. Net.html is the same for the corner box.
-
- The game fills in, every frame the bar's page draws (InGameUI::drawReadoutPage), with the bar's
- page's own values:
- {{clock.x}} .y .w .h the clock's well, {{clock.shown}} "hidden" while the top page is down,
- and {{clock}} the match time, m:ss
- {{peace.x}} .y .w .h the peace time's well under the money's while the truce runs,
- {{peace.shown}} "hidden" otherwise; {{peace.label}} "PEACE" and
- {{peace.time}} m:ss, empty for the last ten seconds, which the game
- counts out under the plate
- {{selinfo.x}} .y .w .h the column beside a lone unit's portrait, {{selinfo.shown}} the same;
- {{sel.health}} "820/1000", "82%" for an enemy's, {{sel.healthw}} the bar's lit length out of
- selinfo.w, {{sel.healthstate}} "green", "yellow" or "red", and
- {{sel.healthshown}} "hidden" for an enemy in disguise
- In the page's pixels, laid out at ControlBarHudScale() as the bar's page is.
-
- Edit the copy under Run/Window/Html and the next match reads it.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Command bar readout</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; font-size: 8px; color: #dfe5ea; }
- .hidden { display: none; }
- .piece { position: absolute; }
-
- /* the match clock, the largest figure on the top page, in the middle of its well */
- .clock { text-align: center; font-size: 16px; font-weight: bold; color: #f1f4f6; }
-
- /* the peace time in the truce's own red, the word and the time on one line in the middle of its
- well */
- .peace { text-align: center; font-size: 11px; font-weight: bold; color: #ff3030; white-space: nowrap; }
-
- /* the health over ControlBar.html's groove, which stands at the same place, and its figure on the
- line under it, whose right hand end holds that page's veterancy stars */
- .fill { position: absolute; left: 0; top: 23px; height: 4px; background-color: #3fbf3f; }
- .fill.yellow { background-color: #e8c83a; }
- .fill.red { background-color: #d8402a; }
- .figure { position: absolute; left: 0; top: 29px; height: 9px; line-height: 9px; color: #c9d2d9; }
-</style>
-</head>
-<body>
-<div class="piece clock {{clock.shown}}" style="left: {{clock.x}}px; top: {{clock.y}}px; width: {{clock.w}}px; height: {{clock.h}}px; line-height: {{clock.h}}px">{{clock}}</div>
-<div class="piece peace {{peace.shown}}" style="left: {{peace.x}}px; top: {{peace.y}}px; width: {{peace.w}}px; height: {{peace.h}}px; line-height: {{peace.h}}px">{{peace.label}} {{peace.time}}</div>
-<div class="piece {{selinfo.shown}}" style="left: {{selinfo.x}}px; top: {{selinfo.y}}px; width: {{selinfo.w}}px; height: {{selinfo.h}}px">
- <div class="{{sel.healthshown}}">
- <div class="fill {{sel.healthstate}}" style="width: {{sel.healthw}}px"></div>
- <div class="figure" style="width: {{selinfo.w}}px">{{sel.health}}</div>
- </div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Scoreboard.html b/GeneralsMD/Code/Data/Window/Html/Scoreboard.html
deleted file mode 100644
index 2cb4dd862..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Scoreboard.html
+++ /dev/null
@@ -1,199 +0,0 @@
-<!DOCTYPE html>
-<!--
- The scoreboard, up while Tab is held, hanging under the top page's money, clock and power in the
- middle of the screen, in the same steel as the spectator's page (Window/Html/Spectator.html, whose
- header says what the renderer draws and what it does not). Everyone gets it, playing or watching.
-
- The game fills in, before layout (GameClient/HtmlTemplate.h):
- {{boardx}} {{boardy}} the board's top left corner, centred under the top page
- {{text:Label}} a string table label, in the player's language
- {{side}} "america", "china" or "gla": the side whose command bar is on screen
- {{clock}} the match time, m:ss
- data-each="seats", the sections in order, each opened by an entry of {{kind}} "band" with
- {{label}}, {{standing}} of {{seats}} still in, and {{side}} "allies", "enemies" or "team";
- then its seats, {{kind}} "seat" with {{name}} {{color}} {{team}} and {{state}}: "full" or
- "hidden", plus " own" on your own seat and " defeated" once a seat is out. A full seat also
- has {{portrait}} {{general}} {{rank}} {{cash}} {{income}}, the match's average a minute, with
- {{persecond}} after it in brackets, what it earned a second over the last half minute, {{kills}}
- {{losses}}, its promotions as {{skill0}} to {{skill6}} with {{skill0.tip}} to {{skill6.tip}},
- and {{favourite}} with {{favouritename}} and {{favourite.tip}}, the unit built most.
- A hidden seat is an enemy: a name, a colour and a team, nothing else.
- Every seat has its five soonest superweapons as {{w0.image}} {{w0.time}} {{w0.state}} {{w0.tip}} to
- {{w4...}}, the state "ready" once it can fire and "none" for an unused place; {{more}} counts
- the rest and {{moreready}} those of them ready, each with a mark "off" at zero; {{armed}} is
- "armed" when it has any.
- Watching, every seat also has its three soonest things coming, queued or going up, as
- {{j0.image}} {{j0.time}} {{j0.count}} ("x5" for a run of one thing) {{j0.state}} {{j0.tip}} to
- {{j2...}}, "none" for an unused place; {{jobsmore}} counts the rest, {{jobsmoremark}} "off" at
- zero, and {{watching}} is "watching" on every seat, coming or not.
-
- An image whose name is empty is not drawn, so an unused {{skillN}} leaves no box. Every .tip is
- the row's player and a command button, "3 Command_ConstructChinaTankBattlemaster", and the pointer
- on an element whose data-tip holds one gets that button's build card, the command bar's tooltip
- with its health, damage and range counted with that player's upgrades; an empty one gets none.
- Edit the copy under Run/Window/Html and the next match reads it.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Scoreboard</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; color: #dfe5ea; font-size: 9px; }
- .tray { background-size: 100% 100%; background-repeat: no-repeat; background-image: url(SATraySmall); }
- .china .tray { background-image: url(SNTraySmall); }
- .gla .tray { background-image: url(SUTraySmall); }
-
- .plate { background: linear-gradient(to bottom, #6f7782, #3f4650); border-top: 1px solid #aab4bf;
- border-left: 1px solid #8a949f; border-bottom: 1px solid #0c1114; border-right: 1px solid #1a2026; color: #f1f4f6; }
- .china .plate { background: linear-gradient(to bottom, #8e3b2b, #4c1b13); border-top-color: #d98a72; border-left-color: #b8604b; }
- .gla .plate { background: linear-gradient(to bottom, #867a45, #48401e); border-top-color: #cbbf82; border-left-color: #a99d62; }
- .well { background-color: rgba(9, 20, 23, 0.9); border: 1px solid #0c1114; }
- .china .well { background-color: rgba(26, 10, 8, 0.9); }
- .gla .well { background-color: rgba(22, 19, 8, 0.9); }
-
- /* it hangs from the top page's foot, so its top edge is that page's steel carried on */
- #board { position: absolute; width: 708px; padding-bottom: 3px; border-top: 3px solid #363b41; }
- .china #board { border-top-color: #491d13; }
- .gla #board { border-top-color: #473f23; }
-
- /* every column's left edge, shared by the captions and the seats; the Turkish captions are the
- long ones, so a number column is as wide as its caption rather than its digits. A 7px caption
- is drawn in 7 point Arial, about 9.3 of these pixels high, and up to 10 at the scales where
- the point size rounds up: "DAKIKADA (SANIYEDE)" then measures 111, "RUTBE" 34 and "PARA" 27,
- and the widest figures, six bold digits of money and "99999 (9999)", 44 and 78. The money
- and the two kill columns gave up what their digits never used, so the income column holds its
- caption: at 90 pixels it ran 18 into "PARA". The columns are packed against the right edge,
- the favourite unit last, and the name takes what is left: at 98 pixels "USA Air Force General"
- ran into the team */
- .c-name { left: 30px; }
- .c-team { left: 192px; width: 34px; }
- .c-rank { left: 228px; width: 36px; text-align: right; }
- .c-cash { left: 266px; width: 54px; text-align: right; }
- .c-income { left: 322px; width: 124px; text-align: right; white-space: nowrap; }
- .c-kills { left: 448px; width: 36px; text-align: right; }
- .c-losses { left: 486px; width: 36px; text-align: right; }
- .c-skills { left: 530px; }
- .c-favourite { left: 682px; }
-
- .captions { position: relative; height: 16px; line-height: 16px; }
- .captions span { position: absolute; top: 0; font-size: 7px; color: #e8d27a; }
- .clock { position: absolute; right: 6px; top: 0; font-size: 10px; font-weight: bold; color: #e8d27a; }
-
- .band { position: relative; height: 14px; line-height: 14px; margin: 3px 3px 1px 3px; padding-left: 6px; border-left: 3px solid #8a949f; }
- .band.allies { border-left-color: #b8f08a; color: #b8f08a; }
- .band.enemies { border-left-color: #ff7a5c; color: #ff7a5c; }
- .band .count { position: absolute; right: 6px; top: 0; color: #c9d2d9; }
- /* an entry is a band or a seat, and draws only its own half */
- .kband > .seatrow, .kseat > .band { display: none; }
-
- .seatrow { position: relative; height: 22px; margin: 0 3px; border-bottom: 1px solid rgba(119, 131, 145, 0.2); }
- .seatrow.own { background-color: rgba(232, 210, 122, 0.12); }
- .seatrow .stripe { position: absolute; left: 0; top: 2px; width: 2px; height: 18px; }
- /* the general's flag bare, with no tray round it, as big as the row leaves room for */
- .seatrow .tray { position: absolute; left: 4px; top: 3px; width: 24px; height: 16px; background-image: none; }
- .seatrow .emblem { position: absolute; left: 0; top: 0; width: 24px; height: 16px; }
- .seatrow .cell { position: absolute; top: 0; line-height: 22px; }
- /* the name is white and the colour goes on the stripe: dark red on this panel was about 2 to 1 */
- .seatrow .who { position: absolute; top: 2px; line-height: 10px; font-weight: bold; color: #f5f5f5; }
- .seatrow .stripe { width: 3px; }
- .seatrow .general { position: absolute; top: 12px; line-height: 8px; font-size: 7px; color: #8a949f; }
- .seatrow .team { color: #c9d2d9; font-size: 8px; }
- .seatrow .num { font-weight: bold; color: #f1f4f6; }
- .seatrow .cash { color: #e8d27a; }
- /* the match's average a minute, then what it earns a second now in brackets, on one line */
- .seatrow .persecond { color: #c9d2d9; }
- /* a promotion a cameo's shape, as big as the favourite unit beside them, a pixel apart */
- .seatrow .skill { position: absolute; top: 3px; width: 20px; height: 16px; }
- .seatrow .favourite { position: absolute; top: 3px; width: 20px; height: 16px; }
- .hidden .tray, .hidden .num, .hidden .skill, .hidden .favourite, .hidden .general { display: none; }
- .defeated .who { color: #8a949f; }
- .defeated .num, .defeated .cash { color: #8a949f; }
-
- /* a player's five soonest superweapons, each a cameo and its seconds, gold once it can fire, then
- "(+3, 1 ready)" for the rest: on a line of their
- own under a full row, and beside the name on an enemy's row, which has nothing else there */
- .arms { display: none; position: absolute; left: 30px; top: 22px; height: 20px; }
- .armed .arms { display: block; }
- .seatrow.full.armed { height: 44px; }
- .hidden .arms { left: 260px; top: 1px; }
- .arm { position: absolute; top: 0; width: 56px; height: 20px; }
- .arm.none { display: none; }
- .w0 { left: 0; } .w1 { left: 60px; } .w2 { left: 120px; } .w3 { left: 180px; } .w4 { left: 240px; }
- .arm .cameo { position: absolute; left: 0; top: 0; width: 22px; height: 18px; border: 1px solid #0c1114; }
- .more { position: absolute; left: 300px; top: 0; line-height: 20px; white-space: nowrap; color: #c9d2d9; }
- .moreready { color: #f2cf4a; }
- .more.off, .moreready.off { display: none; }
- .arm .time { position: absolute; left: 26px; top: 0; line-height: 20px; font-weight: bold; color: #c9d2d9; }
- .arm.ready .cameo { border-color: #e8c24a; }
- .arm.ready .time { color: #f2cf4a; }
-
- /* watching, what a player has coming leads the line under the row, the same cameos and seconds as
- his superweapons, which follow it on the same line: eight rows of two lines each still fit the
- screen's height, where a third line did not. The line is there on every seat, empty or not, so
- the superweapons hold their column while queues come and go */
- .jobs { display: none; position: absolute; left: 30px; top: 22px; height: 20px; }
- .watching .jobs { display: block; }
- .seatrow.full.watching { height: 44px; }
- .watching .arms { left: 244px; }
- .jobs .more { left: 180px; }
- .arm .count { position: absolute; left: 1px; top: 11px; padding: 0 1px; line-height: 8px; font-size: 7px; font-weight: bold;
- background-color: #020405; color: #f1f4f6; }
-</style>
-</head>
-<body>
-<div class="{{side}}">
-<div id="board" class="well" style="left: {{boardx}}px; top: {{boardy}}px">
- <div class="captions plate">
- <span class="c-name">{{text:GUI:ScoreboardPlayer}}</span>
- <span class="c-team">{{text:GUI:ScoreboardTeam}}</span>
- <span class="c-rank">{{text:GUI:ScoreboardLevel}}</span>
- <span class="c-cash">{{text:GUI:ScoreboardMoney}}</span>
- <span class="c-income">{{text:GUI:ScoreboardPerMinute}} ({{text:GUI:ScoreboardPerSecond}})</span>
- <span class="c-kills">{{text:GUI:ScoreboardKills}}</span>
- <span class="c-losses">{{text:GUI:ScoreboardDeaths}}</span>
- <span class="c-skills">{{text:GUI:ScoreboardPowers}}</span>
- <span class="clock">{{clock}}</span>
- </div>
-
- <div class="k{{kind}}" data-each="seats">
- <div class="band plate {{side}}">{{label}}<span class="count">{{standing}}/{{seats}}</span></div>
- <div class="seatrow {{state}} {{armed}} {{watching}}">
- <div class="stripe" style="background-color: {{color}}"></div>
- <div class="tray"><img class="emblem" src="{{portrait}}"></div>
- <span class="who c-name">{{name}}</span>
- <span class="general c-name">{{general}}</span>
- <span class="cell team c-team">{{team}}</span>
- <span class="cell num c-rank">{{rank}}</span>
- <span class="cell num cash c-cash">{{cash}}</span>
- <span class="cell num income c-income">{{income}} <span class="persecond">({{persecond}})</span></span>
- <span class="cell num c-kills">{{kills}}</span>
- <span class="cell num c-losses">{{losses}}</span>
- <img class="skill" src="{{skill0}}" data-tip="{{skill0.tip}}" style="left: 530px">
- <img class="skill" src="{{skill1}}" data-tip="{{skill1.tip}}" style="left: 551px">
- <img class="skill" src="{{skill2}}" data-tip="{{skill2.tip}}" style="left: 572px">
- <img class="skill" src="{{skill3}}" data-tip="{{skill3.tip}}" style="left: 593px">
- <img class="skill" src="{{skill4}}" data-tip="{{skill4.tip}}" style="left: 614px">
- <img class="skill" src="{{skill5}}" data-tip="{{skill5.tip}}" style="left: 635px">
- <img class="skill" src="{{skill6}}" data-tip="{{skill6.tip}}" style="left: 656px">
- <img class="favourite c-favourite" src="{{favourite}}" data-tip="{{favourite.tip}}">
- <div class="jobs">
- <div class="arm w0 {{j0.state}}" data-tip="{{j0.tip}}"><img class="cameo" src="{{j0.image}}"><span class="count">{{j0.count}}</span><span class="time">{{j0.time}}</span></div>
- <div class="arm w1 {{j1.state}}" data-tip="{{j1.tip}}"><img class="cameo" src="{{j1.image}}"><span class="count">{{j1.count}}</span><span class="time">{{j1.time}}</span></div>
- <div class="arm w2 {{j2.state}}" data-tip="{{j2.tip}}"><img class="cameo" src="{{j2.image}}"><span class="count">{{j2.count}}</span><span class="time">{{j2.time}}</span></div>
- <div class="more {{jobsmoremark}}">(+{{jobsmore}})</div>
- </div>
- <div class="arms">
- <div class="arm w0 {{w0.state}}" data-tip="{{w0.tip}}"><img class="cameo" src="{{w0.image}}"><span class="time">{{w0.time}}</span></div>
- <div class="arm w1 {{w1.state}}" data-tip="{{w1.tip}}"><img class="cameo" src="{{w1.image}}"><span class="time">{{w1.time}}</span></div>
- <div class="arm w2 {{w2.state}}" data-tip="{{w2.tip}}"><img class="cameo" src="{{w2.image}}"><span class="time">{{w2.time}}</span></div>
- <div class="arm w3 {{w3.state}}" data-tip="{{w3.tip}}"><img class="cameo" src="{{w3.image}}"><span class="time">{{w3.time}}</span></div>
- <div class="arm w4 {{w4.state}}" data-tip="{{w4.tip}}"><img class="cameo" src="{{w4.image}}"><span class="time">{{w4.time}}</span></div>
- <div class="more {{moremark}}">(+{{more}}<span class="moreready {{morereadymark}}">, {{moreready}} {{text:GUI:BarNetReady}}</span>)</div>
- </div>
- </div>
- </div>
-</div>
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Spectator.html b/GeneralsMD/Code/Data/Window/Html/Spectator.html
deleted file mode 100644
index 405266ee7..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Spectator.html
+++ /dev/null
@@ -1,271 +0,0 @@
-<!DOCTYPE html>
-<!--
- What a spectator sees over the battlefield, dressed in the command bar's own materials: steel
- plates with a lit top edge and a dark bottom one, the cameo tray the production strips stand in,
- the power bar's fills. The steel follows the side whose bar is on screen, so selecting a Chinese
- unit turns it red. One piece: #right down the right, #watch with the camera, the followed player
- and the fog, and under it #board, every player ranked by a picked stat and the armies. The players
- themselves are on the Tab scoreboard and what happens is in Window/Html/Feed.html in the top left
- corner.
-
- Laid out by litehtml and drawn by the game (GameClient/HtmlOverlay.h). A CSS pixel is a pixel of
- an 800x600 screen and font-size is the game font's point size there; the page is scaled with the
- rest of the interface. Text is always drawn with a black shadow. url(Name) is one of the game's
- mapped images, drawn at the size background-size gives it and never clipped. A background on html
- or body is for a browser only. Not drawn: rounded corners, overflow clipping, list bullets,
- gradients other than linear ones, and text-transform on anything but plain ASCII letters.
-
- The game fills in, before layout (GameClient/HtmlTemplate.h):
- {{flip:name}} "flipped" while a data-click of flip:name has been clicked an odd number of times
- {{pick:group}} the choice last made with data-click="pick:group:choice"
- {{pick:group:choice}} "on" while that is the choice; pick:stat:networth is on until another is made
- {{text:Label}} a string table label, in the player's language
- {{side}} "america", "china" or "gla": the side whose command bar is on screen
- {{stat}} the label of the picked stat
- {{statkey:stat}} the key that picks that stat: the command bar's top row, "Q" and so on
- data-each="players", one copy per player still in the match, ranked by the picked stat, with
- {{name}} {{value}} {{share}} (percent of the highest) {{networth}} {{color}}
- {{portrait}} (a mapped image name, for <img src>)
- data-each="army", every player's run: a {{kind}} "head" entry carrying {{image}} (his general),
- {{color}} and {{name}}, then up to six "unit" entries, the most money first, with {{image}}
- {{count}}
- {{camera}} names who drives the camera (GameClient/ObserverCamera.h), and {{camerafree}}
- {{cameradirector}} {{cameraplayer}} are "on" while it is that one. A data-click of
- camera:free, camera:director or camera:player hands it over and folds up flip:camera
- data-each="follows", every player the camera can follow, grouped by team: {{image}} {{color}}
- {{name}}, {{click}} "follow:N" and {{on}} "on" while he is the one followed. follow:none
- follows nobody and {{follownobody}} is "on" then; each folds up flip:follow. {{follow}}
- {{followcolor}} are the followed player's name and colour, or the nobody label and no colour
- {{fog}} "on" while the fog is drawn for the followed player, flipped with data-click="fog"
- In a replay only, the strip standing on the middle of the console, ControlBar.html's:
- {{replay}} "on", {{replayleft}} {{replaytop}} the strip's corner, {{replaytime}} {{replaylength}} the time reached and the whole replay's,
- {{replayshare}} how far along it is in percent, {{replaypaused}} "paused",
- {{replayseeking}} "seeking" while a jump runs forward to its frame, and
- {{replay:speed:N}} "on" while it plays at N percent. data-click="replay:seek" on #track jumps
- to the frame under the pointer, replay:pause pauses and resumes, replay:speed:N sets the speed
-
- The stats: networth, cash, income, army, kills, rank, power. A data-click of flip:name flips the
- name for the rest of the match; pick:group:choice picks and folds up flip:group.
-
- Edit the copy under Run/Window/Html and the next match reads it.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Spectator</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; color: #dfe5ea; font-size: 9px; }
- /* a mapped image is drawn at the size background-size gives it, and nothing clips it */
- .tray, .cell, .fill, .on .box { background-size: 100% 100%; background-repeat: no-repeat; }
-
- /* the command bar's steel, one per side: a lit top edge, a dark bottom one */
- .plate { background: linear-gradient(to bottom, #6f7782, #3f4650); border-top: 1px solid #aab4bf;
- border-left: 1px solid #8a949f; border-bottom: 1px solid #0c1114; border-right: 1px solid #1a2026; color: #f1f4f6; }
- .plate:hover { background: linear-gradient(to bottom, #808995, #4b535e); }
- .china .plate { background: linear-gradient(to bottom, #8e3b2b, #4c1b13); border-top-color: #d98a72; border-left-color: #b8604b; }
- .china .plate:hover { background: linear-gradient(to bottom, #a44734, #5a2218); }
- .gla .plate { background: linear-gradient(to bottom, #867a45, #48401e); border-top-color: #cbbf82; border-left-color: #a99d62; }
- .gla .plate:hover { background: linear-gradient(to bottom, #978a50, #544a24); }
- .well { background-color: rgba(9, 20, 23, 0.86); border: 1px solid #0c1114; border-top-color: #000000; }
- .china .well { background-color: rgba(26, 10, 8, 0.86); }
- .gla .well { background-color: rgba(22, 19, 8, 0.86); }
- .tray, .cell { background-image: url(SATraySmall); }
- .china .tray, .china .cell { background-image: url(SNTraySmall); }
- .gla .tray, .gla .cell { background-image: url(SUTraySmall); }
- /* a general's emblem sits in its tray at these sizes or nowhere: the tray's window is off centre,
- and a 24x16 tray showed a dark slit down the emblem's left side and a wide bevel on its right */
- .tray { width: 28px; height: 18px; }
- .emblem { position: absolute; left: 4px; top: 3px; width: 20px; height: 12px; }
-
- .gold { color: #e8d27a; }
- .title { padding: 2px 5px; color: #e8d27a; }
-
- .row { padding: 2px 6px; color: #c9d2d9; }
- .row:hover { color: #ffffff; background-color: rgba(119, 131, 145, 0.25); }
- .box { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border: 1px solid #778391; background-color: #091417; vertical-align: middle; }
- .on .box { background-image: url(PowerBarGreen); border-color: #b8f08a; }
-
- /* ---- the right column: the camera, and under it the board ---- */
- /* under Net.html's #net, 37px tall with the network line a player knocked out of an online match
- still gets. That page is drawn a console scale over 0.7 and this one at the console's, so its
- 37px are 53 of these: 57 keeps the column where 40 put it before this page took the console's scale */
- #right { position: absolute; right: 4px; top: 57px; width: 172px; }
- #watch { padding: 0 0 1px 0; margin-bottom: 4px; }
- #board { padding: 0 0 3px 0; }
- .head { height: 16px; padding: 0 3px; position: relative; }
- .combo { position: absolute; left: 3px; right: 3px; top: 2px; height: 11px; line-height: 11px; padding-left: 5px; color: #b8f08a; }
- .combo:hover { color: #ffffff; }
- .caption { padding: 2px 6px; color: #8a949f; font-size: 8px; }
- .tab { position: absolute; right: 0; top: 0; width: 11px; height: 11px; text-align: center; font-size: 6px;
- background: linear-gradient(to bottom, #6f7782, #3f4650); color: #e8d27a; }
-
- /* a drop-down opens over what is under it rather than pushing it down, in a well with no see-through.
- The z-index is on .drop: litehtml stacks every positioned element on its own, so one on .choices
- only counted inside .drop, and the player rows, positioned and later, were drawn over the list */
- .drop { position: relative; height: 0; z-index: 10; }
- .choices { display: none; position: absolute; left: 3px; right: 3px; top: 0; padding: 1px 0; }
- .flipped > .choices { display: block; }
- .choices.well { background-color: #091417; }
- .china .choices.well { background-color: #1a0a08; }
- .gla .choices.well { background-color: #161308; }
- .choice { padding: 2px 6px; color: #c9d2d9; }
- .choice:hover { color: #ffffff; background-color: rgba(119, 131, 145, 0.25); }
- .choice.on { color: #b8f08a; }
- /* the command bar's top row picks a stat while watching, and {{statkey:stat}} is its key */
- .choice { position: relative; }
- .key { position: absolute; right: 6px; top: 2px; color: #8a949f; font-size: 8px; }
-
- .players { margin: 2px 3px 0 3px; }
- .player { position: relative; height: 18px; border-bottom: 1px solid rgba(119, 131, 145, 0.18); }
- /* the emblem as tall as its row, at the flag's own 5:3 */
- .player .tray { position: absolute; left: 1px; top: 0; width: 30px; }
- .player .emblem { left: 0; top: 0; width: 30px; height: 18px; }
- .name { position: absolute; left: 34px; top: 1px; line-height: 10px; }
- .value { position: absolute; right: 3px; top: 1px; line-height: 10px; font-weight: bold; color: #e8d27a; }
- .meter { position: absolute; left: 34px; right: 3px; top: 12px; height: 3px; background-color: #030709; }
- /* the bar is the player's own colour, like his name; a two-sided match used to paint one side's
- bars green and the other's red, so a blue name stood over a red bar */
- .fill { height: 3px; }
- /* the board's emblems stand bare, with no tray round them */
- .player .tray, .army .cell.head { background-image: none; }
-
- .button { height: 11px; line-height: 11px; margin: 3px 3px 0 3px; text-align: center; font-size: 8px; color: #c9d2d9; }
- .button.flipped { color: #b8f08a; }
-
- .panel { display: none; margin: 3px 3px 0 3px; }
- .panel.flipped { display: block; }
-
- .army { overflow: hidden; padding: 0 1px 3px 1px; }
- .army .cell { float: left; position: relative; width: 19px; height: 17px; margin: 1px 1px 0 0; }
- .army .cell img { position: absolute; left: 1px; top: 1px; width: 17px; height: 15px; }
- .army .cell.head { clear: left; width: 30px; height: 18px; margin-right: 1px; }
- .army .cell.head img { left: 0; top: 0; width: 30px; height: 18px; }
- .count { position: absolute; right: 2px; bottom: 1px; padding: 0 1px; line-height: 8px; font-size: 8px; font-weight: bold;
- background-color: #020405; color: #ffffff; }
-
- /* ---- the replay strip, standing on the middle of the console at {{replayleft}} {{replaytop}} ----
- ControlBar.html's own bezel: a steel plate lit from above, a light line along its top and down
- its left, a dark one down its right, the readout and the timeline sunk in two pixel wells, and
- the keys the bar's steel caps, pressed in while they are the one in force */
- #replay { display: none; position: absolute; width: 306px; height: 38px; padding: 5px 7px 6px 7px;
- background: linear-gradient(to bottom, #9aa3ad, #5a626c 30%, #353c45);
- border-top: 1px solid #dde4ea; border-left: 1px solid #b3bbc4; border-right: 1px solid #0c1114; }
- .china #replay { background: linear-gradient(to bottom, #c06a52, #7a3120 30%, #3f160f); border-top-color: #f0b8a4; border-left-color: #d58a70; }
- .gla #replay { background: linear-gradient(to bottom, #b8ab6e, #766a3a 30%, #3c3519); border-top-color: #ebe2b4; border-left-color: #cabe86; }
- #replay.on { display: block; }
- .sunk { border: 2px solid #06090b; border-bottom-color: #b4bec8; border-right-color: #b4bec8; background-color: #020405; }
- .china .sunk { border-bottom-color: #d98a72; border-right-color: #d98a72; }
- .gla .sunk { border-bottom-color: #cbbf82; border-right-color: #cbbf82; }
- .controls { position: relative; height: 15px; }
- .readout { position: absolute; left: 0; top: 0; width: 76px; height: 11px; line-height: 11px; text-align: center; font-size: 8px; }
- .clock { font-weight: bold; color: #e8d27a; }
- .seeking .clock { color: #b8f08a; }
- .length { color: #8a949f; }
- .keys { position: absolute; right: 0; top: 0; }
- .speed { display: inline-block; width: 30px; height: 12px; line-height: 12px; margin-left: 2px; text-align: center;
- font-size: 8px; font-weight: bold; color: #e8eef2;
- background: linear-gradient(to bottom, #7d8691, #3f4650); border: 1px solid #0c1114; border-top-color: #c3ccd3; border-left-color: #aab4bf; }
- .china .speed { background: linear-gradient(to bottom, #a44734, #4c1b13); border-top-color: #e8a28a; border-left-color: #d98a72; }
- .gla .speed { background: linear-gradient(to bottom, #978a50, #48401e); border-top-color: #ddd29a; border-left-color: #cbbf82; }
- .speed:hover { color: #ffffff; border-color: #e8d27a; }
- .speed.on, .china .speed.on, .gla .speed.on { color: #e8d27a; background: linear-gradient(to bottom, #2a3036, #4b535e); border-top-color: #0c1114; border-left-color: #0c1114; }
- .speed .play { display: none; }
- .paused .speed .play { display: inline; }
- .paused .speed .hold { display: none; }
- /* the timeline is the power bar's groove, lit green up to the frame reached */
- #track { height: 8px; margin-top: 6px; }
- #track:hover { border-top-color: #e8d27a; border-left-color: #e8d27a; }
- #track .fill { height: 8px; background-image: url(PowerBarGreen); }
-</style>
-</head>
-<body>
-<div class="{{side}}">
-
-<div id="right">
-<div id="watch" class="well">
- <div class="head plate">
- <div class="combo well" data-click="flip:camera">{{text:GUI:HudCamera}}: {{camera}}<span class="tab">&#9660;</span></div>
- </div>
-
- <div class="drop {{flip:camera}}">
- <div class="choices well">
- <div class="choice {{camerafree}}" data-click="camera:free"><span class="box"></span>{{text:GUI:HudCameraFree}}</div>
- <div class="choice {{cameradirector}}" data-click="camera:director"><span class="box"></span>{{text:GUI:HudCameraDirector}}</div>
- <div class="choice {{cameraplayer}}" data-click="camera:player"><span class="box"></span>{{text:GUI:HudCameraPlayer}}</div>
- </div>
- </div>
-
- <div class="head plate">
- <div class="combo well" data-click="flip:follow">{{text:GUI:HudFollow}}: <span style="color: {{followcolor}}">{{follow}}</span><span class="tab">&#9660;</span></div>
- </div>
-
- <div class="drop {{flip:follow}}">
- <div class="choices well">
- <div class="choice {{follownobody}}" data-click="follow:none"><span class="box"></span>{{text:GUI:HudFollowNobody}}</div>
- <div class="choice {{on}}" data-each="follows" data-click="{{click}}"><span class="box"></span><span style="color: {{color}}">{{name}}</span></div>
- </div>
- </div>
-
- <div class="row {{fog}}" data-click="fog"><span class="box"></span>{{text:GUI:HudFog}}</div>
-</div>
-
-<div id="board" class="well">
- <div class="head plate">
- <div class="combo well" data-click="flip:stat">{{stat}}<span class="tab">&#9660;</span></div>
- </div>
-
- <div class="drop {{flip:stat}}">
- <div class="choices well">
- <div class="caption">{{text:GUI:HudGameStats}}</div>
- <div class="choice {{pick:stat:networth}}" data-click="pick:stat:networth"><span class="box"></span>{{text:GUI:HudNetWorth}}<span class="key">{{statkey:networth}}</span></div>
- <div class="choice {{pick:stat:cash}}" data-click="pick:stat:cash"><span class="box"></span>{{text:GUI:HudStatCash}}<span class="key">{{statkey:cash}}</span></div>
- <div class="choice {{pick:stat:income}}" data-click="pick:stat:income"><span class="box"></span>{{text:GUI:HudStatIncome}}<span class="key">{{statkey:income}}</span></div>
- <div class="choice {{pick:stat:army}}" data-click="pick:stat:army"><span class="box"></span>{{text:GUI:HudStatArmy}}<span class="key">{{statkey:army}}</span></div>
- <div class="choice {{pick:stat:kills}}" data-click="pick:stat:kills"><span class="box"></span>{{text:GUI:HudStatKills}}<span class="key">{{statkey:kills}}</span></div>
- <div class="choice {{pick:stat:rank}}" data-click="pick:stat:rank"><span class="box"></span>{{text:GUI:HudStatRank}}<span class="key">{{statkey:rank}}</span></div>
- <div class="choice {{pick:stat:power}}" data-click="pick:stat:power"><span class="box"></span>{{text:GUI:HudStatPower}}<span class="key">{{statkey:power}}</span></div>
- </div>
- </div>
-
- <div class="players">
- <div class="player" data-each="players">
- <div class="tray"><img class="emblem" src="{{portrait}}"></div>
- <span class="name" style="color: {{color}}">{{name}}</span>
- <span class="value">{{value}}</span>
- <div class="meter"><div class="fill" style="width: {{share}}%; background-color: {{color}}"></div></div>
- </div>
- </div>
-
- <div class="button plate {{flip:army}}" data-click="flip:army">{{text:GUI:HudArmies}}</div>
-
- <div class="panel well {{flip:army}}">
- <div class="title">{{text:GUI:HudArmies}}</div>
- <div class="army">
- <div class="cell {{kind}}" data-each="army">
- <img src="{{image}}">
- <span class="count">{{count}}</span>
- </div>
- </div>
- </div>
-</div>
-</div>
-
-<div id="replay" class="{{replay}} {{replaypaused}} {{replayseeking}}" style="left: {{replayleft}}px; top: {{replaytop}}px">
- <div class="controls">
- <div class="readout sunk"><span class="clock">{{replaytime}}</span> <span class="length">/ {{replaylength}}</span></div>
- <div class="keys">
- <span class="speed" data-click="replay:pause"><span class="hold">II</span><span class="play">&#9658;</span></span>
- <span class="speed {{replay:speed:50}}" data-click="replay:speed:50">&#189;x</span>
- <span class="speed {{replay:speed:100}}" data-click="replay:speed:100">1x</span>
- <span class="speed {{replay:speed:200}}" data-click="replay:speed:200">2x</span>
- <span class="speed {{replay:speed:400}}" data-click="replay:speed:400">4x</span>
- <span class="speed {{replay:speed:800}}" data-click="replay:speed:800">8x</span>
- </div>
- </div>
- <div id="track" class="sunk" data-click="replay:seek"><div class="fill" style="width: {{replayshare}}%"></div></div>
-</div>
-
-</div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Html/Tooltip.html b/GeneralsMD/Code/Data/Window/Html/Tooltip.html
deleted file mode 100644
index 4003b50a6..000000000
--- a/GeneralsMD/Code/Data/Window/Html/Tooltip.html
+++ /dev/null
@@ -1,162 +0,0 @@
-<!DOCTYPE html>
-<!--
- Every tooltip in a match, in the command bar's steel. Two kinds, one box:
-
- card a command bar button's build tooltip, over the hovered button: the name and the cost in a
- steel header, the description with every "Label: value" line as a row, the build time,
- damage and range, then why it cannot be bought now and what it still needs, each in a
- sunk note
- tip what the pointer is on, beside it: the name, then the owner and the like, with a stripe
- down the left in the owner's colour
-
- The one element with id "box" is measured after layout and placed by the game, so it must stay one
- element and stay absolutely placed. Nothing inside it may be absolutely or relatively placed:
- inside an absolute box this renderer lays such children out from the screen's corner. The
- materials and what the renderer does not draw are in Window/Html/Spectator.html's header.
-
- The game fills in, every frame it is up (GameClient/HtmlTemplate.h):
- {{side}} "america", "china" or "gla", the side whose bar is on screen
- {{kind}} "card" or "tip"
- {{box.x}} {{box.y}} where the box goes, in the page's pixels
- data-each="lines" the description (card) or the lines after the name (tip): {{kind}}
- "row" with {{label}} {{value}}, "text" with {{text}}, or "gap"
- card only:
- {{name}} the button's name
- {{cost}} what it costs, {{costkind}} "money" or "science" (promotion points),
- {{cost.shown}} "hidden" when it costs nothing
- {{health}} {{damage}} {{speed}} {{dps}} {{range}} {{time}} the unit's figures with the
- upgrades its player owns: health, then its main weapon (the one with
- the most damage a second) as damage, attacks a second with their unit,
- damage a second and range, and the build time with its unit;
- {{stats.shown}}, {{health.shown}} and {{weapon.shown}}
- data-each="upgrades" a unit's upgrades, or on an upgrade's card the units it changes
- ({{upgradeskind}} "unit" or "upgrade", {{upgrades.shown}}): {{kind}}
- "upgrade" with {{name}} and {{owned}} "owned", then its lines, "change"
- with {{label}} {{from}} {{to}}, or "remark" with {{label}} {{to}} for
- what has no figure (armour)
- {{warning}} why it cannot be bought right now, {{warning.shown}}
- {{requires}} "Requires: ...", {{requires.shown}}
- tip only:
- {{title}} the first line, the name of what the pointer is on
- {{accent}} its owner's colour as #rrggbb, "transparent" for none
-
- Edit the copy under Run/Window/Html and the next match reads it.
--->
-<html>
-<head>
-<meta charset="utf-8">
-<title>Tooltip</title>
-<style>
- html, body { margin: 0; padding: 0; }
- body { background-color: #3b4a36; font-size: 8px; color: #dfe5ea; }
- .hidden { display: none; }
-
- /* the box: the panels' dark body under a steel rim, lit along the top and left */
- /* opaque: at 0.96 the money figure under a card showed through it */
- #box { position: absolute; background-color: #080c10; border: 1px solid #1a2026;
- border-top-color: #aab4bf; border-left-color: #8a949f; }
- .china #box { background-color: #140806; border-top-color: #d98a72; border-left-color: #b8604b; }
- .gla #box { background-color: #121007; border-top-color: #cbbf82; border-left-color: #a99d62; }
- /* wide enough for "Anti-air weapon: 50 damage, 317 range" on one line; at 210 the range wrapped */
- #box.card { width: 225px; }
-
- /* the card's header: the rail's steel, the name on it and the cost at its right hand end */
- .head { padding: 3px 6px 3px 6px; background: linear-gradient(to bottom, #7d8691, #3f4650);
- border-bottom: 1px solid #0c1114; }
- .china .head { background: linear-gradient(to bottom, #9a4331, #4c1b13); }
- .gla .head { background: linear-gradient(to bottom, #8f8249, #48401e); }
- .name { font-size: 9px; font-weight: bold; color: #ffffff; }
- .cost { float: right; margin-left: 6px; font-size: 9px; font-weight: bold; color: #e8d27a; }
- /* a promotion's star is its own float left of the figure: inline in the figure's float it fell to
- a second line */
- .star { float: right; width: 8px; height: 8px; margin: 2px 0 0 6px; background-image: url(Icons/RankStar.svg);
- background-size: 100% 100%; background-repeat: no-repeat; }
- .cost.science { margin-left: 2px; }
- .star.money { display: none; }
- .cost.science .dollar { display: none; }
-
- /* the body: rows as label and value, prose in a softer grey, a gap where the text left a blank line */
- .body { padding: 4px 6px 5px 6px; }
- .line { line-height: 11px; }
- .line.gap { height: 4px; }
- .line.text { color: #c9d2d9; }
- .line.text .label, .line.text .value, .line.gap .label, .line.gap .value { display: none; }
- .label { color: #8a949f; }
- .value { color: #f1f4f6; font-weight: bold; }
- .china .label { color: #b48a80; }
- .gla .label { color: #a89f78; }
-
- /* the three figures under a rule, the numbers in the bar's gold */
- .stats { margin: 4px 6px 0 6px; padding: 3px 0 4px 0; border-top: 1px solid #2c343c; }
- .china .stats { border-top-color: #3e1f19; }
- .gla .stats { border-top-color: #37321c; }
- .stats .value { color: #e8d27a; }
-
- /* the upgrades under another rule: each name in green, Dota's colour for what an upgrade adds, gold
- once it is owned, and under it every figure it moves, from the plain one to the upgraded one.
- An upgrade's card lists the units it changes in the same shape */
- .upgrades { margin: 0 6px 5px 6px; padding-top: 3px; border-top: 1px solid #2c343c; line-height: 11px; }
- .china .upgrades { border-top-color: #3e1f19; }
- .gla .upgrades { border-top-color: #37321c; }
- .caption { color: #8a949f; font-size: 7px; font-weight: bold; }
- .upgrades.unit .forupgrade, .upgrades.upgrade .forunit { display: none; }
- .entry .name { font-size: 8px; font-weight: bold; color: #8fd46a; }
- .entry.owned .name { color: #e8d27a; }
- .entry .mark { color: #a89f6a; }
- .entry.change, .entry.remark { padding-left: 6px; }
- .entry .from { color: #f1f4f6; }
- .entry .arrow { color: #8a949f; }
- .entry .to { font-weight: bold; color: #8fd46a; }
- .entry.owned .to { color: #e8d27a; }
- .entry.upgrade .label, .entry.upgrade .from, .entry.upgrade .arrow, .entry.upgrade .to { display: none; }
- .entry.change .name, .entry.change .mark, .entry.remark .name, .entry.remark .mark { display: none; }
- .entry.remark .from, .entry.remark .arrow, .entry .mark { display: none; }
- .entry.upgrade.owned .mark { display: inline; }
-
- /* a note sunk into the card: dark on top, lit below, the warning in red */
- .note { margin: 0 6px 6px 6px; padding: 3px 5px 3px 5px; line-height: 10px; background-color: #1b232b;
- border: 1px solid #06090b; border-bottom-color: #4b535e; border-right-color: #4b535e; }
- .china .note { background-color: #2a1512; border-bottom-color: #6a2a1e; border-right-color: #6a2a1e; }
- .gla .note { background-color: #26220f; border-bottom-color: #625a31; border-right-color: #625a31; }
- .note.warning { color: #ff7a60; font-weight: bold; }
- .note.requires { color: #e8a090; }
-
- /* the tip: the owner's colour down the left edge, the name over the lines */
- #box.tip { border-left: 3px solid #8a949f; padding: 2px 6px 3px 5px; }
- .tip .title { font-weight: bold; color: #ffffff; line-height: 10px; }
- .tip .body { padding: 0; }
- .card .tiponly, .tip .cardonly { display: none; }
-</style>
-</head>
-<body class="{{side}}">
- <div id="box" class="{{kind}}" style="left: {{box.x}}px; top: {{box.y}}px; border-left-color: {{accent}}">
- <div class="cardonly">
- <div class="head">
- <span class="cost {{costkind}} {{cost.shown}}"><span class="dollar">$</span>{{cost}}</span>
- <span class="star {{costkind}} {{cost.shown}}"></span>
- <span class="name">{{name}}</span>
- </div>
- </div>
- <div class="tiponly title">{{title}}</div>
- <div class="body">
- <div class="line {{kind}}" data-each="lines"><span class="label">{{label}}: </span><span class="value">{{value}}</span>{{text}}</div>
- </div>
- <div class="cardonly">
- <div class="stats {{stats.shown}}">
- <div class="line {{health.shown}}"><span class="label">{{text:TOOLTIP:StatHealth}}: </span><span class="value">{{health}}</span></div>
- <div class="line {{weapon.shown}}"><span class="label">{{text:TOOLTIP:StatDamage}}: </span><span class="value">{{damage}}</span></div>
- <div class="line {{weapon.shown}}"><span class="label">{{text:TOOLTIP:StatAttackSpeed}}: </span><span class="value">{{speed}}</span></div>
- <div class="line {{weapon.shown}}"><span class="label">{{text:TOOLTIP:StatDamagePerSecond}}: </span><span class="value">{{dps}}</span></div>
- <div class="line {{weapon.shown}}"><span class="label">{{text:TOOLTIP:StatRange}}: </span><span class="value">{{range}}</span></div>
- <div class="line"><span class="label">{{text:TOOLTIP:StatTime}}: </span><span class="value">{{time}}</span></div>
- </div>
- <div class="upgrades {{upgradeskind}} {{upgrades.shown}}">
- <div class="caption"><span class="forunit">{{text:TOOLTIP:Upgrades}}</span><span class="forupgrade">{{text:TOOLTIP:UpgradeChanges}}</span></div>
- <div class="entry {{kind}} {{owned}}" data-each="upgrades"><span class="name">{{name}}</span><span class="mark"> ({{text:TOOLTIP:UpgradeOwned}})</span><span class="label">{{label}}: </span><span class="from">{{from}}</span><span class="arrow"> → </span><span class="to">{{to}}</span></div>
- </div>
- <div class="note warning {{warning.shown}}">{{warning}}</div>
- <div class="note requires {{requires.shown}}">{{requires}}</div>
- </div>
- </div>
-</body>
-</html>
diff --git a/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
deleted file mode 100644
index 894d42e09..000000000
--- a/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
+++ /dev/null
@@ -1,11064 +0,0 @@
-FILE_VERSION = 2;
-STARTLAYOUTBLOCK
- LAYOUTINIT = OptionsMenuInit;
- LAYOUTUPDATE = OptionsMenuUpdate;
- LAYOUTSHUTDOWN = OptionsMenuShutdown;
-ENDLAYOUTBLOCK
-WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 0 0,
- BOTTOMRIGHT: 799 599,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:";
- STATUS = ENABLED;
- STYLE = USER;
- SYSTEMCALLBACK = "OptionsMenuSystem";
- INPUTCALLBACK = "OptionsMenuInput";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 0, ENABLEDBORDER: 255 255 255 0,
- DISABLED: 255 255 255 0, DISABLEDBORDER: 255 255 255 0,
- HILITE: 255 255 255 0, HILITEBORDER: 255 255 255 0;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 2 2 2 126, BORDERCOLOR: 2 2 2 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 0 0 64 255, BORDERCOLOR: 0 0 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 0 255 255, BORDERCOLOR: 0 0 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;
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 20 58, BOTTOMRIGHT: 780 542, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:OptionsMenuParent";
- STATUS = ENABLED+NOFOCUS+SEE_THRU;
- STYLE = USER;
- SYSTEMCALLBACK = "OptionsMenuSystem";
- INPUTCALLBACK = "OptionsMenuInput";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 0, ENABLEDBORDER: 255 255 255 0,
- DISABLED: 255 255 255 0, DISABLEDBORDER: 255 255 255 0,
- HILITE: 255 255 255 0, HILITEBORDER: 255 255 255 0;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 0 0 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;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 64 255, BORDERCOLOR: 0 0 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 0 255 255, BORDERCOLOR: 0 0 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;
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 20 58, BOTTOMRIGHT: 780 542, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:OptionsMenuParentOld";
- STATUS = ENABLED;
- 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: 2 2 2 175, 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 = RADIOBUTTON;
- SCREENRECT = UPPERLEFT: 135 215,
- BOTTOMRIGHT: 279 247,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:RadioMedium";
- STATUS = ENABLED+HIDDEN+IMAGE+BORDER;
- STYLE = RADIOBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "LabelRegular";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Medium";
- 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: RadioButtonEnabledLeft, COLOR: 1 1 1 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonEnabledMiddle, COLOR: 128 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: RadioButtonEnabledRight, COLOR: 117 43 1 200, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: RadioButtonDisabledLeft, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: RadioButtonDisabledMiddle, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: RadioButtonDisabledRight, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: RadioButtonEnabledLeft, COLOR: 1 1 1 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonEnabledMiddle, COLOR: 128 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: RadioButtonEnabledRight, COLOR: 117 43 1 200, BORDERCOLOR: 128 128 255 255,
- IMAGE: RadioButtonHilightedLeft, COLOR: 0 1 0 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonHilightedMiddle, COLOR: 0 128 0 0, BORDERCOLOR: 128 255 128 255,
- IMAGE: RadioButtonHilightedRight, COLOR: 117 43 0 200, BORDERCOLOR: 254 254 254 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- RADIOBUTTONDATA = GROUP: 2;
- END
- CHILD
- WINDOW
- WINDOWTYPE = RADIOBUTTON;
- SCREENRECT = UPPERLEFT: 135 183,
- BOTTOMRIGHT: 279 215,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:RadioHigh";
- STATUS = ENABLED+HIDDEN+IMAGE+BORDER;
- STYLE = RADIOBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "LabelRegular";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:High";
- 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: RadioButtonEnabledLeft, COLOR: 1 1 1 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonEnabledMiddle, COLOR: 128 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: RadioButtonEnabledRight, COLOR: 117 43 1 200, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: RadioButtonDisabledLeft, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: RadioButtonDisabledMiddle, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: RadioButtonDisabledRight, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: RadioButtonEnabledLeft, COLOR: 1 1 1 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonEnabledMiddle, COLOR: 128 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: RadioButtonEnabledRight, COLOR: 117 43 1 200, BORDERCOLOR: 128 128 255 255,
- IMAGE: RadioButtonHilightedLeft, COLOR: 0 1 0 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonHilightedMiddle, COLOR: 0 128 0 0, BORDERCOLOR: 128 255 128 255,
- IMAGE: RadioButtonHilightedRight, COLOR: 117 43 0 200, BORDERCOLOR: 254 254 254 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- RADIOBUTTONDATA = GROUP: 2;
- END
- CHILD
- WINDOW
- WINDOWTYPE = RADIOBUTTON;
- SCREENRECT = UPPERLEFT: 135 247,
- BOTTOMRIGHT: 279 279,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:RadioLow";
- STATUS = ENABLED+HIDDEN+IMAGE+BORDER;
- STYLE = RADIOBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "LabelRegular";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Low";
- 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: RadioButtonEnabledLeft, COLOR: 1 1 1 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonEnabledMiddle, COLOR: 128 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: RadioButtonEnabledRight, COLOR: 117 43 1 200, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: RadioButtonDisabledLeft, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: RadioButtonDisabledMiddle, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: RadioButtonDisabledRight, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: RadioButtonEnabledLeft, COLOR: 1 1 1 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonEnabledMiddle, COLOR: 128 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: RadioButtonEnabledRight, COLOR: 117 43 1 200, BORDERCOLOR: 128 128 255 255,
- IMAGE: RadioButtonHilightedLeft, COLOR: 0 1 0 160, BORDERCOLOR: 47 55 168 255,
- IMAGE: RadioButtonHilightedMiddle, COLOR: 0 128 0 0, BORDERCOLOR: 128 255 128 255,
- IMAGE: RadioButtonHilightedRight, COLOR: 117 43 0 200, BORDERCOLOR: 254 254 254 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- RADIOBUTTONDATA = GROUP: 2;
- END
- CHILD
- WINDOW
- WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 388 478, BOTTOMRIGHT: 568 510, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ButtonBack";
- STATUS = ENABLED+IMAGE;
- STYLE = PUSHBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
- HEADERTEMPLATE = "MainButton";
- TOOLTIPTEXT = "TOOLTIP:OptionsCancel";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Cancel";
- 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: 584 478, BOTTOMRIGHT: 764 510, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ButtonAccept";
- STATUS = ENABLED+IMAGE;
- STYLE = PUSHBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
- HEADERTEMPLATE = "MainButton";
- TOOLTIPTEXT = "TOOLTIP:OptionsAccept";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Accept";
- 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: 36 478, BOTTOMRIGHT: 216 510, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ButtonDefaults";
- STATUS = ENABLED+IMAGE;
- STYLE = PUSHBUTTON+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
- HEADERTEMPLATE = "MainButton";
- TOOLTIPTEXT = "TOOLTIP:OptionsDefaults";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Defaults";
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 731 59,
- BOTTOMRIGHT: 883 87,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:";
- STATUS = ENABLED+HIDDEN;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:MouseType";
- 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 4 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 1;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 723 155,
- BOTTOMRIGHT: 935 191,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckLanguageFilter";
- STATUS = ENABLED+HIDDEN+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "LabelRegular";
- TOOLTIPTEXT = "GUI:LanguageFilter";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:LanguageFilter";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 647 487,
- BOTTOMRIGHT: 919 511,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckBoxSaveCamera";
- STATUS = ENABLED+HIDDEN+IMAGE;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:SaveCamera";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 647 511,
- BOTTOMRIGHT: 919 535,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckBoxUseCamera";
- STATUS = ENABLED+HIDDEN+IMAGE;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:UseCamera";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 36 518, BOTTOMRIGHT: 764 534, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelVersion";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 8, BOLD: 0;
- HEADERTEMPLATE = "LabelSmall";
- TOOLTIPDELAY = -1;
- TEXT = "Version";
- TEXTCOLOR = ENABLED: 255 255 255 240, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 46 81 0 255, HILITEBORDER: 0 2 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 1 1 0 0, BORDERCOLOR: 1 1 1 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: 1;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 647 535,
- BOTTOMRIGHT: 919 559,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckBoxDrawAnchor";
- STATUS = ENABLED+HIDDEN+IMAGE;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:DrawScrollAnchor";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 647 559,
- BOTTOMRIGHT: 919 583,
- CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckBoxMoveAnchor";
- STATUS = ENABLED+HIDDEN+IMAGE;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:MoveScrollAnchor";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 20 100, BOTTOMRIGHT: 780 101, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:Line";
- STATUS = ENABLED;
- STYLE = USER;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[NONE]";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 0, ENABLEDBORDER: 255 255 255 0,
- DISABLED: 255 255 255 0, DISABLEDBORDER: 255 255 255 0,
- HILITE: 255 255 255 0, HILITEBORDER: 255 255 255 0;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 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;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 64 255, BORDERCOLOR: 0 0 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 0 255 255, BORDERCOLOR: 0 0 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 36 64, BOTTOMRIGHT: 436 96, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelTitle";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Generals", SIZE: 20, BOLD: 0;
- HEADERTEMPLATE = "Title";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Options";
- TEXTCOLOR = ENABLED: 255 255 255 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: 2 2 2 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: 36 108, BOTTOMRIGHT: 136 136, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TabDisplay";
- 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:OptionsTabDisplay";
- 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 = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 140 108, BOTTOMRIGHT: 240 136, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TabGraphics";
- 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:OptionsTabGraphics";
- 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 = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 244 108, BOTTOMRIGHT: 344 136, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TabEffects";
- 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:OptionsTabEffects";
- 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 = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 348 108, BOTTOMRIGHT: 448 136, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TabAudio";
- 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:OptionsTabAudio";
- 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 = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 452 108, BOTTOMRIGHT: 552 136, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TabControls";
- 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:OptionsTabControls";
- 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 = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 556 108, BOTTOMRIGHT: 656 136, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TabInterface";
- 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:OptionsTabInterface";
- 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 = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 660 108, BOTTOMRIGHT: 764 136, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TabNetwork";
- 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:OptionsTabNetwork";
- 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;
- NAME = "OptionsMenu.wnd:PageDisplay";
- 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: 258 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingDisplay0";
- 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:OptionsGroupScreen";
- 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: 34 182, BOTTOMRIGHT: 258 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelMonitor";
- TOOLTIPTEXT = "TOOLTIP:Monitor";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Monitor";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 206, BOTTOMRIGHT: 264 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxMonitor";
- TOOLTIPTEXT = "TOOLTIP:Monitor";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 238, BOTTOMRIGHT: 258 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ResolutionLabel";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Resolution";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 262, BOTTOMRIGHT: 264 286, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxResolution";
- 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: BlackSquare, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 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: 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 294, BOTTOMRIGHT: 258 314, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ResolutionNote";
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 318, BOTTOMRIGHT: 258 342, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelWindowMode";
- TOOLTIPTEXT = "TOOLTIP:WindowMode";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:WindowMode";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 342, BOTTOMRIGHT: 264 366, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxWindowMode";
- TOOLTIPTEXT = "TOOLTIP:WindowMode";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 374, BOTTOMRIGHT: 258 398, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelFullscreenScaling";
- TOOLTIPTEXT = "TOOLTIP:FullscreenScaling";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:FullscreenScaling";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 398, BOTTOMRIGHT: 264 422, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxFullscreenScaling";
- TOOLTIPTEXT = "TOOLTIP:FullscreenScaling";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 430, BOTTOMRIGHT: 264 454, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckVSync";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:VSync";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:VSync";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingDisplay1";
- 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:OptionsGroupPicture";
- 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: 282 182, BOTTOMRIGHT: 506 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GammaLabel";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:GammaAdjustment";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: 426 206, BOTTOMRIGHT: 506 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueGamma";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 288 206, BOTTOMRIGHT: 424 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderGamma";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "TOOLTIP:Brightness";
- 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: 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: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 0,
- MAXVALUE: 100;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 238, BOTTOMRIGHT: 512 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckSmoothMotion";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:SmoothMotion";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:SmoothMotion";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 536 182, BOTTOMRIGHT: 760 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:AntiAliasingLabel";
- STATUS = ENABLED+HIDDEN;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:AntiAliasing";
- 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: 0 0 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 1;
- END
- CHILD
- WINDOW
- WINDOWTYPE = COMBOBOX;
- SCREENRECT = UPPERLEFT: 536 206, BOTTOMRIGHT: 760 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxAntiAliasing";
- STATUS = ENABLED+HIDDEN+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: 16,
- MAXDISPLAY: 5,
- 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
- ENDALLCHILDREN
- END
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 36 142, BOTTOMRIGHT: 764 462, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:PageGraphics";
- 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: 258 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingGraphics0";
- 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:OptionsGroupDetail";
- 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: 34 182, BOTTOMRIGHT: 258 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:DetailLabel";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Detail";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 206, BOTTOMRIGHT: 264 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxDetail";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 238, BOTTOMRIGHT: 258 318, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:DetailNote";
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 322, BOTTOMRIGHT: 258 346, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelTextureResolution";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:TextureResolution";
- TEXTCOLOR = ENABLED: 255 255 255 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 4 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 178 346, BOTTOMRIGHT: 258 370, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueTextureResolution";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 346, BOTTOMRIGHT: 176 370, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LowResSlider";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "TOOLTIP:LowResSlider";
- TOOLTIPDELAY = -1;
- 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: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 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;
- DISABLEDDRAWDATA = IMAGE: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 0,
- MAXVALUE: 2;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 378, BOTTOMRIGHT: 258 402, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelParticleCap";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ParticleLimit";
- TEXTCOLOR = ENABLED: 255 255 255 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 4 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 178 402, BOTTOMRIGHT: 258 426, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueParticleCap";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 402, BOTTOMRIGHT: 176 426, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ParticleCapSlider";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "TOOLTIP:ParticleCapSlider";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 100,
- MAXVALUE: 5000;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 434, BOTTOMRIGHT: 264 458, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckNoDynamicLOD";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:NoDynamicLOD";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:NeverLowerDetail";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingGraphics1";
- 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:OptionsGroupImage";
- TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 182, BOTTOMRIGHT: 512 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckClassicGraphics";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:ClassicGraphics";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ClassicGraphics";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 210, BOTTOMRIGHT: 506 234, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelMSAA";
- TOOLTIPTEXT = "TOOLTIP:MSAA";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:MSAA";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 288 234, BOTTOMRIGHT: 512 258, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxMSAA";
- TOOLTIPTEXT = "TOOLTIP:MSAA";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 266, BOTTOMRIGHT: 506 290, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelTextureFilter";
- TOOLTIPTEXT = "TOOLTIP:TextureFilter";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:TextureFilter";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 288 290, BOTTOMRIGHT: 512 314, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxTextureFilter";
- TOOLTIPTEXT = "TOOLTIP:TextureFilter";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 322, BOTTOMRIGHT: 506 346, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelAnisotropy";
- TOOLTIPTEXT = "TOOLTIP:Anisotropy";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Anisotropy";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: 426 346, BOTTOMRIGHT: 506 370, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueAnisotropy";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 288 346, BOTTOMRIGHT: 424 370, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderAnisotropy";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "TOOLTIP:Anisotropy";
- 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: 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: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 0, MAXVALUE: 16;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingGraphics2";
- 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:OptionsGroupLighting";
- 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: 530 182, BOTTOMRIGHT: 754 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelBloom";
- TOOLTIPTEXT = "TOOLTIP:Bloom";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Bloom";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 536 206, BOTTOMRIGHT: 760 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxBloom";
- TOOLTIPTEXT = "TOOLTIP:Bloom";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = CHECKBOX;
- SCREENRECT = UPPERLEFT: 536 238, BOTTOMRIGHT: 760 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckGroundLighting";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:GroundLighting";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:GroundLighting";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 536 266, BOTTOMRIGHT: 760 290, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckHeatEffects";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:HeatEffects";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:HeatEffects";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 350, BOTTOMRIGHT: 264 374, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckUnlockFPS";
- STATUS = ENABLED+HIDDEN+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "LabelRegular";
- TOOLTIPTEXT = "TOOLTIP:UnlockMaxFPS";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:UnlockMaxFPS";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- ENDALLCHILDREN
- END
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 36 142, BOTTOMRIGHT: 764 462, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:PageEffects";
- 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: 258 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingEffects0";
- 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:OptionsGroupShadows";
- TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 182, BOTTOMRIGHT: 264 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:Check3DShadows";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:Shadows3D";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Shadows3D";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 210, BOTTOMRIGHT: 264 234, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:Check2DShadows";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:Shadows2D";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Shadows2D";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 238, BOTTOMRIGHT: 264 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckCloudShadows";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:CloudShadows";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:CloudShadows";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 266, BOTTOMRIGHT: 264 290, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckInfantryShadows";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:InfantryShadows";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:InfantryShadows";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 294, BOTTOMRIGHT: 264 318, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckProjectileShadows";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:ProjectileShadows";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ProjectileShadows";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 322, BOTTOMRIGHT: 264 346, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckPropShadows";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:PropShadows";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:PropShadows";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 350, BOTTOMRIGHT: 264 374, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckParticleShadows";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:ParticleShadows";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ParticleShadows";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingEffects1";
- 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:OptionsGroupExtras";
- TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 182, BOTTOMRIGHT: 512 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckShowProps";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:ShowProps";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ShowProps";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 210, BOTTOMRIGHT: 512 234, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckSmoothWater";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:SmoothWater";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:SmoothWater";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 238, BOTTOMRIGHT: 512 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckExtraAnimations";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:ExtraAnimations";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ExtraAnimations";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 266, BOTTOMRIGHT: 512 290, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckTreeSway";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:TreeSway";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:TreeSway";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 294, BOTTOMRIGHT: 512 318, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckBehindBuilding";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:BehindBuilding";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:BehindBuilding";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingEffects2";
- 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:OptionsGroupParticles";
- 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: 530 182, BOTTOMRIGHT: 754 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelSmoke";
- TOOLTIPTEXT = "TOOLTIP:Smoke";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Smoke";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 536 206, BOTTOMRIGHT: 760 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxSmoke";
- TOOLTIPTEXT = "TOOLTIP:Smoke";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = CHECKBOX;
- SCREENRECT = UPPERLEFT: 536 238, BOTTOMRIGHT: 760 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckParticleBounce";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:ParticleBounce";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ParticleBounce";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- ENDALLCHILDREN
- END
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 36 142, BOTTOMRIGHT: 764 462, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:PageAudio";
- 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: 258 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingAudio0";
- 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:OptionsGroupVolume";
- 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: 34 182, BOTTOMRIGHT: 258 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:MusicVolumeLabel";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "GUI:MusicVolume";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:MusicVolume";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: 178 206, BOTTOMRIGHT: 258 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueMusicVolume";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 206, BOTTOMRIGHT: 176 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderMusicVolume";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "GUI:MusicVolume";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 0 0 0 0, ENABLEDBORDER: 0 0 0 0,
- DISABLED: 0 0 0 0, DISABLEDBORDER: 0 0 0 0,
- HILITE: 0 0 0 0, HILITEBORDER: 0 0 0 0;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 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;
- DISABLEDDRAWDATA = IMAGE: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 0,
- MAXVALUE: 100;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 238, BOTTOMRIGHT: 258 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SFXVolumeLabel";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "GUI:SFXVolume";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:SFXVolume";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: 178 262, BOTTOMRIGHT: 258 286, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueSFXVolume";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 262, BOTTOMRIGHT: 176 286, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderSFXVolume";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "GUI:SFXVolume";
- 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: 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: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 0,
- MAXVALUE: 100;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 294, BOTTOMRIGHT: 258 318, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:VoiceVolumeLabel";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "GUI:VoiceVolume";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:VoiceVolume";
- TEXTCOLOR = ENABLED: 255 255 255 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 4 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 178 318, BOTTOMRIGHT: 258 342, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueVoiceVolume";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 318, BOTTOMRIGHT: 176 342, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderVoiceVolume";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "GUI:VoiceVolume";
- 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: 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: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 0,
- MAXVALUE: 100;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 350, BOTTOMRIGHT: 258 374, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelAmbientVolume";
- TOOLTIPTEXT = "TOOLTIP:AmbientVolume";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:AmbientVolume";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: 178 374, BOTTOMRIGHT: 258 398, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueAmbientVolume";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 374, BOTTOMRIGHT: 176 398, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderAmbientVolume";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "TOOLTIP:AmbientVolume";
- 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: 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: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 0, MAXVALUE: 100;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- ENDALLCHILDREN
- END
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 36 142, BOTTOMRIGHT: 764 462, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:PageControls";
- 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: 258 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingControls0";
- 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:OptionsGroupCamera";
- 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: 34 182, BOTTOMRIGHT: 258 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ScrollSpeedLabel";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ScrollSpeed";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: 178 206, BOTTOMRIGHT: 258 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueScrollSpeed";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 206, BOTTOMRIGHT: 176 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderScrollSpeed";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "ToolTip:ScrollSpeed";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 0 0 0 0, ENABLEDBORDER: 0 0 0 0,
- DISABLED: 0 0 0 0, DISABLEDBORDER: 0 0 0 0,
- HILITE: 0 0 0 0, HILITEBORDER: 0 0 0 0;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 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;
- DISABLEDDRAWDATA = IMAGE: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 10,
- MAXVALUE: 145;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 238, BOTTOMRIGHT: 258 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelZoomSpeed";
- TOOLTIPTEXT = "TOOLTIP:ZoomSpeed";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ZoomSpeed";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: 178 262, BOTTOMRIGHT: 258 286, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueZoomSpeed";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 262, BOTTOMRIGHT: 176 286, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderZoomSpeed";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "TOOLTIP:ZoomSpeed";
- 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: 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: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 25, MAXVALUE: 300;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 294, BOTTOMRIGHT: 264 318, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckIsometricCamera";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:IsometricCamera";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:IsometricCamera";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 322, BOTTOMRIGHT: 264 346, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckZoomToCursor";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:ZoomToCursor";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ZoomToCursor";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 350, BOTTOMRIGHT: 264 374, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckStartAtMaxZoom";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:StartAtMaxZoom";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:StartAtMaxZoom";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 378, BOTTOMRIGHT: 264 402, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckSnapCamera45";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:SnapCamera45";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:SnapCamera45";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingControls1";
- 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:OptionsGroupOrders";
- TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 182, BOTTOMRIGHT: 512 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:Retaliation";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "GUI:Retaliation";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:RetaliationTitle";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 210, BOTTOMRIGHT: 512 234, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckDoubleClickAttackMove";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:DoubleClickAttackMove";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:DoubleClickAttackMove";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 254, BOTTOMRIGHT: 506 278, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingControls2";
- 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:OptionsGroupPlacement";
- TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 286, BOTTOMRIGHT: 512 310, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckGridBuild";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:GridBuild";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:GridBuild";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 314, BOTTOMRIGHT: 512 338, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckSnapBuild45";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:SnapBuild45";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:SnapBuild45";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 342, BOTTOMRIGHT: 512 366, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckSnapBuildNeighbour";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:SnapBuildNeighbour";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:SnapBuildNeighbour";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 370, BOTTOMRIGHT: 512 394, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckNudgeBuild";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:NudgeBuild";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:NudgeBuild";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingControls3";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
- HEADERTEMPLATE = "MainButton";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:OptionsGroupInput";
- TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
- 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: 530 182, BOTTOMRIGHT: 754 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelDragTolerance";
- TOOLTIPTEXT = "TOOLTIP:DragTolerance";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:DragTolerance";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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: 674 206, BOTTOMRIGHT: 754 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ValueDragTolerance";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 536 206, BOTTOMRIGHT: 672 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:SliderDragTolerance";
- STATUS = ENABLED+IMAGE+TABSTOP;
- STYLE = HORZSLIDER+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Times New Roman", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "[None]";
- TOOLTIPTEXT = "TOOLTIP:DragTolerance";
- 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: 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: hilightedbox, COLOR: 128 128 128 255, BORDERCOLOR: 64 64 64 255,
- IMAGE: dehilightedbox, 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: linebox, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,
- IMAGE: arrow, 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;
- SLIDERDATA = MINVALUE: 2, MAXVALUE: 50;
- SLIDERTHUMBENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 128 128 255, BORDERCOLOR: 255 0 0 255,
- IMAGE: NoImage, COLOR: 128 128 128 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;
- SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 128 128 128 255,
- IMAGE: NoImage, COLOR: 0 0 0 255, BORDERCOLOR: 64 64 64 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;
- SLIDERTHUMBHILITEDRAWDATA = IMAGE: arrow, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: arrow, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 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;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 536 238, BOTTOMRIGHT: 760 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckChromaLighting";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:ChromaLighting";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:ChromaLighting";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- ENDALLCHILDREN
- END
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 36 142, BOTTOMRIGHT: 764 462, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:PageInterface";
- 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: 258 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingInterface0";
- 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:OptionsGroupHud";
- 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: 34 182, BOTTOMRIGHT: 258 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelHudScale";
- TOOLTIPTEXT = "TOOLTIP:HudScale";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:HudScale";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 206, BOTTOMRIGHT: 264 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxHudScale";
- TOOLTIPTEXT = "TOOLTIP:HudScale";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 238, BOTTOMRIGHT: 258 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelIncomeRate";
- TOOLTIPTEXT = "TOOLTIP:IncomeRate";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:IncomeRate";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 262, BOTTOMRIGHT: 264 286, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxIncomeRate";
- TOOLTIPTEXT = "TOOLTIP:IncomeRate";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 294, BOTTOMRIGHT: 264 318, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckNetBox";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:NetBox";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:NetBox";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingInterface1";
- 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:OptionsGroupBattlefield";
- 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: 282 182, BOTTOMRIGHT: 506 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelHealthBars";
- TOOLTIPTEXT = "TOOLTIP:HealthBars";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:HealthBars";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 288 206, BOTTOMRIGHT: 512 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxHealthBars";
- TOOLTIPTEXT = "TOOLTIP:HealthBars";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 238, BOTTOMRIGHT: 506 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelPlayerColors";
- TOOLTIPTEXT = "TOOLTIP:PlayerColors";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:PlayerColors";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 288 262, BOTTOMRIGHT: 512 286, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxPlayerColors";
- TOOLTIPTEXT = "TOOLTIP:PlayerColors";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 294, BOTTOMRIGHT: 512 318, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckOrderLines";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:OrderLines";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:OrderLines";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 322, BOTTOMRIGHT: 512 346, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckEmptyBuildingPips";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:EmptyBuildingPips";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:EmptyBuildingPips";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingInterface2";
- 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:OptionsGroupLanguage";
- 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: 530 182, BOTTOMRIGHT: 754 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:LabelLanguage";
- TOOLTIPTEXT = "TOOLTIP:Language";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:Language";
- TEXTCOLOR = ENABLED: 255 255 255 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: 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 = COMBOBOX;
- SCREENRECT = UPPERLEFT: 536 206, BOTTOMRIGHT: 760 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxLanguage";
- TOOLTIPTEXT = "TOOLTIP:Language";
- 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: 16,
- MAXDISPLAY: 5,
- 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
- ENDALLCHILDREN
- END
- CHILD
- WINDOW
- WINDOWTYPE = USER;
- SCREENRECT = UPPERLEFT: 36 142, BOTTOMRIGHT: 764 462, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:PageNetwork";
- 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: 258 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingNetwork0";
- 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:OptionsGroupAddresses";
- 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: 34 182, BOTTOMRIGHT: 258 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:StaticTextOnlineIpAddresses";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:OnlineIPAddresses";
- TEXTCOLOR = ENABLED: 255 255 255 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 4 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 206, BOTTOMRIGHT: 264 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxOnlineIP";
- STATUS = ENABLED+IMAGE;
- STYLE = MOUSETRACK+COMBOBOX;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "ComboBoxEntry";
- TOOLTIPTEXT = "TOOLTIP:OnlineIP";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 238, BOTTOMRIGHT: 258 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:StaticTextLANIpAddresses";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:IPAddresses";
- TEXTCOLOR = ENABLED: 255 255 255 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 4 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 262, BOTTOMRIGHT: 264 286, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ComboBoxIP";
- STATUS = ENABLED+IMAGE;
- STYLE = MOUSETRACK+COMBOBOX;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "ComboBoxEntry";
- TOOLTIPTEXT = "TOOLTIP:LanIP";
- 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: 16,
- MAXDISPLAY: 5,
- 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 = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingNetwork1";
- 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:OptionsGroupFirewall";
- 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: 282 182, BOTTOMRIGHT: 506 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:StaticTextFirewallPortOverride";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:FireWallPort";
- TEXTCOLOR = ENABLED: 255 255 255 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 4 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = ENTRYFIELD;
- SCREENRECT = UPPERLEFT: 288 206, BOTTOMRIGHT: 512 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TextEntryFirewallPortOverride";
- STATUS = ENABLED+IMAGE;
- STYLE = ENTRYFIELD+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "TextEntry";
- TOOLTIPTEXT = "TOOLTIP:FireWallPort";
- TOOLTIPDELAY = -1;
- TEXT = "Entry";
- TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 0 0 128 255;
- ENABLEDDRAWDATA = IMAGE: TextEntryEnabledLeftEnd, COLOR: 0 0 0 255, BORDERCOLOR: 0 0 0 255,
- IMAGE: TextEntryEnabledRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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;
- DISABLEDDRAWDATA = IMAGE: TextEntryDisabledLeftEnd, COLOR: 0 0 128 255, BORDERCOLOR: 0 0 0 255,
- IMAGE: TextEntryDisabledRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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;
- HILITEDRAWDATA = IMAGE: TextEntryHiliteLeftEnd, COLOR: 0 0 0 255, BORDERCOLOR: 0 0 0 255,
- IMAGE: TextEntryHiliteRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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;
- TEXTENTRYDATA = MAXLEN: 16,
- SECRETTEXT: 0,
- NUMERICALONLY: 1,
- ALPHANUMERICALONLY: 0,
- ASCIIONLY: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = PUSHBUTTON;
- SCREENRECT = UPPERLEFT: 288 238, BOTTOMRIGHT: 448 262, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:ButtonFirewallRefresh";
- 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:RefreshNat";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:FirewallRefresh";
- 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 = CHECKBOX;
- SCREENRECT = UPPERLEFT: 288 270, BOTTOMRIGHT: 512 294, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:CheckSendDelay";
- STATUS = ENABLED+IMAGE+BORDER;
- STYLE = CHECKBOX+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPTEXT = "TOOLTIP:SendDelay";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:SendDelay";
- TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
- ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
- IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
- IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
- IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
- IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingNetwork2";
- 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:OptionsGroupProxy";
- 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: 530 182, BOTTOMRIGHT: 754 206, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:StaticTextHTTPProxy";
- STATUS = ENABLED;
- STYLE = STATICTEXT+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
- HEADERTEMPLATE = "MinorTitle";
- TOOLTIPDELAY = -1;
- TEXT = "GUI:HTTPProxy";
- TEXTCOLOR = ENABLED: 255 255 255 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 4 0 0, BORDERCOLOR: 255 132 130 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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: 64 64 64 255, BORDERCOLOR: 192 192 192 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;
- HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 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,
- IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
- STATICTEXTDATA = CENTERED: 0;
- END
- CHILD
- WINDOW
- WINDOWTYPE = ENTRYFIELD;
- SCREENRECT = UPPERLEFT: 536 206, BOTTOMRIGHT: 760 230, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:TextEntryHTTPProxy";
- STATUS = ENABLED+IMAGE;
- STYLE = ENTRYFIELD+MOUSETRACK;
- SYSTEMCALLBACK = "[None]";
- INPUTCALLBACK = "[None]";
- TOOLTIPCALLBACK = "[None]";
- DRAWCALLBACK = "[None]";
- FONT = NAME: "Arial", SIZE: 10, BOLD: 0;
- HEADERTEMPLATE = "TextEntry";
- TOOLTIPTEXT = "TOOLTIP:HTTPProxy";
- TOOLTIPDELAY = -1;
- TEXT = "Entry";
- TEXTCOLOR = ENABLED: 254 254 254 255, ENABLEDBORDER: 0 0 0 255,
- DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
- HILITE: 168 255 12 255, HILITEBORDER: 0 0 128 255;
- ENABLEDDRAWDATA = IMAGE: TextEntryEnabledLeftEnd, COLOR: 0 0 0 255, BORDERCOLOR: 0 0 0 255,
- IMAGE: TextEntryEnabledRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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;
- DISABLEDDRAWDATA = IMAGE: TextEntryDisabledLeftEnd, COLOR: 0 0 128 255, BORDERCOLOR: 0 0 0 255,
- IMAGE: TextEntryDisabledRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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;
- HILITEDRAWDATA = IMAGE: TextEntryHiliteLeftEnd, COLOR: 0 0 0 255, BORDERCOLOR: 0 0 0 255,
- IMAGE: TextEntryHiliteRightEnd, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
- 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;
- TEXTENTRYDATA = MAXLEN: 64,
- SECRETTEXT: 0,
- NUMERICALONLY: 0,
- ALPHANUMERICALONLY: 0,
- ASCIIONLY: 1;
- END
- ENDALLCHILDREN
- END
- ENDALLCHILDREN
- END
- ENDALLCHILDREN
- END
- ENDALLCHILDREN
-END
diff --git a/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd b/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
index af9467108..11e051042 100644
--- a/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/OptionsMenuClassic.wnd
@@ -8305,6 +8305,98 @@ WINDOW
FONT = NAME: "Generals", SIZE: 15, BOLD: 0;
HEADERTEMPLATE = "MainButton";
TOOLTIPDELAY = -1;
+ TEXT = "GUI:OptionsGroupHud";
+ TEXTCOLOR = ENABLED: 186 255 12 255, ENABLEDBORDER: 0 2 0 255, DISABLED: 186 255 12 255, DISABLEDBORDER: 0 2 0 255, HILITE: 186 255 12 255, HILITEBORDER: 0 2 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 0 0 0 0, BORDERCOLOR: 0 0 0 0,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 64 64 64 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 128 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;
+ STATICTEXTDATA = CENTERED: 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 40 182, BOTTOMRIGHT: 264 206, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckNetBox";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:NetBox";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:NetBox";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = STATICTEXT;
+ SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:GroupHeadingInterface1";
+ 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:OptionsGroupBattlefield";
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,
@@ -8339,7 +8431,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 182, BOTTOMRIGHT: 258 206, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 282 182, BOTTOMRIGHT: 506 206, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:LabelHealthBars";
TOOLTIPTEXT = "TOOLTIP:HealthBars";
STATUS = ENABLED;
@@ -8387,7 +8479,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 206, BOTTOMRIGHT: 264 230, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 288 206, BOTTOMRIGHT: 512 230, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:ComboBoxHealthBars";
TOOLTIPTEXT = "TOOLTIP:HealthBars";
STATUS = ENABLED+IMAGE;
@@ -8627,7 +8719,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 238, BOTTOMRIGHT: 258 262, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 282 238, BOTTOMRIGHT: 506 262, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:LabelPlayerColors";
TOOLTIPTEXT = "TOOLTIP:PlayerColors";
STATUS = ENABLED;
@@ -8675,7 +8767,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = COMBOBOX;
- SCREENRECT = UPPERLEFT: 40 262, BOTTOMRIGHT: 264 286, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 288 262, BOTTOMRIGHT: 512 286, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:ComboBoxPlayerColors";
TOOLTIPTEXT = "TOOLTIP:PlayerColors";
STATUS = ENABLED+IMAGE;
@@ -8915,7 +9007,54 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = CHECKBOX;
- SCREENRECT = UPPERLEFT: 40 294, BOTTOMRIGHT: 264 318, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 288 294, BOTTOMRIGHT: 512 318, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:CheckOrderLines";
+ STATUS = ENABLED+IMAGE+BORDER;
+ STYLE = CHECKBOX+MOUSETRACK;
+ SYSTEMCALLBACK = "[None]";
+ INPUTCALLBACK = "[None]";
+ TOOLTIPCALLBACK = "[None]";
+ DRAWCALLBACK = "[None]";
+ FONT = NAME: "Arial", SIZE: 14, BOLD: 0;
+ HEADERTEMPLATE = "MinorTitle";
+ TOOLTIPTEXT = "TOOLTIP:OrderLines";
+ TOOLTIPDELAY = -1;
+ TEXT = "GUI:OrderLines";
+ TEXTCOLOR = ENABLED: 255 255 255 255, ENABLEDBORDER: 0 0 0 255,
+ DISABLED: 192 192 192 255, DISABLEDBORDER: 64 64 64 255,
+ HILITE: 186 255 12 255, HILITEBORDER: 0 0 0 255;
+ ENABLEDDRAWDATA = IMAGE: NoImage, COLOR: 255 0 0 255, BORDERCOLOR: 255 128 128 255,
+ IMAGE: Active-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 0 0 255 255, BORDERCOLOR: 128 128 255 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ DISABLEDDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Unchecked, COLOR: 255 255 255 0, BORDERCOLOR: 192 192 192 255,
+ IMAGE: Disabled-Checked, COLOR: 64 64 64 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ HILITEDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 255, BORDERCOLOR: 128 255 128 255,
+ IMAGE: Active-HiLighted, COLOR: 255 255 255 0, BORDERCOLOR: 128 128 255 255,
+ IMAGE: Active-Checked, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,
+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;
+ END
+ CHILD
+ WINDOW
+ WINDOWTYPE = CHECKBOX;
+ SCREENRECT = UPPERLEFT: 288 322, BOTTOMRIGHT: 512 346, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:CheckEmptyBuildingPips";
STATUS = ENABLED+IMAGE+BORDER;
STYLE = CHECKBOX+MOUSETRACK;
@@ -8962,8 +9101,8 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 150, BOTTOMRIGHT: 506 174, CREATIONRESOLUTION: 800 600;
- NAME = "OptionsMenu.wnd:GroupHeadingInterface1";
+ SCREENRECT = UPPERLEFT: 530 150, BOTTOMRIGHT: 754 174, CREATIONRESOLUTION: 800 600;
+ NAME = "OptionsMenu.wnd:GroupHeadingInterface2";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
SYSTEMCALLBACK = "[None]";
@@ -9007,7 +9146,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 282 182, BOTTOMRIGHT: 506 206, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 530 182, BOTTOMRIGHT: 754 206, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:LabelLanguage";
TOOLTIPTEXT = "TOOLTIP:Language";
STATUS = ENABLED;
@@ -9055,7 +9194,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = COMBOBOX;
- SCREENRECT = UPPERLEFT: 288 206, BOTTOMRIGHT: 512 230, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 536 206, BOTTOMRIGHT: 760 230, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:ComboBoxLanguage";
TOOLTIPTEXT = "TOOLTIP:Language";
STATUS = ENABLED+IMAGE;
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
index add69aff2..fd1061dcc 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
@@ -74,30 +74,13 @@ enum HealthBarModeType
HEALTH_BAR_MODE_COUNT = 4,
};
-/** The HudScale option's steps, 100/115/130/150% of the bottom HUD's own size (ControlBarHudScale). */
-enum { HUD_SCALE_COUNT = 4 };
-
/// -team left a slot alone: its team comes from -teams, or none
enum { AUTO_SKIRMISH_TEAM_UNSET = -2 };
-/** The interface: the HUD, mouse and keys of Zero Hour 1.04, or this fork's own. Picked for each
- * run by -interface (the launcher passes it), Classic without it; Options.ini has no say. Client
- * only, and never read by GameLogic: two players on different styles are still in the same game. */
-enum { INTERFACE_STYLE_CLASSIC = 0, INTERFACE_STYLE_REFORGED = 1, INTERFACE_STYLE_COUNT = 2 };
-
-/** The IncomeRate option: what the income beside the money is counted over. Automatic is per
- * minute below INCOME_RATE_AUTOMATIC_PER_SECOND_FROM dollars a second and per second from there
- * up: under that a whole number of dollars a second rounds most of the income away, which is
- * what "+2/s" for $135 a minute does. */
-enum IncomeRateModeType
-{
- INCOME_RATE_PER_SECOND = 0, ///< "+40/s", what the bar has always shown
- INCOME_RATE_PER_MINUTE = 1, ///< "+2400/min"
- INCOME_RATE_AUTOMATIC = 2,
-
- INCOME_RATE_MODE_COUNT = 3,
-};
-enum { INCOME_RATE_AUTOMATIC_PER_SECOND_FROM = 10 };
+/** The mouse: Zero Hour 1.04's clicks, drags and edge scroll, or this fork's own (right button orders,
+ * left drag selects with shift adding, the camera drag and the wider edge band). Picked for each run
+ * by -mouse, Classic without it. Client only, and never read by GameLogic. */
+enum { MOUSE_STYLE_CLASSIC = 0, MOUSE_STYLE_REFORGED = 1, MOUSE_STYLE_COUNT = 2 };
/** The language the game's words are shown in. English is the string table EA shipped; every other
* entry names a translation GameText lays over it. Speech and video stay what the install has. */
@@ -352,12 +335,11 @@ public:
Bool m_debugAIObstacles; ///< Used to display AI obstacle debug information
Bool m_showObjectHealth; ///< debug display object health
Int m_healthBarMode; ///< HealthBarModeType: which units wear a bar at all
- Int m_hudScale; ///< HUD size step, 0 = 100%; see ControlBarHudScale (client only)
- Int m_interfaceStyle; ///< INTERFACE_STYLE_CLASSIC or INTERFACE_STYLE_REFORGED, set by -interface only (client only, never GameLogic)
- Bool isClassicUI() const { return m_interfaceStyle == INTERFACE_STYLE_CLASSIC; }
- /// which button gives a click on the ground its order. Reforged: the right. Classic: the left, as
- /// 1.04 shipped, or the right under EA's Alternate Mouse Setup, where the left only selects
- Bool leftButtonOrders() const { return isClassicUI() && !m_useAlternateMouse; }
+ Int m_mouseStyle; ///< MOUSE_STYLE_CLASSIC or MOUSE_STYLE_REFORGED, set by -mouse only (client only, never GameLogic)
+ Bool isClassicMouse() const { return m_mouseStyle == MOUSE_STYLE_CLASSIC; }
+ /// which button gives a click on the ground its order. Reforged mouse: the right. Classic: the left,
+ /// as 1.04 shipped, or the right under EA's Alternate Mouse Setup, where the left only selects
+ Bool leftButtonOrders() const { return isClassicMouse() && !m_useAlternateMouse; }
Bool rightButtonOrders() const { return !leftButtonOrders(); }
Int m_playerColorScheme; ///< PlayerColorSchemeType: whose colour the client draws (client only)
Int m_textLanguage; ///< TextLanguageType: the translation GameText lays over the CSF, read once at startup (client only)
@@ -446,23 +428,16 @@ public:
Bool m_zoomToCursor; ///< the mouse wheel zooms toward whatever the cursor is over
Int m_zoomSpeed; ///< "ZoomSpeed" in Options.ini: percent of the height one wheel notch moves the camera; 100 is the game's own
Bool m_isometricCamera; ///< the tactical view from far off down a narrow cone, near enough orthographic
- Bool m_smoothMotion; ///< R1: models shown between their last two logic states each render frame (W3DSmoothMotion.h)
Int m_dragTolerance; ///< pixels the pointer may travel with a button held before the press is a drag; replaces Mouse.ini's DragTolerance
Bool m_formationDrag; ///< with the move, attack move or guard key armed, a left drag spreads the selection along the line drawn
- Bool m_showAllyCursors; ///< in a network game, draw where each ally's mouse is pointing
Bool m_chromaLighting; ///< put the state of the match on Razer hardware
Int m_menuTransitionSpeed; ///< percent of the authored speed the menus slide and fade at; 100 = as drawn
Int m_textureFilterMode; ///< 0 bilinear, 1 trilinear, 2 anisotropic
Int m_anisotropyLevel; ///< samples anisotropic filtering may take; 0 = whatever the card offers
Bool m_showHudOverlay; ///< draw the fps / elapsed time / income line in the corner
Bool m_showNetBox; ///< the player's own switch for that corner: the network box, or the plate where the bar has no page
- Int m_incomeRateMode; ///< IncomeRateModeType: the income beside the money per second, per minute or whichever reads better
Bool m_showEmptyBuildingPips; ///< the row of empty slots over a building nobody is in
- Bool m_showPlacementRangeRing; ///< while placing a structure, ring its weapon range
- Bool m_showSkillStrip; ///< watching, every general's bought promotions, bottom right
- Bool m_showSuperweaponStrip; ///< the superweapon countdown cameos, top right
Bool m_workersReturnToSupply; ///< a worker that finishes a build job goes back to the dock it left
- Bool m_detailedBuildTooltips; ///< put build time, weapon range and damage in the build tooltip
Bool m_archiveReplays; ///< keep a timestamped copy of every replay, instead of only the last one
Int m_bloomIntensity; ///< Glow strength in percent, 0 = off; the renderer derives the rest
Bool m_buildMapCache;
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/Radar.h b/GeneralsMD/Code/GameEngine/Include/Common/Radar.h
index ff38960da..4599b0569 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/Radar.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/Radar.h
@@ -151,17 +151,6 @@ static const char *RadarPriorityNames[] =
};
#endif // DEFINE_RADAR_PRIOTITY_NAMES
-//-------------------------------------------------------------------------------------------------
-/** The map furniture the radar marks out with an icon of its own: the money, and the buildings a
- * single infantryman takes rather than destroys. Neither of them moves and the lobby map
- * preview has already shown where the money is, so the icons are drawn over the shroud. */
-//-------------------------------------------------------------------------------------------------
-enum RadarLandmarkType
-{
- RADAR_LANDMARK_NONE, ///< nothing the radar marks out
- RADAR_LANDMARK_SUPPLY, ///< a supply source: warehouse, dock or pile
- RADAR_LANDMARK_CAPTURABLE ///< a neutral tech building: derrick, hospital, refinery, pad
-};
//-------------------------------------------------------------------------------------------------
/** Interface for the radar */
@@ -194,9 +183,6 @@ public:
// priority inquiry
Bool isPriorityVisible( RadarPriorityType priority ) const; ///< is the priority passed in a "visible" one on the radar
- /// which landmark, if any, this object is on the radar
- static RadarLandmarkType landmarkTypeOf( const Object *obj );
-
// radar events
void createEvent( const Coord3D *world, RadarEventType type, Real secondsToLive = 4.0f ); ///< create radar event at location in world
void createPlayerEvent( Player *player, const Coord3D *world, RadarEventType type, Real secondsToLive = 4.0f ); ///< create radar event using player colors
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/ControlBar.h b/GeneralsMD/Code/GameEngine/Include/GameClient/ControlBar.h
index a9cd7c8a6..088b2a722 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/ControlBar.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/ControlBar.h
@@ -221,7 +221,6 @@ enum GUICommandType : Int
GUI_COMMAND_SPECIAL_POWER_CONSTRUCT_FROM_SHORTCUT, ///< do a shortcut special power using the construct building interface
GUI_COMMAND_SELECT_ALL_UNITS_OF_TYPE,
- GUI_COMMAND_BUILD_PAGE, ///< switch the command bar between the builder's structure pages
// add more commands here, don't forget to update the string command list below too ...
@@ -272,7 +271,6 @@ static const char *TheGuiCommandNames[] =
"SPECIAL_POWER_CONSTRUCT",
"SPECIAL_POWER_CONSTRUCT_FROM_SHORTCUT",
"SELECT_ALL_UNITS_OF_TYPE",
- "BUILD_PAGE",
NULL
};
@@ -426,8 +424,8 @@ enum { CTRL_SHIFT_BUILD_QUEUE_COUNT = 100 };
// the count the modifiers currently held ask for; 1 with nothing held
Int getBuildBatchCount( void );
-// how deep a producer's queue may go from the bar: its own MaxQueueEntries, and in Classic no
-// deeper than the nine queue buttons that show it
+// how deep a producer's queue may go from the bar: its own MaxQueueEntries, and no deeper than
+// the nine queue buttons that show it
UnsignedInt getQueueCap( const ProductionUpdateInterface *pu );
enum { MAX_COMMANDS_PER_SET = 18 }; // user interface max is 14 (but internally it's 18 for script only buttons!)
@@ -767,83 +765,6 @@ enum ControlBarStages
MAX_CONTROL_BAR_STAGES
};
-//-------------------------------------------------------------------------------------------------
-/** What the build tooltip says, piece by piece, so Window/Html/Tooltip.html can lay each piece out
- * on its own: ControlBarPopupDescription.wnd gets the same pieces run together into one text. */
-//-------------------------------------------------------------------------------------------------
-/** One line of what an upgrade does: the figure under `label`, a string table label, goes from `from` to `to`. */
-struct BuildTooltipChange
-{
- const char *label;
- std::string from;
- std::string to;
-};
-
-/** An upgrade and what it does to one unit. On a unit's card `name` is the upgrade's; on an
- * upgrade's card it is the unit's. */
-struct BuildTooltipUpgrade
-{
- UnicodeString name;
- Bool owned; ///< the player has it already
- std::vector< BuildTooltipChange > changes;
-};
-
-struct BuildTooltipCard
-{
- UnicodeString name;
- UnicodeString description; ///< the button's own text, its lines split by \n
- UnicodeString warning; ///< why it cannot be bought right now, empty when it can
- UnicodeString requires; ///< "Requires: ..." naming what is still missing
- UnsignedInt cost; ///< 0 for nothing to pay
- Bool costsScience; ///< the cost is promotion points rather than money
- Bool hasStats; ///< DetailedBuildTooltips: the figures below are there
- Int buildSeconds;
- Int health; ///< 0 for a body that cannot be hurt
- Int damage; ///< the main weapon's, with the upgrades the player owns; 0 for no weapon
- Int range;
- Real attacksPerSecond; ///< shots a second over a whole clip and its reload
- Int damagePerSecond;
- std::vector< BuildTooltipUpgrade > upgrades; ///< a unit's upgrades, or the units an upgrade changes
- IRegion2D anchor; ///< the hovered window in screen pixels, its top the grid's top for a command button
-};
-
-/** One weapon slot's figures; `weapon` NULL for a slot with nothing in it that hurts. */
-struct WeaponFigures
-{
- const WeaponTemplate *weapon;
- Real damage;
- Real range;
- Real attacksPerSecond;
-};
-
-/** A unit's health and its weapons, slot by slot. */
-struct UnitFigures
-{
- Real health;
- WeaponFigures slots[ WEAPONSLOT_COUNT ];
-
- /** The slot with the most damage a second, WEAPONSLOT_COUNT for an unarmed unit. */
- Int mainSlot( void ) const
- {
- Int best = WEAPONSLOT_COUNT;
- for( Int slot = PRIMARY_WEAPON; slot < WEAPONSLOT_COUNT; ++slot )
- if( slots[ slot ].weapon && ( best == WEAPONSLOT_COUNT || slots[ slot ].damage * slots[ slot ].attacksPerSecond
- > slots[ best ].damage * slots[ best ].attacksPerSecond ) )
- best = slot;
- return best;
- }
-};
-
-/** `weapon`'s figures under `bonus`, the build tooltip's and the selected unit's alike
- * (ControlBarPopupDescription.cpp); `thing` carries it, and its death weapon stands in for a
- * suicide dummy. */
-WeaponFigures ControlBarWeaponFigures( const ThingTemplate *thing, const WeaponTemplate *weapon, const WeaponBonus &bonus );
-
-/** `thing`'s weapons in the set `setFlags` picks, each under the bonuses `bonusFlags` give it, into
- * `figures`' slots; a template with no such set leaves them as they are. */
-void ControlBarTemplateWeaponFigures( const ThingTemplate *thing, const WeaponSetFlags &setFlags,
- WeaponBonusConditionFlags bonusFlags, UnitFigures &figures );
-
//-------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
class ControlBar : public SubsystemInterface
@@ -906,12 +827,6 @@ public:
ORDER_KEY_EXTRAS of them, -1 for one that is not offered. See ControlBar_orderKeyPlaces. */
void getOrderKeyPlaces( Int *keys ) const;
- /** paint each command window's key, its place's, in its top left corner; `places` as above */
- void labelCommandPlaces( const Int *places );
-
- /** paint `button`'s key, the one `place` is bound to. `place` below 0 clears it. */
- void labelPlaceButton( GameWindow *button, Int place );
-
/** The general's powers are laid out SPECIAL_POWER_SHORTCUT_COLS to a group, so one key press
cannot reach eleven of them. The first press picks a group, which stands on the HUD as a
column (F1 is the column against the console, F2 the next) and the second picks a power
@@ -955,15 +870,6 @@ public:
/** forget a marked column. TRUE when there was one to forget. */
Bool clearPurchaseScienceColumn( void );
- /** A builder with more structures than BUILD_PAGE_ONE_SIZE does not show them all at once.
- The command bar opens on two menu buttons instead - Q and W - and each one opens its
- own page of structures, so a structure is two keystrokes away (Q-Q, Q-A, ... W-Q, ...)
- instead of competing for the fourteen slots. Page one holds the first
- BUILD_PAGE_ONE_SIZE structures of the command set (the ones that sit on Q W E / A S D
- without paging), page two holds the rest (the R T Y / F G H region). */
- enum { BUILD_PAGE_ROOT = -1, BUILD_PAGE_COUNT = 2, BUILD_PAGE_ONE_SIZE = 6 };
- void setBuildPage( Int page );
-
/** with multiple units selected the right HUD shows the unit types; Tab (+1) and
Shift-Tab (-1) walk the focus between them */
void cycleMultiSelectFocus( Int direction );
@@ -1069,24 +975,6 @@ public:
Color getUpgradeBorderColor( void ){return m_commandButtonBorderUpgradeColor;}
void updateBorderColor( Color color) {m_commandBarBorderColor = color; }
- /** The tray one of the general's power shortcuts stands in, down in the corner - the tray of
- * whichever side this bar is showing, taken off the bar itself rather than named, so a mod's
- * bar brings its own. Watching a match the bar has no side of its own to read, and the tray
- * comes out of the layout of the player the bar is looking at instead. */
- const Image *getSpecialPowerTrayImage( void );
-
- /** That tray at the size the bar draws it, the hole in it the cameo fills, and the step a row of
- * them runs at - measured off the same layout the tray came out of, so it is the size of the
- * powers' own at any resolution. Any out-parameter may be NULL; FALSE when there is no bar
- * and no layout to borrow one from. */
- Bool getSpecialPowerTrayLayout( ICoord2D *traySize, ICoord2D *cameoSize,
- ICoord2D *cameoOffset, Int *columnStep );
-
- /** The tray geometry from one slot's size. Public because it is the single home of the artwork's
- * proportions: the bar itself, anything borrowing the look, and the tests all read it here. */
- static Bool trayLayoutFromSlot( Int slotWidth, Int slotHeight, ICoord2D *traySize,
- ICoord2D *cameoSize, ICoord2D *cameoOffset, Int *columnStep );
-
/// set the command data into the button
void setControlCommand( GameWindow *button, const CommandButton *commandButton );
@@ -1138,12 +1026,6 @@ public:
* set - because it remembers both the authored rectangle and the one it last handed out. */
void layoutPanels( void );
- /** Take the slide off and declare all three panels home. Anything that reads a window's screen
- * position and writes another window's position from it has to run after this, or it writes
- * the answer for a bar that is on its way down and layoutPanels then reads that as the
- * rectangle the window was authored at. ControlBarScheme::init is that caller. */
- void clearPanelSlide( void );
-
/// top edge of the highest visible window the bar owns, and where MoneyDisplay is; see -uidrill
void forEachPlacedWindow( Int *topOut, Int *moneyOut );
ControlBarContext getCurrentContext( void ) const { return m_currContext; } ///< for -uidrill's log
@@ -1151,17 +1033,6 @@ public:
/// the window every other one on the bar hangs off, so -uidrill can walk it looking for a button
GameWindow *getMasterParent( void ) { return m_contextParent[ CP_MASTER ]; }
- /** Send one whole panel off the bottom of the screen, or bring it back. It slides: the panel is
- * a picture of a thing, and a thing that is going away should be seen going. 'immediate' puts
- * it where it is going this instant, which is what a rebuild wants. */
- void showPanel( Int panel, Bool show, Bool immediate = FALSE );
-
- /// is that panel all the way off screen? the plate art asks before it paints
- Bool isPanelHidden( Int panel ) const { return m_panelHidden[ panel ]; }
-
- /// how far down that panel has slid, in pixels - the plate art travels with its windows
- Int getPanelSlideOffset( Int panel ) const;
-
/** TRUE when a click at this screen point, over this window, belongs to the world after all: the
* window is one of the bar's input-blocking panes or CenterBackground, no window inside it is
* under the point, and every plate painted there is transparent at that texel. The panes are
@@ -1169,51 +1040,18 @@ public:
* went nowhere. GameWindow::winPointInChild asks, so clicking and unit picking agree. */
Bool letsClickThrough( GameWindow *window, Int x, Int y );
- /** The screen rectangles the bar's CSS page drew solid, which take the place of the plates in
- * letsClickThrough while the page is drawing; NULL when it is not, and the plates decide again.
- * `holes` are the page's own buttons: a click on one goes through to the page even inside a
- * solid panel. */
- void setPageSolids( const std::vector< IRegion2D > *solids, const std::vector< IRegion2D > *holes = NULL );
-
- /// the radar's under-attack lamp, EA's: the Classic interface keeps it, Reforged hides the window
+ /// the radar's under-attack lamp, EA's
void triggerRadarAttackGlow( void );
- /** The HUD page's place for the general's powers: the first in `corner`, the bottom left of the
- * grid, each `cell` big with `gap` between them, a group of SPECIAL_POWER_SHORTCUT_COLS going
- * up from it as a column and the next group the column right of it, the order the group keys
- * count in. The slots' own tray
- * art is not drawn; the page draws their cells. NULL hides the bar. Screen pixels. Asked every
- * frame the page draws, so it holds against the bar's own layout. Returns how many powers are
- * shown, each in its place. */
- Int placeSpecialPowerShortcutGrid( const ICoord2D *corner, const ICoord2D &cell, Int gap );
-
/** Puts one of the bar's windows on `rect`, screen pixels, and leaves its children standing where
* they were on screen. The place layoutPanels recorded for it moves with it, so a rebuild of the
* layout reads the window as put there and not as moved in the loader's stretched space. */
void placeWindowAt( GameWindow *window, const IRegion2D &rect );
- /** A context that hides the command group still has its own button, and it stands where that
- command stands on a finished building: cancel on S, sell on N, the rally point on B. The
- countdown keeps the top row and a reinforcement pad's bar the middle one. `cells` is one
- screen rect per CommandPlace, and `taken` gains the button's place so the page draws its cell. */
- void placeContextOnGrid( const IRegion2D &frame, const IRegion2D *cells, Bool *taken );
- GameWindow *getSpecialPowerShortcutParent( void ) { return m_specialPowerShortcutParent; }
- /// a multi-selection's type cells, one a selected type, shown or hidden; see updateMultiSelectStrip
- const std::vector< GameWindow * > &getMultiSelectTiles( void ) const { return m_multiSelectTiles; }
/// the portrait bar's upgrade cameos and type tiles, which have no command button: TRUE and their
/// tooltip's name and description for one of them, FALSE for any other window
Bool describePortraitBarWindow( GameWindow *window, UnicodeString &name, UnicodeString &description ) const;
- /// the general's stars are asking to be spent, so the button blinks; see getStarImage
- Bool isGeneralStarFlashing( void ) const { return m_genStarFlash; }
-
- /// the same journey as a fraction, 0 home and 1 gone. Needs no display, which is why the test
- /// for the rebuild ordering asks this one; see clearPanelSlide
- Real getPanelSlideFraction( Int panel ) const
- {
- return ( panel < 0 || panel >= CB_PANEL_COUNT ) ? 0.0f : m_panelSlide[ panel ];
- }
-
/// post process step, after all commands and command sets are loaded - and again after a map.ini
void postProcessCommands( void );
@@ -1265,15 +1103,13 @@ protected:
void resetContainData( void ); /// reset container data we use to tie controls to objects IDs for containment
void resetBuildQueueData( void ); /// reset the build queue data we use to die queue entires to control
void resetBuildQueueButtons( void ); /// attach the queue button windows and wipe them to empty
- void populateBuildQueue( Object *producer ); ///< Classic: the producer's queue into the queue buttons
- void updateClassicBuildQueue( Object *obj, ProductionUpdateInterface *pu ); ///< Classic: queue over the portrait while it holds anything
+ void populateBuildQueue( Object *producer ); ///< the producer's queue into the queue buttons
+ void updateBuildQueue( Object *obj, ProductionUpdateInterface *pu ); ///< the queue over the portrait while it holds anything
// the following methods are for populating the context GUI controls for a particular context
static void populateButtonProc( Object *obj, void *userData );
void populatePurchaseScience(Player* player);
void populateCommand( Object *obj );
- void buildCommandLayout( Object *obj, const CommandSet *commandSet, const CommandButton **slot );
- void makeBuildPageButtons( void );
void populateMultiSelect( void );
void populateMultiSelectUnitList( void );
void setMultiSelectFocus( Int index );
@@ -1357,8 +1193,6 @@ public:
// get method for list of commandbuttons
const CommandButton *getCommandButtons( void ) { return m_commandButtons; }
- Drawable *findStandInBuilder( Bool freeOnly ); ///< the local player's free builder (or, unless freeOnly, any builder) to stand in for an empty selection
-
protected:
ICoord2D m_defaultControlBarPosition; ///< Stored the original position of the control bar on the screen
@@ -1366,15 +1200,6 @@ protected:
IRegion2D m_panelRect[ CB_PANEL_COUNT ]; ///< screen rect of each panel, filled by layoutPanels()
ICoord2D m_panelOrigin; ///< where the frame was put, so the plates can follow it
- Bool m_panelHidden[ CB_PANEL_COUNT ]; ///< minimised: the radar and the middle stand down
- Real m_panelSlide[ CB_PANEL_COUNT ]; ///< 0 home, 1 clear of the bottom edge
- Real m_panelSlideTo[ CB_PANEL_COUNT ]; ///< where each one is heading
- Int m_panelDropCap[ CB_PANEL_COUNT ]; ///< pixels a panel may travel; 0 = all the way off
- UnsignedInt m_panelSlideMs; ///< wall clock of the last slide step
-
- void updatePanelSlide( void ); ///< step the slide and put the windows where it says
- void applyPanelSlide( void ); ///< the placing half of it, on its own so a rebuild can call it
-
Bool m_UIDirty; ///< the context UI must be re-evaluated
CommandButton *m_commandButtons; ///< list of possible commands to have
@@ -1412,27 +1237,6 @@ protected:
Int m_specialPowerShortcutRow; ///< row a first key press picked, -1 when none is pending
UnsignedInt m_specialPowerShortcutRowMs; ///< millisecond that row was picked on, for CHORD_TIMEOUT_MS
- /** A tray taken out of a side's shortcut layout without standing that side's bar up: what the
- * HUD needs while watching somebody else play. The layout is created, measured and destroyed
- * on the spot - the image itself belongs to the mapped image collection and outlives it - and
- * the answer is kept, since a spectator's bar asks for the same side every frame. */
- struct BorrowedTray
- {
- AsciiString layout; ///< the .wnd it came out of, and the key this is found by
- const Image *image; ///< that layout's slot background, NULL when it has none
- ICoord2D size; ///< the size the loader gave that slot
- };
- enum { MAX_BORROWED_TRAYS = 8 };
- BorrowedTray m_borrowedTrays[ MAX_BORROWED_TRAYS ];
- Int m_borrowedTrayCount;
- const BorrowedTray *borrowTray( const PlayerTemplate *pt );
-
- /// whose tray this bar shows when it has no bar of its own: the side the bar itself is wearing
- const PlayerTemplate *specialPowerTraySide( void );
-
- /// a template of this side that ships a general's power bar, so its tray can be read off it
- const PlayerTemplate *templateForSide( AsciiString side );
-
Int m_purchaseScienceColumn; ///< promotion screen column a first key press marked, -1 when none
UnsignedInt m_purchaseScienceColumnMs; ///< millisecond it was marked on, for CHORD_TIMEOUT_MS
@@ -1452,11 +1256,6 @@ protected:
GameWindow *m_commandWindows[ MAX_COMMANDS_PER_SET ]; ///< command window controls for easy access
- CommandButton *m_buildPageButton[ BUILD_PAGE_COUNT ]; ///< the two menu buttons a paged builder opens on
- CommandButton *m_buildPageBackButton; ///< takes a page back to the menu buttons
- Int m_buildPage; ///< BUILD_PAGE_ROOT, or the page being shown
- ObjectID m_buildPageObjectID; ///< builder the page belongs to; a new one starts at the menu
- DrawableID m_standInBuilderID; ///< with nothing selected, the builder whose command bar is shown (INVALID_DRAWABLE_ID otherwise)
/** A player upgrade is researched once, so it goes to exactly one of the selected buildings -
* and the bar cannot see the queue an earlier click in this same frame just filled, because
@@ -1530,29 +1329,13 @@ protected:
Bool m_isObserverCommandBar; ///< If this is true, the command bar behaves greatly differnt
Player *m_observerLookAtPlayer; ///< The current player we're looking at, Null if we're not looking at anyone.
AsciiString m_watchedSide; ///< the side the bar is wearing while watching, so a selection change only lays it out again when it really changes side
- std::vector< IRegion2D > m_pageSolids; ///< what the CSS page drew solid, in screen pixels; see setPageSolids
- std::vector< IRegion2D > m_pageHoles; ///< the page's own buttons, which let their clicks through
- Bool m_pageSolidsActive; ///< the page is drawing, so m_pageSolids decides clicks and not the plates
- GameWindow *m_radarAttackGlowWindow; ///< WinUAttack, Classic only; NULL in Reforged
+ GameWindow *m_radarAttackGlowWindow; ///< WinUAttack
Int m_remainingRadarAttackGlowFrames; ///< logic frames left on the lamp's flashing
Player *m_watchedSelection; ///< the player the selection last named while watching, NULL for nobody
WindowLayout *m_buildToolTipLayout; ///< The window that will slide on/display tooltips
Bool m_showBuildToolTipLayout; ///< every frame we test to see if we aregoing to continue showing this or not.
- BuildTooltipCard m_buildTooltipCard; ///< what the layout says, piece by piece
- BuildTooltipCard m_boardCard; ///< the card for what the pointer is on in a page, the Tab scoreboard's
- const CommandButton *m_boardCardButton; ///< the button m_boardCard was filled in from
- Player *m_boardCardOwner; ///< and the player its figures were counted for
- Bool m_boardCardShown; ///< a page asked for m_boardCard this frame
- Bool m_boardCardWasShown; ///< and the frame before, so a card pointed at again is filled in again
public:
- /** What the build tooltip up on screen says, NULL while none is. */
- const BuildTooltipCard *getBuildTooltipCard( void );
- /** The build card for a button a page draws rather than a window, its prices and figures counted
- * for owner, standing against anchor, for this frame: a page calls hideBoardCard every frame and
- * this while the pointer is on one. */
- void showBoardCard( const CommandButton *button, Player *owner, const IRegion2D &anchor );
- void hideBoardCard( void );
void showBuildTooltipLayout( GameWindow *cmdButton );
void hideBuildTooltipLayout( void );
void deleteBuildTooltipLayout( void );
@@ -1627,7 +1410,7 @@ private:
extern ControlBar *TheControlBar;
/// -uidrill: write one line saying where the bar's windows actually are, so a long run says whether
-/// they hold still. See ControlBar::clearPanelSlide for what they used to do instead.
+/// they hold still.
extern void ControlBar_logPlacement( const char *tag, Int frame );
//-------------------------------------------------------------------------------------------------
@@ -1682,23 +1465,16 @@ extern Bool ControlBarPanelDesignToScreen( Int panel, const IRegion2D *design,
extern Real ControlBarUniformScale( void );
extern Real ControlBarUniformScaleFor( Int displayWidth, Int displayHeight ); ///< ...for a screen you name
-/** The scale the bottom HUD's page and everything laid out on it are drawn at: the screen's height
- * over 600, cut to CONTROL_BAR_HUD_PERCENT of itself, the owner's "too big" of 2026-09-28, with HUD
- * Size on top, then fitted to the screen's width by ControlBarHudScaleFit. It follows the height
+/** The scale the HUD's own drawing is done at: the screen's height over 600, cut to
+ * CONTROL_BAR_HUD_PERCENT of itself, the owner's "too big" of 2026-09-28. It follows the height
* alone and is not rounded or floored, the owner's rule of 2026-10-01: the HUD covers the same part
* of the screen's height at every resolution, and a wider screen does not make it bigger. 1.26 at
- * 1920x1080, as it was when it went by the narrower axis; 0.84 at 1280x720. ControlBarHudScaleFor
- * is the scale before HUD Size and the fit. */
+ * 1920x1080; 0.84 at 1280x720. */
enum { CONTROL_BAR_HUD_PERCENT = 70 };
extern Real ControlBarHudScale( void );
extern Real ControlBarHudScaleFor( Int displayWidth, Int displayHeight );
-/** `scale` cut down until the console, InGameUI_consolePageWidth page pixels, fits `displayWidth`. */
-extern Real ControlBarHudScaleFit( Real scale, Int displayWidth );
-/** The in-match HUD's other pages - the event feed, the chat, the network box, the scoreboard, the
- * build card, the observer's and the replay's strips - authored at the uniform scale's size: the HUD
- * scale over CONTROL_BAR_HUD_PERCENT, so they keep their size beside the console at every
- * resolution and HUD Size, and are what they were at 1920x1080. The shell's pages, the quit menu
- * and the promotion screen keep the uniform scale. */
+/** The text lists drawn over the battlefield, authored at the uniform scale's size: the HUD scale
+ * over CONTROL_BAR_HUD_PERCENT, so they are what they were at 1920x1080 at every resolution. */
extern Real ControlBarHudPageScale( void );
/** Undo the .wnd loader's separate-axis stretch over a whole layout: every window under 'root' is
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h b/GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h
index b0d235c40..dd32271e9 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/Gadget.h
@@ -438,11 +438,6 @@ typedef struct _PushButtonData
Bool drawBorder; ///< We only want to draw the border if we want to
Color colorBorder; ///< The color for the border around the button
Int drawCount; ///< when > 0, a small number badge drawn in the bottom right corner
- Int drawSeconds; ///< when > 0, a seconds label drawn in the bottom left corner
- Int drawCost; ///< when > 0, a price drawn in the top right corner
- Int drawPower; ///< when != 0, a power figure in the bottom right; < 0 draws, > 0 supplies
- Int barPercent; ///< when >= 0, a thin bar drawn along the bottom edge (experience)
- Color barColor; ///< colour of that bar
void *userData; ///< random additional data we can set
const Image *overlayImage; ///< An overlay image (like a veterancy symbol)
AsciiString altSound; ///< use an alternitive sound if one is set
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/GadgetPushButton.h b/GeneralsMD/Code/GameEngine/Include/GameClient/GadgetPushButton.h
index 67814fed5..75bacb70b 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/GadgetPushButton.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/GadgetPushButton.h
@@ -84,10 +84,6 @@ void GadgetButtonDrawInverseClock( GameWindow *g, Int percent, Color color ); //
void GadgetButtonDrawOverlayImage( GameWindow *g, const Image *image );
void GadgetButtonSetBorder( GameWindow *g, Color color, Bool drawBorder = TRUE );
void GadgetButtonSetCount( GameWindow *g, Int count );
-void GadgetButtonSetSeconds( GameWindow *g, Int seconds );
-void GadgetButtonSetCost( GameWindow *g, Int cost );
-void GadgetButtonSetPower( GameWindow *g, Int power );
-void GadgetButtonSetBar( GameWindow *g, Int percent, Color color );
void GadgetButtonSetData(GameWindow *g, void *data);
void *GadgetButtonGetData(GameWindow *g);
void GadgetButtonSetAltSound( GameWindow *g, AsciiString altSound );
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/GameConsole.h b/GeneralsMD/Code/GameEngine/Include/GameClient/GameConsole.h
index c72fbf165..0aaa19777 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/GameConsole.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/GameConsole.h
@@ -36,7 +36,6 @@
class DisplayString;
class GameFont;
-class HtmlOverlay;
class GameWindow;
class WindowLayout;
@@ -65,17 +64,15 @@ public:
/// Draw the panel. Called from the display's 2D overlay pass.
void render( void );
- /// The cheat panel that "trainer" opens: every cheat a click away. Window/Html/Cheats.html in
- /// Reforged; in Classic Window/Trainer.wnd, drawn like EA's diplomacy screen.
+ /// The cheat panel that "trainer" opens: every cheat a click away. Window/Trainer.wnd, drawn
+ /// like EA's diplomacy screen.
Bool isCheatPanelOpen( void ) const { return m_cheatPanelOpen; }
void closeCheatPanel( void ) { m_cheatPanelOpen = FALSE; }
- /// TRUE when the pointer is on the panel; with `act`, a click there runs what it was on.
- Bool handleCheatPanelMouse( const ICoord2D &mouse, Bool act );
- /// What a key or a row of the panel sends: "close", or a cheat and its amount as typed.
+ /// What a row of the panel sends: a cheat and its amount as typed.
void runCheatPanelAction( const std::string &action );
- /// Row `row` of the Classic panel's list was clicked.
+ /// Row `row` of the panel's list was clicked.
void runCheatWindowRow( Int row );
- /// Throw the Classic panel's windows away now, where diplomacy's are thrown away.
+ /// Throw the panel's windows away now, where diplomacy's are thrown away.
void resetCheatWindow( void );
private:
@@ -100,11 +97,7 @@ private:
Int m_lineStringCount;
Bool m_cheatPanelOpen;
- Bool m_cheatPanelShown; ///< drawn this frame, so its clicks are real
- Bool m_cheatPanelLogged; ///< its keys' places written to the log once for each opening
- std::string m_cheatPage; ///< Window/Html/Cheats.html as read, empty until the first opening
- HtmlOverlay *m_cheatOverlay;
- WindowLayout *m_cheatLayout; ///< the Classic panel while it is up
+ WindowLayout *m_cheatLayout; ///< the panel while it is up
GameWindow *m_cheatList; ///< its list, one row for each thing a click does
Int m_cheatListState; ///< the toggles' bits its rows were last written for, -1 for none
};
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/GlobalLanguage.h b/GeneralsMD/Code/GameEngine/Include/GameClient/GlobalLanguage.h
index 7df7911cf..4b62a658a 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/GlobalLanguage.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/GlobalLanguage.h
@@ -102,7 +102,6 @@ public:
FontDesc m_creditsNormalFont;
Real m_resolutionFontSizeAdjustment;
- static const Real TEXT_GROWS_WITH_LAYOUT; ///< the damping init sets: text grows exactly as its layout does
//UnicodeString m_unicodeFontNameUStr;
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/HtmlOverlay.h b/GeneralsMD/Code/GameEngine/Include/GameClient/HtmlOverlay.h
deleted file mode 100644
index aa3d3a223..000000000
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/HtmlOverlay.h
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
-** 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/>.
-*/
-
-// HtmlOverlay.h //////////////////////////////////////////////////////////////////////////////////
-// An HTML page laid out by litehtml and drawn over the battlefield with the game's own 2D calls.
-//
-// The page covers the whole screen and CSS places what is on it. A CSS pixel is a pixel of the
-// 800x600 screen everything else was authored at, so a page keeps its proportions at any
-// resolution, and font-size is the game font's point size at 800x600. A background on <html> or
-// <body> is not drawn: it is there for a browser, the battlefield is the game's background.
-//
-// An element with data-click="..." is a button; click() hands back that text and the caller
-// decides what it means. Clicks walk up from what is under the pointer to the first element
-// that has one. data-tip="..." is the tooltip of what it is on, found the same way by tip().
-//
-// Not drawn: rounded corners, clipping for overflow, list bullets, and gradients other than
-// linear ones, which draw as their first colour.
-///////////////////////////////////////////////////////////////////////////////////////////////////
-
-#pragma once
-
-#ifndef _HTML_OVERLAY_H_
-#define _HTML_OVERLAY_H_
-
-#include "Lib/BaseType.h"
-#include "Common/AsciiString.h"
-#include "GameClient/HtmlTemplate.h"
-
-#include <string>
-#include <vector>
-
-class HtmlOverlayContainer;
-
-class HtmlOverlay
-{
-public:
- /** `defaultFont` is the game font a page gets where its CSS names none. */
- explicit HtmlOverlay( const AsciiString &defaultFont );
- ~HtmlOverlay( void );
-
- /** Lay this page out, unless it is the page already laid out on a screen of the same size. */
- void setPage( const std::string &html );
-
- /** setPage( HtmlTemplate_expand( written, values, lists, lookup ) ), expanded again only when
- * HtmlTemplate_matches says it would come out different from the last call's. */
- void setPage( const std::string &written, const HtmlValues &values, const HtmlLists &lists,
- const HtmlLookup &lookup );
-
- void draw( void );
-
- /** Lay the page out at ControlBarHudScale(), the bottom HUD's, rather than the uniform scale. */
- void setHud( Bool hud );
-
- /** Lay the page out at ControlBarHudPageScale(), an in-match HUD page beside the console's. */
- void setHudPage( Bool hudPage );
-
- /** Lay the page out with a page pixel one pixel of the screen. At any other scale a page pixel is
- * a whole number of screen pixels only by luck, and a row of equal cells comes out with its gaps
- * two pixels here and three there; a page whose every length the game has already turned into
- * screen pixels has nothing left to round. */
- void setScreenPixels( Bool screenPixels );
-
- /** Fade everything the page draws, text, fills and images, 0 to 255; 255 until it is set. */
- void setAlpha( Int alpha );
-
- /** Move the pointer over the page, for :hover. TRUE when it is on something the page drew
- * rather than on the empty body round it. */
- Bool hover( const ICoord2D &mouse );
-
- /** Click at the pointer and return the data-click of what was clicked, empty for nothing. */
- std::string click( const ICoord2D &mouse );
-
- /** The data-tip of what the last hover() found under the pointer, empty for nothing, and the
- * screen rectangle of the element that carries it. */
- std::string tip( IRegion2D &rect );
-
- /** The bottom edge in screen pixels of the first element the CSS selector finds, 0 for none. */
- Int bottomOf( const char *selector );
-
- /** The screen rectangle of every element the CSS selector finds, empty ones left out. */
- void rectsOf( const char *selector, std::vector< IRegion2D > &rects );
-
-private:
- HtmlOverlayContainer *m_container;
- std::string m_expanded; ///< the page the last expanding setPage made
- Bool m_expandedSent; ///< and it is what the layout was last handed
-};
-
-#endif // _HTML_OVERLAY_H_
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/HtmlTemplate.h b/GeneralsMD/Code/GameEngine/Include/GameClient/HtmlTemplate.h
deleted file mode 100644
index 5d08b1a09..000000000
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/HtmlTemplate.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
-** 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/>.
-*/
-
-// HtmlTemplate.h /////////////////////////////////////////////////////////////////////////////////
-// Filling a page under Window/Html with what the game knows before it is laid out.
-//
-// A page is written as plain HTML and CSS. The game's numbers go into it two ways:
-//
-// {{name}} replaced by that value, HTML-escaped; a name with no value becomes nothing,
-// so class="row {{option:Key}}" is "row on" or "row ".
-// data-each="list" on an element: the element is written once for every entry of the list,
-// and inside it {{name}} reads that entry's values first.
-//
-// Everything else is left for the layout engine, so CSS decides what "on" or "flipped" looks like.
-///////////////////////////////////////////////////////////////////////////////////////////////////
-
-#pragma once
-
-#ifndef _HTML_TEMPLATE_H_
-#define _HTML_TEMPLATE_H_
-
-#include "Lib/BaseType.h"
-
-#include <functional>
-#include <map>
-#include <string>
-#include <vector>
-
-typedef std::map< std::string, std::string > HtmlValues;
-typedef std::map< std::string, std::vector< HtmlValues > > HtmlLists;
-
-/** Asked for a name neither the entry nor the page's values hold; TRUE with `value` set if it knows it. */
-typedef std::function< Bool( const std::string &name, std::string &value ) > HtmlLookup;
-
-extern std::string HtmlTemplate_expand( const std::string &page, const HtmlValues &values,
- const HtmlLists &lists, const HtmlLookup &lookup );
-
-/** HtmlTemplate_expand( page, values, lists, lookup ) == expanded, found without making the page: it
- * reads only what the page names, stops at the first difference and builds no string. */
-extern Bool HtmlTemplate_matches( const std::string &page, const HtmlValues &values, const HtmlLists &lists,
- const HtmlLookup &lookup, const std::string &expanded );
-
-/** The text with & < > " and ' written as entities, so a player's name cannot open a tag. */
-extern std::string HtmlTemplate_escape( const std::string &text );
-
-/** A filled-in page split for litehtml: the <style> block's text into `styles`, for its CSS parser,
- * and the rest into `body` with every run of white space outside a tag one space, which is all CSS
- * draws of it while no page uses white-space: pre. */
-extern void HtmlTemplate_compact( const std::string &page, std::string &body, std::string &styles );
-
-#endif // _HTML_TEMPLATE_H_
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/Image.h b/GeneralsMD/Code/GameEngine/Include/GameClient/Image.h
index 6da84d293..79e211058 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/Image.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/Image.h
@@ -168,14 +168,6 @@ inline void Image::setRawTextureData( void *data ) { m_rawTextureData = data; }
inline const void *Image::getRawTextureData( void ) const { return m_rawTextureData; }
inline UnsignedInt Image::getStatus( void ) const { return m_status; }
-//-------------------------------------------------------------------------------------------------
-/** The same piece of texture, drawn back to front: a new Image over the same page, with the run of
- * its UV rect reversed left to right and everything else carried across. Nothing is copied out
- * of the page, so this costs one small object - and the original is left as it was, since
- * whoever owns it is still drawing from it. The caller owns what comes back. */
-//-------------------------------------------------------------------------------------------------
-extern Image *newMirroredImage( const Image *source );
-
// EXTERNALS //////////////////////////////////////////////////////////////////////////////////////
extern ImageCollection *TheMappedImageCollection; ///< mapped images
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/InGameUI.h b/GeneralsMD/Code/GameEngine/Include/GameClient/InGameUI.h
index 76477ed32..07fa86f34 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/InGameUI.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/InGameUI.h
@@ -46,12 +46,13 @@
#include "Common/SubsystemInterface.h"
#include "Common/UnicodeString.h"
#include "GameClient/DisplayString.h"
-#include "GameClient/HtmlTemplate.h"
#include "GameLogic/OrderQueue.h" // the shift queue, which the logic keeps and the UI draws
+#include <map>
#include <set>
+#include <string>
+#include <vector>
-class HtmlOverlay;
#include "GameClient/Mouse.h"
#include "GameClient/RadiusDecal.h"
#include "GameClient/View.h"
@@ -343,45 +344,6 @@ public:
typedef std::list< WorldAnimationData *> WorldAnimationList;
typedef WorldAnimationList::iterator WorldAnimationListIterator;
-/** One superweapon countdown as the spectator page lists it: whose, and how long it still has. */
-struct SpectatorSuperweapon
-{
- Int playerIndex;
- const Image *cameo;
- Int seconds;
- Bool ready;
- const CommandButton *button; ///< the power's own, for its tooltip card; NULL for a power with none
-};
-
-/** The money plate's width as it follows the figure's: see InGameUI_moneyPlateWidth. All zero is a
- * plate never drawn. */
-struct MoneyPlateWidth
-{
- Int target; ///< the width the plate settles at
- Int shown; ///< the width it was last drawn at
- Int easeFrom; ///< the width a shrink eases down from
- UnsignedInt easeStartMs;
- Bool easing;
- Int pendingWidth; ///< the widest a narrower figure has needed while a shrink waits
- UnsignedInt pendingSinceMs;
- Bool pending;
-};
-
-/** The width to draw the money plate at, `needed` the width the figure takes now, `nowMs` the
- * client's clock. A wider figure widens it at once; a narrower one has to hold for
- * MONEY_SHRINK_HOLD_MS before the plate eases down to it over MONEY_SHRINK_EASE_MS, and anything
- * wider in that wait calls the shrink off. Never narrower than `needed`. */
-enum { MONEY_SHRINK_HOLD_MS = 3000, MONEY_SHRINK_EASE_MS = 200 };
-Int InGameUI_moneyPlateWidth( MoneyPlateWidth &plate, Int needed, UnsignedInt nowMs );
-
-/** The command bar's console at its widest, every well up and a margin each side, in page pixels at
- * a HUD scale of 1: what ControlBarHudScale fits HUD Size to. */
-Int InGameUI_consolePageWidth( void );
-
-/** The IncomeRate option: TRUE when the income beside the money is written per minute, for a
- * player earning `perSecond` dollars a second. See IncomeRateModeType for what automatic picks. */
-Bool InGameUI_incomePerMinute( Int incomeRateMode, Int perSecond );
-
/** A plan waiting for its builder, as the number over its silhouette is worked out. */
struct BuildPlanNumber
{
@@ -459,59 +421,12 @@ public: // ********************************************************************
// srj sez: passing as const-ref screws up varargs for some reason. dunno why. just pass by value.
virtual void message( UnicodeString format, ... ); ///< display a message to the user
virtual void message( AsciiString stringManagerLabel, ... );///< display a message to the user
- void playerMessage( Player *player, const UnicodeString &text ); ///< a message about that player, his flag at its head
- void chatMessage( Player *player, const UnicodeString &text ); ///< a line of chat, under the middle of the screen
- /** The feed's lines for what a player did: a special power fired, a superweapon or advanced tech
- * building started or `finished`, a promotion bought. Each decides who is told. */
- void feedSpecialPower( const Object *source, const AsciiString &powerName, const SpecialPowerTemplate *power );
- void feedStructure( Object *structure, Bool finished );
- void feedScience( Player *player, ScienceType science );
+ void playerMessage( Player *player, const UnicodeString &text ); ///< a message about that player, in his colour
+ void chatMessage( Player *player, const UnicodeString &text ); ///< a line of chat, "[name] text" in his colour
virtual void toggleMessages( void ) { m_messagesOn = 1 - m_messagesOn; } ///< toggle messages on/off
- void openScoreboard( void ); ///< the Tab scoreboard, up while Tab is held; EA's diplomacy screen in Classic
- void closeScoreboard( void ) { m_scoreboardOpen = FALSE; }
- Bool pickSpectatorStat( Int commandSlot ); ///< a command bar key while watching: TRUE when it picked a stat
- /** The command bar's page, Window/Html/ControlBar.html, under the bar's windows: its panels are
- * where the plates would have gone, in screen pixels. FALSE when there is no page to draw. */
- Bool drawControlBarPage( const IRegion2D *panels, const Bool *shown, Int panelCount );
- /** A click that reached the world, on one of that page's own buttons: TRUE when it was one, and
- * when `act` is set the button it names is pressed. */
- Bool handleControlBarPageClick( const ICoord2D *mouse, Bool act );
- /** TRUE when `pointer` is on the page's steel, a .solid it drew and none of its keys: the HUD's,
- * never the battlefield's, even where no window of the bar stands. */
- Bool isOnControlBarSteel( const ICoord2D &pointer ) const;
- /** The general's promotion screen, Window/Html/Promotion.html, drawn as `parent`'s picture: the
- * screen's windows keep their clicks and the promotions' own cameos paint over it. */
- void drawPromotionPage( GameWindow *parent, Bool front );
- /** TRUE once the promotion screen is the page's, so the painted screen's own fade-in stays off. */
- Bool isPromotionPageShown( void ) const { return m_promotionPageLoaded && !m_promotionPage.empty(); }
- /** The promotion screen is coming up: its page and the dimmed screen under it fade in from now. */
- void openPromotionPage( void );
- /** The promotion screen is going: the page fades out and hides its window when it is gone. */
- void closePromotionPage( void ) { m_promotionClosing = TRUE; }
- /** The Esc menu hands its look to Window/Html/QuitMenu.html: `parent` draws the page and its keys
- * draw nothing and keep their clicks. Left as it is when there is no page. */
- void themeQuitMenu( GameWindow *parent );
- void drawQuitMenuPage( GameWindow *parent );
- /** TRUE once the Esc menu is the page's, so the layout's own transitions stay off. */
- Bool isQuitMenuPageShown( void ) const { return m_quitMenuPageLoaded && !m_quitMenuPage.empty(); }
- /** The Esc menu is going: the page fades out and hides its window when it is gone. */
- void closeQuitMenuPage( void ) { m_quitMenuClosingMs = 0; }
- /** The command bar's grids of buttons whose cells the page frames in front of the buttons. */
- enum CellGrid { CELL_GRID_COMMAND, CELL_GRID_QUEUE, CELL_GRID_POWERS, CELL_GRID_COUNT };
- /** The steel frames over one grid's buttons, from Window/Html/ControlBar.html, drawn after them. */
- void drawCellGridFront( Int grid );
- void drawScoreboard( void ); ///< that scoreboard, over everything
- void sampleEarnings( void ); ///< every player's money earned, once a game second
- Int earnedOver( Int playerIndex, Int seconds ) const; ///< what that player earned in that many seconds, at the rate of the readings held
- Int earnedPerSecond( Int playerIndex ) const { return earnedOver( playerIndex, 1 ); }
- /** Window/Html/Tooltip.html is there to draw with, in a match. */
- Bool isTooltipPageReady( void );
- /** The tooltip page: the command bar's build tooltip over the hovered button while one is up,
- * otherwise `cursorText` beside the pointer, edged in `accent` when it has one. FALSE when the
- * page is not ready, and the caller draws the old way. */
- Bool drawTooltipPage( const UnicodeString &cursorText, const RGBColor *accent );
+ void openScoreboard( void ); ///< EA's diplomacy screen
virtual Bool isMessagesOn( void ) { return m_messagesOn; } ///< are the display messages on
- void freeMessageResources( void ); ///< empty the event feed
+ void freeMessageResources( void ); ///< empty the message list
Color getMessageColor(Bool altColor) { return (altColor)?m_messageColor2:m_messageColor1; }
// interface for military style messages
@@ -595,20 +510,6 @@ public: // ********************************************************************
};
const std::vector<OrderHint>& getOrderHints( void ) const { return m_drawnOrderHints; }
- // Where each ally's mouse is pointing. A network game only: the position arrives about ten
- // times a second on a side channel of its own, carries nothing the simulation reads, and is
- // never acked or resent, so a lost one costs a tenth of a second of staleness and nothing else.
- struct AllyCursor
- {
- Coord3D position; ///< the last spot that ally reported
- Coord3D shown; ///< eased towards it, so ten updates a second do not read as ten steps
- UnsignedInt heardMs; ///< wall clock of that report, for the fade when an ally stops sending
- Bool known; ///< FALSE until the first report of the match arrives
- };
- void noteAllyCursor( Int playerIndex, Real x, Real y ); ///< an ally said where their mouse is
- const AllyCursor& getAllyCursor( Int playerIndex ) const { return m_allyCursors[ playerIndex ]; }
- Real getAllyCursorFade( Int playerIndex ) const; ///< 0 when there is nothing to draw, 1 for a live cursor
-
// A circle dragged out with the left button while the attack key is armed. The enemies inside
// it are shared across the units that can shoot, in the order both sides stand around the
// circle, and each unit works down its own share.
@@ -1113,77 +1014,21 @@ public: // ********************************************************************
void drawDirectorIntroPlate( void );
//
- // One cameo of the global production strip: which producer it belongs to, which entry of that
- // producer's queue it is, and where it was drawn this frame.
- //
- enum { PRODUCTION_STRIP_ROW_MAX = 9 }; ///< cameos the strip will draw; whatever is left over closes
- /// it as a tenth cell wearing a "+N", two rows of five over the selection
-
- //
- // A queue slot is one slot of the general's power bar down in the corner, measurement for
- // measurement: that bar is where a tray of cameos already lives in this game, so the strip is
- // built out of the same tray instead of inventing a second look for the same job. Every number
- // here is read off GenPowersShortcutBar*.wnd, in the 800x600 the rest of the strip is written in.
- //
- enum
- {
- PRODUCTION_STRIP_TRAY_W = 48, ///< the tray, at the size that bar draws it - never stretched
- PRODUCTION_STRIP_TRAY_H = 41,
- PRODUCTION_STRIP_TRAY_X = 1, ///< where the cameo sits inside it
- PRODUCTION_STRIP_TRAY_Y = 7,
- PRODUCTION_STRIP_QUEUE_W = 39, ///< and how big it is there
- PRODUCTION_STRIP_QUEUE_H = 27 ///< a cell steps a whole tray both ways, so no tray lies over the
- /// cameo in the one beside or below it
- };
-
- ///< does an item go in front of one already in the row? the selected building's items are a
- ///< block of their own at the head of it; inside a block, soonest finished first, ties keeping
- ///< the order they were met in so a base of identical barracks does not shuffle frame to frame
- static Bool stripSlotGoesBefore( Bool leads, Int remaining,
- Bool otherLeads, Int otherRemaining );
- struct ProductionStripSlot
- {
- ObjectID producer; ///< the building this item is queued on
- Int id; ///< a unit's ProductionID, or an upgrade's name key
- /// (kept as an Int so this header stays clear of GameLogic)
- Bool isUpgrade; ///< which of those two the id means
- Int typeKey; ///< what the item is rather than which order it is - a unit's template
- /// id, an upgrade's name key - so a run of the same thing queued
- /// back to back becomes one cameo
- Bool isStructure; ///< the slot is a building going up on the map, not an item in
- /// a queue: 'producer' is that building and there is no id
- Bool leads; ///< it belongs to the building you have selected, so it stands at the
- /// head of the row whatever the rest of the base is finishing
- Int remaining; ///< logic frames until this item pops, waiting time ahead of it included
- Int quantity; ///< how many of the same thing this cameo stands for: a queue of five
- /// Red Guards is one cameo wearing an "x5", not five cameos of
- /// the same picture pushing everything else off the row
- ICoord2D pos; ///< top left corner of the cameo on screen
- };
-
- /// a click landed on the strip: jump to that producer, or cancel the item when 'cancel' is set
- Bool handleProductionStripClick( const ICoord2D *mouse, Bool cancel );
- void foldSpectatorDropDowns( const ICoord2D &mouse ); ///< a press off the spectator's page closes its drop-downs
-
- //
- // One superweapon countdown of the top right strip. The list is rebuilt every frame out of
- // whatever timers are live, so nothing here outlives the draw that filled it in.
+ // The production list on the left: one line per item the local player has coming, queued in a
+ // factory or going up on the map, soonest finished first. Past PRODUCTION_LIST_LINES the rest is
+ // one "+N more" line. The superweapon list in the top right stops at SUPERWEAPON_LIST_LINES the
+ // same way.
//
- enum { SUPERWEAPON_STRIP_COLS = 6 }; ///< cameos in one row, the soonest at the right hand end
- enum { SUPERWEAPON_STRIP_ROWS = 7 }; ///< rows the strip can grow to, past the top half of the screen from the fourth at 1280x720 and HUD Size 150%; past 42 the latest to land have no cell
- enum { SUPERWEAPON_STRIP_MAX = SUPERWEAPON_STRIP_COLS * SUPERWEAPON_STRIP_ROWS };
-
- enum { SKILL_STRIP_COLS = 6 }; ///< bought promotions in one row, under the countdowns
- enum { SKILL_STRIP_ROWS = 8 }; ///< a row per player watching the whole match, or one
- /// player's promotions wrapped over as many as they need
- enum { SKILL_STRIP_MAX = SKILL_STRIP_COLS * SKILL_STRIP_ROWS };
- struct SuperweaponIconSlot
+ enum { PRODUCTION_LIST_LINES = 6 };
+ enum { SUPERWEAPON_LIST_LINES = 18 };
+ struct ProductionListSlot
{
- const Image * image; ///< the cameo the command bar wears for this power
- Int seconds; ///< seconds until it can be fired, 0 once it is ready
- Int percent; ///< how much of the charge is done, for the radial sweep
- Bool ready; ///< charged: it flashes instead of counting
- Color color; ///< whose it is, the colour the timer was registered with
+ ObjectID producer; ///< the building it is queued on, or the building going up
+ Int typeKey; ///< what the item is, so a run of the same thing is one line
+ Bool isUpgrade;
+ Int remaining; ///< logic frames until it is done, waiting time ahead of it included
+ Int quantity; ///< how many of the same thing the line stands for
+ UnicodeString name;
};
/// Ingame video playback
@@ -1426,7 +1271,7 @@ protected:
void setMouseCursor(Mouse::MouseCursor c);
- void addMessageText( const UnicodeString& formattedMessage ); ///< a plain message, a line of the event feed
+ void addMessageText( const UnicodeString& formattedMessage ); ///< a plain message, a line of EA's list
void updateFloatingText( void ); ///< Update function to move our floating text
void drawFloatingText( void ); ///< Draw all our floating text
@@ -1442,12 +1287,8 @@ public:
* up stand on top of it instead of being painted over. */
virtual void drawAttackCircleFill( void ) { }
- /** The patch of an ally's own colour lying under their cursor. On the ground so that it reads
- * as light falling on the map rather than as a disc floating over it. */
- virtual void drawAllyCursorLights( void ) { }
-
- /// what a data-click on the spectator's page does, by its text: a click on the page, or the
- /// control socket's "spectator" verb, which a script uses instead of finding the pixel
+ /// the control socket's "spectator" verb: the camera, the followed player, the fog, and replay
+ /// pause, seek and speed
void runSpectatorAction( const std::string &action );
protected:
@@ -1490,17 +1331,6 @@ protected:
std::vector<OrderHint> m_orderHints; ///< who is going where, one per unit and queued point
std::vector<OrderHint> m_drawnOrderHints; ///< the same, units headed the same way bunched into one
- AllyCursor m_allyCursors[ MAX_PLAYER_COUNT ]; ///< where every ally's mouse was last seen (fork)
- UnsignedInt m_allyCursorSentMs; ///< wall clock of the last position this machine sent
- Coord3D m_allyCursorSentPosition; ///< and what it said, so a still mouse sends nothing
- UnsignedInt m_allyCursorEasedMs; ///< wall clock of the last easing pass, which sets its step
-
- void clearAllyCursors( void ); ///< forget every ally's marker, for the start of a match
- void updateAllyCursors( void ); ///< ease every ally's marker towards where they said it was
- void sendLocalAllyCursor( void ); ///< tell the allies where this machine's mouse is, at most ten times a second
- Int allyPlayerMask( void ) const; ///< the slots this machine is allied with
- Bool isAllyOfLocalPlayer( Int playerIndex ) const; ///< is this player mutually allied with the one at this machine
-
Bool m_isAttackCircling; ///< TRUE while an attack circle is being dragged (fork)
ICoord2D m_attackCircleAnchor; ///< where the circle was started, in pixels
ICoord2D m_attackCircleCursor; ///< where the cursor is now, which is the rim
@@ -1515,8 +1345,6 @@ protected:
Bool getQueuedOrderHint( const QueuedOrder& order, OrderHint& hint ) const; ///< the marker a queued order draws, FALSE for none
void numberOrderHints( void ); ///< a unit with more than one place to go numbers them
void markOrderHints( void ); ///< flag or joint on each hint's end
- void updateOrderFlags( void ); ///< stand a rally flag on every flagged hint
- std::vector<DrawableID> m_orderFlagIDs; ///< the rally flags updateOrderFlags stands, reused frame to frame
Bool isHiddenByShroud( const Object *obj ) const; ///< is the shroud over this, for the player at this machine
Bool m_displayedMaxWarning; ///< keeps the warning from being shown over and over
const CommandButton * m_pendingGUICommand; ///< GUI command that needs additional interaction from the user
@@ -1574,132 +1402,8 @@ protected:
void drawPeaceTimer( void ); ///< the lobby's peace time, counting down at the top of the screen
void drawPeaceCountdown( UnsignedInt framesLeft ); ///< the last seconds of it, one big digit in the middle of the screen
void drawHudOverlay( void ); ///< the small elapsed-time / fps plate (ShowHudOverlay)
- void drawWireframeNotice( void ); ///< "the interface is a draft" bouncing round the command bar's band
- void drawProductionStrip( void ); ///< the production queue rows above the control bar
- ///< the run of cells, a column, with its left edge at 'left' and its first cell's top edge at 'bottomY'
- void drawProductionStripColumn( Int left, Int bottomY );
- void drawQueueTray( void ); ///< the playing strip as a row in Window/Html/Queue.html's tray
- void drawNetPage( void ); ///< the network box, Window/Html/Net.html, with the command bar's page
- void drawReadoutPage( const HtmlValues &values ); ///< the clock and the health, Window/Html/Readout.html, over the bar's page
- void alertSuperweapon( Player *owner, const UnicodeString &name, const char *label ); ///< queue a banner: `name` and what happened to it
- void drawAlertPage( void ); ///< the superweapon banner, Window/Html/Alert.html, under the top page
- std::string scoreboardHtml( void ); ///< Window/Html/Scoreboard.html filled in for this frame
- const Image *productionStripTray( void ); ///< the bar's tray, mirrored, kept until the bar changes side
- void stripTrayMetrics( ICoord2D *tray, ICoord2D *cameo, ICoord2D *hole, Int *step ); ///< that tray's size, its cameo hole, and the column step
- void drawStripSeconds( Int which, Int x, Int y, Int w, Int h, Int seconds ); ///< countdown written inside a cameo
- void drawStripQuantity( Int which, Int x, Int y, Int w, Int h, Int quantity ); ///< the "xN" in a cameo's top right corner
- ///< one of the strips' own strings set to 'text', a point smaller at a time until a readout on 'cell' holds it
- DisplayString *fitStripString( DisplayString *&string, const UnicodeString &text, Int points, const IRegion2D &cell );
- void addSuperweaponIcon( const Image *image, Int seconds, Int percent, Bool ready, Color color );
- void drawSuperweaponStrip( void ); ///< those icons, top right, soonest at the right hand end
- void drawSkillStrip( void ); ///< the watched player's bought promotions, under those
+ void drawProductionList( void ); ///< the production list, lines on the left above the control bar
- //
- // The scoreboard on Tab, Window/Html/Scoreboard.html: every seat in the match, your side in full
- // and the other side as name and team only; watching, every seat in full. Drawn over everything.
- //
- Bool m_scoreboardOpen;
- HtmlOverlay * m_scoreboardOverlay;
- Bool m_scoreboardPageLoaded; ///< read once a match, like the spectator's page
- std::string m_scoreboardPage;
- std::string m_scoreboardHtml; ///< the page filled in, kept for NET_WORTH_REFRESH_FRAMES
- UnsignedInt m_scoreboardHtmlFrame; ///< the logic frame it was filled in on
- // The last half minute of every player's money earned, one reading a game second, oldest first, so
- // a seat can say what it earns now beside its average over the match. The reading's own second
- // goes with it: a pass that runs several logic frames at once skips seconds.
- struct EarnedReading
- {
- UnsignedInt second;
- Int earned[ MAX_PLAYER_COUNT ];
- };
- enum
- {
- EARNINGS_WINDOW_SECONDS = 30, ///< what the per second figure is measured over
- EARNINGS_READINGS = EARNINGS_WINDOW_SECONDS + 1 ///< a reading at each end of that window and every second between
- };
- EarnedReading m_earnedReadings[ EARNINGS_READINGS ];
- Int m_earnedReadingCount; ///< how many of those hold a reading
- HtmlOverlay * m_controlBarOverlay;
- Bool m_controlBarPageLoaded;
- Bool m_controlBarPageShown; ///< drawn this frame, so its buttons can be clicked
- std::string m_controlBarPage;
- HtmlValues m_controlBarValues; ///< the page's values, every key written every frame, kept so the nodes are reused
- HtmlLists m_controlBarLists; ///< its lists the same way, each entry's keys the same every frame
- Bool m_controlBarPageHovered; ///< the pointer was on something the page drew, last frame
- std::vector< IRegion2D > m_controlBarSolids; ///< the page's .solid rectangles on screen, as last drawn
- std::vector< IRegion2D > m_controlBarKeys; ///< its data-click keys on screen, which stand in the solids
- HtmlOverlay * m_netOverlay;
- Bool m_netPageLoaded;
- std::string m_netPage;
- HtmlOverlay * m_readoutOverlay; ///< Window/Html/Readout.html, the clock and the health over the bar's page
- Bool m_readoutPageLoaded;
- std::string m_readoutPage;
- /// one superweapon banner waiting or up: what happened, already lettered, and whose it is
- struct SuperweaponAlert { std::string text; std::string whose; };
- std::vector< SuperweaponAlert > m_alerts; ///< the banner up first, then the ones queued behind it
- UnsignedInt m_alertStartMs; ///< when the first one went up, on the client's clock
- HtmlOverlay * m_alertOverlay; ///< Window/Html/Alert.html, the banner under the top page
- Bool m_alertPageLoaded;
- std::string m_alertPage;
- Int m_alertBottom; ///< the banner's bottom on screen while it is up, else 0: the scoreboard hangs under it
- HtmlOverlay * m_tooltipOverlay;
- Bool m_tooltipPageLoaded;
- std::string m_tooltipPage;
- ICoord2D m_tooltipSize; ///< the box as last laid out, in screen pixels, to place the next one by
- HtmlOverlay * m_promotionOverlay;
- HtmlOverlay * m_promotionFrontOverlay; ///< the grid's frames, drawn over the promotions
- HtmlOverlay * m_cellFrontOverlay[ CELL_GRID_COUNT ];
- std::vector< HtmlValues > m_cellFrontCells[ CELL_GRID_COUNT ]; ///< each grid's cells as the bar's page last placed them
- enum { ORDER_KEYS = 4 }; ///< the page's attack, hold position and move keys, then the OrderKeyExtra ones
- IRegion2D m_orderKeyCell[ ORDER_KEYS ]; ///< where the page last put each, screen pixels
- Int m_orderKeyPlace[ ORDER_KEYS ]; ///< the CommandPlace each stands on, -1 while it is not shown
- DisplayString * m_orderKeyString[ ORDER_KEYS ]; ///< each one's letter, on the command buttons' plate
- Int m_orderKeyPoints; ///< the size those were last lettered at: HUD Size changes in a match
- Bool m_promotionPageLoaded;
- std::string m_promotionPage;
- Int m_promotionShownMs; ///< how far the promotion screen has come up, -1 before its first picture
- UnsignedInt m_promotionDrawnAt; ///< the wall clock at its last picture
- Bool m_promotionClosing; ///< fading out, m_promotionShownMs running back to 0
- HtmlOverlay * m_quitMenuOverlay;
- std::vector< HtmlOverlay * > m_quitMenuKeyOverlays; ///< one for each of the menu's keys, each fading in on its own
- Bool m_quitMenuPageLoaded;
- std::string m_quitMenuPage;
- Int m_quitMenuShownMs; ///< how far the menu's coming up has run, -1 until its first picture
- UnsignedInt m_quitMenuDrawnAt; ///< the wall clock at its last picture: the game is paused under it
- Int m_quitMenuClosingMs; ///< how far the menu's going has run, -1 while it is not going
- Bool m_signalsWereShown; ///< the smoke signal column was up last frame
- UnsignedInt m_signalsRiseStartMs; ///< when it last came up, the start of its buttons' rise
-
- //
- // The spectator's page over the battlefield, Window/Html/Spectator.html: the drop-down that
- // switches the strips on and off, every player ranked by a chosen number, the net worth lead
- // over time and what each army is made of. Only while watching.
- //
- void drawSpectatorPage( void );
- Bool handleSpectatorPageClick( const ICoord2D *mouse, Bool act ); ///< TRUE when the click landed on it
- HtmlOverlay * m_spectatorOverlay;
- Bool m_spectatorPageLoaded; ///< read once a match, so an edited page shows in the next one
- Bool m_spectatorPageShown; ///< drawn this frame, so clicks are its to take
- std::string m_spectatorPage; ///< the page as written, before its {{values}} are filled
- std::set< std::string > m_spectatorFlipped; ///< names a data-click="flip:name" has flipped
- std::map< std::string, std::string > m_spectatorPicked; ///< group to choice, from data-click="pick:group:choice"
- HtmlLists m_spectatorLists;
- HtmlValues m_spectatorTotals; ///< the page's values that are not per player, gathered with the lists
- UnsignedInt m_spectatorListsFrame; ///< the logic frame the lists were last gathered on
- const Player *m_spectatorListsWatched; ///< the player being watched when they were, whose seat they mark
-
- std::vector< SpectatorSuperweapon > m_spectatorSuperweapons; ///< every countdown the superweapon pass found, rebuilt each pass
-
- //
- // The event feed over the radar, Window/Html/Feed.html: every message, a superweapon ready or
- // fired, a player beaten or gone, the newest at the bottom. A player's and a watcher's alike.
- //
- struct FeedLine
- {
- HtmlValues values;
- UnsignedInt until; ///< the logic frame it leaves on
- };
- std::vector< FeedLine > m_feedLines;
SignalKind m_armedSignal; ///< the signal the next click drops; SIGNAL_KIND_COUNT for none
struct SignalMark
{
@@ -1709,12 +1413,10 @@ protected:
std::vector< SignalMark > m_signalMarks;
void updateSignalMarks( void );
void clearSignalMarks( void );
- void addFeedLine( HtmlValues line );
- void feedAct( Player *player, const Image *cameo, const std::string &what, const char *tag, const char *label );
//
- // The Classic interface's message list: EA's column of six lines in the top left corner, each in
- // its own colour, fading out from the moment it is written. Reforged writes the event feed.
+ // The message list: EA's column of six lines in the top left corner, each in its own colour,
+ // fading out from the moment it is written.
//
enum { CLASSIC_MESSAGES = 6 };
struct ClassicMessage
@@ -1732,32 +1434,10 @@ protected:
void drawClassicSuperweapon( SuperweaponInfo *info, const AsciiString &templateName, Bool isReady, Int readySecs,
Int x, Int *y );
void watchDozers( void );
- void drawFeed( void );
- Int feedTop( void ) const;
UnsignedInt m_dozerCheckFrame; ///< the logic frame watchDozers last looked on
Bool m_hadDozer[ MAX_PLAYER_COUNT ]; ///< that player had a dozer or worker then
- // the chat over the feed, Window/Html/Chat.html, the same lines kept a while
- std::vector< FeedLine > m_chatLines;
- void drawChat( void );
- HtmlOverlay * m_chatOverlay;
- Bool m_chatPageLoaded;
- std::string m_chatPage;
- HtmlOverlay * m_feedOverlay;
- Bool m_feedPageLoaded;
- std::string m_feedPage;
- Int m_feedTop; ///< where the feed starts on screen, under the menu key, from the bar's page
- ICoord2D m_queueCorner; ///< the selection's well's left edge and the console's top on screen: the queue stands there
- Int m_consoleTop; ///< the console's top on screen, the build card stands over it
- Int m_topBarBottom; ///< the top page's bottom on screen, the scoreboard and the feed hang under it
- Int m_peacePlateBottom; ///< the top page's peace time plate's bottom on screen, 0 while it is not up; the last ten seconds hang under it
-
- Bool m_placementRangeRingUp; ///< the structure on the cursor is armed, so its reach is drawn
- Real m_placementRingRadius; ///< how far from its centre it hits
- void drawPlacementReach( void ); ///< while placing, the reach of every armed building in sight, as one outline
- void drawBlindSpots( void ); ///< shade the ground a placed or selected defence cannot shoot into
DisplayString * m_hudDisplayString; ///< the ShowHudOverlay line (fps / clock)
- HtmlValues m_hudValues; ///< that line's readings one by one, for Window/Html/Net.html
DisplayString * m_peaceTimeDisplayString; ///< the peace time clock at the top of the screen
/// the broadcast's string for what key names, in font at points, holding text: one string per
/// thing written, so a text is laid out again only when it changes
@@ -1772,9 +1452,6 @@ protected:
DisplayString * m_peaceTimeLabelDisplayString; ///< the word written over that clock
DisplayString * m_peaceCountdownDisplayString; ///< the big digit of its last ten seconds
Int m_lastMoneyDisplayed; ///< so the money gadget is only written when the amount changes
- Int m_lastEarningDisplayed; ///< or the money earned a second beside it
- Bool m_lastEarningPerMinute; ///< or whether that was written per minute
- MoneyPlateWidth m_moneyPlate; ///< the money plate's width, following the figure's
UnsignedInt m_hudDrawCount; ///< rendered frames counted by drawHudOverlay itself
UnsignedInt m_hudLastSampleFrame; ///< m_hudDrawCount the fps sample was last refreshed on
UnsignedInt m_hudLastSampleMs; ///< wall clock of that sample
@@ -1783,12 +1460,6 @@ protected:
RateReading m_hudLogicHz; ///< logic frames actually simulated per real second
UnsignedInt m_hudRealClockBaseMs; ///< wall clock the two elapsed-time readouts were aligned at
UnsignedInt m_hudLastDrawMs; ///< wall clock of the previous overlay draw, so a pause can be taken back out of it
- Int m_hudOverlayBottom; ///< bottom of everything drawn in the top right corner, so the superweapon timers start under it
- enum { WIREFRAME_LINES = 2 };
- DisplayString * m_wireframeNotice[ WIREFRAME_LINES ]; ///< the draft notice drawWireframeNotice bounces, a string a line
- Coord2D m_wireframePos; ///< its top left corner on screen
- Coord2D m_wireframeDir; ///< which way it is going, each axis +1 or -1
- UnsignedInt m_wireframeLastMs; ///< wall clock of its previous draw, 0 before the first
// A script time freeze stops the logic clock, and the military subtitle's counters are
// logic frames, so they have to be stepped by hand while it lasts. These two turn the
// wall clock into that step without drift: every update works out how many 30Hz frames
@@ -1797,61 +1468,15 @@ protected:
UnsignedInt m_subtitleFreezeSteps; ///< frames already handed to the subtitle during it
//
- // The global production strip: everything the local player has coming - queued in any factory,
- // or going up on the ground - one cameo each, soonest to finish first, in a column standing on
- // the corner above the control bar. drawProductionStrip() lays it out and records where each
- // cameo landed; handleProductionStripClick() reads those back. What a factory is turning out
- // and what a dozer is raising stand in the same run, because the question is when the next thing
- // lands and not which of the two kinds it is, and the building you have selected leads it.
- // Watching, the queues are on the Tab scoreboard instead.
- //
- ProductionStripSlot m_productionStrip[ PRODUCTION_STRIP_ROW_MAX ];
- Int m_productionStripCount; ///< cameos drawn
- Int m_productionStripTotal; ///< items queued, drawn or not
- Int m_productionStripCameoW; ///< cameo size this frame, in the control bar's aspect
- Int m_productionStripCameoH;
- Bool m_productionStripThemed; ///< playing under the bar's page: a row in Queue.html's steel tray
- Int m_productionStripStep; ///< from one themed cameo to the next, across
- HtmlOverlay * m_queueOverlay; ///< Window/Html/Queue.html under the cameos
- HtmlOverlay * m_queueFrontOverlay; ///< and its frames over them
- HtmlOverlay * m_superweaponOverlay; ///< the same page under the superweapon strip's cameos, top right
- Bool m_queuePageLoaded;
- std::string m_queuePage;
-
- //
- // The strip's cameos face the other way from the power bar's, so the tray behind them is a
- // mirrored copy of it. The whole strip wears one side's metal - the side the bar underneath it
- // is showing - so one is kept at a time and remade when the bar changes side, which watching a
- // match it does every time the observer picks a different player out of the list.
- //
- Image * m_productionStripTray; ///< our mirrored copy of the bar's tray
- const Image * m_productionStripTraySource; ///< the tray it was made from, so a side change remakes it
- //
- // One kept string per cameo, not one string walked across all of them. A DisplayString
- // rebuilds its sentence whenever the text it holds changes, and a rebuild is a fresh font
- // surface, a fresh texture and a surface copy - so a single shared string paid that once per
- // cameo per frame, and watching a match the strips cost more to draw than the terrain under
- // them. Kept per cameo, a countdown rebuilds when its own second changes: once a second.
- //
- enum { STRIP_SECONDS_STRINGS = PRODUCTION_STRIP_ROW_MAX + SUPERWEAPON_STRIP_MAX };
- enum
- {
- STRIP_OVERFLOW_PRODUCTION = 0, ///< the "+N" closing the production column
- STRIP_OVERFLOW_STRINGS
- };
-
- enum { STRIP_QUANTITY_STRINGS = PRODUCTION_STRIP_ROW_MAX };
-
- DisplayString * m_productionStripOverflow[ STRIP_OVERFLOW_STRINGS ]; ///< the "+N" that stands for the rest of a row
- DisplayString * m_stripSecondsString[ STRIP_SECONDS_STRINGS ]; ///< the countdown written inside a cameo, either strip's
- DisplayString * m_stripQuantityString[ STRIP_QUANTITY_STRINGS ]; ///< the "xN" a run of the same item wears
-
- //
- // The superweapon strip: the same cameos the command bar fires them from, in the top right
- // under the clock plate, rebuilt every frame from the timers below and laid out soonest first.
+ // The production list: everything the local player has coming, gathered once a logic frame, and
+ // one kept string per line plus the "+N more" one, so a line is laid out again only when its text
+ // changes. The superweapon list keeps its own "+N more" string the same way.
//
- SuperweaponIconSlot m_superweaponIcons[ SUPERWEAPON_STRIP_MAX ];
- Int m_superweaponIconCount; ///< icons drawn
+ ProductionListSlot m_productionList[ PRODUCTION_LIST_LINES ];
+ Int m_productionListCount; ///< lines filled
+ Int m_productionListTotal; ///< items coming, listed or not
+ DisplayString * m_productionListText[ PRODUCTION_LIST_LINES + 1 ];
+ DisplayString * m_superweaponMoreText;
Coord2D m_superweaponPosition;
Real m_superweaponFlashDuration;
@@ -1989,14 +1614,11 @@ protected:
// the singleton
extern InGameUI *TheInGameUI;
-/// How many rings of the blind-spot grid a defence's reach needs, capped by the map's width plus height.
-Int blindSpotRingCount( Real radius, Real mapSpan );
//
// A readout on a cell of the HUD: a countdown, a key, a price, a power figure, a count. Every one
// of them stands on a solid plate in a corner of the cell's inner rectangle, which is the cell less
-// the frame the page draws over its edge, so no plate lies under a border and no digit is cut by
-// one. The strips in InGameUI.cpp and the command buttons' badges in W3DPushButton.cpp both draw
-// through these.
+// its frame, so no plate lies under a border and no digit is cut by one. The command buttons'
+// badges in W3DPushButton.cpp draw through these.
//
enum HudReadoutCorner
{
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h b/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
index 0bd7e7feb..594ebe6aa 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/MetaEvent.h
@@ -366,11 +366,7 @@ class MetaMap : public SubsystemInterface
friend class MetaEventTranslator;
private:
- MetaMapRec *m_metaMaps; ///< Reforged: the language's CommandMap.ini with CommandMapReforged.ini over it
- MetaMapRec *m_classicMaps; ///< Classic: the language's CommandMap.ini alone, the game's own keys
- Bool m_parsingClassic; ///< parseMetaMap is filling m_classicMaps
-
- static void freeList( MetaMapRec *&list );
+ MetaMapRec *m_metaMaps; ///< the language's CommandMap.ini, the game's own keys
protected:
GameMessage::Type findGameMessageMetaType(const char* name);
@@ -387,14 +383,7 @@ public:
static void parseMetaMap(INI* ini);
- /** Fill the Classic list from the language's CommandMap.ini alone, the game's own map out of its
- * own archives. Everything this fork binds is in CommandMapReforged.ini, and only the Reforged
- * list reads that. */
- void loadClassicBindings( const AsciiString& languageMapFile );
-
- /// the bindings the interface style in use answers to
- const MetaMapRec *getFirstMetaMapRec() const;
- const MetaMapRec *getFirstMetaMapRec( Bool classic ) const { return classic ? m_classicMaps : m_metaMaps; }
+ const MetaMapRec *getFirstMetaMapRec() const { return m_metaMaps; }
};
extern MetaMap *TheMetaMap;
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/Mouse.h b/GeneralsMD/Code/GameEngine/Include/GameClient/Mouse.h
index 36cc538d5..c50b65182 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/Mouse.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/Mouse.h
@@ -411,8 +411,6 @@ protected:
UnsignedInt m_stillTime;
RGBAColorInt m_tooltipTextColor;
RGBAColorInt m_tooltipBackColor;
- Bool m_tooltipHasAccent; ///< the tooltip came with a colour, its owner's
- RGBColor m_tooltipAccent; ///< that colour as it came, before the INI's alt colour rules
Int m_eventsThisFrame;
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/PlaceEventTranslator.h b/GeneralsMD/Code/GameEngine/Include/GameClient/PlaceEventTranslator.h
index 69687e0d0..6898dcb0c 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/PlaceEventTranslator.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/PlaceEventTranslator.h
@@ -38,8 +38,6 @@ class PlaceEventTranslator : public GameMessageTranslator
{
private:
UnsignedInt m_frameOfUpButton;
- Bool m_stripClickTaken; ///< the down went to the global production strip, so its up belongs there too
- Bool m_stripRightClickTaken; ///< keep a strip cancellation out of world orders and drags
public:
PlaceEventTranslator();
diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/ConnectionManager.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/ConnectionManager.h
index 55c13291b..bff83e816 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/ConnectionManager.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/ConnectionManager.h
@@ -67,7 +67,6 @@ public:
void parseUserList(const GameInfo *game);
void sendChat(UnicodeString text, Int playerMask, UnsignedInt executionFrame);
void sendDisconnectChat(UnicodeString text);
- void sendAllyCursor(Real x, Real y, Int playerMask); ///< Tell the players in the mask where the local mouse is pointing.
void sendLocalCommand(NetCommandMsg *msg, UnsignedByte relay = 0xff); ///< Send command to the players specified in the relay, goes through packet router.
void sendLocalCommandDirect(NetCommandMsg *msg, UnsignedByte relay); ///< Send command directly to the players specified, doesn't go through packet router.
void sendLocalGameMessage(GameMessage *msg, UnsignedInt frame);
@@ -173,7 +172,6 @@ private:
void processFrameInfo(NetFrameCommandMsg *msg);
void processRunAheadMetrics(NetRunAheadMetricsCommandMsg *msg);
void processDisconnectChat(NetDisconnectChatCommandMsg *msg);
- void processAllyCursor(NetAllyCursorCommandMsg *msg);
void processProgress( NetProgressCommandMsg *msg );
void processLoadComplete( NetCommandMsg *msg );
void processTimeOutGameStart( NetCommandMsg *msg );
diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetCommandMsg.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetCommandMsg.h
index 47008b9fc..046068232 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetCommandMsg.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetCommandMsg.h
@@ -340,27 +340,6 @@ protected:
Int m_playerMask;
};
-//-----------------------------------------------------------------------------
-/**
- * Where one player's mouse is pointing on the ground, so the players allied with them can see it.
- * Two coordinates and nothing else: the height comes off the receiver's own terrain, which both
- * machines already agree about, and the name and colour come from the player the slot belongs to.
- */
-class NetAllyCursorCommandMsg : public NetCommandMsg
-{
- MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE(NetAllyCursorCommandMsg, "NetAllyCursorCommandMsg")
-public:
- NetAllyCursorCommandMsg();
-
- Real getX();
- Real getY();
- void setPosition( Real x, Real y );
-
-protected:
- Real m_x;
- Real m_y;
-};
-
//-----------------------------------------------------------------------------
class NetDisconnectVoteCommandMsg : public NetCommandMsg
{
diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetPacket.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetPacket.h
index e122317e4..4cf40925c 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetPacket.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetPacket.h
@@ -105,7 +105,6 @@ protected:
static UnsignedInt GetDisconnectFrameCommandSize(NetCommandMsg *msg);
static UnsignedInt GetDisconnectScreenOffCommandSize(NetCommandMsg *msg);
static UnsignedInt GetFrameResendRequestCommandSize(NetCommandMsg *msg);
- static UnsignedInt GetAllyCursorCommandSize(NetCommandMsg *msg);
static void FillBufferWithGameCommand(UnsignedByte *buffer, NetCommandRef *msg);
static void FillBufferWithAckCommand(UnsignedByte *buffer, NetCommandRef *msg);
@@ -131,7 +130,6 @@ protected:
static void FillBufferWithDisconnectFrameMessage(UnsignedByte *buffer, NetCommandRef *msg);
static void FillBufferWithDisconnectScreenOffMessage(UnsignedByte *buffer, NetCommandRef *msg);
static void FillBufferWithFrameResendRequestMessage(UnsignedByte *buffer, NetCommandRef *msg);
- static void FillBufferWithAllyCursorMessage(UnsignedByte *buffer, NetCommandRef *msg);
Bool addFrameCommand(NetCommandRef *msg);
Bool isRoomForFrameMessage(NetCommandRef *msg);
@@ -186,8 +184,6 @@ protected:
Bool isRoomForDisconnectScreenOffMessage(NetCommandRef *msg);
Bool addFrameResendRequestCommand(NetCommandRef *msg);
Bool isRoomForFrameResendRequestMessage(NetCommandRef *msg);
- Bool addAllyCursorCommand(NetCommandRef *msg);
- Bool isRoomForAllyCursorMessage(NetCommandRef *msg);
Bool isAckRepeat(NetCommandRef *msg);
Bool isAckBothRepeat(NetCommandRef *msg);
@@ -222,7 +218,6 @@ protected:
static NetCommandMsg * readDisconnectFrameMessage(UnsignedByte *data, Int &i);
static NetCommandMsg * readDisconnectScreenOffMessage(UnsignedByte *data, Int &i);
static NetCommandMsg * readFrameResendRequestMessage(UnsignedByte *data, Int &i);
- static NetCommandMsg * readAllyCursorMessage(UnsignedByte *data, Int &i);
void writeGameMessageArgumentToPacket(GameMessageArgumentDataType type, GameMessageArgumentType arg);
static void readGameMessageArgumentFromPacket(GameMessageArgumentDataType type, NetGameCommandMsg *msg, UnsignedByte *data, Int &i);
diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkDefs.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkDefs.h
index 5e68f40fc..9ed808e3f 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkDefs.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkDefs.h
@@ -191,8 +191,6 @@ enum NetCommandType {
NETCOMMANDTYPE_FILEANNOUNCE,
NETCOMMANDTYPE_FILEPROGRESS,
NETCOMMANDTYPE_FRAMERESENDREQUEST,
- NETCOMMANDTYPE_ALLYCURSOR, // Where an ally's mouse is pointing. Carries no game state and
- // is never acked or resent - a lost one is replaced 100ms later.
// Disconnect menu command section.
NETCOMMANDTYPE_DISCONNECTSTART,
diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkInterface.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkInterface.h
index 80c9f61bb..ec6968352 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkInterface.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/NetworkInterface.h
@@ -81,10 +81,6 @@ public:
virtual void sendChat(UnicodeString text, Int playerMask) = 0; ///< Send a chat line using the normal system.
virtual void sendDisconnectChat(UnicodeString text) = 0; ///< Send a chat line using the disconnect manager.
- /// Tell the players in the mask where the local mouse is pointing. Unacked and unresent - a
- /// lost one is replaced by the next.
- virtual void sendAllyCursor(Real x, Real y, Int playerMask) = 0;
-
virtual void sendFile(AsciiString path, UnsignedByte playerMask, UnsignedShort commandID) = 0;
virtual UnsignedShort sendFileAnnounce(AsciiString path, UnsignedByte playerMask) = 0;
virtual Int getFileTransferProgress(Int playerID, AsciiString path) = 0;
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp
index c82ac2288..55cbfeb82 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp
@@ -1775,17 +1775,17 @@ Int parseTextLanguage(char *args[], int num)
return 1;
}
-/* -interface <classic|reforged>: the interface for this run, the only way to pick it; the launcher
- * passes it, and without it the run is Classic. Client only. */
-Int parseInterfaceStyle(char *args[], int num)
+/* -mouse <classic|reforged>: the mouse for this run, the only way to pick it; the launcher passes
+ * it, and without it the run is Classic. Client only. */
+Int parseMouseStyle(char *args[], int num)
{
if (TheWritableGlobalData && num > 1)
{
if (strcasecmp(args[1], "classic") == 0)
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ TheWritableGlobalData->m_mouseStyle = MOUSE_STYLE_CLASSIC;
else if (strcasecmp(args[1], "reforged") == 0)
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_REFORGED;
- DEBUG_LOG(("-interface: %s\n", TheWritableGlobalData->m_interfaceStyle == INTERFACE_STYLE_CLASSIC ? "classic" : "reforged"));
+ TheWritableGlobalData->m_mouseStyle = MOUSE_STYLE_REFORGED;
+ DEBUG_LOG(("-mouse: %s\n", TheWritableGlobalData->m_mouseStyle == MOUSE_STYLE_CLASSIC ? "classic" : "reforged"));
return 2;
}
return 1;
@@ -2811,7 +2811,7 @@ static CommandLineParam params[] =
{ "-msaa", parseMSAA },
{ "-d3d9", parseDirect3D9 },
{ "-language", parseTextLanguage },
- { "-interface", parseInterfaceStyle },
+ { "-mouse", parseMouseStyle },
{ "-dx11dump", parseDirect3D11Dump },
{ "-dx11post", parseDirect3D11Post },
{ "-autocamera", parseAutoCamera },
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
index d6fad83b6..8d9bdbdeb 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp
@@ -1243,9 +1243,7 @@ void GameEngine::init( int argc, char *argv[] )
AsciiString fname;
fname.format("Data\\%s\\CommandMap.ini", GetRegistryLanguage().str());
- initSubsystem(TheMetaMap,"TheMetaMap", MSGNEW("GameEngineSubsystem") MetaMap(), NULL, fname.str(), "Data\\INI\\CommandMapReforged.ini");
- // Classic answers to the game's own map and to nothing this fork binds
- TheMetaMap->loadClassicBindings(fname);
+ initSubsystem(TheMetaMap,"TheMetaMap", MSGNEW("GameEngineSubsystem") MetaMap(), NULL, fname.str(), NULL);
#if defined(_DEBUG) || defined(_INTERNAL)
ini.load("Data\\INI\\CommandMapDebug.ini", INI_LOAD_MULTIFILE, NULL);
@@ -1694,8 +1692,6 @@ extern Real TheSceneDrawMS; ///< ...of which the 3D world
extern Real TheUIDrawMS; ///< ...and the interface over it
extern Real TheUIPostDrawMS; ///< ...of which the overlays and the HUD strips
extern Real TheWindowRepaintMS; ///< ...and the window system's repaint
-extern Real TheStripGatherMS; ///< ...of the overlays, the production strip's sweep
-extern Real TheStripDrawMS; ///< ...and the production strip's own drawing
extern Real TheParticleUpdateMS; ///< GameClient.cpp: the three places particles cost
extern Real TheParticleFillMS;
extern Real TheTranslucentMS;
@@ -2705,7 +2701,6 @@ void GameEngine::update( void )
static UnsignedInt fpsWindowStart = Clock_Milliseconds();
static Real fpsRadarTotal = 0.0f, fpsAudioTotal = 0.0f, fpsDrawTotal = 0.0f, fpsDrawMax = 0.0f;
static Real fpsSceneTotal = 0.0f, fpsUITotal = 0.0f, fpsPostTotal = 0.0f, fpsWinTotal = 0.0f;
- static Real fpsStripGatherTotal = 0.0f, fpsStripDrawTotal = 0.0f;
static Real fpsShadowTotal = 0.0f, fpsFillTotal = 0.0f, fpsTranslucentTotal = 0.0f;
static Real fpsPostChainTotal = 0.0f, fpsIconTotal = 0.0f;
static Real fpsSortTotal = 0.0f, fpsCopyTotal = 0.0f, fpsSortDrawTotal = 0.0f;
@@ -2716,7 +2711,6 @@ void GameEngine::update( void )
Real clientMS = 0.0f, logicMS = 0.0f, radarMS = 0.0f, audioMS = 0.0f;
Int logicTicks = 0;
TheClientDrawMS = TheSceneDrawMS = TheUIDrawMS = TheUIPostDrawMS = TheWindowRepaintMS = 0.0f;
- TheStripGatherMS = TheStripDrawMS = 0.0f;
TheParticleUpdateMS = TheParticleFillMS = TheTranslucentMS = 0.0f;
TheTranslucentDraws = TheSortingPolygonsRefused = TheParticlesPastGroupLimit = 0;
TheShadowMapMS = ThePostChainMS = TheIconDrawMS = 0.0f;
@@ -2963,8 +2957,6 @@ void GameEngine::update( void )
fpsUITotal += TheUIDrawMS;
fpsPostTotal += TheUIPostDrawMS;
fpsWinTotal += TheWindowRepaintMS;
- fpsStripGatherTotal += TheStripGatherMS;
- fpsStripDrawTotal += TheStripDrawMS;
fpsShadowTotal += TheShadowMapMS;
fpsFillTotal += TheParticleFillMS;
fpsTranslucentTotal += TheTranslucentMS;
@@ -3012,7 +3004,7 @@ void GameEngine::update( void )
// 'hz' is the rate the simulation actually achieved and 'catchup' how many render
// frames were dropped to hold it there; hz short of m_maxFPS with catchup passes
// present is the logic side being genuinely over budget, not the pacer.
- DEBUG_LOG(("FPS %.0f over %dms (%d frames, %d hz, %d catchup, logic frame %d) | client avg %.1f max %.1f (render avg %.1f max %.1f [scene %.1f, ui %.1f (post %.1f [strip gather %.1f, draw %.1f], win %.1f), present %.1f], radar %.1f, audio %.1f, rest %.1f) | logic avg %.1f max %.1f | unaccounted %.1fms\n",
+ DEBUG_LOG(("FPS %.0f over %dms (%d frames, %d hz, %d catchup, logic frame %d) | client avg %.1f max %.1f (render avg %.1f max %.1f [scene %.1f, ui %.1f (post %.1f, win %.1f), present %.1f], radar %.1f, audio %.1f, rest %.1f) | logic avg %.1f max %.1f | unaccounted %.1fms\n",
fps, (Int)windowMS, fpsFrames,
(Int)((Real)fpsLogicTicks * 1000.0f / (Real)windowMS + 0.5f), fpsCatchupPasses,
TheGameLogic->getFrame(),
@@ -3020,7 +3012,6 @@ void GameEngine::update( void )
fpsDrawTotal / fpsFrames, fpsDrawMax,
fpsSceneTotal / fpsFrames, fpsUITotal / fpsFrames,
fpsPostTotal / fpsFrames,
- fpsStripGatherTotal / fpsFrames, fpsStripDrawTotal / fpsFrames,
fpsWinTotal / fpsFrames,
( fpsDrawTotal - fpsSceneTotal - fpsUITotal ) / fpsFrames,
fpsRadarTotal / fpsFrames, fpsAudioTotal / fpsFrames,
@@ -3042,7 +3033,6 @@ void GameEngine::update( void )
fpsClientTotal = fpsLogicTotal = 0.0f;
fpsRadarTotal = fpsAudioTotal = fpsDrawTotal = fpsDrawMax = 0.0f;
fpsSceneTotal = fpsUITotal = fpsPostTotal = fpsWinTotal = 0.0f;
- fpsStripGatherTotal = fpsStripDrawTotal = 0.0f;
fpsShadowTotal = fpsFillTotal = fpsTranslucentTotal = 0.0f;
fpsPostChainTotal = fpsIconTotal = 0.0f;
fpsSortTotal = fpsCopyTotal = fpsSortDrawTotal = 0.0f;
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
index 9a3f8164b..923948e3f 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
@@ -215,12 +215,9 @@ static void parseIgnoredField( INI *, void *, void *, const void * )
{ "ZoomToCursor", INI::parseBool, NULL, offsetof( GlobalData, m_zoomToCursor ) },
{ "IsometricCamera", INI::parseBool, NULL, offsetof( GlobalData, m_isometricCamera ) },
{ "FormationDrag", INI::parseBool, NULL, offsetof( GlobalData, m_formationDrag ) },
- { "ShowAllyCursors", INI::parseBool, NULL, offsetof( GlobalData, m_showAllyCursors ) },
{ "ChromaLighting", INI::parseBool, NULL, offsetof( GlobalData, m_chromaLighting ) },
{ "ShowHudOverlay", INI::parseBool, NULL, offsetof( GlobalData, m_showHudOverlay ) },
- { "ShowPlacementRangeRing", INI::parseBool, NULL, offsetof( GlobalData, m_showPlacementRangeRing ) },
{ "WorkersReturnToSupply", INI::parseBool, NULL, offsetof( GlobalData, m_workersReturnToSupply ) },
- { "DetailedBuildTooltips", INI::parseBool, NULL, offsetof( GlobalData, m_detailedBuildTooltips ) },
{ "ArchiveReplays", INI::parseBool, NULL, offsetof( GlobalData, m_archiveReplays ) },
{ "Bloom", INI::parseInt, NULL, offsetof( GlobalData, m_bloomIntensity ) },
{ "MinCameraHeight", INI::parseReal, NULL, offsetof( GlobalData, m_minCameraHeight ) },
@@ -963,9 +960,8 @@ GlobalData::GlobalData()
m_showObjectHealth = FALSE;
// what this fork has always done, so nobody's game changes until they say so
m_healthBarMode = HEALTH_BAR_ALWAYS;
- m_hudScale = 0;
- // the game as it shipped unless the launcher passes -interface reforged
- m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ // the game's own mouse unless the launcher passes -mouse reforged
+ m_mouseStyle = MOUSE_STYLE_CLASSIC;
// the lobby's own colours until somebody asks for something else
m_playerColorScheme = PLAYER_COLORS_ORIGINAL;
// the words the game shipped with until somebody picks a translation
@@ -1168,18 +1164,9 @@ GlobalData::GlobalData()
m_zoomToCursor = FALSE; // the wheel zooms on the middle of the screen, as 1.04 did, until ticked
m_zoomSpeed = 100; // a notch moves the camera the 60 units it always did
m_isometricCamera = FALSE;
- // R1, smooth motion: the picture only, one logic tick behind, and never the game (W3DSmoothMotion.h).
- // On by default off Windows, where 120 and 144 Hz panels are the common case; Windows keeps its
- // picture as it was unless a player opts in.
-#if defined(_WIN32)
- m_smoothMotion = FALSE;
-#else
- m_smoothMotion = TRUE;
-#endif
m_dragTolerance = 25; // what Mouse.ini in INIZH.big says, so nothing moves until the slider does
// a left drag with the move, attack move or guard key armed draws a formation line
m_formationDrag = TRUE;
- m_showAllyCursors = TRUE;
m_chromaLighting = TRUE; //costs nothing on a machine with no Razer server: the handshake fails once
m_menuTransitionSpeed = 100;
m_textureFilterMode = 2; // anisotropic; retail shipped bilinear on a 2003 fill-rate budget
@@ -1201,13 +1188,8 @@ GlobalData::GlobalData()
m_showHudOverlay = FALSE;
#endif
m_showNetBox = TRUE;
- m_incomeRateMode = INCOME_RATE_PER_SECOND;
m_showEmptyBuildingPips = TRUE;
- m_showPlacementRangeRing = TRUE;
- m_showSkillStrip = TRUE;
- m_showSuperweaponStrip = TRUE;
m_workersReturnToSupply = TRUE;
- m_detailedBuildTooltips = TRUE;
m_archiveReplays = TRUE;
// Glow defaults to the options screen's Medium, 50 percent. GameData.ini sets the field as a
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
index 883df15d1..db810e78b 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
@@ -46,8 +46,6 @@
static Int get_##field( void ) { return TheGlobalData->field; } \
static void set_##field( Int value ) { TheWritableGlobalData->field = value; }
-OPTION_BOOL_ACCESSORS( m_useCameraConstraints )
-
static Int get_m_cameraBoundaryMargin( void ) { return TheGlobalData->m_cameraBoundaryMargin; }
static void set_m_cameraBoundaryMargin( Int value )
{
@@ -67,7 +65,6 @@ OPTION_BOOL_ACCESSORS( m_nudgeBuildPlacement )
OPTION_BOOL_ACCESSORS( m_zoomToCursor )
OPTION_INT_ACCESSORS( m_zoomSpeed )
OPTION_BOOL_ACCESSORS( m_isometricCamera )
-OPTION_BOOL_ACCESSORS( m_smoothMotion )
OPTION_BOOL_ACCESSORS( m_startAtMaxZoom )
// This catalog loads before there is a mouse, so the value waits in GlobalData and Mouse::parseIni
@@ -89,7 +86,6 @@ static void set_m_ambientVolume( Int value )
TheAudio->setVolume( value / 100.0f, (AudioAffect)(AudioAffect_Ambient | AudioAffect_SystemSetting) );
}
OPTION_BOOL_ACCESSORS( m_formationDrag )
-OPTION_BOOL_ACCESSORS( m_showAllyCursors )
OPTION_BOOL_ACCESSORS( m_chromaLighting )
OPTION_INT_ACCESSORS( m_bloomIntensity )
OPTION_INT_ACCESSORS( m_menuTransitionSpeed )
@@ -101,12 +97,10 @@ OPTION_INT_ACCESSORS( m_msaaLevel )
OPTION_BOOL_ACCESSORS( m_vsync )
OPTION_BOOL_ACCESSORS( m_classicGraphics )
OPTION_INT_ACCESSORS( m_healthBarMode )
-OPTION_INT_ACCESSORS( m_hudScale )
OPTION_INT_ACCESSORS( m_playerColorScheme )
OPTION_INT_ACCESSORS( m_textLanguage )
OPTION_BOOL_ACCESSORS( m_showOrderLines )
OPTION_BOOL_ACCESSORS( m_showNetBox )
-OPTION_INT_ACCESSORS( m_incomeRateMode )
OPTION_BOOL_ACCESSORS( m_showEmptyBuildingPips )
OPTION_BOOL_ACCESSORS( m_useShadowVolumesForSkins )
OPTION_BOOL_ACCESSORS( m_shadowsForProjectiles )
@@ -115,8 +109,6 @@ OPTION_BOOL_ACCESSORS( m_shadowsForParticles )
OPTION_BOOL_ACCESSORS( m_particleGroundBounce )
OPTION_BOOL_ACCESSORS( m_volumetricSmokeShadows )
OPTION_BOOL_ACCESSORS( m_smokeFireLighting )
-OPTION_BOOL_ACCESSORS( m_showSkillStrip )
-OPTION_BOOL_ACCESSORS( m_showSuperweaponStrip )
//-----------------------------------------------------------------------------
static const unsigned TheMsaaSamples[ OPTION_MSAA_LEVEL_COUNT ] = { 0, 2, 4, 8, 16 };
@@ -217,11 +209,9 @@ const OptionDef TheOptionCatalog[] =
// The camera and mouse habits below have no control in OptionsMenu.wnd any more. They are
// not gone: an empty widgetName only makes the menu passes skip the row, so Options.ini still
// loads, clamps and saves each one and a player who wants the old behaviour can put the key
- // back by hand. The defaults in GlobalData are what everybody else gets.
-
- { "UseCameraConstraints", "", "",
- OPTION_BOOL, APPLY_LIVE, 0, 1,
- get_m_useCameraConstraints, set_m_useCameraConstraints },
+ // back by hand. The defaults in GlobalData are what everybody else gets. UseCameraConstraints
+ // left the catalog: the camera keeps the map's own limits as the game shipped, and only
+ // -noViewLimit lifts them.
{ "CameraBoundaryMargin", "", "",
OPTION_INT, APPLY_LIVE, 0, 1000,
@@ -287,12 +277,6 @@ const OptionDef TheOptionCatalog[] =
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_isometricCamera, set_m_isometricCamera },
- // R1: models drawn between their last two logic states on every render frame, so motion is smooth
- // on a panel faster than the 30 Hz logic. The picture only, one logic tick behind; never the game.
- // Its default is GlobalData's: on off Windows, off on Windows. On Options > Display.
- { "SmoothMotion", OPT_WND( "CheckSmoothMotion" ), "GUI:SmoothMotion",
- OPTION_BOOL, APPLY_LIVE, 0, 1,
- get_m_smoothMotion, set_m_smoothMotion },
// A match opens as far out as the wheel goes, or 300 over the ground (View::setZoomToStart).
// Read when the map loads, so it counts from the next match. On Options > Controls in both
// interfaces. A new key for the snaps' reason above: StartAtMaxZoom is a "yes" in old files.
@@ -320,13 +304,6 @@ const OptionDef TheOptionCatalog[] =
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_formationDrag, set_m_formationDrag },
- // In a network game, each ally's mouse is drawn on the map with their name over it and a patch
- // of their colour under it. Off and neither end of it happens: nothing is sent and nothing is
- // drawn, so a player who does not want to be watched turns it off on their own machine.
- { "ShowAllyCursors", "", "",
- OPTION_BOOL, APPLY_LIVE, 0, 1,
- get_m_showAllyCursors, set_m_showAllyCursors },
-
// The match on Razer hardware: the command bar on the letter keys, power on the digits,
// superweapons on the numpad, money on the mousepad. Only during a match; off, and in every
// menu, the keyboard goes back to whatever Synapse wants to do with it. On Options > Controls.
@@ -418,15 +395,8 @@ const OptionDef TheOptionCatalog[] =
OPTION_ENUM, APPLY_LIVE, 0, HEALTH_BAR_MODE_COUNT - 1,
get_m_healthBarMode, set_m_healthBarMode },
- // How big the command bar and the rest of the bottom HUD are drawn: 100%, 115%, 130% or 150% of
- // the size the resolution picks. The page lays itself out again when the scale changes.
- { "HudScale", OPT_WND( "ComboBoxHudScale" ), "GUI:HudScale",
- OPTION_ENUM, APPLY_LIVE, 0, HUD_SCALE_COUNT - 1,
- get_m_hudScale, set_m_hudScale },
-
- // MenuLayout (stretch or fit) used to sit here. Every menu is fitted now, in both interfaces.
- // InterfaceStyle is not a row either: the launcher picks it with -interface for each run, and a
- // run without the switch is Classic whatever an older Options.ini says.
+ // MenuLayout (stretch or fit), HudScale and InterfaceStyle used to sit here. Every menu is
+ // fitted now, and there is one interface at one size.
// Whose colour a player is drawn in. Purely local: the match still agrees on the lobby's
// colours and this only changes what this screen puts on top of them, so two people in the same
@@ -450,13 +420,6 @@ const OptionDef TheOptionCatalog[] =
OPTION_BOOL, APPLY_LIVE, 0, 1,
get_m_showNetBox, set_m_showNetBox },
- // The income beside the money: per second, per minute, or automatic, which is per minute while
- // the player earns under ten dollars a second and per second from there up. A supply line
- // bringing in $135 a minute reads "+2/s" per second, and losing a third of it still reads "+2/s".
- { "IncomeRate", OPT_WND( "ComboBoxIncomeRate" ), "GUI:IncomeRate",
- OPTION_ENUM, APPLY_LIVE, 0, INCOME_RATE_MODE_COUNT - 1,
- get_m_incomeRateMode, set_m_incomeRateMode },
-
// The row of slots over a building that holds troops is drawn empty too: ten grey boxes over a
// Barracks nobody is healing in. Off, a building wears its slots only while somebody is inside.
// Vehicles keep theirs either way, where an empty row is how much the transport carries.
@@ -515,18 +478,6 @@ const OptionDef TheOptionCatalog[] =
OPTION_BOOL, APPLY_RESTART, 0, 1,
get_m_particleGroundBounce, set_m_particleGroundBounce },
- // The strips over the battlefield while watching a match. They have no control in the options
- // menu: a spectator switches them from the drop-down in the top left corner, which writes them
- // back itself. Playing, every strip is drawn whatever these say. The production queues have no
- // switch: watching, they are on the Tab scoreboard, and playing, they are always drawn.
- { "ShowSkillStrip", NULL, "GUI:HudSkillStrip",
- OPTION_BOOL, APPLY_LIVE, 0, 1,
- get_m_showSkillStrip, set_m_showSkillStrip },
-
- { "ShowSuperweaponStrip", NULL, "GUI:HudSuperweaponStrip",
- OPTION_BOOL, APPLY_LIVE, 0, 1,
- get_m_showSuperweaponStrip, set_m_showSuperweaponStrip },
-
{ NULL, NULL, NULL, OPTION_BOOL, APPLY_LIVE, 0, 0, NULL, NULL }
};
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp b/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp
index c37b64fc4..7237f6247 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp
@@ -1778,7 +1778,6 @@ void Player::preTeamDestroy( const Team *team )
//-------------------------------------------------------------------------------------------------
void Player::onStructureCreated( Object *builder, Object *structure )
{
- TheInGameUI->feedStructure( structure, FALSE );
} // end onStructureCreated
//-------------------------------------------------------------------------------------------------
@@ -1810,7 +1809,6 @@ void Player::onStructureConstructionComplete( Object *builder, Object *structure
// the GUI needs to re-evaluate the information being displayed to the user now
if( TheControlBar )
TheControlBar->markUIDirty();
- TheInGameUI->feedStructure( structure, TRUE );
// This object may require us to play some EVA sounds.
Player *localPlayer = ThePlayerList->getLocalPlayer();
@@ -2786,7 +2784,6 @@ Bool Player::attemptToPurchaseScience(ScienceType science)
addScience(science);
getAcademyStats()->recordGeneralsPointsSpent( cost );
- TheInGameUI->feedScience( this, science );
if( ThePlayerList->getLocalPlayer() == this )
{
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/System/ControlServer.cpp b/GeneralsMD/Code/GameEngine/Source/Common/System/ControlServer.cpp
index 7c8c7d0c3..348a4707e 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/System/ControlServer.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/ControlServer.cpp
@@ -836,8 +836,8 @@ static void handleCommand( const AsciiString &command )
}
/* spectator <action>
- What a data-click on the spectator's page does, without finding its pixel: camera:director,
- follow:3, fog, flip:camera and the rest of the actions Window/Html/Spectator.html names. */
+ One of the spectator's actions by name: camera:director, follow:3, fog, flip:camera and the
+ rest that InGameUI::runSpectatorAction knows. */
if (strncmp( command.str(), "spectator ", 10 ) == 0)
{
TheInGameUI->runSpectatorAction( command.str() + 10 );
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp b/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp
index 0fb2be862..53d4cfe67 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/FileSystem.cpp
@@ -487,7 +487,7 @@ AsciiString FileSystem::modLooseFile(const AsciiString& filename, Bool *inModArc
Bool FileSystem::isForkOwnedPath(const AsciiString& filename)
{
// What the fork installs loose next to the exe: the launcher's payload, which is the post-build copy
- // of Code/Data (less Scenarios, Cinema and the shader cache) plus the classic bar textures.
+ // of Code/Data (less Scenarios, Cinema and the shader cache).
// Tests/test_gameengine.cpp walks Code/Data and fails when a master falls outside this. Retail's own
// loose files (Data\Scripts\MultiplayerScripts.scb, the movies, the cursors) are not in it, so a mod
// still replaces those. Nor is the fork's SkirmishScripts.scb, by the owner's call: a mod's skirmish
@@ -510,7 +510,7 @@ Bool FileSystem::isForkOwnedPath(const AsciiString& filename)
return TRUE;
return p == "data\\patch.str"
|| starts("data\\turkish\\") || starts("data\\german\\")
- || starts("art\\textures\\reforged") || starts("art\\textures\\classicwidebar")
+ || starts("art\\textures\\reforged")
|| starts("window\\")
|| p == "install_final.bmp";
}
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/System/MemoryInit.cpp b/GeneralsMD/Code/GameEngine/Source/Common/System/MemoryInit.cpp
index aa2e54aae..8ecb6867b 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/System/MemoryInit.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/MemoryInit.cpp
@@ -620,7 +620,6 @@ static PoolSizeRec sizes[] =
{ "NetPacketRouterAckCommandMsg", 32, 32 },
{ "NetDisconnectChatCommandMsg", 32, 32 },
{ "NetChatCommandMsg", 32, 32 },
- { "NetAllyCursorCommandMsg", 32, 32 },
{ "NetDisconnectVoteCommandMsg", 32, 32 },
{ "NetProgressCommandMsg", 32, 32 },
{ "NetWrapperCommandMsg", 32, 32 },
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/System/Radar.cpp b/GeneralsMD/Code/GameEngine/Source/Common/System/Radar.cpp
index 9174c4bf7..e60cd2197 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/System/Radar.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/Radar.cpp
@@ -278,31 +278,6 @@ void Radar::clearAllEvents( void )
} // end clearAllEvents
-//-------------------------------------------------------------------------------------------------
-/** Which landmark this object is, if it is one at all. Supply sources and the neutral tech
- * buildings decide who can afford an army, and both of them stand where the map maker put them
- * for the whole match, so the radar treats them as terrain rather than as contacts. */
-//-------------------------------------------------------------------------------------------------
-RadarLandmarkType Radar::landmarkTypeOf( const Object *obj )
-{
- // Classic's radar is EA's: no money piles, no tech buildings it was not already showing
- if( TheGlobalData->isClassicUI() )
- return RADAR_LANDMARK_NONE;
-
- if( obj->isKindOf( KINDOF_SUPPLY_SOURCE ) )
- return RADAR_LANDMARK_SUPPLY;
-
- //
- // KINDOF_CAPTURABLE is on every faction structure as well, because Black Lotus takes those,
- // so it is the tech building kind that names the neutral ones a rifleman walks into.
- //
- if( obj->isKindOf( KINDOF_TECH_BUILDING ) )
- return RADAR_LANDMARK_CAPTURABLE;
-
- return RADAR_LANDMARK_NONE;
-
-} // end landmarkTypeOf
-
//-------------------------------------------------------------------------------------------------
/** Reset radar data */
//-------------------------------------------------------------------------------------------------
@@ -430,20 +405,7 @@ void Radar::addObject( Object *obj )
// get the radar priority for this object
RadarPriorityType newPriority = obj->getRadarPriority();
if( isPriorityVisible( newPriority ) == FALSE )
- {
-
- //
- // TechOilDerrick and TechHospital name no RadarPriority at all, so the template default
- // leaves them off the radar entirely and the buildings the match is fought over are the
- // one thing the minimap never showed. A landmark whose template said nothing joins the
- // list at structure priority; NOT_ON_RADAR is a decision and is still obeyed.
- //
- if( newPriority != RADAR_PRIORITY_INVALID || landmarkTypeOf( obj ) == RADAR_LANDMARK_NONE )
- return;
-
- newPriority = RADAR_PRIORITY_STRUCTURE;
-
- } // end if
+ return;
// if this object is on the radar, remove it in favor of the new add
RadarObject **list;
@@ -1242,7 +1204,7 @@ void Radar::tryUnderAttackEvent( const Object *obj )
// if event created, do some more feedback
if( eventCreated )
{
- // the lamp beside the radar; only the Classic bar has one to light
+ // the lamp beside the radar
if( TheControlBar )
TheControlBar->triggerRadarAttackGlow();
//
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/Display.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/Display.cpp
index c809d00ee..39693d449 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/Display.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/Display.cpp
@@ -51,10 +51,7 @@ UIRect TheUIRect( void )
UIRect none = { 0, 0, 800, 600 };
return none;
}
- if( TheGlobalData && TheGlobalData->isClassicUI() )
- return UIRectForScreen( TheDisplay->getWidth(), TheDisplay->getHeight() );
- UIRect screen = { 0, 0, (Int)TheDisplay->getWidth(), (Int)TheDisplay->getHeight() };
- return screen;
+ return UIRectForScreen( TheDisplay->getWidth(), TheDisplay->getHeight() );
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
index 4cd530320..c783f803b 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/Drawable.cpp
@@ -5806,9 +5806,8 @@ Bool Drawable::isSelectable( void ) const
//-------------------------------------------------------------------------------------------------
Bool Drawable::isMassSelectable( void ) const
{
- // Classic is the game as shipped, where a structure was only ever selected on its own
- return getObject() && getObject()->isMassSelectable()
- && !( TheGlobalData->isClassicUI() && getObject()->isKindOf( KINDOF_STRUCTURE ) );
+ // the game as shipped, where a structure was only ever selected on its own
+ return getObject() && getObject()->isMassSelectable() && !getObject()->isKindOf( KINDOF_STRUCTURE );
}
//-------------------------------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp
index 86e499cb2..0d9f71559 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp
@@ -428,8 +428,7 @@ void ControlBar::getOrderKeyPlaces( Int *keys ) const
Bool ControlBar::getCommandPlaces( Int *places ) const
{
// a context without the command group hides the group's parent. Its buttons stay as the last
- // selection set them and are not on the bar. A building going up and one counting down to a
- // unit put their own button on the grid in placeContextOnGrid.
+ // selection set them and are not on the bar.
const Bool groupShown = !m_contextParent[ CP_COMMAND ]->winIsHidden();
Int types[ MAX_COMMANDS_PER_SET ];
Int groups[ MAX_COMMANDS_PER_SET ];
@@ -529,48 +528,6 @@ void ControlBar::pressCommandButton( Int place )
} // end pressCommandButton
-//-------------------------------------------------------------------------------------------------
-/** Build the menu and back buttons a paged builder shows. They carry no thing template and no
- text label of their own - the page they open is told by the cameo of its first structure, and
- by the grid letter setControlCommand paints in the corner. */
-//-------------------------------------------------------------------------------------------------
-void ControlBar::makeBuildPageButtons( void )
-{
- // Classic's command sets are EA's slot for slot: no pages
- if( TheGlobalData->isClassicUI() )
- return;
-
- AsciiString name;
- for( Int page = 0; page < BUILD_PAGE_COUNT; page++ )
- {
- name.format( "NonCommand_BuildPage%d", page + 1 );
- m_buildPageButton[ page ] = newCommandButton( name );
- m_buildPageButton[ page ]->friend_setCommandType( GUI_COMMAND_BUILD_PAGE );
- m_buildPageButton[ page ]->friend_setBorderType( COMMAND_BUTTON_BORDER_SYSTEM );
- }
-
- m_buildPageBackButton = newCommandButton( AsciiString( "NonCommand_BuildPageBack" ) );
- m_buildPageBackButton->friend_setCommandType( GUI_COMMAND_BUILD_PAGE );
- m_buildPageBackButton->friend_setBorderType( COMMAND_BUTTON_BORDER_SYSTEM );
-
-} // end makeBuildPageButtons
-
-//-------------------------------------------------------------------------------------------------
-/** Show 'page' of the selected builder's structures, BUILD_PAGE_ROOT for the menu buttons. */
-//-------------------------------------------------------------------------------------------------
-void ControlBar::setBuildPage( Int page )
-{
- if( page < BUILD_PAGE_ROOT || page >= BUILD_PAGE_COUNT )
- page = BUILD_PAGE_ROOT;
-
- if( m_buildPage == page )
- return;
-
- m_buildPage = page;
- markUIDirty();
-
-} // end setBuildPage
-
/// mark the UI as dirty so the context of everything is re-evaluated
void ControlBar::markUIDirty( void )
{
@@ -676,10 +633,8 @@ void ControlBar::watchPlayer( Player *player )
}
// a seat clicked at the top clears the selection before it gets here, so what is selected is
- // read again rather than taken from the caller; the portrait's panel is the selection's
+ // read again rather than taken from the caller
m_watchedSelection = getSelectedPlayer();
- if( m_currentControlBarStage == CONTROL_BAR_STAGE_DEFAULT )
- showPanel( CB_PANEL_RIGHT, m_watchedSelection != NULL );
}
Player *ControlBar::getWatchedPlayer( void )
@@ -1441,10 +1396,6 @@ ControlBar::ControlBar( void )
m_currentControlBarStage = CONTROL_BAR_STAGE_DEFAULT;
m_buildToolTipLayout = NULL;
m_showBuildToolTipLayout = FALSE;
- m_boardCardButton = NULL;
- m_boardCardOwner = NULL;
- m_boardCardShown = FALSE;
- m_boardCardWasShown = FALSE;
// Added By Sadullah Nader
// initializing vars to zero
@@ -1473,12 +1424,7 @@ ControlBar::ControlBar( void )
{
m_panelRect[ i ].lo.x = m_panelRect[ i ].lo.y = 0;
m_panelRect[ i ].hi.x = m_panelRect[ i ].hi.y = 0;
- m_panelHidden[ i ] = FALSE;
- m_panelSlide[ i ] = 0.0f;
- m_panelSlideTo[ i ] = 0.0f;
- m_panelDropCap[ i ] = 0;
}
- m_panelSlideMs = 0;
m_panelOrigin.x = m_panelOrigin.y = 0;
for( i = 0; i < MAX_COMMANDS_PER_SET; i++ )
{
@@ -1503,7 +1449,6 @@ ControlBar::ControlBar( void )
m_specialPowerShortcutParent = NULL;
m_specialPowerShortcutRow = -1;
m_specialPowerShortcutRowMs = 0;
- m_borrowedTrayCount = 0;
m_purchaseScienceColumn = -1;
m_purchaseScienceColumnMs = 0;
m_specialPowerLayout = NULL;
@@ -1516,9 +1461,6 @@ ControlBar::ControlBar( void )
m_communicatorButton = NULL;
m_currentSelectedDrawable = NULL;
m_currContext = CB_CONTEXT_NONE;
- for( i = 0; i < BUILD_PAGE_COUNT; i++ )
- m_buildPageButton[ i ] = NULL;
- m_buildPageBackButton = NULL;
m_upgradeSpreadFrame = 0;
m_upgradeSpreadEntries = 0;
for( i = 0; i < UPGRADE_SPREAD_MAX; i++ )
@@ -1534,9 +1476,6 @@ ControlBar::ControlBar( void )
}
m_multiSelectGroupCount = 0;
m_multiSelectFocus = 0;
- m_buildPage = BUILD_PAGE_ROOT;
- m_buildPageObjectID = INVALID_ID;
- m_standInBuilderID = INVALID_DRAWABLE_ID;
m_rallyPointDrawableID = INVALID_DRAWABLE_ID;
m_displayedConstructPercent = -1.0f;
m_displayedOCLTimerSeconds = 0;
@@ -1562,8 +1501,6 @@ ControlBar::ControlBar( void )
m_genArrow = NULL;
m_sideSelectAnimateDown = FALSE;
updateCommanBarBorderColors(GAME_COLOR_UNDEFINED,GAME_COLOR_UNDEFINED,GAME_COLOR_UNDEFINED,GAME_COLOR_UNDEFINED);
-
- m_pageSolidsActive = FALSE;
m_radarAttackGlowWindow = NULL;
m_remainingRadarAttackGlowFrames = 0;
@@ -1657,13 +1594,6 @@ static const Real thePanelAnchorFraction[ ControlBar::CB_PANEL_COUNT ] = { 0.0f,
/// ...and which authored x that anchor is, so at 4:3 the three plates reassemble the shipped bar
static const Real thePanelAnchorDesignX[ ControlBar::CB_PANEL_COUNT ] = { 0.0f, 400.0f, 800.0f };
-/// The Classic interface. Its bar is laid out as Reforged's is, three plates at one scale, and keeps
-/// EA's habits on top: the beacon button, the under-attack lamp, and minimising as one piece.
-static Bool barIsClassic( void )
-{
- return TheGlobalData != NULL && TheGlobalData->isClassicUI();
-}
-
/// -modfactions: a mod's bar is up. Its painting was made for EA's layout, one stretch per axis over
/// the whole screen, so under it the panels are not at one scale and not pulled apart: the three
/// transforms below are the loader's own, and the windows go where the mod authored them.
@@ -1723,21 +1653,7 @@ Real ControlBarHudScale( void )
if( TheDisplay == NULL )
return 1.0f;
- // the player's HudScale option on top, 100/115/130/150%
- static const Real steps[] = { 1.0f, 1.15f, 1.3f, 1.5f };
- Int step = TheGlobalData ? TheGlobalData->m_hudScale : 0;
- if( step < 0 || step > 3 || barIsClassic() ) // EA's HUD has the one size
- step = 0;
-
- return ControlBarHudScaleFit( ControlBarHudScaleFor( TheDisplay->getWidth(), TheDisplay->getHeight() ) * steps[ step ],
- TheDisplay->getWidth() );
-}
-
-//-------------------------------------------------------------------------------------------------
-Real ControlBarHudScaleFit( Real scale, Int displayWidth )
-{
- const Real widest = (Real)displayWidth / InGameUI_consolePageWidth();
- return scale < widest ? scale : widest;
+ return ControlBarHudScaleFor( TheDisplay->getWidth(), TheDisplay->getHeight() );
}
//-------------------------------------------------------------------------------------------------
@@ -1875,29 +1791,13 @@ Bool ControlBarPanelDesignToScreen( Int panel, const IRegion2D *design,
struct ControlBarPanelPlacement
{
Bool known;
- Int panel; ///< which of the three it was put in, so a panel can be hidden as a unit
- Bool weHid; ///< TRUE while the minimised bar is what is hiding it, and not the context
+ Int panel; ///< which of the three it was put in
Real designX, designY, designW, designH;
Int placedX, placedY, placedW, placedH;
- Int slideApplied; ///< how far down applyPanelSlide has actually moved this one, in pixels
};
typedef std::map< GameWindow *, ControlBarPanelPlacement > ControlBarPanelPlacementMap;
static ControlBarPanelPlacementMap theControlBarPlacement;
-//-------------------------------------------------------------------------------------------------
-/** How far layoutPanels has to lift a window to put it back where applyPanelSlide found it. It is
- * what was recorded on the window, never what the panel's slide says now: applyPanelSlide leaves
- * windows behind - a plate marker is never moved, and a panel minimised with immediate = TRUE is
- * marked hidden before anything moves - and taking the panel's offset off one of those lifts a
- * window that never went down. The bar then climbed a little further off the bottom of the
- * screen every time the layout was rebuilt, and the tooltip, placed against BackgroundMarker,
- * climbed with it until it left the screen. Not static: the test calls it. */
-//-------------------------------------------------------------------------------------------------
-Int ControlBar_slideToUndo( Int slideAppliedToWindow, Int panelSlideOffsetNow )
-{
- return slideAppliedToWindow;
-}
-
//-------------------------------------------------------------------------------------------------
/** Which panel a direct child of ControlBarParent belongs to. Everything not named here rides in
* the middle, which is where the .wnd already puts the money, power and command windows - and
@@ -2173,19 +2073,6 @@ static const std::vector<UnsignedByte> &plateMask( const ControlBarPlate *plate
return mask;
}
-//-------------------------------------------------------------------------------------------------
-void ControlBar::setPageSolids( const std::vector< IRegion2D > *solids, const std::vector< IRegion2D > *holes )
-{
- m_pageSolidsActive = solids != NULL;
- if( solids )
- m_pageSolids = *solids;
- else
- m_pageSolids.clear();
- if( holes )
- m_pageHoles = *holes;
- else
- m_pageHoles.clear();
-}
//-------------------------------------------------------------------------------------------------
void ControlBar::triggerRadarAttackGlow( void )
@@ -2209,41 +2096,16 @@ Bool ControlBar::letsClickThrough( GameWindow *window, Int x, Int y )
if( shortName[ 0 ] != 0 && strcmp( shortName, "CenterBackground" ) != 0 )
return FALSE;
- // the CSS page is what is drawn, so what it drew solid is what is solid. Asked before the
- // children, because a see-through child the page does not draw - the observer's info window
- // spans the whole centre - would otherwise keep a click on bare battlefield
- if( m_pageSolidsActive )
- {
- // the page's own buttons hand their clicks on to the page, which takes them as clicks on
- // the world, even where they stand on a solid panel
- for( size_t hole = 0; hole < m_pageHoles.size(); hole++ )
- {
- const IRegion2D &rect = m_pageHoles[ hole ];
- if( x >= rect.lo.x && y >= rect.lo.y && x < rect.hi.x && y < rect.hi.y )
- return TRUE;
- }
- for( size_t solid = 0; solid < m_pageSolids.size(); solid++ )
- {
- const IRegion2D &rect = m_pageSolids[ solid ];
- if( x >= rect.lo.x && y >= rect.lo.y && x < rect.hi.x && y < rect.hi.y )
- return FALSE;
- }
- return TRUE;
- }
-
// a command button or anything else inside the pane is its own window and keeps its click
if( window->winPointInChild( x, y, TRUE ) != window )
return FALSE;
- // the plates are drawn from design rectangles and travel with the frame and the slide, the same
+ // the plates are drawn from design rectangles and travel with the frame, the same
// arithmetic W3DCommandBarBackgroundDraw paints them with
ICoord2D now;
frame->winGetScreenPosition( &now.x, &now.y );
for( Int p = 0; p < CB_PANEL_COUNT; p++ )
{
- if( m_panelHidden[ p ] )
- continue;
-
const ControlBarPlate *plate = ControlBarPlateForSide( m_controlBarSchemeManager->getCurrentSide(), p );
if( plate == NULL )
plate = ControlBarPlateForSide( m_controlBarSchemeManager->getCurrentArtTwinSide(), p );
@@ -2253,7 +2115,7 @@ Bool ControlBar::letsClickThrough( GameWindow *window, Int x, Int y )
continue;
const Int left = rect.lo.x + now.x - m_panelOrigin.x;
- const Int top = rect.lo.y + now.y - m_panelOrigin.y + getPanelSlideOffset( p );
+ const Int top = rect.lo.y + now.y - m_panelOrigin.y;
const Int width = rect.width();
const Int height = rect.height();
if( width <= 0 || height <= 0 || x < left || y < top || x >= left + width || y >= top + height )
@@ -2374,8 +2236,6 @@ void ControlBar::placeInPanel( GameWindow *win, Int panel,
place.known = TRUE;
place.panel = panel;
- place.weHid = FALSE;
- place.slideApplied = 0;
place.placedX = newX;
place.placedY = newY;
place.placedW = newW;
@@ -2386,44 +2246,6 @@ void ControlBar::placeInPanel( GameWindow *win, Int panel,
} // end placeInPanel
-/// how long a panel takes to leave or return, in milliseconds
-static const Real PANEL_SLIDE_MS = 220.0f;
-
-//-------------------------------------------------------------------------------------------------
-/** The three marker windows draw nothing of their own - they are five pixels square and exist only
- * to hang a draw callback on, and one of those callbacks paints all three plates. They are
- * authored over the radar, so taking the left panel away by its windows would take the painting
- * off the panel that is staying too. */
-//-------------------------------------------------------------------------------------------------
-static Bool isPlateMarker( GameWindow *win )
-{
- const char *shortName = shortWindowName( win );
- return strcmp( shortName, "BackgroundMarker" ) == 0 ||
- strcmp( shortName, "ForegroundMarker" ) == 0 ||
- strcmp( shortName, "OnTopDraw" ) == 0;
-}
-
-//-------------------------------------------------------------------------------------------------
-Int ControlBar::getPanelSlideOffset( Int panel ) const
-{
- if( panel < 0 || panel >= CB_PANEL_COUNT || TheDisplay == NULL )
- return 0;
- if( m_panelSlide[ panel ] <= 0.0f )
- return 0;
-
- //
- // Far enough that the top edge of the frame is off the bottom of the screen, so everything is -
- // except a panel with a cap, which travels only as far as the cap says and keeps the strip above
- // it on screen. The selection panel has one: it carries the button that puts the bar back, and
- // it stops with that button's row standing on the bottom edge. It takes the same quarter of a
- // second to travel the shorter distance, so all three still move as one.
- //
- const Real drop = ( m_panelDropCap[ panel ] > 0 )
- ? (Real)m_panelDropCap[ panel ]
- : (Real)( TheDisplay->getHeight() - m_panelOrigin.y );
- return REAL_TO_INT_FLOOR( m_panelSlide[ panel ] * drop );
-}
-
//-------------------------------------------------------------------------------------------------
/** A window moved without its place moving was read by the next layoutPanels as moved by somebody
* else, in the loader's stretched space, and its size taken back through the loader's scale: the
@@ -2465,154 +2287,6 @@ void ControlBar::placeWindowAt( GameWindow *window, const IRegion2D &rect )
place.placedH = height;
}
-//-------------------------------------------------------------------------------------------------
-/** Put every window where its panel's slide says it should be.
- *
- * layoutPanels has already recorded which panel each direct child of the frame went into and the
- * screen position it was given, so this is that position plus however far the panel has travelled.
- * What is inside those children keeps whatever the context system last decided, and comes back
- * saying the same thing - they move as one piece and are never individually touched. */
-//-------------------------------------------------------------------------------------------------
-void ControlBar::applyPanelSlide( void )
-{
- GameWindow *parent = m_contextParent[ CP_MASTER ];
- if( parent == NULL )
- return;
-
- Int offset[ CB_PANEL_COUNT ];
- for( Int p = 0; p < CB_PANEL_COUNT; p++ )
- offset[ p ] = getPanelSlideOffset( p );
-
- for( GameWindow *child = parent->winGetChild(); child; child = child->winGetNext() )
- {
- ControlBarPanelPlacementMap::iterator it = theControlBarPlacement.find( child );
- if( it == theControlBarPlacement.end() || it->second.known == FALSE )
- continue;
- if( isPlateMarker( child ) )
- continue;
-
- ControlBarPanelPlacement &place = it->second;
- const Int panel = place.panel;
- if( panel < 0 || panel >= CB_PANEL_COUNT )
- continue;
-
- //
- // Clear of the bottom edge and staying there: stop drawing it at all. Only what we hid do
- // we ever un-hide - the context system hides windows of its own all the time (the unused
- // minimise buttons, a beacon pane, an empty portrait) and a blanket winHide(FALSE) over the
- // panel put every one of them back on screen. Which is why a window that was already hidden
- // when the panel went down is not counted as ours: hiding it changes nothing and remembering
- // it puts it on screen the first time the bar is minimised and brought back. ControlBar.wnd
- // authors ButtonSmall and ButtonMedium hidden, and that is where the stray "S" and "M" over
- // the battlefield came from.
- //
- if( m_panelHidden[ panel ] )
- {
- if( !place.weHid && !child->winIsHidden() )
- {
- child->winHide( TRUE );
- place.weHid = TRUE;
- }
- continue;
- }
-
- if( place.weHid )
- {
- child->winHide( FALSE );
- place.weHid = FALSE;
- }
-
- ICoord2D pos;
- child->winGetPosition( &pos.x, &pos.y );
- const Int wantY = place.placedY - m_panelOrigin.y + offset[ panel ];
- if( pos.y != wantY )
- child->winSetPosition( pos.x, wantY );
-
- //
- // What the window is actually carrying, which is not the same as what its panel's slide says.
- // The two continues above leave windows behind - a plate marker never moves at all, and a
- // panel minimised with immediate = TRUE is marked hidden before anything is moved - and
- // layoutPanels used to take the panel's offset back off every one of them. A window that
- // never went down came back up, and placeInPanel then read that position as the rectangle it
- // was authored at: the bar climbed a little further off the bottom of the screen every time
- // the layout was rebuilt, and the tooltip, which is placed relative to BackgroundMarker,
- // climbed with it until it left the screen.
- //
- place.slideApplied = offset[ panel ];
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Step the slide. Wall clock rather than logic frames: this is a piece of the interface moving,
- * and it should take the same quarter of a second whatever the game is doing. */
-//-------------------------------------------------------------------------------------------------
-void ControlBar::updatePanelSlide( void )
-{
- const UnsignedInt now = Clock_Milliseconds();
- const UnsignedInt sinceMs = ( m_panelSlideMs == 0 || now < m_panelSlideMs ) ? 0 : now - m_panelSlideMs;
- m_panelSlideMs = now;
-
- Bool moving = FALSE;
- for( Int p = 0; p < CB_PANEL_COUNT; p++ )
- if( m_panelSlide[ p ] != m_panelSlideTo[ p ] )
- moving = TRUE;
-
- if( !moving )
- return;
-
- const Real step = ( sinceMs > 0 ) ? (Real)sinceMs / PANEL_SLIDE_MS : 0.0f;
-
- for( Int p = 0; p < CB_PANEL_COUNT; p++ )
- {
- if( m_panelSlide[ p ] < m_panelSlideTo[ p ] )
- {
- m_panelSlide[ p ] += step;
- if( m_panelSlide[ p ] >= m_panelSlideTo[ p ] )
- {
- m_panelSlide[ p ] = m_panelSlideTo[ p ];
- // arrived - off screen, unless the cap kept a strip of it on
- m_panelHidden[ p ] = ( m_panelDropCap[ p ] <= 0 );
- }
- }
- else if( m_panelSlide[ p ] > m_panelSlideTo[ p ] )
- {
- m_panelSlide[ p ] -= step;
- if( m_panelSlide[ p ] <= m_panelSlideTo[ p ] )
- m_panelSlide[ p ] = m_panelSlideTo[ p ];
- }
- }
-
- applyPanelSlide();
-
-} // end updatePanelSlide
-
-//-------------------------------------------------------------------------------------------------
-/** Send one whole panel off the bottom of the screen, or bring it back. */
-//-------------------------------------------------------------------------------------------------
-void ControlBar::showPanel( Int panel, Bool show, Bool immediate )
-{
- // EA's bar is one piece and minimises as one (setLowControlBarConfig)
- if( panel < 0 || panel >= CB_PANEL_COUNT || barIsClassic() )
- return;
-
- m_panelSlideTo[ panel ] = show ? 0.0f : 1.0f;
-
- // coming back it is on screen from the first frame of the slide, going it is on screen until the
- // last: only a panel that has arrived at the bottom is hidden
- if( show )
- m_panelHidden[ panel ] = FALSE;
-
- if( immediate )
- {
- m_panelSlide[ panel ] = m_panelSlideTo[ panel ];
- m_panelHidden[ panel ] = !show && ( m_panelDropCap[ panel ] <= 0 );
- }
-
- m_panelSlideMs = Clock_Milliseconds();
- applyPanelSlide();
-
-} // end showPanel
-
//-------------------------------------------------------------------------------------------------
/** Where the command bar's windows actually are, for -uidrill to write down.
*
@@ -2716,70 +2390,7 @@ void ControlBar::forEachPlacedWindow( Int *topOut, Int *moneyOut )
}
//-------------------------------------------------------------------------------------------------
-/** Put the slide away: every window back up by however far it actually travelled, and all three
- * panels declared home.
- *
- * Anything that reads a window's screen position has to run after this. ControlBarScheme::init
- * is the one that does - it asks each parent where it is on screen and writes the money readout,
- * the two tabs and the toolbar column their own positions relative to that answer - and it used
- * to ask while the bar was still on its way down. The answer was the slid position, so the
- * children came out right for a slid parent; then layoutPanels lifted the parent and every one of
- * those children rode up with it, and placeInPanel read the lifted position as the rectangle they
- * were authored at. A few pixels a rebuild. Toggle the bar and change side a dozen times and
- * the money box, the toolbar column and the general's tabs are stranded a third of the way up an
- * empty screen with the plates still painted at the bottom, and the build tooltip - which is
- * placed against BackgroundMarker - has left the top of the picture.
- *
- * Taken off per window rather than per panel, and by what each window is actually carrying:
- * applyPanelSlide leaves windows behind (a plate marker never moves, a panel minimised with
- * immediate = TRUE is marked hidden before anything moves), and lifting one of those lifts a
- * window that never went down. Not by calling applyPanelSlide with the slide zeroed either -
- * that puts every window back at the y layoutPanels last handed out, which throws away exactly
- * the ControlBarScheme.ini positions the bar is being rebuilt to wear.
- */
-//-------------------------------------------------------------------------------------------------
-void ControlBar::clearPanelSlide( void )
-{
- GameWindow *parent = m_contextParent[ CP_MASTER ];
-
- for( GameWindow *slid = parent ? parent->winGetChild() : NULL; slid; slid = slid->winGetNext() )
- {
- ControlBarPanelPlacementMap::iterator it = theControlBarPlacement.find( slid );
- if( it == theControlBarPlacement.end() || it->second.known == FALSE )
- continue;
- ControlBarPanelPlacement &place = it->second;
- if( place.panel < 0 || place.panel >= CB_PANEL_COUNT )
- continue;
- if( place.weHid )
- {
- slid->winHide( FALSE );
- place.weHid = FALSE;
- }
- const Int undo = ControlBar_slideToUndo( place.slideApplied, getPanelSlideOffset( place.panel ) );
- if( undo != 0 )
- {
- ICoord2D pos;
- slid->winGetPosition( &pos.x, &pos.y );
- slid->winSetPosition( pos.x, pos.y - undo );
- place.slideApplied = 0;
- }
- }
-
- for( Int q = 0; q < CB_PANEL_COUNT; q++ )
- {
- m_panelSlide[ q ] = 0.0f;
- m_panelSlideTo[ q ] = 0.0f;
- m_panelHidden[ q ] = FALSE;
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Re-anchor the control bar as three panels at one uniform scale.
- *
- * A panel that is away, or on its way, is not where this function last put it - and this function
- * reads a window's position to work out what it was authored at. So the slide comes off first
- * and goes back on at the end, and a bar that was minimised when the side changed is minimised
- * again without the trip down. */
+/** Re-anchor the control bar as three panels at one uniform scale. */
//-------------------------------------------------------------------------------------------------
void ControlBar::layoutPanels( void )
{
@@ -2787,13 +2398,6 @@ void ControlBar::layoutPanels( void )
if( parent == NULL || TheDisplay == NULL )
return;
- Bool wasAway[ CB_PANEL_COUNT ];
- Int q;
- for( q = 0; q < CB_PANEL_COUNT; q++ )
- wasAway[ q ] = ( m_panelSlideTo[ q ] > 0.0f );
-
- clearPanelSlide();
-
const Real dispW = (Real)TheDisplay->getWidth();
const Real dispH = (Real)TheDisplay->getHeight();
@@ -2833,26 +2437,6 @@ void ControlBar::layoutPanels( void )
m_panelOrigin.x = 0;
m_panelOrigin.y = parentTop;
- //
- // Two of the three panels go all the way off the bottom. The selection panel stops with the row
- // its minimise tab is in standing on the bottom edge: the button that puts the bar back is in
- // that row, and so is the plate that paints it, so the tab a minimised player clicks is real
- // artwork and not a button floating over the battlefield.
- //
- for( p = 0; p < CB_PANEL_COUNT; p++ )
- m_panelDropCap[ p ] = 0;
- if( m_controlBarSchemeManager && !barIsClassic() )
- {
- const ControlBarPlate *rightPlate =
- ControlBarPlateForSide( m_controlBarSchemeManager->getCurrentSide(), CB_PANEL_RIGHT );
- if( rightPlate == NULL )
- rightPlate = ControlBarPlateForSide( m_controlBarSchemeManager->getCurrentArtTwinSide(),
- CB_PANEL_RIGHT );
- if( rightPlate && rightPlate->minTab.height() > 0 )
- m_panelDropCap[ CB_PANEL_RIGHT ] =
- REAL_TO_INT_FLOOR( ( CONTROL_BAR_DESIGN_H - rightPlate->minTab.hi.y ) * s );
- }
-
for( GameWindow *child = parent->winGetChild(); child; child = child->winGetNext() )
{
// the nameless panes go by where they were authored, so ask the cache before it is rewritten
@@ -2872,11 +2456,6 @@ void ControlBar::layoutPanels( void )
barOrigin.x, barOrigin.y, 0, parentTop );
}
- // whatever was away before is away again, without being watched leaving a second time
- for( q = 0; q < CB_PANEL_COUNT; q++ )
- if( wasAway[ q ] )
- showPanel( q, FALSE, TRUE );
-
} // end layoutPanels
//-------------------------------------------------------------------------------------------------
@@ -2902,9 +2481,6 @@ void ControlBar::init( void )
// post process step after loading the command buttons and command sets
postProcessCommands();
- // the builder's page menu buttons are ours, not the data's
- makeBuildPageButtons();
-
// Init the scheme manager, this will call it's won INI init funciton.
m_controlBarSchemeManager = NEW ControlBarSchemeManager;
m_controlBarSchemeManager->init();
@@ -2998,8 +2574,7 @@ void ControlBar::shutdownWindows( void )
} // end shutdownWindows
-/** The painted promotion screen's own draw, and the battlefield and bar dimmed under it the way the
- * Reforged page dims them (Promotion.html, .dim); the page takes the draw over in Reforged. */
+/** The painted promotion screen's own draw, and the battlefield and bar dimmed under it. */
static GameWinDrawFunc theClassicPromotionDraw = NULL;
static void drawClassicPromotionScreen( GameWindow *window, WinInstanceData *instData )
@@ -3190,15 +2765,12 @@ void ControlBar::initWindows( void )
setControlCommand(win, findCommandButton("NonCommand_IdleWorker") );
win->winSetTooltipFunc(commandButtonTooltip);
}
- // the Reforged bar carries no beacon button; nothing below shows it again. Classic keeps EA's
win = TheWindowManager->winGetWindowFromId(NULL,TheNameKeyGenerator->nameToKey("ControlBar.wnd:ButtonPlaceBeacon"));
- if( win && barIsClassic() )
+ if( win )
{
setControlCommand( win, findCommandButton( "NonCommand_Beacon" ) );
win->winSetTooltipFunc( commandButtonTooltip );
}
- else if( win )
- win->winHide(TRUE);
win = TheWindowManager->winGetWindowFromId(NULL,TheNameKeyGenerator->nameToKey("ControlBar.wnd:ButtonGeneral"));
if(win)
{
@@ -3228,13 +2800,8 @@ void ControlBar::initWindows( void )
win->winSetTooltipFunc(commandButtonTooltip);
}
- // the radar's under-attack light is gone from the Reforged bar: the radar ping, the EVA line
- // and the message say it already. Classic keeps it flashing, as EA's did
- win = TheWindowManager->winGetWindowFromId(NULL, TheNameKeyGenerator->nameToKey("ControlBar.wnd:WinUAttack"));
- if( win && barIsClassic() )
- m_radarAttackGlowWindow = win;
- else if(win)
- win->winHide(TRUE);
+ // the radar's under-attack light flashes, as EA's did
+ m_radarAttackGlowWindow = TheWindowManager->winGetWindowFromId(NULL, TheNameKeyGenerator->nameToKey("ControlBar.wnd:WinUAttack"));
win = TheWindowManager->winGetWindowFromId(NULL,TheNameKeyGenerator->nameToKey( AsciiString( "ControlBar.wnd:BackgroundMarker" ) ));
@@ -3292,19 +2859,12 @@ void ControlBar::reset( void )
m_displayedConstructPercent = -1.0f;
m_displayedOCLTimerSeconds = 0;
- m_buildPage = BUILD_PAGE_ROOT;
- m_buildPageObjectID = INVALID_ID;
- m_standInBuilderID = INVALID_DRAWABLE_ID;
-
m_isObserverCommandBar = FALSE; // reset us to use a normal command bar
m_observerLookAtPlayer = NULL;
m_watchedSide.clear();
m_watchedSelection = NULL;
m_currentControlBarStage = CONTROL_BAR_STAGE_DEFAULT; // a minimised bar is this match's, not the next one's
- // the next match has its own sides, and a mod switch reloads the artwork these point at
- m_borrowedTrayCount = 0;
-
if(m_buildToolTipLayout)
m_buildToolTipLayout->hide(TRUE);
m_showBuildToolTipLayout = FALSE;
@@ -3374,19 +2934,6 @@ void ControlBar::reset( void )
m_genStarFlash = TRUE;
} // end reset
-//-------------------------------------------------------------------------------------------------
-/** How far a unit is into its current veterancy rank, 0..100, or -1 when there is no next rank to
- * fill towards (top rank, or a template with no thresholds - both mean "draw no bar"). */
-//-------------------------------------------------------------------------------------------------
-Int ControlBar_experiencePercent( Int currentExp, Int levelExp, Int nextLevelExp )
-{
- if( nextLevelExp <= levelExp )
- return -1;
-
- Int percent = ( currentExp - levelExp ) * 100 / ( nextLevelExp - levelExp );
- return min( 100, max( 0, percent ) );
-}
-
//-------------------------------------------------------------------------------------------------
/** Update phase, we can track if our selected object is destroyed, update button
* percentages, status, enabled status etc */
@@ -3439,9 +2986,6 @@ void ControlBar::update( void )
clearSpecialPowerShortcutRow();
}
- // the minimised panels going or coming back
- updatePanelSlide();
-
if(m_controlBarSchemeManager)
m_controlBarSchemeManager->update();
@@ -3581,31 +3125,6 @@ void ControlBar::update( void )
else
clearPurchaseScienceColumn();
- //
- // a stand-in builder is not selected, so no deselect event tells us when it dies or when a
- // real selection arrives; re-evaluate ourselves before anything touches its drawable
- //
- if( m_standInBuilderID != INVALID_DRAWABLE_ID )
- {
- Drawable *standIn = TheGameClient->findDrawableByID( m_standInBuilderID );
- Object *standInObj = standIn ? standIn->getObject() : NULL;
- if( TheInGameUI->getSelectCount() > 0 || standInObj == NULL || standInObj->isEffectivelyDead() )
- {
- m_standInBuilderID = INVALID_DRAWABLE_ID;
- m_currentSelectedDrawable = NULL;
- markUIDirty();
- }
- }
- //
- // nothing selected and nothing standing in: a builder that is made or bought later gets the
- // bar, which no selection event would announce either
- //
- else if( logicTick && ( logicNow % LOGICFRAMES_PER_SECOND ) == 0 && TheInGameUI->getSelectCount() == 0
- && m_currentSelectedDrawable == NULL && findStandInBuilder( FALSE ) )
- {
- markUIDirty();
- }
-
//
// first, if the UI is dirty repopulate the UI with what the user should see for all the
// selected drawables
@@ -3646,33 +3165,6 @@ void ControlBar::update( void )
}
}
- //
- // the experience bar under the portrait. The rank chevron on the cameo says which rank a
- // unit holds and nothing about how close the next one is, and that is the half of it you
- // decide with - whether this tank is one kill off veteran or has just got there. Only for a
- // single selection: with a group selected the portrait is one member standing in for all of
- // them, and its experience would be read as the group's.
- //
- if( m_rightHUDCameoWindow )
- {
- Int xpPercent = -1;
- Object *portraitObj = ( TheInGameUI && TheInGameUI->getSelectCount() == 1 &&
- m_currentSelectedDrawable ) ? m_currentSelectedDrawable->getObject()
- : NULL;
- const ExperienceTracker *xp = portraitObj ? portraitObj->getExperienceTracker() : NULL;
- // Classic's portrait is EA's picture alone: the bar stays empty
- if( xp && !TheGlobalData->isClassicUI() && portraitObj->isLocallyControlled() && xp->isTrainable() &&
- xp->getVeterancyLevel() < LEVEL_LAST )
- {
- const ThingTemplate *tmpl = portraitObj->getTemplate();
- xpPercent = ControlBar_experiencePercent( xp->getCurrentExperience(),
- tmpl->getExperienceRequired( xp->getVeterancyLevel() ),
- tmpl->getExperienceRequired( xp->getVeterancyLevel() + 1 ) );
- }
-
- GadgetButtonSetBar( m_rightHUDCameoWindow, xpPercent, GameMakeColor( 255, 200, 40, 255 ) );
- }
-
//
// most control bar contexts have one selected thing that we switch on and update
// based on if that thing changed in some way ... the exception is when multi selected
@@ -3876,22 +3368,9 @@ void ControlBar::evaluateContextUI( void )
// erase any current state of the GUI by switching out to the empty context
switchToContext( CB_CONTEXT_NONE, NULL );
- //
- // nothing selected: one of the player's builders stands in and its command bar shows, so
- // a structure can be placed without selecting a dozer first - the logic then sends the
- // idle builder nearest the site (MSG_DOZER_CONSTRUCT). m_standInBuilderID is not cleared
- // first: findStandInBuilder reads it to keep the builder it is already showing.
- //
+ // nothing selected is an empty bar, as 1.04 had it
if( TheInGameUI->getSelectCount() == 0 && !m_isObserverCommandBar )
- {
- Drawable *builder = findStandInBuilder( FALSE );
- m_standInBuilderID = builder ? builder->getID() : INVALID_DRAWABLE_ID;
- if( builder )
- switchToContext( CB_CONTEXT_COMMAND, builder );
return;
- }
-
- m_standInBuilderID = INVALID_DRAWABLE_ID;
// get the list of drawable IDs from the in game UI
const DrawableList *selectedDrawables = TheInGameUI->getAllSelectedDrawables();
@@ -4272,10 +3751,6 @@ CommandSet *ControlBar::newCommandSetOverride( CommandSet *setToOverride )
//-------------------------------------------------------------------------------------------------
Int getBuildBatchCount( void )
{
- // Classic's click is one unit, as the game shipped
- if( TheGlobalData->isClassicUI() )
- return 1;
-
if( TheKeyboard->isCtrl() )
return TheKeyboard->isShift() ? CTRL_SHIFT_BUILD_QUEUE_COUNT : CTRL_BUILD_QUEUE_COUNT;
@@ -4427,79 +3902,6 @@ Bool ControlBar::cancelLastQueuedUnit( const ThingTemplate *thing )
} // end cancelLastQueuedUnit
-//-------------------------------------------------------------------------------------------------
-/** The local player's builder that stands in for an empty selection: an idle one if there is
- * one, else any live one. (Player::iterateObjects callback + driver.) */
-//-------------------------------------------------------------------------------------------------
-struct StandInBuilderSearch
-{
- Object *idle;
- Object *any;
-};
-
-static void findStandInBuilderProc( Object *obj, void *userData )
-{
- StandInBuilderSearch *s = (StandInBuilderSearch *)userData;
- if( obj == NULL || obj->isEffectivelyDead() || obj->getDrawable() == NULL )
- return;
- if( obj->testStatus( OBJECT_STATUS_UNDER_CONSTRUCTION ) || obj->testStatus( OBJECT_STATUS_SOLD ) )
- return;
- AIUpdateInterface *ai = obj->getAI();
- DozerAIInterface *dozer = ai ? ai->getDozerAIInterface() : NULL;
- if( dozer == NULL )
- return;
- if( s->any == NULL )
- s->any = obj;
- // free = no build/repair task and not hauling supplies; walking somewhere does not count
- const SupplyTruckAIInterface *supply = ai->getSupplyTruckAIInterface();
- if( s->idle == NULL && !dozer->isAnyTaskPending() && !( supply && supply->isCurrentlyFerryingSupplies() ) )
- s->idle = obj;
-}
-
-Drawable *ControlBar::findStandInBuilder( Bool freeOnly )
-{
- // Classic's bar is 1.04's: nothing selected is an empty bar, and a build needs a selected worker.
- // A stand-in kept the dozer's build menu up after the dozer was let go.
- if( barIsClassic() )
- return NULL;
-
- Player *player = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
- if( player == NULL )
- return NULL;
-
- //
- // The builder already standing in keeps the bar for as long as it is still a builder. The
- // sweep below answers "the first idle one", and idleness changes on its own: a dozer somewhere
- // across the base finishing a building goes idle and used to take the bar off the one you were
- // working with. That drops the page you were on and takes the structure off your cursor, in
- // the middle of placing it, because something happened somewhere else. For a GLA worker it
- // also keeps the fake-structure page it was switched to.
- //
- if( m_standInBuilderID != INVALID_DRAWABLE_ID && TheGameClient )
- {
- Drawable *held = TheGameClient->findDrawableByID( m_standInBuilderID );
- Object *obj = held ? held->getObject() : NULL;
- if( obj && obj->getControllingPlayer() == player )
- {
- StandInBuilderSearch check;
- check.idle = NULL;
- check.any = NULL;
- findStandInBuilderProc( obj, &check );
- if( check.any && ( !freeOnly || check.idle ) )
- return held;
- }
- }
-
- StandInBuilderSearch s;
- s.idle = NULL;
- s.any = NULL;
- player->iterateObjects( findStandInBuilderProc, &s );
-
- Object *pick = s.idle ? s.idle : ( freeOnly ? NULL : s.any );
- return pick ? pick->getDrawable() : NULL;
-
-} // end findStandInBuilder
-
//-------------------------------------------------------------------------------------------------
/** Press the index'th general's power shortcut button, as a mouse click would */
//-------------------------------------------------------------------------------------------------
@@ -4514,252 +3916,6 @@ Bool ControlBar::clearSpecialPowerShortcutRow( void )
} // end clearSpecialPowerShortcutRow
-//-------------------------------------------------------------------------------------------------
-/** The tray a general's power shortcut stands in: the background of one of that bar's slots, taken
- * off the slot itself. Each side ships its own bar and its own tray art, so reading it here is
- * what keeps anything that borrows the look - both HUD strips do - on the same side's metal as
- * the bar underneath them, without naming a single image.
- *
- * Watching a match there is no such bar: FactionObserver ships neither a shortcut layout nor a
- * button count, so both strips used to fall back to a flat black plate for the whole match. The
- * side the observer bar is looking at answers for it instead - one side for the whole HUD, the
- * one the bar itself is showing. */
-//-------------------------------------------------------------------------------------------------
-const Image *ControlBar::getSpecialPowerTrayImage( void )
-{
- if( m_specialPowerShortcutParent && m_specialPowerShortcutButtonParents[ 0 ] )
- return m_specialPowerShortcutButtonParents[ 0 ]->winGetEnabledImage( 0 );
-
- const BorrowedTray *borrowed = borrowTray( specialPowerTraySide() );
- return borrowed ? borrowed->image : NULL;
-
-} // end getSpecialPowerTrayImage
-
-//-------------------------------------------------------------------------------------------------
-/** Any template of this side that ships a general's power bar - the generals of one side share that
- * layout, so which one comes back does not matter, only that it carries the side's tray. The
- * shell's bar names its side with "Small" on the end; that is the same art at another size. */
-//-------------------------------------------------------------------------------------------------
-const PlayerTemplate *ControlBar::templateForSide( AsciiString side )
-{
- if( side.isEmpty() || ThePlayerTemplateStore == NULL )
- return NULL;
-
- if( side.endsWithNoCase( "Small" ) )
- for( Int c = 0; c < 5; c++ )
- side.removeLastChar();
-
- // -modfactions: a mod's bar wears that mod's tray, ours ours, though the side is spelt the same
- const Int mod = m_controlBarSchemeManager ? m_controlBarSchemeManager->getCurrentSchemeMod() : -1;
- for( Int t = 0; t < ThePlayerTemplateStore->getPlayerTemplateCount(); t++ )
- {
- const PlayerTemplate *pt = ThePlayerTemplateStore->getNthPlayerTemplate( t );
- if( pt && pt->getSide().compareNoCase( side ) == 0 && pt->getModIndex() == mod
- && !pt->getSpecialPowerShortcutWinName().isEmpty() )
- return pt;
- }
-
- return NULL;
-
-} // end templateForSide
-
-//-------------------------------------------------------------------------------------------------
-/** Whose metal the HUD wears when this bar has none of its own. The answer is the bar on screen and
- * nothing else: the scheme manager knows which side's artwork it is drawing, so the strips wear
- * that side even while watching, where the seat at the keyboard has no side at all.
- *
- * The scheme names a side, not a general, and the generals of one side share a shortcut layout, so
- * any template of that side hands over the same tray. The observer bar's own side is "Observer",
- * which no template carries, but every plate on that bar is another side's - so the scheme sharing
- * its right hand plate names the side it is really wearing, and the strips follow the bar rather
- * than the seat. Only if even that finds nothing does whoever is being watched, and then the first
- * side still in the match, answer: a plate of plain black is worse than somebody else's metal, and
- * it was what the strips wore for whole matches. */
-//-------------------------------------------------------------------------------------------------
-const PlayerTemplate *ControlBar::specialPowerTraySide( void )
-{
- if( m_controlBarSchemeManager )
- {
- const PlayerTemplate *own = templateForSide( m_controlBarSchemeManager->getCurrentSide() );
- if( own )
- return own;
-
- const PlayerTemplate *worn = templateForSide( m_controlBarSchemeManager->getCurrentArtTwinSide() );
- if( worn )
- return worn;
- }
-
- // the bar wears artwork no side owns; the seat it is showing is the next best answer
- if( m_observerLookAtPlayer && m_observerLookAtPlayer->getPlayerTemplate()
- && !m_observerLookAtPlayer->getPlayerTemplate()->getSpecialPowerShortcutWinName().isEmpty() )
- return m_observerLookAtPlayer->getPlayerTemplate();
-
- if( ThePlayerList == NULL )
- return NULL;
-
- for( Int i = 0; i < ThePlayerList->getPlayerCount(); i++ )
- {
- Player *p = ThePlayerList->getNthPlayer( i );
- if( p == NULL || !p->isPlayerActive() || !p->isPlayableSide() )
- continue;
-
- const PlayerTemplate *pt = p->getPlayerTemplate();
- if( pt && !pt->getSpecialPowerShortcutWinName().isEmpty() )
- return pt;
- }
-
- return NULL;
-
-} // end specialPowerTraySide
-
-//-------------------------------------------------------------------------------------------------
-/** Read a side's tray out of its own shortcut layout, once. Nothing of the layout survives the
- * call: the Image belongs to the mapped image collection and the size is two integers, so the
- * windows go straight back. The lookup is by layout name rather than by template, since the
- * generals of one side share a bar. */
-//-------------------------------------------------------------------------------------------------
-const ControlBar::BorrowedTray *ControlBar::borrowTray( const PlayerTemplate *pt )
-{
- if( pt == NULL || pt->getSpecialPowerShortcutWinName().isEmpty() )
- return NULL;
-
- const AsciiString layoutName = pt->getSpecialPowerShortcutWinName();
-
- //
- // the side at the keyboard is read off the bar it is already showing. Not an optimization: the
- // generals of one side share a layout, and a second copy of it would put a second window under
- // every one of its names for as long as this call runs
- //
- if( m_specialPowerLayout && m_specialPowerShortcutButtonParents[ 0 ]
- && m_specialPowerLayout->getFilename().compareNoCase( layoutName ) == 0 )
- return NULL;
-
- for( Int i = 0; i < m_borrowedTrayCount; i++ )
- if( m_borrowedTrays[ i ].layout.compareNoCase( layoutName ) == 0 )
- return m_borrowedTrays[ i ].image ? &m_borrowedTrays[ i ] : NULL;
-
- if( m_borrowedTrayCount >= MAX_BORROWED_TRAYS )
- return NULL; // more sides on one screen than any game ships: they keep the plain plate
-
- BorrowedTray *slot = &m_borrowedTrays[ m_borrowedTrayCount++ ];
- slot->layout = layoutName;
- slot->image = NULL;
- slot->size.x = 0;
- slot->size.y = 0;
-
- WindowLayout *layout = TheWindowManager->winCreateLayout( layoutName );
- if( layout == NULL )
- return NULL; // a mod naming a layout it does not ship: remembered as having no tray
- layout->hide( TRUE );
-
- // the size read off it below is the size the strips draw a tray at, so it has to come out of the
- // same un-stretched space the bar itself is put in - see initSpecialPowershortcutBar
- ControlBarLayoutUniform( layout->getFirstWindow(), 1.0f, 1.0f );
-
- AsciiString parentName = layoutName;
- parentName.concat( ":ButtonParent1" );
-
- //
- // looked up inside our own copy of the bar rather than across every window on screen: a player
- // who was knocked out still has his own bar loaded, and it carries these very names
- //
- GameWindow *slotWindow = TheWindowManager->winGetWindowFromId( layout->getFirstWindow(),
- TheNameKeyGenerator->nameToKey( parentName ) );
- if( slotWindow )
- {
- slot->image = slotWindow->winGetEnabledImage( 0 );
- slotWindow->winGetSize( &slot->size.x, &slot->size.y );
- }
-
- layout->destroyWindows();
- layout->deleteInstance();
-
- return slot->image ? slot : NULL;
-
-} // end borrowTray
-
-//-------------------------------------------------------------------------------------------------
-/** That tray at the size the bar itself draws it, the hole in its artwork the cameo fills, and the
- * step a row of them runs at. All of it read back off the loaded bar, which the loader has
- * already scaled to the running resolution - so nothing here is in 800x600 pixels, and anything
- * borrowing the look comes out the size of the powers themselves at every resolution.
- *
- * Any of the four out-parameters may be NULL. FALSE when there is no bar and no layout to
- * borrow one from - the strips then keep the plain plate they had before any of this. */
-//-------------------------------------------------------------------------------------------------
-Bool ControlBar::getSpecialPowerTrayLayout( ICoord2D *traySize, ICoord2D *cameoSize,
- ICoord2D *cameoOffset, Int *columnStep )
-{
- if( m_specialPowerShortcutParent && m_specialPowerShortcutButtonParents[ 0 ] )
- {
- Int slotWidth, slotHeight;
- m_specialPowerShortcutButtonParents[ 0 ]->winGetSize( &slotWidth, &slotHeight );
- return trayLayoutFromSlot( slotWidth, slotHeight, traySize, cameoSize, cameoOffset, columnStep );
- }
-
- // measured off the very layout the tray came out of, so the two always agree
- const BorrowedTray *borrowed = borrowTray( specialPowerTraySide() );
- if( borrowed == NULL )
- return FALSE;
-
- return trayLayoutFromSlot( borrowed->size.x, borrowed->size.y,
- traySize, cameoSize, cameoOffset, columnStep );
-
-} // end getSpecialPowerTrayLayout
-
-//-------------------------------------------------------------------------------------------------
-/** The artwork's proportions, applied to whatever size a slot came out at. */
-//-------------------------------------------------------------------------------------------------
-Bool ControlBar::trayLayoutFromSlot( Int slotWidth, Int slotHeight, ICoord2D *traySize,
- ICoord2D *cameoSize, ICoord2D *cameoOffset, Int *columnStep )
-{
- if( slotWidth <= 0 || slotHeight <= 0 )
- return FALSE;
-
- //
- // where the cameo goes is the hole in the tray artwork, not a guess: SATraySmall is the 60x56
- // patch at 413,1 of SAControlBar512_001.tga and its transparent middle runs x 4..48, y 9..46.
- // Those are fractions of the art, so they hold at whatever size the loader gave the tray
- //
- const Int ART_WIDTH = 60;
- const Int ART_HEIGHT = 56;
- const Int HOLE_X = 4;
- const Int HOLE_Y = 9;
- const Int HOLE_WIDTH = 45;
- const Int HOLE_HEIGHT = 38;
-
- if( traySize )
- {
- traySize->x = slotWidth;
- traySize->y = slotHeight;
- }
-
- if( cameoSize )
- {
- cameoSize->x = ( slotWidth * HOLE_WIDTH + ART_WIDTH / 2 ) / ART_WIDTH;
- cameoSize->y = ( slotHeight * HOLE_HEIGHT + ART_HEIGHT / 2 ) / ART_HEIGHT;
- }
-
- if( cameoOffset )
- {
- cameoOffset->x = ( slotWidth * HOLE_X + ART_WIDTH / 2 ) / ART_WIDTH;
- cameoOffset->y = ( slotHeight * HOLE_Y + ART_HEIGHT / 2 ) / ART_HEIGHT;
- }
-
- //
- // A row steps a whole tray, the way a column already does. The slots used to slide an eighth of
- // a tray back under each other so a row read as one run of metal, and what that actually did was
- // lay the neighbour's rail over the left edge of every cameo but the last: the general's powers
- // and the superweapon countdowns both came out overlapping. Side by side they read as the boxes
- // they are, and the queue column down the left has looked like that all along.
- //
- if( columnStep )
- *columnStep = slotWidth;
-
- return TRUE;
-
-} // end getSpecialPowerTrayLayout
-
//-------------------------------------------------------------------------------------------------
/** How many of the slots carry a power right now. populateSpecialPowerShortcut() fills them from
* the corner and hides the rest, so the ones in use are always the first n - and n is not
@@ -5208,54 +4364,6 @@ void ControlBar::setCommandBarBorder( GameWindow *button, CommandButtonMappedBor
//-------------------------------------------------------------------------------------------------
/** Set the command data into the control */
//-------------------------------------------------------------------------------------------------
-//-------------------------------------------------------------------------------------------------
-/** The letter currently bound to command bar slot 'slot' (0 based), or an empty string when the
- slot has no unmodified binding. Read live out of the meta map so rebinding the key in
- Options > Keyboard re-labels the button. */
-//-------------------------------------------------------------------------------------------------
-static UnicodeString getMetaKeyLabel( GameMessage::Type wanted )
-{
- UnicodeString label;
-
- if( TheMetaMap == NULL || TheKeyboard == NULL )
- return label;
-
- for( const MetaMapRec *rec = TheMetaMap->getFirstMetaMapRec(); rec; rec = rec->m_next )
- {
- // only a plain, unmodified key makes a readable short label
- if( rec->m_meta != wanted || rec->m_modState != 0 )
- continue;
-
- // function keys have no printable character; name them
- if( rec->m_key >= MK_F1 && rec->m_key <= MK_F10 )
- label.format( u"F%d", rec->m_key - MK_F1 + 1 );
- else if( rec->m_key == MK_F11 )
- label.set( u"F11" );
- else if( rec->m_key == MK_F12 )
- label.set( u"F12" );
- else
- {
- WideChar c = TheKeyboard->getPrintableKey( (UnsignedByte)rec->m_key, 0 );
- if( c )
- {
- if( c >= u'a' && c <= u'z' )
- c -= (u'a' - u'A');
-
- WideChar text[ 2 ] = { c, 0 };
- label.set( text );
- }
- }
- break;
- }
-
- return label;
-
-} // end getMetaKeyLabel
-
-static UnicodeString getGridHotKeyLabel( Int place )
-{
- return getMetaKeyLabel( (GameMessage::Type)(GameMessage::MSG_META_COMMAND_SLOT01 + place) );
-}
//-------------------------------------------------------------------------------------------------
void ControlBar::setControlCommand( GameWindow *button, const CommandButton *commandButton )
@@ -5330,23 +4438,15 @@ void ControlBar::setControlCommand( GameWindow *button, const CommandButton *com
GadgetButtonSetData(button, (void*)commandButton);
//button->winSetUserData( commandButton );
- // a recycled button must not keep the previous occupant's count badge, nor its seconds label:
- // only the command context re-stamps those every frame, so a button that ends up in any other
- // context (a garrisoned building's exit cameos, a beacon, an OCL timer) would wear the build
- // time of whatever used to live in that window.
+ // a recycled button must not keep the previous occupant's count badge
GadgetButtonSetCount( button, 0 );
- GadgetButtonSetSeconds( button, 0 );
- GadgetButtonSetCost( button, 0 );
- GadgetButtonSetPower( button, 0 );
setCommandBarBorder(button, commandButton->getCommandButtonMappedBorderType());
- // the key in the button's top left corner is its place's, and a place is only known once the
- // whole set is on the bar: labelCommandPlaces paints it. Classic has no places: its key is the
- // game's own, the letter after the '&' in the button's label - the English label's in every
- // language, so a Turkish or German player presses what an English one does - and it wears it
- // on the button the way Reforged wears a grid key
- if( TheHotKeyManager && TheGlobalData->isClassicUI() )
+ // the key is the game's own, the letter after the '&' in the button's label - the English
+ // label's in every language, so a Turkish or German player presses what an English one does -
+ // and the button wears it in its top left corner
+ if( TheHotKeyManager )
{
WideChar letter = TheGameText ? TheGameText->fetchEnglishHotKey( commandButton->getTextLabel() ) : 0;
if( letter >= u'a' && letter <= u'z' )
@@ -5369,93 +4469,6 @@ void ControlBar::setControlCommand( GameWindow *button, const CommandButton *com
} // end setControlCommand
-//-------------------------------------------------------------------------------------------------
-void ControlBar::labelPlaceButton( GameWindow *button, Int place )
-{
- if( button == NULL )
- return;
-
- const UnicodeString label = place >= 0 ? getGridHotKeyLabel( place ) : UnicodeString();
- if( label.isEmpty() )
- button->winClearStatus( WIN_STATUS_SHORTCUT_BUTTON );
- else
- button->winSetStatus( WIN_STATUS_SHORTCUT_BUTTON );
-
- // every frame, so only a changed key goes to the button
- if( button->winGetText().compare( label ) != 0 )
- GadgetButtonSetText( button, label );
-
-}
-
-void ControlBar::labelCommandPlaces( const Int *places )
-{
- for( Int slot = 0; slot < MAX_COMMANDS_PER_SET; slot++ )
- labelPlaceButton( m_commandWindows[ slot ], places[ slot ] );
-
-} // end labelCommandPlaces
-
-//-------------------------------------------------------------------------------------------------
-static IRegion2D spanCells( const IRegion2D *cells, Int first, Int last )
-{
- IRegion2D span = cells[ first ];
- span.hi.x = cells[ last ].hi.x;
- if( cells[ last ].lo.y < span.lo.y )
- span.lo.y = cells[ last ].lo.y;
- if( cells[ last ].hi.y > span.hi.y )
- span.hi.y = cells[ last ].hi.y;
- return span;
-}
-
-void ControlBar::placeContextOnGrid( const IRegion2D &frame, const IRegion2D *cells, Bool *taken )
-{
- // the command group is up, so its own buttons already fill the grid
- if( m_contextParent[ CP_COMMAND ] && !m_contextParent[ CP_COMMAND ]->winIsHidden() )
- return;
-
- GameWindow *building = m_contextParent[ CP_UNDER_CONSTRUCTION ];
- if( building && !building->winIsHidden() )
- {
- // the parent has to cover the cell or the click never arrives
- placeWindowAt( building, frame );
- GameWindow *cancel = barWindow( "ControlBar.wnd:ButtonCancelConstruction" );
- if( barWindowShown( cancel ) )
- {
- taken[ COMMAND_PLACE_STOP ] = TRUE;
- placeWindowAt( cancel, cells[ COMMAND_PLACE_STOP ] );
- labelPlaceButton( cancel, COMMAND_PLACE_STOP );
- }
- GameWindow *desc = barWindow( "ControlBar.wnd:UnderConstructionDesc" );
- if( barWindowShown( desc ) )
- placeWindowAt( desc, spanCells( cells, COMMAND_PLACE_Q, COMMAND_PLACE_Y ) );
- return;
- }
-
- GameWindow *timer = m_contextParent[ CP_OCL_TIMER ];
- if( timer == NULL || timer->winIsHidden() )
- return;
-
- placeWindowAt( timer, frame );
- GameWindow *sell = barWindow( "ControlBar.wnd:OCLTimerSellButton" );
- if( barWindowShown( sell ) )
- {
- const CommandButton *command = (const CommandButton *)GadgetButtonGetData( sell );
- const Int where = command ? fixedCommandPlace( command->getCommandType() ) : -1;
- if( where >= 0 )
- {
- taken[ where ] = TRUE;
- placeWindowAt( sell, cells[ where ] );
- labelPlaceButton( sell, where );
- }
- }
- GameWindow *text = barWindow( "ControlBar.wnd:OCLTimerStaticText" );
- if( barWindowShown( text ) )
- placeWindowAt( text, spanCells( cells, COMMAND_PLACE_Q, COMMAND_PLACE_Y ) );
- GameWindow *bar = barWindow( "ControlBar.wnd:OCLTimerProgressBar" );
- if( barWindowShown( bar ) )
- placeWindowAt( bar, spanCells( cells, COMMAND_PLACE_A, COMMAND_PLACE_H ) );
-
-} // end placeContextOnGrid
-
//-------------------------------------------------------------------------------------------------
void CommandButton::cacheButtonImage()
{
@@ -5545,12 +4558,6 @@ void ControlBar::setPortraitByImage( const Image *image )
//-------------------------------------------------------------------------------------------------
void ControlBar::setPortraitByObject( Object *obj )
{
- // a builder standing in for an empty selection lends the bar its buildings and nothing else: its
- // portrait, name and health beside it read as that worker being selected, so the well stays empty
- if( obj && m_standInBuilderID != INVALID_DRAWABLE_ID && obj->getDrawable()
- && obj->getDrawable()->getID() == m_standInBuilderID )
- obj = NULL;
-
// the multi-select unit grid lives over this same HUD; a plain portrait means it must
// go, and so must the selection-count badge a one-type selection put on the portrait.
// updateMultiSelectStrip re-applies its own look right after calling in here.
@@ -5946,10 +4953,7 @@ void ControlBar::showPurchaseScience( void )
// the screen's foot (to 434 of 600) runs under the command bar's top edge (416), and the first
// window under the pointer takes the click, so the screen goes in front of the bar while it is up
m_contextParent[ CP_PURCHASE_SCIENCE ]->winBringToTop();
- TheInGameUI->openPromotionPage();
- // the fade holds the screen hidden for nine frames and draws the side's old painting of it fading
- // in, which the page has replaced
- if (TheGlobalData->m_animateWindows && !TheInGameUI->isPromotionPageShown())
+ if (TheGlobalData->m_animateWindows)
{
// a fade still running out is ended first, or it would hide the screen it just showed
TheTransitionHandler->remove("GenExpFade");
@@ -5967,23 +4971,14 @@ void ControlBar::hidePurchaseScience( void )
m_purchaseScienceOpen = FALSE;
//
- // Closing plays the opening backwards. The page fades itself out and hides the window when it
- // is gone; Classic's painted screen runs its fade in reverse, which hides it at the end. The
- // window stays up meanwhile, which is why the open state is ours and not its hidden flag.
+ // Closing plays the opening backwards: the painted screen runs its fade in reverse, which hides
+ // it at the end. The window stays up meanwhile, which is why the open state is ours and not its
+ // hidden flag.
//
- GameWindow *screen = m_contextParent[ CP_PURCHASE_SCIENCE ];
- if( wasOpen && screen && TheGlobalData->m_animateWindows )
+ if( wasOpen && m_contextParent[ CP_PURCHASE_SCIENCE ] && TheGlobalData->m_animateWindows )
{
- if( !TheInGameUI->isPromotionPageShown() )
- {
- TheTransitionHandler->reverse( "GenExpFade" );
- return;
- }
- if( !screen->winIsHidden() )
- {
- TheInGameUI->closePromotionPage();
- return;
- }
+ TheTransitionHandler->reverse( "GenExpFade" );
+ return;
}
//
@@ -6129,14 +5124,9 @@ void ControlBar::updatePurchaseScienceHotKeys( void )
{
GameWindow *candidate = purchaseScienceCandidate( column );
- // Classic's number keys pick teams on this screen as they did in 1.04 (SelectionXlat), so a
- // column key here would name a key that buys nothing
+ // the number keys pick teams on this screen as they did in 1.04 (SelectionXlat), so a column
+ // key here would name a key that buys nothing
UnicodeString label;
- if( barIsClassic() )
- {
- }
- else if( m_purchaseScienceColumn < 0 || m_purchaseScienceColumn == column )
- label = getMetaKeyLabel( (GameMessage::Type)( GameMessage::MSG_META_SELECT_TEAM1 + column ) );
for( Int depth = 0; depth < PURCHASE_SCIENCE_COLUMN_DEPTH; depth++ )
{
@@ -6271,12 +5261,6 @@ void ControlBar::setDefaultControlBarConfig( void )
m_contextParent[ CP_MASTER ]->winSetPosition(m_defaultControlBarPosition.x, m_defaultControlBarPosition.y);
m_contextParent[ CP_MASTER ]->winHide(FALSE);
- // the three panels the minimised bar stands down. Watching, the middle is the player list, which
- // the spectator page and the Tab scoreboard have taken over, and the right is the selection's portrait
- showPanel( CB_PANEL_LEFT, TRUE );
- showPanel( CB_PANEL_CENTER, !m_isObserverCommandBar );
- showPanel( CB_PANEL_RIGHT, !m_isObserverCommandBar || getSelectedPlayer() != NULL );
-
repopulateBuildTooltipLayout();
setUpDownImages();
@@ -6299,32 +5283,12 @@ void ControlBar::setLowControlBarConfig( void )
m_currentControlBarStage = CONTROL_BAR_STAGE_LOW;
- //
- // Minimised is all three panels gone, not the whole bar slid down a tenth of the screen with its
- // top edge still showing. Sliding it left a strip of metal, a readable money box and the top of
- // the radar dish lying along the bottom of the picture, which is neither the bar nor out of the
- // way. The one thing that stays is the button that puts it all back: applyPanelSlide rides it
- // down with the selection panel and stops it on the bottom edge of the screen.
- //
TheTacticalView->setHeight((Int)(TheDisplay->getHeight()));
// EA's: the whole bar drops to a tenth of the screen from the bottom, its top edge still showing
- if( barIsClassic() )
- {
- m_contextParent[ CP_MASTER ]->winSetPosition( m_defaultControlBarPosition.x,
- REAL_TO_INT( TheDisplay->getHeight() - 0.1f * TheDisplay->getHeight() ) );
- m_contextParent[ CP_MASTER ]->winHide(FALSE);
- setUpDownImages();
- return;
- }
-
- m_contextParent[ CP_MASTER ]->winSetPosition(m_defaultControlBarPosition.x, m_defaultControlBarPosition.y);
+ m_contextParent[ CP_MASTER ]->winSetPosition( m_defaultControlBarPosition.x,
+ REAL_TO_INT( TheDisplay->getHeight() - 0.1f * TheDisplay->getHeight() ) );
m_contextParent[ CP_MASTER ]->winHide(FALSE);
-
- showPanel( CB_PANEL_LEFT, FALSE );
- showPanel( CB_PANEL_CENTER, FALSE );
- showPanel( CB_PANEL_RIGHT, FALSE );
-
setUpDownImages();
}
@@ -6529,161 +5493,15 @@ void ControlBar::initSpecialPowershortcutBar( Player *player)
}
//-------------------------------------------------------------------------------------------------
-/** The shipped layout is one slot wide and eleven tall, so a general late in a game runs his powers
- * from the radar all the way to the top of the screen - a column nobody can take in at a glance.
- * The same slots are re-laid here as rows of SPECIAL_POWER_SHORTCUT_COLS, filling right to left
- * and then upward, so the first shortcut keeps the corner it has always been in and the bar grows
- * sideways instead of climbing.
- *
- * Every measurement is read back off the layout - each side ships its own bar, and the loader has
- * already scaled it to the running resolution - so nothing here is in 800x600 pixels. */
+/** The shipped column, stretched with the bar, on the right edge of the screen and climbing from
+ * the top of the bar as 1.04's did. Its frame runs most of the screen's height and took every
+ * click over the battlefield and the promotion screen beside the powers; the frame takes none
+ * now, its slots and buttons still do. */
//-------------------------------------------------------------------------------------------------
void ControlBar::arrangeSpecialPowerShortcutGrid( void )
{
- if( m_specialPowerShortcutParent == NULL )
- return;
-
- //
- // Classic keeps the shipped column, stretched with the bar, on the right edge of the screen and
- // climbing from the top of the bar as 1.04's did. Its frame runs most of the screen's height and
- // took every click over the battlefield and the promotion screen beside the powers; the frame
- // takes none now, its slots and buttons still do
- //
- if( barIsClassic() )
- {
+ if( m_specialPowerShortcutParent )
m_specialPowerShortcutParent->winSetStatus( WIN_STATUS_NO_INPUT );
- return;
- }
- if( m_currentlyUsedSpecialPowersButtons < 2 )
- return;
-
- //
- // the two lowest slots give the step the artwork was drawn with: the column runs upward, so
- // the second slot sits above the first and the difference is one row
- //
- Int firstX, firstY, secondX, secondY, slotWidth, slotHeight;
- m_specialPowerShortcutButtonParents[ 0 ]->winGetPosition( &firstX, &firstY );
- m_specialPowerShortcutButtonParents[ 1 ]->winGetPosition( &secondX, &secondY );
- m_specialPowerShortcutButtonParents[ 0 ]->winGetSize( &slotWidth, &slotHeight );
-
- const Int rowStep = firstY - secondY;
- if( rowStep <= 0 || slotWidth <= 0 || slotHeight <= 0 )
- return;
-
- ICoord2D cameoSize, cameoOffset;
- Int columnStep;
- if( getSpecialPowerTrayLayout( NULL, &cameoSize, &cameoOffset, &columnStep ) == FALSE )
- return;
-
- const Int columns = MIN( m_currentlyUsedSpecialPowersButtons, (Int)SPECIAL_POWER_SHORTCUT_COLS );
- const Int widen = ( columns - 1 ) * columnStep;
-
- //
- // the bar itself has to cover the columns we are adding. winPointInChild only descends into
- // the children of a window the cursor is already inside, so a button hanging off the left edge
- // of its parent would draw fine and never take a click.
- //
- Int barX, barY, barWidth, barHeight;
- m_specialPowerShortcutParent->winGetPosition( &barX, &barY );
- m_specialPowerShortcutParent->winGetSize( &barWidth, &barHeight );
- m_specialPowerShortcutParent->winSetSize( barWidth + widen, barHeight );
- m_specialPowerShortcutParent->winSetPosition( barX - widen, barY );
-
- //
- // slot positions are relative to that bar, so widening it to the left moves every slot right by
- // the same amount first: the rightmost column has to land back where the old column stood
- //
- for( Int i = 0; i < MAX_SPECIAL_POWER_SHORTCUTS; i++ )
- {
- GameWindow *slot = m_specialPowerShortcutButtonParents[ i ];
- GameWindow *button = m_specialPowerShortcutButtons[ i ];
- if( slot == NULL || button == NULL )
- continue;
-
- const Int column = i % SPECIAL_POWER_SHORTCUT_COLS;
- const Int row = i / SPECIAL_POWER_SHORTCUT_COLS;
-
- slot->winSetPosition( firstX + widen - column * columnStep, firstY - row * rowStep );
-
- //
- // the cameo fills that hole exactly, rounded to the nearest pixel. The layout put it at
- // 1,7 39x27, which sat over the frame on the left and left a gap under it
- //
- button->winSetSize( cameoSize.x, cameoSize.y );
- button->winSetPosition( cameoOffset.x, cameoOffset.y );
- }
-
- //
- // children draw from the tail of the list back to the head, so the head is the one on top.
- // Bringing them to the top in reverse leaves slot 1 at the head and the order running down
- // the list from there: in a row the slot to the right covers the one to its left, and the row
- // nearest the corner covers the row above it.
- //
- for( Int j = MAX_SPECIAL_POWER_SHORTCUTS - 1; j >= 0; j-- )
- if( m_specialPowerShortcutButtonParents[ j ] )
- m_specialPowerShortcutButtonParents[ j ]->winBringToTop();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The page draws the cell behind each power, so the slot's own tray picture, in the side's art,
- * is not drawn under it. */
-static void drawNoTray( GameWindow *window, WinInstanceData *instData )
-{
-}
-
-Int ControlBar::placeSpecialPowerShortcutGrid( const ICoord2D *corner, const ICoord2D &cell, Int gap )
-{
- if( m_specialPowerShortcutParent == NULL || m_specialPowerShortcutButtonParents[ 0 ] == NULL )
- return 0;
-
- if( corner == NULL || m_currentlyUsedSpecialPowersButtons < 1 )
- {
- if( !m_specialPowerShortcutParent->winIsHidden() )
- m_specialPowerShortcutParent->winHide( TRUE );
- return 0;
- }
-
- // the powers showing, not the slots the side has: m_currentlyUsedSpecialPowersButtons is eleven
- // for a general with one power ready
- const Int shown = countVisibleSpecialPowerShortcuts();
- if( shown < 1 )
- return 0;
-
- // the bar covers every cell, or a cell off its edge draws and never takes a click, and it is only
- // as big as the powers shown, so the battlefield round them takes its own clicks. Its position is
- // its own parent's, and the layout's root is not the screen
- const Int columns = ( shown + SPECIAL_POWER_SHORTCUT_COLS - 1 ) / SPECIAL_POWER_SHORTCUT_COLS;
- const Int rows = MIN( shown, (Int)SPECIAL_POWER_SHORTCUT_COLS );
- const Int width = columns * cell.x + ( columns - 1 ) * gap;
- const Int height = rows * cell.y + ( rows - 1 ) * gap;
- Int parentX = 0, parentY = 0;
- if( m_specialPowerShortcutParent->winGetParent() )
- m_specialPowerShortcutParent->winGetParent()->winGetScreenPosition( &parentX, &parentY );
- m_specialPowerShortcutParent->winSetPosition( corner->x - parentX, corner->y - height - parentY );
- m_specialPowerShortcutParent->winSetSize( width, height );
- m_specialPowerShortcutParent->winSetDrawFunc( drawNoTray );
- if( m_specialPowerShortcutParent->winIsHidden() )
- m_specialPowerShortcutParent->winHide( FALSE );
-
- // the first power in the corner, its group of SPECIAL_POWER_SHORTCUT_COLS going up from it and the
- // next group in the column to the right: F1's group is the first column, F2's the second, the
- // order the group keys count in. Each cameo fills its cell
- for( Int i = 0; i < MAX_SPECIAL_POWER_SHORTCUTS; i++ )
- {
- GameWindow *slot = m_specialPowerShortcutButtonParents[ i ];
- GameWindow *button = m_specialPowerShortcutButtons[ i ];
- if( slot == NULL || button == NULL )
- continue;
-
- const Int column = i / SPECIAL_POWER_SHORTCUT_COLS;
- const Int row = i % SPECIAL_POWER_SHORTCUT_COLS;
- slot->winSetPosition( column * ( cell.x + gap ), height - ( row + 1 ) * cell.y - row * gap );
- slot->winSetSize( cell.x, cell.y );
- slot->winSetDrawFunc( drawNoTray );
- button->winSetSize( cell.x, cell.y );
- button->winSetPosition( 0, 0 );
- }
- return shown;
}
//-------------------------------------------------------------------------------------------------
@@ -7159,45 +5977,16 @@ void ControlBar::drawSpecialPowerShortcutMultiplierText()
if( command == NULL )
continue;
- // the button's text: the key that presses it (SHORTCUT_SLOTnn, F1..), then how many
- // of its superweapons are ready - a "1" is superfluous (Lorenzen)
+ // the button's text: how many of its superweapons are ready, as the game shipped - a "1" is
+ // superfluous (Lorenzen)
UnicodeString text;
- //
- // a power takes two keys, so only the half of them that the next press can reach is
- // labelled: with no group pending that is the foot of each group's column, carrying the
- // key that picks the group; with one pending it is that group's powers, carrying their own keys.
- // Which key a slot number means is up to CommandMap.ini - getMetaKeyLabel returns
- // nothing for an unbound one.
- //
- // Classic's powers wear no key, only how many are ready, as the game shipped
- Int keySlot = -1;
- if( barIsClassic() )
- {
- }
- else if( m_specialPowerShortcutRow < 0 )
- {
- if( i % SPECIAL_POWER_SHORTCUT_COLS == 0 )
- keySlot = i / SPECIAL_POWER_SHORTCUT_COLS;
- }
- else if( i / SPECIAL_POWER_SHORTCUT_COLS == m_specialPowerShortcutRow )
- keySlot = i % SPECIAL_POWER_SHORTCUT_COLS;
-
- if( keySlot >= 0 && keySlot < MAX_SPECIAL_POWER_SHORTCUTS )
- text = getMetaKeyLabel( (GameMessage::Type)(GameMessage::MSG_META_SHORTCUT_SLOT01 + keySlot) );
-
const SpecialPowerTemplate *spTemplate = command->getSpecialPowerTemplate();
Int numReady = 0;
if( spTemplate )
numReady = ThePlayerList->getLocalPlayer()->countReadyShortcutSpecialPowersOfType( spTemplate->getSpecialPowerType() );
if( numReady > 1 )
- {
- UnicodeString count;
- count.format( u"%d", numReady );
- if( !text.isEmpty() )
- text.concat( u" " );
- text.concat( count );
- }
+ text.format( u"%d", numReady );
GadgetButtonSetText( win, text );
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cpp
index e25d1101f..fc6f1e162 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cpp
@@ -345,22 +345,6 @@ void ControlBar::doTransportInventoryUI( Object *transport, const CommandSet *co
} // end doTransportInventoryUI
-//-------------------------------------------------------------------------------------------------
-/** Which command button belongs in each of the command bar's slots for this object: the
- command set, slot for slot. No paging - every structure shows at once and the ones the
- player cannot afford or has no prerequisite for just grey out through the availability
- pass. (The BUILD_PAGE machinery is dormant, kept in case pages come back.) */
-//-------------------------------------------------------------------------------------------------
-void ControlBar::buildCommandLayout( Object *obj, const CommandSet *commandSet,
- const CommandButton **slot )
-{
- for( Int i = 0; i < MAX_COMMANDS_PER_SET; i++ )
- slot[ i ] = commandSet->getCommandButton( i );
-
- m_buildPage = BUILD_PAGE_ROOT;
-
-} // end buildCommandLayout
-
//-------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
void ControlBar::populateCommand( Object *obj )
@@ -398,21 +382,10 @@ void ControlBar::populateCommand( Object *obj )
if( obj->getContain() && obj->getContain()->isDisplayedOnControlBar() )
doTransportInventoryUI( obj, commandSet );
- // what goes in each slot; a builder's structures may be spread across pages
+ // what goes in each slot: the command set, slot for slot
const CommandButton *slot[ MAX_COMMANDS_PER_SET ];
- buildCommandLayout( obj, commandSet, slot );
-
- // a builder standing in for an empty selection offers its buildings, not its orders: nobody
- // asked that dozer to go and clear mines, or a Demolition worker to blow itself up, the owner's call
- if( m_standInBuilderID != INVALID_DRAWABLE_ID && obj->getDrawable()
- && obj->getDrawable()->getID() == m_standInBuilderID )
- {
- for( i = 0; i < MAX_COMMANDS_PER_SET; i++ )
- {
- const Int place = slot[ i ] ? ControlBar_namedCommandPlace( slot[ i ]->getName().str() ) : -1;
- if( place == COMMAND_PLACE_CLEAR_MINES || place == COMMAND_PLACE_EXPLOSIVE )
- slot[ i ] = NULL;
- } }
+ for( i = 0; i < MAX_COMMANDS_PER_SET; i++ )
+ slot[ i ] = commandSet->getCommandButton( i );
// populate the button with commands defined
const CommandButton *commandButton;
@@ -725,12 +698,11 @@ void ControlBar::resetBuildQueueButtons( void )
//-------------------------------------------------------------------------------------------------
UnsignedInt getQueueCap( const ProductionUpdateInterface *pu )
{
- const UnsignedInt cap = pu->getMaxQueueEntries();
- return TheGlobalData->isClassicUI() ? MIN( cap, (UnsignedInt)MAX_BUILD_QUEUE_BUTTONS ) : cap;
+ return MIN( pu->getMaxQueueEntries(), (UnsignedInt)MAX_BUILD_QUEUE_BUTTONS );
}
//-------------------------------------------------------------------------------------------------
-/** Classic's build queue, EA's: the first MAX_BUILD_QUEUE_BUTTONS entries of the producer's queue
+/** The build queue, EA's: the first MAX_BUILD_QUEUE_BUTTONS entries of the producer's queue
* on the queue buttons, each a cancel of its own entry. */
//-------------------------------------------------------------------------------------------------
void ControlBar::populateBuildQueue( Object *producer )
@@ -771,10 +743,10 @@ void ControlBar::populateBuildQueue( Object *producer )
} // end populateBuildQueue
//-------------------------------------------------------------------------------------------------
-/** Classic: the queue stands where the portrait does while the producer has anything in it, the
- * first entry's build clock on its button, and the portrait comes back when it empties. */
+/** The queue stands where the portrait does while the producer has anything in it, the first
+ * entry's build clock on its button, and the portrait comes back when it empties. */
//-------------------------------------------------------------------------------------------------
-void ControlBar::updateClassicBuildQueue( Object *obj, ProductionUpdateInterface *pu )
+void ControlBar::updateBuildQueue( Object *obj, ProductionUpdateInterface *pu )
{
GameWindow *queue = m_contextParent[ CP_BUILD_QUEUE ];
const Bool busy = pu && pu->firstProduction() != NULL;
@@ -801,7 +773,7 @@ void ControlBar::updateClassicBuildQueue( Object *obj, ProductionUpdateInterface
GadgetButtonDrawInverseClock( m_queueData[ 0 ].control, pu->firstProduction()->getPercentComplete(), m_buildUpClockColor );
-} // end updateClassicBuildQueue
+} // end updateBuildQueue
//-------------------------------------------------------------------------------------------------
@@ -835,15 +807,10 @@ void ControlBar::updateContextCommand( void )
// get production update for those objects that have one
ProductionUpdateInterface *pu = obj ? obj->getProductionUpdateInterface() : NULL;
- //
- // the right HUD always belongs to the selection, so the build queue panel is never shown
- // over it: a unit build button carries its own queue (radial progress, count badge,
- // right-click cancels the last one) and the producer's world bar shows the rest. Classic
- // has none of that, so a lone producer with something queued shows its queue where its
- // portrait was, as the game shipped
- //
- if( TheGlobalData->isClassicUI() && m_currContext == CB_CONTEXT_COMMAND )
- updateClassicBuildQueue( obj, pu );
+ // a lone producer with something queued shows its queue where its portrait was, as the game
+ // shipped
+ if( m_currContext == CB_CONTEXT_COMMAND )
+ updateBuildQueue( obj, pu );
else if( m_contextParent[ CP_BUILD_QUEUE ]->winIsHidden() == FALSE )
{
m_contextParent[ CP_BUILD_QUEUE ]->winHide( TRUE );
@@ -882,31 +849,25 @@ void ControlBar::updateContextCommand( void )
win->winClearStatus( WIN_STATUS_CANCEL_WHEN_DISABLED );
//
- // a unit build button wears its own queue: a radial fill over the cameo while its unit
- // is the one being built, and a corner badge with how many of it are queued
+ // a unit build button wears a radial fill over the cameo while its unit is the one being
+ // built, and right-click cancels the last one queued
//
if( command->getCommandType() == GUI_COMMAND_UNIT_BUILD && pu )
{
//
// a queue belongs to one building. With several producers selected the bar shows the
- // representative's queue, which is a lie about the rest of the selection, so the badge
- // and the radial fill stay off (and right-click cancel is refused, see
- // ControlBar::cancelLastQueuedUnit). The clock clears itself after each draw; the
- // count badge does not, so put it back to zero.
+ // representative's queue, which is a lie about the rest of the selection, so the radial
+ // fill stays off (and right-click cancel is refused, see
+ // ControlBar::cancelLastQueuedUnit). The queue is counted on the queue buttons over the
+ // portrait, not on the button.
//
- if( m_currContext == CB_CONTEXT_MULTI_SELECT )
- {
- GadgetButtonSetCount( win, 0 );
- }
- else
+ if( m_currContext != CB_CONTEXT_MULTI_SELECT )
{
Int queued = 0;
for( const ProductionEntry *p = pu->firstProduction(); p; p = pu->nextProduction( p ) )
if( p->getProductionType() == PRODUCTION_UNIT &&
p->getProductionObject() == command->getThingTemplate() )
queued++;
- // Classic counts its queue on the queue buttons over the portrait, not on the button
- GadgetButtonSetCount( win, TheGlobalData->isClassicUI() ? 0 : queued );
if( queued > 0 && obj->isLocallyControlled() )
win->winSetStatus( WIN_STATUS_CANCEL_WHEN_DISABLED );
@@ -917,47 +878,6 @@ void ControlBar::updateContextCommand( void )
}
}
- //
- // what this button costs in seconds. The radial fill says "some of the way there" and
- // nothing about how long that is, which is the one number a build decision needs.
- //
- // It stays the build time while the thing is being built rather than counting down to it:
- // the number on the button answers "what does one of these cost me", and that question does
- // not stop being asked because one is already on the way - a counting number turns the one
- // stable figure on the bar into something you cannot read off at a glance, and the queue's
- // own progress is already on the cameo (the radial fill and the count badge) and over the
- // producer itself.
- //
- if( command->getCommandType() == GUI_COMMAND_UNIT_BUILD ||
- command->getCommandType() == GUI_COMMAND_DOZER_CONSTRUCT )
- {
- const ThingTemplate *tmpl = command->getThingTemplate();
- Player *localPlayer = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
- // Classic's cameos are EA's pictures alone: no seconds, price or power on them. The
- // seconds were wall-clock ones, so they crept up whenever the match ran under 30 frames
- if( tmpl && localPlayer && !TheGlobalData->isClassicUI() )
- {
- GadgetButtonSetSeconds( win, ControlBar_secondsFromFrames( (Real)tmpl->calcTimeToBuild( localPlayer ) ) );
- //
- // ... and what it costs, in the opposite corner. The price was only ever in the
- // tooltip, which means hovering one button at a time to compare two of them - and
- // it is the other half of the question the seconds answer. It is this player's
- // price, so a faction discount or a general's promotion shows in it.
- //
- GadgetButtonSetCost( win, tmpl->calcCostToBuild( localPlayer ) );
-
- //
- // ... and what it does to the power grid, in the fourth corner. Money and time are
- // the two numbers already on the button and power is the third thing a base spends;
- // it was the only one you had to hover for, which is the wrong way round for the
- // building you are putting up because the lights went out. Structures only - a unit
- // has no power line, and the bottom right corner is the queue count's on a unit.
- //
- if( command->getCommandType() == GUI_COMMAND_DOZER_CONSTRUCT )
- GadgetButtonSetPower( win, tmpl->getEnergyProduction() );
- }
- }
-
//
// an upgrade button wears the same radial fill while its upgrade is the one being
// researched. An upgrade is never queued twice on one building, so there is no count badge
@@ -972,14 +892,6 @@ void ControlBar::updateContextCommand( void )
const ProductionEntry *entry = NULL;
Bool queuedHere = findUpgradeInSelection( command->getUpgradeTemplate(), &entry );
- const UpgradeTemplate *ut = command->getUpgradeTemplate();
- Player *localPlayer = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
- if( ut && localPlayer && !TheGlobalData->isClassicUI() )
- {
- GadgetButtonSetSeconds( win, ControlBar_secondsFromFrames( (Real)ut->calcTimeToBuild( localPlayer ) ) );
- GadgetButtonSetCost( win, ut->calcCostToBuild( localPlayer ) );
- }
-
if( queuedHere )
{
upgradeQueuedHere = TRUE;
@@ -1393,10 +1305,7 @@ CommandAvailability ControlBar::getCommandAvailability( const CommandButton *com
}
//
- // The cap is the queue's own depth (INI MaxQueueEntries, 100 by default here), not the number
- // of buttons the build-queue strip happens to have room for - those nine buttons are a display
- // limit and were greying every build button out at nine units. Classic shows its queue on
- // those nine buttons, so there they are the cap (getQueueCap).
+ // The queue is shown on the nine build-queue buttons, so they are the cap (getQueueCap).
//
// >=, not ==: a shift-click queues several at once, so an exact-equality test stopped firing
// once the count stepped past the cap.
@@ -1709,24 +1618,6 @@ CommandAvailability ControlBar::getCommandAvailability( const CommandButton *com
if( SuperweaponMissileSilencedInMatch( command->getSpecialPowerTemplate()->getSpecialPowerType() ) )
return COMMAND_HIDDEN;
- //
- // the cooldown in seconds: what is left of it while the power charges, and the whole
- // of it while the power is ready, so you can see what firing it will cost you
- //
- {
- const SpecialPowerTemplate *spTemplate = command->getSpecialPowerTemplate();
- UnsignedInt now = TheGameLogic->getFrame();
- UnsignedInt readyFrame = mod->getReadyFrame();
-
- // frame numbers are unsigned - a ready frame already behind us wraps if subtracted
- Real frames = ( readyFrame > now ) ? (Real)( readyFrame - now ) : 0.0f;
- if( frames <= 0.0f && spTemplate )
- frames = (Real)spTemplate->getReloadTime();
-
- // Classic's power buttons are EA's pictures alone, like its build buttons
- GadgetButtonSetSeconds( applyToWin, TheGlobalData->isClassicUI() ? 0 : ControlBar_secondsFromFrames( frames ) );
- }
-
// Pro Rules: the power is there and the button stays dead
if( ProRulesRefuseSpecialPower( obj->getControllingPlayer(), command->getSpecialPowerTemplate()->getSpecialPowerType() ) )
return COMMAND_RESTRICTED;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp
index cc4bcd17a..f61064fd2 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp
@@ -267,20 +267,6 @@ CBCommandStatus ControlBar::processCommandUI( GameWindow *control,
if( commandButton == NULL )
return CBC_COMMAND_NOT_USED;
- //
- // a builder's page menu buttons only move the command bar between its own pages - none of
- // the command handling below applies to them, they never reach the game logic at all.
- //
- if( commandButton->getCommandType() == GUI_COMMAND_BUILD_PAGE )
- {
- Int page = BUILD_PAGE_ROOT;
- for( Int i = 0; i < BUILD_PAGE_COUNT; i++ )
- if( commandButton == m_buildPageButton[ i ] )
- page = i;
- setBuildPage( page );
- return CBC_COMMAND_USED;
- }
-
// if the button is flashing, tell it to stop flashing
commandButton->setFlashCount(0);
TheControlBar->setFlash( FALSE );
@@ -343,13 +329,11 @@ CBCommandStatus ControlBar::processCommandUI( GameWindow *control,
TheAudio->addAudioEvent( &sound );
}
- if( commandButton->getCommandType() == GUI_COMMAND_ATTACK_MOVE && !TheGlobalData->isClassicUI() )
+ if( commandButton->getCommandType() == GUI_COMMAND_ATTACK_MOVE )
{
// The attack move button arms the same key its hotkey does, rather than becoming a pending
// GUI command that one click uses up: shift then keeps it armed for a row of points. It
// takes the place of whatever command was waiting for a target, as any other button would.
- // Classic's is 1.04's, a GUI command like guard: the left button aims it in either mouse
- // setup and the right one takes it back.
TheInGameUI->setGUICommand( NULL );
TheMessageStream->appendMessage( GameMessage::MSG_META_TOGGLE_ATTACKMOVE );
}
@@ -723,8 +707,7 @@ CBCommandStatus ControlBar::processCommandUI( GameWindow *control,
DEBUG_LOG(("UpgradeSpread player upgrade '%s' ctx %d selCount %d rep obj %d\n",
upgradeT->getUpgradeName().str(), (Int)m_currContext,
TheInGameUI ? TheInGameUI->getSelectCount() : -1, (Int)obj->getID()));
- // Classic buys it from the one object the bar stands for, as the game shipped
- if( m_currContext == CB_CONTEXT_MULTI_SELECT && !TheGlobalData->isClassicUI() )
+ if( m_currContext == CB_CONTEXT_MULTI_SELECT )
producer = pickUpgradeProducer( upgradeT, obj );
ProductionUpdateInterface* pu = producer ? producer->getProductionUpdateInterface() : NULL;
@@ -761,7 +744,7 @@ CBCommandStatus ControlBar::processCommandUI( GameWindow *control,
break;
// shift: the unit buys it when its list gets there, and the money is looked at then
- const Bool queued = TheInGameUI->isInWaypointMode() && !TheGlobalData->isClassicUI();
+ const Bool queued = TheInGameUI->isInWaypointMode();
//Make sure the player can really make this
if( !queued && TheUpgradeCenter->canAffordUpgrade( ThePlayerList->getLocalPlayer(), upgradeT, TRUE ) == FALSE )
@@ -789,9 +772,9 @@ CBCommandStatus ControlBar::processCommandUI( GameWindow *control,
// time, since the bar cannot see the queue the previous click just filled until the
// next logic frame - so a click on four selected barracks upgraded one of them and
// the other three clicks were silently thrown away by the duplicate guard in
- // ProductionUpdate::queueUpgrade. Classic keeps that one object.
+ // ProductionUpdate::queueUpgrade.
//
- if( m_currContext == CB_CONTEXT_MULTI_SELECT && !TheGlobalData->isClassicUI() )
+ if( m_currContext == CB_CONTEXT_MULTI_SELECT )
{
Player *player = ThePlayerList->getLocalPlayer();
Int purse = player->getMoney()->countMoney();
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp
index 81c5b423c..11d3a5ea9 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarScheme.cpp
@@ -84,9 +84,6 @@ enum{
COMMAND_BAR_SIZE_OFFSET = 0
};
-/// where GeneralsExpPoints.wnd hangs its panel from, in the 800x600 the layout was authored at
-static const Real GEN_EXP_DESIGN_TOP = 3.0f;
-
const FieldParse ControlBarSchemeManager::m_controlBarSchemeFieldParseTable[] =
{
@@ -466,14 +463,6 @@ void ControlBarScheme::init(void)
{
if(TheControlBar)
{
- //
- // Before anything below asks a window where it is on screen. switchControlBarStage sends
- // the panels home but they travel there over a fifth of a second, so on its own it leaves
- // every screen position read in this function reading a bar that is still on its way - and
- // the money readout, the two tabs and the toolbar column are all placed from those reads.
- // See ControlBar::clearPanelSlide.
- //
- TheControlBar->clearPanelSlide();
TheControlBar->switchControlBarStage(CONTROL_BAR_STAGE_DEFAULT);
TheControlBar->updateBuildQueueDisabledImages( m_buttonQueueImage );
TheControlBar->updateRightHUDImage(m_rightHUDImage);
@@ -577,34 +566,11 @@ void ControlBarScheme::init(void)
if(win)
{
win->winSetEnabledImage(0,m_powerPurchaseImage);
- // Classic keeps the loader's stretch, as the game shipped, over the HUD frame (ControlBarLayoutUniform)
- if( m_powerPurchaseImage && !TheGlobalData->isClassicUI() )
- {
- //
- // The rank screen is one painting, and this line is what decides how big it is drawn -
- // which is why laying the screen out uniformly at startup was not enough: every side
- // change put the painting back at the loader's two separate scales, a third wider than
- // tall at 16:9, over children that had been placed squarely.
- //
- // One scale, and then the panel is centred on the screen by its own width rather than
- // left hanging off the anchor its authored rectangle had. Its children are positioned
- // relative to it, so the whole screen moves as one piece.
- //
- const Real s = ControlBarUniformScale();
- const Int w = REAL_TO_INT_CEIL( m_powerPurchaseImage->getImageWidth() * s );
- const Int h = REAL_TO_INT_CEIL( m_powerPurchaseImage->getImageHeight() * s );
-
- win->winSetSize( w, h );
- win->winSetPosition( ( TheDisplay->getWidth() - w ) / 2,
- REAL_TO_INT_FLOOR( GEN_EXP_DESIGN_TOP * s ) );
- }
- else if( TheGlobalData->isClassicUI() )
- {
- // the shipped painting at its shipped size, in the middle of the screen
- Int w = 0, h = 0;
- win->winGetSize( &w, &h );
- win->winSetPosition( ( (Int)TheDisplay->getWidth() - w ) / 2, ( (Int)TheDisplay->getHeight() - h ) / 2 );
- }
+ // the loader's stretch, as the game shipped: the painting at its shipped size, in the middle
+ // of the screen
+ Int w = 0, h = 0;
+ win->winGetSize( &w, &h );
+ win->winSetPosition( ( (Int)TheDisplay->getWidth() - w ) / 2, ( (Int)TheDisplay->getHeight() - h ) / 2 );
}
//
@@ -1185,9 +1151,7 @@ Bool ControlBarSchemeManager::findModWindowRect( Int mod, const AsciiString& dec
//-----------------------------------------------------------------------------
/** A mod's bar is laid out EA's way, one stretch per axis over the whole screen (see
* ControlBarPanelDesignToScreen), so the three panel transforms are one and the same and the
- * painting goes back together at the seams below. The cut only shows while one panel slides or
- * stands down on its own - the observer's hidden middle - and each piece then travels with its
- * panel. The seams lie in the gaps of The End of Days' painting (radar to 142, middle 247-552,
+ * painting goes back together at the seams below. The seams lie in the gaps of The End of Days' painting (radar to 142, middle 247-552,
* right from 677, in design units) and inside ShockWave's one-piece one. */
//-----------------------------------------------------------------------------
void ControlBarSchemeManager::drawModPainting( ICoord2D offset, Bool foreground )
@@ -1204,10 +1168,6 @@ void ControlBarSchemeManager::drawModPainting( ICoord2D offset, Bool foreground
for( Int p = 0; p < ControlBar::CB_PANEL_COUNT; p++ )
{
- if( TheControlBar->isPanelHidden( p ) )
- continue;
- const Int slide = TheControlBar->getPanelSlideOffset( p );
-
IRegion2D band, clip;
band.lo.x = seams[ p ];
band.hi.x = seams[ p + 1 ];
@@ -1216,8 +1176,8 @@ void ControlBarSchemeManager::drawModPainting( ICoord2D offset, Bool foreground
ControlBarPanelDesignToScreen( p, &band, width, height, &clip );
clip.lo.x += offset.x;
clip.hi.x += offset.x;
- clip.lo.y += offset.y + slide;
- clip.hi.y += offset.y + slide;
+ clip.lo.y += offset.y;
+ clip.hi.y += offset.y;
TheDisplay->setClipRegion( &clip );
TheDisplay->enableClipping( TRUE );
@@ -1235,8 +1195,8 @@ void ControlBarSchemeManager::drawModPainting( ICoord2D offset, Bool foreground
design.hi.x = REAL_TO_INT_CEIL( ( schemeImage->m_position.x + schemeImage->m_size.x ) * toDesignX );
design.hi.y = REAL_TO_INT_CEIL( ( schemeImage->m_position.y + schemeImage->m_size.y ) * toDesignY );
ControlBarPanelDesignToScreen( p, &design, width, height, &rect );
- TheDisplay->drawImage( schemeImage->m_image, rect.lo.x + offset.x, rect.lo.y + offset.y + slide,
- rect.hi.x + offset.x, rect.hi.y + offset.y + slide );
+ TheDisplay->drawImage( schemeImage->m_image, rect.lo.x + offset.x, rect.lo.y + offset.y,
+ rect.hi.x + offset.x, rect.hi.y + offset.y );
}
}
TheDisplay->enableClipping( FALSE );
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarCallback.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarCallback.cpp
index 2e1fe45b4..6176d30a9 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarCallback.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarCallback.cpp
@@ -340,41 +340,16 @@ WindowMsgHandledType LeftHUDInput( GameWindow *window, UnsignedInt msg,
// divides the world the other way round, and so did the radar in the game as shipped,
// except under EA's Alternate Mouse Setup, which looked with the left.
const UnsignedInt lookButton = TheGlobalData->leftButtonOrders() ? GWM_RIGHT_DOWN : GWM_LEFT_DOWN;
- // Classic's look is 1.04's, the press alone: a drag on the radar left the camera where it was
+ // the classic mouse's look is 1.04's, the press alone: a drag on the radar left the camera
+ // where it was
if( drawableList->empty() || msg == lookButton )
{
radarLookAt( &world );
- if( !TheGlobalData->isClassicUI() )
+ if( !TheGlobalData->isClassicMouse() )
s_radarLookDrag = (msg == GWM_LEFT_DOWN) ? GWM_LEFT_DRAG : GWM_RIGHT_DRAG;
break;
}
- // Classic orders what 1.04's radar ordered: a targeted special power, the attack move
- // command, and otherwise a move, whatever the keys held or the units selected
- if( TheGlobalData->isClassicUI() )
- {
- const CommandButton *command = TheInGameUI->getGUICommand();
- if( command
- && (command->getCommandType() == GUI_COMMAND_SPECIAL_POWER || command->getCommandType() == GUI_COMMAND_SPECIAL_POWER_FROM_SHORTCUT)
- && BitTest( command->getOptions(), NEED_TARGET_POS ) )
- {
- TheGameClient->evaluateContextCommand( NULL, &world, CommandTranslator::DO_COMMAND );
- }
- else if( command && command->getCommandType() == GUI_COMMAND_ATTACK_MOVE )
- {
- GameMessage *order = TheMessageStream->appendMessage( GameMessage::MSG_DO_ATTACKMOVETO );
- order->appendLocationArgument( world );
- pickAndPlayUnitVoiceResponse( TheInGameUI->getAllSelectedDrawables(), GameMessage::MSG_DO_ATTACKMOVETO );
- }
- else
- {
- GameMessage *order = TheMessageStream->appendMessage( GameMessage::MSG_DO_MOVETO );
- order->appendLocationArgument( world );
- pickAndPlayUnitVoiceResponse( drawableList, GameMessage::MSG_DO_MOVETO );
- }
- break;
- }
-
// The order the same press on that spot of the ground gives: a special power, an attack
// move or a guard off an armed key, a rally point, a move, each one queued under shift.
TheGameClient->evaluateContextCommand( NULL, &world, CommandTranslator::DO_COMMAND );
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarPopupDescription.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarPopupDescription.cpp
index 92f7a0b2d..52810beea 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarPopupDescription.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarPopupDescription.cpp
@@ -91,16 +91,12 @@
#include "GameClient/ControlBar.h"
#include "GameClient/DisplayStringManager.h"
#include "GameLogic/GameLogic.h"
-#include "GameLogic/Damage.h"
-#include "GameLogic/Module/FireWeaponWhenDeadBehavior.h"
-#include "GameLogic/Module/MaxHealthUpgrade.h"
#include "GameLogic/Module/OverchargeBehavior.h"
#include "GameLogic/Module/ProductionUpdate.h"
#include "GameLogic/ScriptEngine.h"
#include "GameNetwork/NetworkInterface.h"
#include "GameNetwork/GameSpy/ThreadUtils.h" // WideCharStringToMultiByte
-#include "GameLogic/Weapon.h" // WeaponTemplate/WeaponBonus for the detailed build tooltip
#ifdef _INTERNAL
// for occasional debugging...
//#pragma optimize("", off)
@@ -113,373 +109,6 @@ static AnimateWindowManager *theAnimateWindowManager = NULL;
static GameWindow *prevWindow = NULL;
static Bool useAnimation = FALSE;
-static void drawNothing( GameWindow *window, WinInstanceData *instData )
-{
-}
-
-/** `window` and every child of it, down, draw nothing from now on. */
-static void silenceWindowTree( GameWindow *window )
-{
- window->winSetDrawFunc( drawNothing );
- for( GameWindow *child = window->winGetChild(); child; child = child->winGetNext() )
- silenceWindowTree( child );
-}
-
-/** Every window of `layout` draws nothing from now on. The layout's own list, not the windows'
- * sibling chain: a top level window's next is the next window on screen, and walking that silenced
- * the command bar and everything else the moment a build tooltip came up. */
-static void silenceLayout( WindowLayout *layout )
-{
- for( GameWindow *window = layout->getFirstWindow(); window; window = window->winGetNextInLayout() )
- silenceWindowTree( window );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** What an upgrade does to a unit, as far as the build tooltip counts it: the modules it triggers
- * on that unit, added together. */
-//-------------------------------------------------------------------------------------------------
-struct UpgradeEffect
-{
- Bool weaponSet; ///< WeaponSetUpgrade: the PLAYER_UPGRADE weapon set
- Bool weaponBonus; ///< WeaponBonusUpgrade: the PLAYER_UPGRADE weapon bonus
- Bool armor; ///< ArmorUpgrade, which the tooltip names without a figure
- Real addHealth; ///< MaxHealthUpgrade
-};
-
-static void addEffect( UpgradeEffect &into, const UpgradeEffect &effect )
-{
- into.weaponSet = into.weaponSet || effect.weaponSet;
- into.weaponBonus = into.weaponBonus || effect.weaponBonus;
- into.armor = into.armor || effect.armor;
- into.addHealth += effect.addHealth;
-}
-
-typedef std::map< std::string, UpgradeEffect > UpgradeEffects;
-
-//-------------------------------------------------------------------------------------------------
-/** Every upgrade that triggers one of `thing`'s weapon, armour or health upgrade modules, by the
- * upgrade's name, and what it does. A module that wants all its triggers at once is counted under
- * each of them alone. */
-// ponytail: RequiresAllTriggers is read as any trigger; no stock unit hangs a figure on two upgrades at once
-//-------------------------------------------------------------------------------------------------
-static void findUpgradeEffects( const ThingTemplate *thing, UpgradeEffects &effects )
-{
- const ModuleInfo &modules = thing->getBehaviorModuleInfo();
- for( Int m = 0; m < modules.getCount(); ++m )
- {
- const AsciiString &module = modules.getNthName( m );
- UpgradeEffect effect = {};
- if( module.compareNoCase( "WeaponSetUpgrade" ) == 0 )
- effect.weaponSet = TRUE;
- else if( module.compareNoCase( "WeaponBonusUpgrade" ) == 0 )
- effect.weaponBonus = TRUE;
- else if( module.compareNoCase( "ArmorUpgrade" ) == 0 )
- effect.armor = TRUE;
- else if( module.compareNoCase( "MaxHealthUpgrade" ) == 0 )
- effect.addHealth = static_cast< const MaxHealthUpgradeModuleData * >( modules.getNthData( m ) )->m_addMaxHealth;
- else
- continue;
-
- const UpgradeMuxData &mux = static_cast< const UpgradeModuleData * >( modules.getNthData( m ) )->m_upgradeMuxData;
- for( size_t trigger = 0; trigger < mux.m_activationUpgradeNames.size(); ++trigger )
- addEffect( effects[ mux.m_activationUpgradeNames[ trigger ].str() ], effect );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The bomb `thing` sets off when it kills itself: the largest death weapon of a FireWeaponWhenDead
- * module that is on from the start and fires on a SUICIDED death. The Terrorist, and a bike with one
- * riding it, shoot TerroristSuicideWeapon, 999999 damage that reaches nobody but the shooter, so that
- * his death fires the real bomb. */
-// ponytail: a bomb an upgrade swaps in (Demo's fire pack, Anthrax Beta and Gamma) is not read; the object's live modules would have it
-//-------------------------------------------------------------------------------------------------
-static const WeaponTemplate *suicideBomb( const ThingTemplate *thing )
-{
- const WeaponTemplate *best = NULL;
- const ModuleInfo &modules = thing->getBehaviorModuleInfo();
- for( Int m = 0; m < modules.getCount(); ++m )
- {
- if( modules.getNthName( m ).compareNoCase( "FireWeaponWhenDeadBehavior" ) != 0 )
- continue;
- const FireWeaponWhenDeadBehaviorModuleData *data = static_cast< const FireWeaponWhenDeadBehaviorModuleData * >( modules.getNthData( m ) );
- if( !data->m_initiallyActive || !data->m_upgradeMuxData.m_activationUpgradeNames.empty() || data->m_deathWeapon == NULL
- || !getDeathTypeFlag( data->m_dieMuxData.m_deathTypes, DEATH_SUICIDED ) )
- continue;
- const WeaponBonus none;
- if( best == NULL || data->m_deathWeapon->getPrimaryDamage( none ) > best->getPrimaryDamage( none ) )
- best = data->m_deathWeapon;
- }
- return best;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A clip fires its shots a delay apart and then reloads in place of the last delay. A weapon that
- * does no damage, the dummies that hold a slot until an upgrade fills it, is none, and so is one
- * that heals, clears or unloads: a dozer's mine disarming "weapon" does 1 damage at a range of 5
- * so that it can be aimed, and an Ambulance's cleanup is the same. A weapon that reaches nobody but
- * its user stands for the bomb his death fires, and one whose blast kills its user goes off once,
- * so it has no rate and no damage a second. */
-//-------------------------------------------------------------------------------------------------
-WeaponFigures ControlBarWeaponFigures( const ThingTemplate *thing, const WeaponTemplate *weapon, const WeaponBonus &bonus )
-{
- WeaponFigures figure = {};
- if( ( weapon->getAffectsMask() & ( WEAPON_AFFECTS_ALLIES | WEAPON_AFFECTS_ENEMIES | WEAPON_AFFECTS_NEUTRALS ) ) == 0 )
- {
- weapon = suicideBomb( thing );
- if( weapon == NULL )
- return figure;
- }
- const DamageType type = weapon->getDamageType();
- if( type == DAMAGE_HEALING || type == DAMAGE_DISARM || type == DAMAGE_HAZARD_CLEANUP || type == DAMAGE_DEPLOY
- || !IsHealthDamagingDamage( type ) )
- return figure;
-
- const Real damage = weapon->getPrimaryDamage( bonus );
- if( damage <= 0.0f )
- return figure;
- const Real delay = max( 1.0f, INT_TO_REAL( weapon->getMinDelayBetweenShots() + weapon->getMaxDelayBetweenShots() ) * 0.5f
- / bonus.getField( WeaponBonus::RATE_OF_FIRE ) );
- const Int clip = weapon->getClipSize();
- const Real cycle = clip > 0 ? ( clip - 1 ) * delay + max( 1, weapon->getClipReloadTime( bonus ) ) : delay;
-
- figure.weapon = weapon;
- figure.damage = damage;
- figure.range = weapon->getAttackRange( bonus );
- figure.attacksPerSecond = weapon->getAffectsMask() & WEAPON_KILLS_SELF ? 0.0f : ( clip > 0 ? clip : 1 ) * LOGICFRAMES_PER_SECOND / cycle;
- return figure;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Read off the template the way Weapon::computeBonus reads an object: the game's own weapon
- * bonuses and the weapon's extra ones for the conditions set. */
-//-------------------------------------------------------------------------------------------------
-void ControlBarTemplateWeaponFigures( const ThingTemplate *thing, const WeaponSetFlags &setFlags,
- WeaponBonusConditionFlags bonusFlags, UnitFigures &figures )
-{
- const WeaponTemplateSet *set = thing->findWeaponTemplateSet( setFlags );
- if( set == NULL )
- return;
-
- for( Int slot = PRIMARY_WEAPON; slot < WEAPONSLOT_COUNT; ++slot )
- {
- const WeaponTemplate *weapon = set->getNth( (WeaponSlotType)slot );
- if( weapon == NULL )
- continue;
-
- WeaponBonus bonus;
- TheGlobalData->m_weaponBonusSet->appendBonuses( bonusFlags, bonus );
- if( weapon->getExtraBonus() )
- weapon->getExtraBonus()->appendBonuses( bonusFlags, bonus );
- figures.slots[ slot ] = ControlBarWeaponFigures( thing, weapon, bonus );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** `thing`'s figures with `effect` applied. */
-//-------------------------------------------------------------------------------------------------
-static UnitFigures figuresOf( const ThingTemplate *thing, const UpgradeEffect &effect )
-{
- UnitFigures figures = {};
- figures.health = thing->calcMaxHealth() + effect.addHealth;
-
- WeaponSetFlags setFlags;
- if( effect.weaponSet )
- setFlags.set( WEAPONSET_PLAYER_UPGRADE );
- const WeaponBonusConditionFlags bonusFlags = effect.weaponBonus ? ( 1 << WEAPONBONUSCONDITION_PLAYER_UPGRADE ) : 0;
- ControlBarTemplateWeaponFigures( thing, setFlags, bonusFlags, figures );
- return figures;
-}
-
-static std::string wholeFigure( Real value )
-{
- return std::to_string( REAL_TO_INT( value ) );
-}
-
-/** Attacks a second, two decimals and the string table's unit: "1.25/s". */
-static std::string rateFigure( Real value )
-{
- char text[ 32 ];
- snprintf( text, sizeof( text ), "%.2f", value );
- return text + WideCharStringToMultiByte( TheGameText->fetch( "TOOLTIP:StatPerSecond" ).str() );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The lines that tell `from` and `to` apart. The main weapon is compared figure by figure when
- * the upgrade leaves it in its slot; any other weapon the upgrade puts in, a Ranger's grenade or a
- * Humvee's missile, is a line of its own with its damage and range. Then the armour, when
- * `effect` changes it. */
-//-------------------------------------------------------------------------------------------------
-static void putChanges( const UnitFigures &from, const UnitFigures &to, const UpgradeEffect &effect,
- std::vector< BuildTooltipChange > &changes )
-{
- if( wholeFigure( from.health ) != wholeFigure( to.health ) )
- {
- const BuildTooltipChange health = { "TOOLTIP:StatHealth", wholeFigure( from.health ), wholeFigure( to.health ) };
- changes.push_back( health );
- }
-
- const Int main = from.mainSlot();
- if( main != WEAPONSLOT_COUNT && to.slots[ main ].weapon )
- {
- const WeaponFigures &before = from.slots[ main ];
- const WeaponFigures &after = to.slots[ main ];
- const BuildTooltipChange damage = { "TOOLTIP:StatDamage", wholeFigure( before.damage ), wholeFigure( after.damage ) };
- const BuildTooltipChange speed = { "TOOLTIP:StatAttackSpeed", rateFigure( before.attacksPerSecond ), rateFigure( after.attacksPerSecond ) };
- const BuildTooltipChange perSecond = { "TOOLTIP:StatDamagePerSecond", wholeFigure( before.damage * before.attacksPerSecond ),
- wholeFigure( after.damage * after.attacksPerSecond ) };
- const BuildTooltipChange range = { "TOOLTIP:StatRange", wholeFigure( before.range ), wholeFigure( after.range ) };
-
- const BuildTooltipChange *candidates[] = { &damage, &speed, &perSecond, &range };
- for( Int each = 0; each < (Int)ARRAY_SIZE( candidates ); ++each )
- if( candidates[ each ]->from != candidates[ each ]->to )
- changes.push_back( *candidates[ each ] );
- }
-
- for( Int slot = PRIMARY_WEAPON; slot < WEAPONSLOT_COUNT; ++slot )
- {
- const WeaponFigures &after = to.slots[ slot ];
- if( ( slot == main && main != WEAPONSLOT_COUNT && after.weapon ) || after.weapon == NULL || after.weapon == from.slots[ slot ].weapon )
- continue;
-
- // named by what it aims at, since TOW puts in one missile for the ground and one for the air
- const Int aims = after.weapon->getAntiMask();
- const Bool atGround = ( aims & WEAPON_ANTI_GROUND ) != 0;
- const Bool atAir = ( aims & WEAPON_ANTI_AIRBORNE_VEHICLE ) != 0;
- const char *label = atGround == atAir ? "TOOLTIP:StatNewWeapon" : ( atAir ? "TOOLTIP:StatNewWeaponAir" : "TOOLTIP:StatNewWeaponGround" );
-
- UnicodeString figures;
- figures.format( TheGameText->fetch( "TOOLTIP:StatNewWeaponFigures" ), REAL_TO_INT( after.damage ), REAL_TO_INT( after.range ) );
- const BuildTooltipChange weapon = { label, "", WideCharStringToMultiByte( figures.str() ) };
- changes.push_back( weapon );
- }
-
- if( effect.armor )
- {
- const BuildTooltipChange armor = { "TOOLTIP:StatArmor", "", WideCharStringToMultiByte( TheGameText->fetch( "TOOLTIP:StatArmorStronger" ).str() ) };
- changes.push_back( armor );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The effect of every upgrade in `effects` the player has, leaving out `leftOut`. */
-//-------------------------------------------------------------------------------------------------
-static UpgradeEffect ownedEffect( const UpgradeEffects &effects, const Player *player, const std::string &leftOut )
-{
- UpgradeEffect owned = {};
- for( UpgradeEffects::const_iterator upgrade = effects.begin(); upgrade != effects.end(); ++upgrade )
- {
- const UpgradeTemplate *known = TheUpgradeCenter->findUpgrade( upgrade->first.c_str() );
- if( upgrade->first != leftOut && known && player->hasUpgradeComplete( known ) )
- addEffect( owned, upgrade->second );
- }
- return owned;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** What the build button that sells `upgrade` calls it, so a unit's card and the upgrade's own card
- * say the same name: the upgrade's own label reads "Ranger Flash-Bang Grenades" where its button
- * reads "Flash-Bang Grenades". The selection's own buttons first, since several buttons sell one
- * upgrade under labels that differ ("Flash-Bang Grenade" on one, "Grenades" on the Barracks'); then
- * any button; the upgrade's label when no button sells it. */
-//-------------------------------------------------------------------------------------------------
-static UnicodeString upgradeButtonName( const UpgradeTemplate *upgrade )
-{
- const Drawable *selected = TheInGameUI->getFirstSelectedDrawable();
- const Object *seller = selected ? selected->getObject() : NULL;
- const CommandSet *set = seller ? TheControlBar->findCommandSet( seller->getCommandSetString() ) : NULL;
- for( Int slot = 0; set && slot < MAX_COMMANDS_PER_SET; ++slot )
- {
- const CommandButton *button = set->getCommandButton( slot );
- if( button && button->getUpgradeTemplate() == upgrade && button->getTextLabel().isNotEmpty() )
- return TheGameText->fetch( button->getTextLabel() );
- }
-
- for( const CommandButton *button = TheControlBar->getCommandButtons(); button; button = button->getNext() )
- if( button->getUpgradeTemplate() == upgrade && button->getTextLabel().isNotEmpty() )
- return TheGameText->fetch( button->getTextLabel() );
- return TheGameText->fetch( upgrade->getDisplayNameLabel() );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A unit's card: its figures with the upgrades the player owns, and each upgrade that changes one
- * of them with what it changes, from the figure without it to the figure with it. */
-//-------------------------------------------------------------------------------------------------
-static void putUnitFigures( BuildTooltipCard &card, const ThingTemplate *thing, const Player *player )
-{
- UpgradeEffects effects;
- findUpgradeEffects( thing, effects );
-
- const UpgradeEffect owned = ownedEffect( effects, player, "" );
- const UnitFigures now = figuresOf( thing, owned );
- card.health = REAL_TO_INT( now.health );
- const Int main = now.mainSlot();
- if( main != WEAPONSLOT_COUNT )
- {
- const WeaponFigures &weapon = now.slots[ main ];
- card.damage = REAL_TO_INT( weapon.damage );
- card.range = REAL_TO_INT( weapon.range );
- card.attacksPerSecond = weapon.attacksPerSecond;
- card.damagePerSecond = REAL_TO_INT( weapon.damage * weapon.attacksPerSecond );
- }
-
- for( UpgradeEffects::const_iterator effect = effects.begin(); effect != effects.end(); ++effect )
- {
- const UpgradeTemplate *upgrade = TheUpgradeCenter->findUpgrade( effect->first.c_str() );
- if( upgrade == NULL )
- continue;
-
- BuildTooltipUpgrade entry;
- entry.name = upgradeButtonName( upgrade );
- entry.owned = player->hasUpgradeComplete( upgrade );
- UpgradeEffect without = ownedEffect( effects, player, effect->first );
- UpgradeEffect with = without;
- addEffect( with, effect->second );
- putChanges( figuresOf( thing, without ), figuresOf( thing, with ), effect->second, entry.changes );
- if( !entry.changes.empty() )
- card.upgrades.push_back( entry );
- }
-}
-
-enum
-{
- UPGRADE_TARGETS_SHOWN = 6, ///< the most units an upgrade's card lists
-};
-
-//-------------------------------------------------------------------------------------------------
-/** An upgrade's card: the units of the player's side it changes a figure of, each with the change
- * from the plain unit. The units are what the side's build buttons make, each name once: walking
- * every template found the campaign's copies of a Ranger or a Crusader as well, one of them with a
- * range of 999996. Done only when the card is filled in, on hovering and when the bar changes. */
-//-------------------------------------------------------------------------------------------------
-static void putUpgradeTargets( BuildTooltipCard &card, const UpgradeTemplate *upgrade, const Player *player )
-{
- const UpgradeEffect plain = {};
- std::set< WideCharString > named;
- for( const CommandButton *button = TheControlBar->getCommandButtons(); button; button = button->getNext() )
- {
- if( card.upgrades.size() >= UPGRADE_TARGETS_SHOWN )
- break;
- const ThingTemplate *thing = button->getThingTemplate();
- if( thing == NULL || thing->getDefaultOwningSide() != player->getSide() || named.count( thing->getDisplayName().str() ) )
- continue;
-
- UpgradeEffects effects;
- findUpgradeEffects( thing, effects );
- UpgradeEffects::const_iterator effect = effects.find( upgrade->getUpgradeName().str() );
- if( effect == effects.end() )
- continue;
-
- BuildTooltipUpgrade entry;
- entry.name = thing->getDisplayName();
- entry.owned = FALSE;
- putChanges( figuresOf( thing, plain ), figuresOf( thing, effect->second ), effect->second, entry.changes );
- if( entry.changes.empty() )
- continue;
- named.insert( thing->getDisplayName().str() );
- card.upgrades.push_back( entry );
- }
-}
-
void ControlBarPopupDescriptionUpdateFunc( WindowLayout *layout, void *param )
{
if(TheScriptEngine->isGameEnding())
@@ -633,59 +262,6 @@ void ControlBar::showBuildTooltipLayout( GameWindow *cmdButton )
}
-void ControlBar::showBoardCard( const CommandButton *button, Player *owner, const IRegion2D &anchor )
-{
- if( button != m_boardCardButton || owner != m_boardCardOwner || !m_boardCardWasShown )
- {
- populateBuildTooltipLayout( button, NULL, owner );
- m_boardCard = m_buildTooltipCard;
- // the money short and the buildings missing are the buyer's, and on the board nobody is buying
- m_boardCard.warning.clear();
- m_boardCard.requires.clear();
- m_boardCardButton = button;
- m_boardCardOwner = owner;
- }
- m_boardCard.anchor = anchor;
- m_boardCardShown = TRUE;
-}
-
-void ControlBar::hideBoardCard( void )
-{
- m_boardCardWasShown = m_boardCardShown;
- m_boardCardShown = FALSE;
-}
-
-const BuildTooltipCard *ControlBar::getBuildTooltipCard( void )
-{
- // the pointer is on the page, over whatever window was pointed at last
- if( m_boardCardShown )
- return &m_boardCard;
- if( m_buildToolTipLayout == NULL || m_buildToolTipLayout->isHidden() || prevWindow == NULL )
- return NULL;
-
- Int width, height;
- prevWindow->winGetScreenPosition( &m_buildTooltipCard.anchor.lo.x, &m_buildTooltipCard.anchor.lo.y );
- prevWindow->winGetSize( &width, &height );
- m_buildTooltipCard.anchor.hi.x = m_buildTooltipCard.anchor.lo.x + width;
- m_buildTooltipCard.anchor.hi.y = m_buildTooltipCard.anchor.lo.y + height;
-
- // a command button's card stands over the whole grid, the top row's top, so a bottom row
- // button's card does not come down over the buttons above it
- static const NameKeyType commandWindowKey = TheNameKeyGenerator->nameToKey( "ControlBar.wnd:CommandWindow" );
- GameWindow *grid = prevWindow->winGetParent();
- if( grid && grid->winGetWindowId() == commandWindowKey )
- {
- for( GameWindow *button = grid->winGetChild(); button; button = button->winGetNext() )
- {
- Int buttonX, buttonY;
- button->winGetScreenPosition( &buttonX, &buttonY );
- if( !button->winIsHidden() )
- m_buildTooltipCard.anchor.lo.y = min( m_buildTooltipCard.anchor.lo.y, buttonY );
- }
- }
- return &m_buildTooltipCard;
-}
-
void ControlBar::repopulateBuildTooltipLayout( void )
{
if(!prevWindow || !m_buildToolTipLayout)
@@ -712,8 +288,8 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
const ProductionPrerequisite *prereq;
Bool fireScienceButton = false;
UnsignedInt costToBuild = 0;
- BuildTooltipCard &card = m_buildTooltipCard;
- card = BuildTooltipCard();
+ UnicodeString cardWarning; // why it cannot be bought right now, empty when it can
+ UnicodeString cardRequires; // "Requires: ..." naming what is still missing
if(commandButton)
{
@@ -802,22 +378,22 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
switch( makeType )
{
case CANMAKE_NO_MONEY:
- card.warning = TheGameText->fetch( "TOOLTIP:TooltipNotEnoughMoneyToBuild" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:TooltipNotEnoughMoneyToBuild" );
break;
case CANMAKE_QUEUE_FULL:
- card.warning = TheGameText->fetch( "TOOLTIP:TooltipCannotPurchaseBecauseQueueFull" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:TooltipCannotPurchaseBecauseQueueFull" );
break;
case CANMAKE_PARKING_PLACES_FULL:
- card.warning = TheGameText->fetch( "TOOLTIP:TooltipCannotBuildUnitBecauseParkingFull" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:TooltipCannotBuildUnitBecauseParkingFull" );
break;
case CANMAKE_MAXED_OUT_FOR_PLAYER:
if ( thingTemplate->isKindOf( KINDOF_STRUCTURE ) )
{
- card.warning = TheGameText->fetch( "TOOLTIP:TooltipCannotBuildBuildingBecauseMaximumNumber" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:TooltipCannotBuildBuildingBecauseMaximumNumber" );
}
else
{
- card.warning = TheGameText->fetch( "TOOLTIP:TooltipCannotBuildUnitBecauseMaximumNumber" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:TooltipCannotBuildUnitBecauseMaximumNumber" );
}
break;
//case CANMAKE_NO_PREREQ:
@@ -836,11 +412,11 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
ProductionUpdateInterface *pui = selectedObject->getProductionUpdateInterface();
if( pui && pui->getProductionCount() >= getQueueCap( pui ) )
{
- card.warning = TheGameText->fetch( "TOOLTIP:TooltipCannotPurchaseBecauseQueueFull" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:TooltipCannotPurchaseBecauseQueueFull" );
}
else if( !TheUpgradeCenter->canAffordUpgrade( ThePlayerList->getLocalPlayer(), upgradeTemplate, FALSE ) )
{
- card.warning = TheGameText->fetch( "TOOLTIP:TooltipNotEnoughMoneyToBuild" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:TooltipNotEnoughMoneyToBuild" );
}
}
}
@@ -863,18 +439,6 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
cost.format( TheGameText->fetch("TOOLTIP:Cost"), costToBuild );
}
- //
- // DetailedBuildTooltips: retail tells you the price and nothing about what you get.
- // Append build time, health, and the best weapon's range and damage, all read off the
- // template - there is no Object yet to ask.
- //
- if( TheGlobalData->m_detailedBuildTooltips && !TheGlobalData->isClassicUI() )
- {
- card.hasStats = TRUE;
- card.buildSeconds = ControlBar_secondsFromFrames( (Real)thingTemplate->calcTimeToBuild( player ) );
- putUnitFigures( card, thingTemplate, player );
- }
-
// ask each prerequisite to give us a list of the non satisfied prerequisites
for( Int i=0; i<thingTemplate->getPrereqCount(); i++ )
{
@@ -892,13 +456,10 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
requires.concat(requiresList);
}
if( !requires.isEmpty() )
- card.requires.format( TheGameText->fetch( "CONTROLBAR:Requirements" ).str(), requires.str() );
+ cardRequires.format( TheGameText->fetch( "CONTROLBAR:Requirements" ).str(), requires.str() );
}
else if( upgradeTemplate )
{
- if( TheGlobalData->m_detailedBuildTooltips && !TheGlobalData->isClassicUI() )
- putUpgradeTargets( card, upgradeTemplate, player );
-
//We are looking at an upgrade purchase icon. Maybe we already purchased it?
Bool hasUpgradeAlready = player->hasUpgradeComplete( upgradeTemplate );
@@ -928,11 +489,11 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
{
if( commandButton->getConflictingLabel().isNotEmpty() )
{
- card.warning = TheGameText->fetch( commandButton->getConflictingLabel() );
+ cardWarning = TheGameText->fetch( commandButton->getConflictingLabel() );
}
else
{
- card.warning = TheGameText->fetch( "TOOLTIP:HasConflictingUpgradeDefault" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:HasConflictingUpgradeDefault" );
}
}
else if( hasUpgradeAlready && ( playerUpgradeButton || objectUpgradeButton ) )
@@ -942,11 +503,11 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
//description, so a bought upgrade no longer said what it does.
if( commandButton->getPurchasedLabel().isNotEmpty() )
{
- card.warning = TheGameText->fetch( commandButton->getPurchasedLabel() );
+ cardWarning = TheGameText->fetch( commandButton->getPurchasedLabel() );
}
else
{
- card.warning = TheGameText->fetch( "TOOLTIP:AlreadyUpgradedDefault" );
+ cardWarning = TheGameText->fetch( "TOOLTIP:AlreadyUpgradedDefault" );
}
}
else if( !hasUpgradeAlready )
@@ -971,7 +532,7 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
}
if( missingScience )
- card.requires.format( TheGameText->fetch( "CONTROLBAR:Requirements" ).str(), TheGameText->fetch( "CONTROLBAR:GeneralsPromotion" ).str() );
+ cardRequires.format( TheGameText->fetch( "CONTROLBAR:Requirements" ).str(), TheGameText->fetch( "CONTROLBAR:GeneralsPromotion" ).str() );
}
}
else if( st != SCIENCE_INVALID && !fireScienceButton )
@@ -979,7 +540,6 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
TheScienceStore->getNameAndDescription(st, name, descrip);
costToBuild = TheScienceStore->getSciencePurchaseCost( st );
- card.costsScience = TRUE;
if( costToBuild > 0 )
{
cost.format( TheGameText->fetch("TOOLTIP:ScienceCost"), costToBuild );
@@ -1004,7 +564,7 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
requires.concat(requiresList);
}
if( !requires.isEmpty() )
- card.requires.format( TheGameText->fetch( "CONTROLBAR:Requirements" ).str(), requires.str() );
+ cardRequires.format( TheGameText->fetch( "CONTROLBAR:Requirements" ).str(), requires.str() );
}
}
@@ -1055,43 +615,19 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
}
- card.name = name;
- card.description = descrip;
- card.cost = costToBuild;
-
- // the layout's one text: the description, then why it cannot be bought, the figures and what it
- // still needs
- if( !card.warning.isEmpty() )
+ // the layout's one text: the description, then why it cannot be bought and what it still needs
+ if( !cardWarning.isEmpty() )
{
descrip.concat( u"\n\n" );
- descrip.concat( card.warning );
+ descrip.concat( cardWarning );
}
- if( card.hasStats )
- {
- UnicodeString stats;
- stats.format( TheGameText->fetch( "TOOLTIP:BuildTimeSeconds" ), card.buildSeconds );
- if( card.damage > 0 )
- {
- UnicodeString weapon;
- // the gap is here rather than in the string: the string table collapses runs of spaces
- weapon.format( TheGameText->fetch( "TOOLTIP:WeaponStats" ), card.damage, card.range );
- stats.concat( u" " );
- stats.concat( weapon );
- }
- descrip.concat( stats );
- }
- if( !card.requires.isEmpty() )
+ if( !cardRequires.isEmpty() )
{
if( !descrip.isEmpty() )
descrip.concat( u"\n" );
- descrip.concat( card.requires );
+ descrip.concat( cardRequires );
}
- // with the tooltip page in a match the layout stays up for the show and hide logic above, and the
- // page draws what it says
- if( TheInGameUI->isTooltipPageReady() )
- silenceLayout( m_buildToolTipLayout );
-
GameWindow *win = TheWindowManager->winGetWindowFromId(m_buildToolTipLayout->getFirstWindow(), TheNameKeyGenerator->nameToKey("ControlBarPopupDescription.wnd:StaticTextName"));
if(win)
{
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/InGameChat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/InGameChat.cpp
index 37700b05c..2b34de32a 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/InGameChat.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/InGameChat.cpp
@@ -56,14 +56,6 @@ static UnicodeString s_savedChat;
static InGameChatType inGameChatType;
static const UnsignedInt SAME_PRESS_MS = 150; ///< ToggleInGameChat: two calls this close are one Enter
-// ------------------------------------------------------------------------------------------------
-/** Window/Html/Chat.html draws the chat: the typed line with the lines over it. The layout's
- * windows keep the keys and draw nothing. */
-// ------------------------------------------------------------------------------------------------
-static void drawChatNothing( GameWindow *window, WinInstanceData *instData )
-{
-}
-
// ------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------
void ShowInGameChat( Bool immediate )
@@ -96,14 +88,6 @@ void ShowInGameChat( Bool immediate )
static NameKeyType chatTypeStaticTextID = TheNameKeyGenerator->nameToKey( "InGameChat.wnd:StaticTextChatType" );
chatTypeStaticText = TheWindowManager->winGetWindowFromId( NULL, chatTypeStaticTextID );
-
- // the Classic interface has no page: EA's layout draws itself where InGameChat.wnd puts it
- if( !TheGlobalData->isClassicUI() )
- {
- chatWindow->winSetDrawFunc( drawChatNothing );
- for( GameWindow *child = chatWindow->winGetChild(); child; child = child->winGetNext() )
- child->winSetDrawFunc( drawChatNothing );
- }
}
TheWindowManager->winSetFocus( chatTextEntry );
SetInGameChatType( INGAME_CHAT_EVERYONE );
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 70fb93d10..1042c959c 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp
@@ -113,7 +113,6 @@ static Int menuModeCount = 0;
static NameKeyType comboBoxDetailID = NAMEKEY_INVALID;
static GameWindow * comboBoxDetail = NULL;
-// only OptionsMenuClassic.wnd carries it: Reforged has one mouse and no box, so this stays NULL there
static NameKeyType checkAlternateMouseID = NAMEKEY_INVALID;
static GameWindow * checkAlternateMouse = NULL;
@@ -244,9 +243,7 @@ WindowLayout *OptionsLayout = NULL;
// in the layout, parked off the right edge with HIDDEN set because there was nowhere to put them.
// The layout now sorts the same controls into seven pages on one grid (Tools/optionsmenu_layout.py);
// this is the two arrays that name them and the one function that decides which one you are
-// looking at. The Classic interface opens OptionsMenuClassic.wnd instead (Shell::getOptionsLayout),
-// the same pages without the settings Classic overrules; their catalog rows find no control there
-// and keep their value.
+// looking at. Shell::optionsLayoutFile names the file, OptionsMenuClassic.wnd.
//-------------------------------------------------------------------------------------------------
enum { OPTIONS_PAGE_COUNT = 7 };
@@ -917,8 +914,7 @@ static void setDefaults( void )
//-------------------------------------------------------------------------------------------------
// Mouse Mode
- if( checkAlternateMouse )
- GadgetCheckBoxSetChecked(checkAlternateMouse, FALSE);
+ GadgetCheckBoxSetChecked(checkAlternateMouse, FALSE);
GadgetCheckBoxSetChecked(checkRetaliation, TRUE );
GadgetCheckBoxSetChecked( checkDoubleClickAttackMove, FALSE );
@@ -1664,12 +1660,9 @@ static void saveOptions( void )
//-------------------------------------------------------------------------------------------------
- // mouse mode. Saved only from the Classic screen, so an Accept in Reforged keeps what Classic chose
- if( checkAlternateMouse )
- {
- TheWritableGlobalData->m_useAlternateMouse = GadgetCheckBoxIsChecked(checkAlternateMouse);
- (*pref)["UseAlternateMouse"] = TheWritableGlobalData->m_useAlternateMouse ? AsciiString("yes") : AsciiString("no");
- }
+ // mouse mode
+ TheWritableGlobalData->m_useAlternateMouse = GadgetCheckBoxIsChecked(checkAlternateMouse);
+ (*pref)["UseAlternateMouse"] = TheWritableGlobalData->m_useAlternateMouse ? AsciiString("yes") : AsciiString("no");
TheWritableGlobalData->m_clientRetaliationModeEnabled = GadgetCheckBoxIsChecked(checkRetaliation);
(*pref)["Retaliation"] = TheWritableGlobalData->m_clientRetaliationModeEnabled? AsciiString("yes") : AsciiString("no");
@@ -2667,8 +2660,7 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
// GadgetCheckBoxSetChecked(checkAudioSurround, TheAudio->getSpeakerSurround());
// set the mouse mode
- if( checkAlternateMouse )
- GadgetCheckBoxSetChecked(checkAlternateMouse, TheGlobalData->m_useAlternateMouse);
+ GadgetCheckBoxSetChecked(checkAlternateMouse, TheGlobalData->m_useAlternateMouse);
GadgetCheckBoxSetChecked(checkRetaliation, TheGlobalData->m_clientRetaliationModeEnabled);
GadgetCheckBoxSetChecked( checkDoubleClickAttackMove, TheGlobalData->m_doubleClickAttackMove );
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/QuitMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/QuitMenu.cpp
index 57f2247d2..cdb06087e 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/QuitMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/QuitMenu.cpp
@@ -335,18 +335,14 @@ static void restartMissionMenu()
}
//-------------------------------------------------------------------------------------------------
-/** The menu's coming and going. Drawn as the page, it fades itself in and out: the layout's
- * transitions flash the rectangles each window had when they started, and
- * InGameUI::themeQuitMenu lays the menu out compact only as it draws, so the flashes would light
- * the old layout's places somewhere else on the screen. Skipping the group leaves every window
- * where the group's end puts it. Classic draws the layout where it stands, so its own flashes
- * play, as the game shipped. */
+/** The menu's coming and going: the layout's own transitions, as the game shipped, or none at all
+ * with window animation off. */
//-------------------------------------------------------------------------------------------------
static void showQuitMenuLayout( const char *group )
{
TheTransitionHandler->remove( group );
TheTransitionHandler->setGroup( group );
- if( !TheGlobalData->m_animateWindows || TheInGameUI->isQuitMenuPageShown() )
+ if( !TheGlobalData->m_animateWindows )
TheTransitionHandler->remove( group, TRUE );
}
@@ -356,8 +352,6 @@ static void hideQuitMenuLayout( void )
return;
if( !TheGlobalData->m_animateWindows )
quitMenuLayout->hide( TRUE );
- else if( TheInGameUI->isQuitMenuPageShown() )
- TheInGameUI->closeQuitMenuPage();
else
TheTransitionHandler->reverse( quitMenuLayout == noSaveLoadQuitMenuLayout ? "QuitNoSaveBack" : "QuitFullBack" );
}
@@ -477,8 +471,6 @@ void ToggleQuitMenu()
TheInGameUI->setQuitMenuVisible(FALSE);
return;
}
- // themed first: whether the page draws it decides whether the layout's flashes play
- TheInGameUI->themeQuitMenu( quitMenuLayout->getFirstWindow() );
showQuitMenuLayout( group );
//quitMenuLayout->hide(FALSE);
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Gadget/GadgetPushButton.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Gadget/GadgetPushButton.cpp
index db689c2cb..e1132f2c4 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Gadget/GadgetPushButton.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Gadget/GadgetPushButton.cpp
@@ -605,11 +605,6 @@ PushButtonData * getNewPushButtonData( void )
p->drawBorder = FALSE;
p->drawClock = NO_CLOCK;
p->drawCount = 0;
- p->drawSeconds = 0;
- p->drawCost = 0;
- p->drawPower = 0;
- p->barPercent = -1;
- p->barColor = GAME_COLOR_UNDEFINED;
p->overlayImage = NULL;
return p;
}
@@ -712,97 +707,9 @@ void GadgetButtonClearClock( GameWindow *g )
return;
pData->drawClock = NO_CLOCK;
- // the seconds label is the same per-frame overlay as the clock, and everyone who puts one on
- // puts a clock on with it, so it comes off here too
- pData->drawSeconds = 0;
}
-// GadgetButtonSetSeconds =====================================================
-/** Set the seconds label drawn in the button's bottom left corner, 0 for none.
- * Cleared by GadgetButtonClearClock, so it must be re-set every frame. */
-//=============================================================================
-void GadgetButtonSetSeconds( GameWindow *g, Int seconds )
-{
- if( g == NULL )
- return;
-
- PushButtonData *pData = (PushButtonData *)g->winGetUserData();
- if(!pData)
- {
- pData = getNewPushButtonData();
- if(!pData)
- return;
- }
- pData->drawSeconds = seconds;
- g->winSetUserData(pData);
-}
-
-// GadgetButtonSetCost ========================================================
-/** Set the price drawn in the button's top right corner, 0 for none. What one
- * of these costs is the other half of what a build decision needs, next to
- * the seconds already in the opposite corner. Unlike the seconds it is not
- * cleared by GadgetButtonClearClock - a price does not change per frame. */
-//=============================================================================
-void GadgetButtonSetCost( GameWindow *g, Int cost )
-{
- if( g == NULL )
- return;
-
- PushButtonData *pData = (PushButtonData *)g->winGetUserData();
- if(!pData)
- {
- pData = getNewPushButtonData();
- if(!pData)
- return;
- }
- pData->drawCost = cost;
- g->winSetUserData(pData);
-}
-
-// GadgetButtonSetPower =======================================================
-/** Set the power figure drawn in the button's bottom right corner, 0 for none.
- * Negative is what the structure draws off the grid, positive what it puts on
- * it - the sign the game's own templates use. Money and time are already in
- * the other three corners; power is the third thing a base has to spend and
- * the only one you had to remember from the tooltip. */
-//=============================================================================
-void GadgetButtonSetPower( GameWindow *g, Int power )
-{
- if( g == NULL )
- return;
-
- PushButtonData *pData = (PushButtonData *)g->winGetUserData();
- if(!pData)
- {
- pData = getNewPushButtonData();
- if(!pData)
- return;
- }
- pData->drawPower = power;
- g->winSetUserData(pData);
-}
-
-// GadgetButtonSetBar =========================================================
-/** Set a thin progress bar along the button's bottom edge, percent < 0 for none */
-//=============================================================================
-void GadgetButtonSetBar( GameWindow *g, Int percent, Color color )
-{
- if( g == NULL )
- return;
-
- PushButtonData *pData = (PushButtonData *)g->winGetUserData();
- if(!pData)
- {
- pData = getNewPushButtonData();
- if(!pData)
- return;
- }
- pData->barPercent = percent;
- pData->barColor = color;
- g->winSetUserData(pData);
-}
-
void GadgetButtonDrawOverlayImage( GameWindow *g, const Image *image )
{
if( g == NULL )
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GameWindowManagerScript.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GameWindowManagerScript.cpp
index bd49f574a..e1c4d7a4b 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GameWindowManagerScript.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GameWindowManagerScript.cpp
@@ -531,7 +531,7 @@ static Bool startsWithFolder( const char *path, const char *folder )
return *path == '/' || *path == '\\';
}
-// The Classic interface fits everything at one scale, battlefield furniture and all, except the
+// Everything is fitted at one scale, battlefield furniture and all, except the
// command bar's own layouts: layoutPanels and ControlBarLayoutUniform divide the loader's stretch
// back out of those, so they must be given it.
static Bool barLaysOutItself( const char *filename )
@@ -543,7 +543,7 @@ static Bool barLaysOutItself( const char *filename )
return FALSE;
}
-// Where a fitted Classic layout stands. The match's own furniture keeps the corner EA drew it in, as
+// Where a fitted layout stands. The match's own furniture keeps the corner EA drew it in, as
// the bar's radar and selection keep theirs: the build tooltip and the chat line over the radar in the
// bottom left, diplomacy in the top left, the replay controls over the middle of the bar. Every other
// layout, the shell's and the dialogs a match opens, is centred. Matched on the file's own name,
@@ -591,21 +591,15 @@ static Bool layoutIsShellScreen( const char *filename )
static LayoutPlacement layoutPlacement( const char *filename )
{
theLayoutAnchor.x = theLayoutAnchor.y = 0.5f;
- if( TheGlobalData == NULL || filename == NULL )
+ if( filename == NULL )
return LAYOUT_STRETCH;
// "Menus/X.wnd" as the shell names them, or the whole "Window\\Menus\\X.wnd"
if( startsWithFolder( filename, "window" ) )
filename += 7;
- if( layoutIsShellScreen( filename ) )
+ if( layoutIsShellScreen( filename ) || barLaysOutItself( filename ) )
return LAYOUT_STRETCH;
- if( TheGlobalData->isClassicUI() )
- {
- if( barLaysOutItself( filename ) )
- return LAYOUT_STRETCH;
- theLayoutAnchor = classicLayoutAnchor( filename );
- return LAYOUT_FIT;
- }
- return startsWithFolder( filename, "menus" ) ? LAYOUT_FIT : LAYOUT_STRETCH;
+ theLayoutAnchor = classicLayoutAnchor( filename );
+ return LAYOUT_FIT;
}
static Bool parseScreenRect( char *token, char *buffer,
@@ -644,15 +638,11 @@ static Bool parseScreenRect( char *token, char *buffer,
//
// Fit: one scale both ways, the smaller, with the layout's 4:3 area centred, so a
- // panel, a logo or a medal keeps the shape it was drawn in. A window that covers the whole
- // layout - within two pixels, as a few parents are drawn - still fills the screen in Reforged: it
- // is the backdrop, or the parent everything else sits in. Classic keeps a match dialog's backdrop
- // in the box with the rest, over the battlefield. At 4:3 the scales are equal and the offsets
- // nothing, and this is the stretch to the pixel.
+ // panel, a logo or a medal keeps the shape it was drawn in. A match dialog's backdrop stays in the
+ // box with the rest, over the battlefield. At 4:3 the scales are equal and the offsets nothing,
+ // and this is the stretch to the pixel.
//
- const Bool fullScreen = screenRegion.lo.x <= 2 && screenRegion.lo.y <= 2 &&
- screenRegion.hi.x >= createRes.x - 2 && screenRegion.hi.y >= createRes.y - 2;
- if( theLayoutPlacement == LAYOUT_FIT && ( !fullScreen || TheGlobalData->isClassicUI() ) )
+ if( theLayoutPlacement == LAYOUT_FIT )
{
const Real scale = min( xScale, yScale );
const Real left = ((Real)TheDisplay->getWidth() - (Real)createRes.x * scale) * theLayoutAnchor.x;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Shell/Shell.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Shell/Shell.cpp
index ed29b7cb3..6876af955 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Shell/Shell.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/Shell/Shell.cpp
@@ -913,12 +913,12 @@ WindowLayout *Shell::getPopupReplayLayout( void )
} // end getSaveLoadMenuLayout
// ------------------------------------------------------------------------------------------------
-/** Classic's options screen leaves out the settings the Classic interface overrules, and flows
- * what is left so no page has a gap (Tools/optionsmenu_layout.py writes both files). */
+/** The options screen leaves out the settings the interface overrules, and flows what is left so
+ * no page has a gap (Tools/optionsmenu_layout.py writes the file). */
// ------------------------------------------------------------------------------------------------
const char *Shell::optionsLayoutFile( void )
{
- return TheGlobalData->isClassicUI() ? "Menus/OptionsMenuClassic.wnd" : "Menus/OptionsMenu.wnd";
+ return "Menus/OptionsMenuClassic.wnd";
}
// ------------------------------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp
index 4ff378a12..81ae72b16 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp
@@ -119,16 +119,9 @@ Real TheClientDrawMS = 0.0f;
//
Real TheSceneDrawMS = 0.0f; ///< W3DDisplay::drawViews() - the world
Real TheUIDrawMS = 0.0f; ///< TheInGameUI->DRAW() - everything over the world
-Real TheUIPostDrawMS = 0.0f; ///< InGameUI::postDraw() - the strips and the world overlays
+Real TheUIPostDrawMS = 0.0f; ///< InGameUI::postDraw() - the text lists and the world overlays
Real TheWindowRepaintMS = 0.0f; ///< TheWindowManager->winRepaint() - the control bar and dialogs
//
-// postDraw is mostly the production strip, and the strip is two halves that fail for different
-// reasons: the sweep that reads every player's queues, and the 2D draw that puts the rows on the
-// screen. A sweep that costs is a data problem; a draw that costs is a batching problem.
-//
-Real TheStripGatherMS = 0.0f; ///< InGameUI::drawProductionStrip() - reading the queues
-Real TheStripDrawMS = 0.0f; ///< InGameUI::drawProductionStrip() - drawing the rows
-//
// Particles cost in three places that have nothing in common: the update that ages and emits them
// once a logic frame, the fill that turns each system into quads, and the translucent flush that
// sorts those quads with every other see-through polygon and draws them. GameEngine adds these up
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp
index df65bf63e..903cba455 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp
@@ -55,8 +55,6 @@
#include "Common/GlobalData.h"
#include "Common/NameKeyGenerator.h"
#include "GameClient/GameText.h"
-#include "GameClient/HtmlOverlay.h"
-#include "GameClient/HtmlTemplate.h"
#include "GameClient/KeyDefs.h"
#include "GameClient/Keyboard.h"
#include "GameClient/Mouse.h"
@@ -82,10 +80,8 @@ static const WideChar *CONSOLE_PROMPT = u"> ";
static const WideChar *CONSOLE_CURSOR = u"_";
static const WideChar CONSOLE_FIRST_PRINTABLE_CHAR = u' ';
-static const Color CONSOLE_PANEL_COLOR = GameMakeColor( 0, 0, 0, 225 );
-static const Color CONSOLE_EDGE_COLOR = GameMakeColor( 90, 90, 90, 255 );
-static const Color CONSOLE_CLASSIC_PANEL_COLOR = GameMakeColor( 0, 0, 0, 190 ); ///< Diplomacy.wnd's parent
-static const Color CONSOLE_CLASSIC_EDGE_COLOR = GameMakeColor( 47, 55, 168, 255 );
+static const Color CONSOLE_PANEL_COLOR = GameMakeColor( 0, 0, 0, 190 ); ///< Diplomacy.wnd's parent
+static const Color CONSOLE_EDGE_COLOR = GameMakeColor( 47, 55, 168, 255 );
static const Color CONSOLE_INPUT_COLOR = GameMakeColor( 255, 255, 255, 255 );
static const Color CONSOLE_TEXT_COLOR = GameMakeColor( 190, 190, 190, 255 );
static const Color CONSOLE_SHADOW_COLOR = GameMakeColor( 0, 0, 0, 0 );
@@ -116,10 +112,6 @@ static const ConsoleCheat CONSOLE_CHEATS[] =
{ "onehitkill", CHEAT_ONE_HIT_KILL, 0, "onehitkill every hit you land kills", "GUI:CheatOneHitKill", { 0 } },
};
-static const char *const CHEAT_PANEL_PAGE = "Window\\Html\\Cheats.html";
-static const char *const CHEAT_PANEL_FONT = "Arial"; ///< what the page's text is where its CSS names no font
-static const std::string CHEAT_PANEL_CLOSE = "close";
-
static const Int CONSOLE_CHEAT_COUNT = sizeof( CONSOLE_CHEATS ) / sizeof( CONSOLE_CHEATS[ 0 ] );
//-------------------------------------------------------------------------------------------------
@@ -270,8 +262,8 @@ static AsciiString describeFreeCameraPose( void )
return result;
}
-/** The observer's director camera, for the Classic interface that has no spectator page to pick it
- * from: 'director' hands the camera to it, again gives it back. */
+/** The observer's director camera, for an interface that has no spectator page to pick it from:
+ * 'director' hands the camera to it, again gives it back. */
static AsciiString runDirector( void )
{
AsciiString result;
@@ -403,9 +395,6 @@ GameConsole::GameConsole()
m_lineStrings( NULL ),
m_lineStringCount( 0 ),
m_cheatPanelOpen( FALSE ),
- m_cheatPanelShown( FALSE ),
- m_cheatPanelLogged( FALSE ),
- m_cheatOverlay( NULL ),
m_cheatLayout( NULL ),
m_cheatList( NULL ),
m_cheatListState( -1 )
@@ -434,9 +423,6 @@ GameConsole::~GameConsole()
delete [] m_lineStrings;
m_lineStrings = NULL;
m_lineStringCount = 0;
-
- delete m_cheatOverlay;
- m_cheatOverlay = NULL;
}
//-------------------------------------------------------------------------------------------------
@@ -600,7 +586,6 @@ void GameConsole::runCommand( AsciiString commandLine )
if( cheatsAvailable && command == "trainer" )
{
m_cheatPanelOpen = !m_cheatPanelOpen;
- m_cheatPanelLogged = FALSE;
if( m_cheatPanelOpen )
close();
return;
@@ -710,11 +695,10 @@ void GameConsole::render( void )
const Int panelHeight = REAL_TO_INT( TheDisplay->getHeight() * CONSOLE_HEIGHT_FRACTION );
const Int lineHeight = m_font->height + CONSOLE_LINE_GAP;
- // Classic wears EA's diplomacy and chat frame: its see-through black over a blue edge
- const Bool classic = TheGlobalData->isClassicUI();
- TheDisplay->drawFillRect( 0, 0, screenWidth, panelHeight, classic ? CONSOLE_CLASSIC_PANEL_COLOR : CONSOLE_PANEL_COLOR );
+ // EA's diplomacy and chat frame: its see-through black over a blue edge
+ TheDisplay->drawFillRect( 0, 0, screenWidth, panelHeight, CONSOLE_PANEL_COLOR );
TheDisplay->drawFillRect( 0, panelHeight - CONSOLE_EDGE_THICKNESS,
- screenWidth, CONSOLE_EDGE_THICKNESS, classic ? CONSOLE_CLASSIC_EDGE_COLOR : CONSOLE_EDGE_COLOR );
+ screenWidth, CONSOLE_EDGE_THICKNESS, CONSOLE_EDGE_COLOR );
Int y = panelHeight - CONSOLE_EDGE_THICKNESS - CONSOLE_PADDING - lineHeight;
@@ -741,161 +725,19 @@ void GameConsole::render( void )
}
//-------------------------------------------------------------------------------------------------
-/** The side whose command bar is on screen, for the panel's steel: the same three the other pages
- * under Window/Html are drawn in. */
-//-------------------------------------------------------------------------------------------------
-static std::string cheatPanelSide( void )
-{
- ControlBarSchemeManager *schemes = TheControlBar ? TheControlBar->getControlBarSchemeManager() : NULL;
- const AsciiString side = schemes ? schemes->getCurrentSide() : AsciiString::TheEmptyString;
- if( side.startsWith( "China" ) || side == "Boss" )
- return "china";
- if( side.startsWith( "GLA" ) )
- return "gla";
- return "america";
-}
-
-static std::string gameText( const char *label )
-{
- return WideCharStringToMultiByte( TheGameText->fetch( label ).str() );
-}
-
-/** {{text:Label}}: a string table label, in the player's language. */
-static Bool lookupCheatPanelText( const std::string &name, std::string &value )
-{
- static const std::string TEXT_LOOKUP = "text:";
- if( name.compare( 0, TEXT_LOOKUP.size(), TEXT_LOOKUP ) != 0 )
- return FALSE;
- value = gameText( name.substr( TEXT_LOOKUP.size() ).c_str() );
- return TRUE;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Every cheat a row: its name, then a toggle's one key, lit while it is on, or an amount cheat's
- * ready amounts. `clicks` gets what each key sends, in the order the page lays the keys out. */
-//-------------------------------------------------------------------------------------------------
-static void fillCheatPanelCells( std::vector< HtmlValues > &cells, std::vector< std::string > &clicks )
-{
- const Player *local = ThePlayerList->getLocalPlayer();
- clicks.push_back( CHEAT_PANEL_CLOSE );
-
- for( Int i = 0; i < CONSOLE_CHEAT_COUNT; ++i )
- {
- const ConsoleCheat &cheat = CONSOLE_CHEATS[ i ];
- HtmlValues name;
- name[ "kind" ] = "name";
- name[ "label" ] = gameText( cheat.label );
- cells.push_back( name );
-
- if( cheat.defaultAmount == 0 )
- {
- const Bool on = local->hasCheat( cheat.kind );
- HtmlValues key;
- key[ "kind" ] = on ? "key on" : "key";
- key[ "label" ] = gameText( on ? "GUI:CheatOn" : "GUI:CheatOff" );
- key[ "click" ] = cheat.name;
- cells.push_back( key );
- clicks.push_back( key[ "click" ] );
- continue;
- }
-
- const Bool oneAmount = cheat.amounts[ 1 ] == 0;
- for( Int each = 0; each < CHEAT_PANEL_AMOUNTS && cheat.amounts[ each ] != 0; ++each )
- {
- char text[ 64 ];
- HtmlValues key;
- key[ "kind" ] = "key";
- sprintf( text, "+%d", cheat.amounts[ each ] );
- key[ "label" ] = oneAmount ? gameText( "GUI:CheatApply" ) : std::string( text );
- sprintf( text, "%s %d", cheat.name, cheat.amounts[ each ] );
- key[ "click" ] = text;
- cells.push_back( key );
- clicks.push_back( key[ "click" ] );
- }
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Window/Html/Cheats.html over the battlefield while it is open. It shuts itself wherever the
- * cheats are refused, so a panel left open does not follow the player into a replay. */
+/** The trainer's window while it is open. It shuts itself wherever the cheats are refused, so a
+ * panel left open does not follow the player into a replay. */
//-------------------------------------------------------------------------------------------------
void GameConsole::renderCheatPanel( void )
{
- m_cheatPanelShown = FALSE;
if( m_cheatPanelOpen && !areCheatsAvailable() )
m_cheatPanelOpen = FALSE;
- if( TheGlobalData->isClassicUI() )
- {
- updateCheatWindow();
- return;
- }
- if( !m_cheatPanelOpen )
- return;
-
- if( m_cheatPage.empty() )
- {
- File *file = TheFileSystem->openFile( CHEAT_PANEL_PAGE, File::READ | File::BINARY );
- if( file == NULL )
- {
- printLine( AsciiString( "trainer: Window/Html/Cheats.html is missing" ) );
- m_cheatPanelOpen = FALSE;
- return;
- }
- const Int size = file->size();
- char *text = file->readEntireAndClose();
- m_cheatPage.assign( text, size );
- delete [] text;
- }
- if( m_cheatOverlay == NULL )
- m_cheatOverlay = new HtmlOverlay( AsciiString( CHEAT_PANEL_FONT ) );
-
- HtmlValues values;
- values[ "side" ] = cheatPanelSide();
- HtmlLists lists;
- std::vector< std::string > clicks;
- fillCheatPanelCells( lists[ "cells" ], clicks );
-
- m_cheatOverlay->setPage( m_cheatPage, values, lists, lookupCheatPanelText );
- m_cheatOverlay->hover( TheMouse->getMouseStatus()->pos );
- m_cheatOverlay->draw();
- m_cheatPanelShown = TRUE;
-
- // where each key landed, so a script driving the game over -control knows where to click
- if( !m_cheatPanelLogged )
- {
- m_cheatPanelLogged = TRUE;
- std::vector< IRegion2D > keys;
- m_cheatOverlay->rectsOf( ".key", keys );
- for( size_t each = 0; each < keys.size() && each < clicks.size(); ++each )
- DEBUG_LOG(( "Cheat panel: \"%s\" at %d %d\n", clicks[ each ].c_str(),
- ( keys[ each ].lo.x + keys[ each ].hi.x ) / 2, ( keys[ each ].lo.y + keys[ each ].hi.y ) / 2 ));
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A press anywhere on the panel is the panel's, so it never turns into an order for the ground
- * under it. Only a left press does anything: it runs the key's cheat the way typing it would. */
-//-------------------------------------------------------------------------------------------------
-Bool GameConsole::handleCheatPanelMouse( const ICoord2D &mouse, Bool act )
-{
- if( !m_cheatPanelShown || !m_cheatOverlay->hover( mouse ) )
- return FALSE;
- if( !act )
- return TRUE;
-
- runCheatPanelAction( m_cheatOverlay->click( mouse ) );
- return TRUE;
+ updateCheatWindow();
}
//-------------------------------------------------------------------------------------------------
void GameConsole::runCheatPanelAction( const std::string &action )
{
- if( action == CHEAT_PANEL_CLOSE )
- {
- closeCheatPanel();
- return;
- }
-
AsciiString arguments( action.c_str() );
AsciiString name;
arguments.nextToken( &name );
@@ -912,7 +754,7 @@ void GameConsole::runCheatPanelAction( const std::string &action )
}
//-------------------------------------------------------------------------------------------------
-/** The Classic panel's rows: a toggle is one row, an amount cheat one row for each ready amount. */
+/** The trainer's rows: a toggle is one row, an amount cheat one row for each ready amount. */
//-------------------------------------------------------------------------------------------------
struct CheatWindowRow
{
@@ -994,7 +836,7 @@ void GameConsole::resetCheatWindow( void )
}
//-------------------------------------------------------------------------------------------------
-/** The Classic interface's panel: Window/Trainer.wnd, EA's diplomacy frame with one list row for
+/** The trainer: Window/Trainer.wnd, EA's diplomacy frame with one list row for
* each click, and a toggle's row green while it is on. The windows are thrown away when it
* shuts, never from inside their own callback. */
//-------------------------------------------------------------------------------------------------
@@ -1175,31 +1017,5 @@ GameMessageDisposition GameConsoleTranslator::translateGameMessage( const GameMe
if( freeCamera && msg->getType() > GameMessage::MSG_RAW_MOUSE_BEGIN && msg->getType() < GameMessage::MSG_RAW_MOUSE_END )
return DESTROY_MESSAGE;
- // A press on the cheat panel is the panel's, and so is everything that button does until it is
- // let go, wherever the pointer has gone by then: nothing after this sees a press it never saw
- // start. A press that started off the panel is left alone to its release, so a drag box pulled
- // over the panel still ends.
- static Bool pressTaken = FALSE;
- const GameMessage::Type type = msg->getType();
- if( type > GameMessage::MSG_RAW_MOUSE_BEGIN && type < GameMessage::MSG_RAW_MOUSE_END )
- {
- const Bool left = type == GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN || type == GameMessage::MSG_RAW_MOUSE_LEFT_DOUBLE_CLICK;
- const Bool press = left
- || type == GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN || type == GameMessage::MSG_RAW_MOUSE_RIGHT_DOUBLE_CLICK
- || type == GameMessage::MSG_RAW_MOUSE_MIDDLE_BUTTON_DOWN || type == GameMessage::MSG_RAW_MOUSE_MIDDLE_DOUBLE_CLICK;
- if( press )
- {
- pressTaken = TheGameConsole->handleCheatPanelMouse( msg->getArgument( 0 )->pixel, left );
- return pressTaken ? DESTROY_MESSAGE : KEEP_MESSAGE;
- }
- if( pressTaken )
- {
- if( type == GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_UP || type == GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP
- || type == GameMessage::MSG_RAW_MOUSE_MIDDLE_BUTTON_UP )
- pressTaken = FALSE;
- return DESTROY_MESSAGE;
- }
- }
-
return KEEP_MESSAGE;
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GlobalLanguage.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GlobalLanguage.cpp
index 02e3fd0fc..d3ad40804 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GlobalLanguage.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GlobalLanguage.cpp
@@ -187,14 +187,6 @@ void GlobalLanguage::init( void )
ini.load( fname, INI_LOAD_OVERWRITE, NULL );
- // EA's Language.ini grows the lettering at 0.7 of the rate the screen grows. The window layouts
- // grow at the full rate, so on a 1920x1080 screen every label was drawn a size or two smaller than
- // the box drawn for it, and on 2560x1440 a tooltip's text filled half its panel. The text keeps
- // pace with its panel now, which is also the size it was authored at on 800x600.
- // The Classic interface is EA's and keeps EA's rate.
- if( !TheGlobalData->isClassicUI() )
- m_resolutionFontSizeAdjustment = TEXT_GROWS_WITH_LAYOUT;
-
StringListIt it = m_localFonts.begin();
while( it != m_localFonts.end())
{
@@ -228,17 +220,15 @@ void GlobalLanguage::parseFontFileName( INI *ini, void * instance, void *store,
GlobalLanguage *monkey = (GlobalLanguage *)instance;
AsciiString asciiString = ini->getNextAsciiString();
monkey->m_localFonts.push_front(asciiString);
-}
-
-const Real GlobalLanguage::TEXT_GROWS_WITH_LAYOUT = 1.0f;
+}
Int GlobalLanguage::adjustFontSize(Int theFontSize)
{
const Int size = adjustFontSizeForScreen( theFontSize, TheGlobalData->m_xResolution,
TheGlobalData->m_yResolution,
m_resolutionFontSizeAdjustment );
- // the Classic interface letters at EA's rate (init leaves Language.ini's damping) and EA's 2x cap
- if( TheGlobalData->isClassicUI() && size > theFontSize * 2 )
+ // EA's rate (Language.ini's damping) and EA's 2x cap
+ if( size > theFontSize * 2 )
return theFontSize * 2;
return size;
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/HtmlOverlay.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/HtmlOverlay.cpp
deleted file mode 100644
index 88b6f03a2..000000000
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/HtmlOverlay.cpp
+++ /dev/null
@@ -1,981 +0,0 @@
-/*
-** 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 İlyas Akın for the macOS/Linux port; see NOTICE.md and the git history.
-
-// HtmlOverlay.cpp ////////////////////////////////////////////////////////////////////////////////
-// litehtml's drawing callbacks answered with the game's 2D calls, fonts and mapped images.
-///////////////////////////////////////////////////////////////////////////////////////////////////
-
-#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
-
-#include "Common/FileSystem.h"
-#include "Common/file.h"
-#include "GameClient/ControlBar.h"
-#include "GameClient/Display.h"
-#include "GameClient/DisplayString.h"
-#include "GameClient/DisplayStringManager.h"
-#include "GameClient/GameFont.h"
-#include "GameClient/HtmlOverlay.h"
-#include "GameClient/HtmlTemplate.h"
-#include "GameClient/Image.h"
-#include "GameNetwork/GameSpy/ThreadUtils.h"
-
-// BaseType.h's min and max macros would eat std::min and std::max inside litehtml's headers
-#undef min
-#undef max
-
-#include <litehtml.h>
-
-#define NANOSVG_IMPLEMENTATION
-#define NANOSVGRAST_IMPLEMENTATION
-#include <nanosvg.h>
-#include <nanosvgrast.h>
-
-#include <algorithm>
-#include <map>
-#include <math.h>
-#include <vector>
-
-namespace
-{
-
-const litehtml::pixel_t DEFAULT_FONT_SIZE = 12; ///< CSS pixels at 800x600, where a page names none
-const litehtml::pixel_t PIXELS_PER_POINT = 96.0f / 72.0f;
-const litehtml::pixel_t BROWSER_DPI = 96;
-const Int COLOR_BITS = 8;
-const Int BOLD_WEIGHT = 600; ///< CSS font-weight from which the game's bold face is used
-const Real ASCENT_SHARE = 0.8f; ///< of the font's height; GameFont only knows the height
-const Real X_HEIGHT_SHARE = 0.5f;
-const char *const PAGE_FOLDER = "Window\\Html\\";
-const char *const EMPTY_PAGE = "<!DOCTYPE html><html></html>"; ///< standards mode, as every page is
-const char *const SVG_EXTENSION = ".svg";
-const char *const SVG_UNITS = "px";
-const Int RGBA_BYTES = 4;
-const char *const GENERIC_FAMILIES[] = { "serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui" };
-
-const Int OPAQUE_ALPHA = 255;
-
-/** The first family in a CSS font-family list, without its quotes. */
-std::string firstFamily( const std::string &families )
-{
- std::string family = families.substr( 0, families.find( ',' ) );
- const size_t first = family.find_first_not_of( " \t\"'" );
- const size_t last = family.find_last_not_of( " \t\"'" );
- return first == std::string::npos ? std::string() : family.substr( first, last - first + 1 );
-}
-
-Bool isGenericFamily( const std::string &family )
-{
- for( size_t index = 0; index < ARRAY_SIZE( GENERIC_FAMILIES ); index++ )
- if( strcasecmp( family.c_str(), GENERIC_FAMILIES[ index ] ) == 0 )
- return TRUE;
- return FALSE;
-}
-
-Bool isSvg( const std::string &source )
-{
- const size_t extension = strlen( SVG_EXTENSION );
- return source.size() > extension && strcasecmp( source.c_str() + source.size() - extension, SVG_EXTENSION ) == 0;
-}
-
-} // namespace
-
-//-------------------------------------------------------------------------------------------------
-class HtmlOverlayContainer : public litehtml::document_container
-{
-public:
- explicit HtmlOverlayContainer( const AsciiString &defaultFont );
- ~HtmlOverlayContainer( void );
-
- void setPage( const std::string &html, Bool same );
- void draw( void );
- Bool hover( const ICoord2D &mouse );
- std::string click( const ICoord2D &mouse );
- std::string tip( IRegion2D &rect );
- Int bottomOf( const char *selector );
- void rectsOf( const char *selector, std::vector< IRegion2D > &rects );
- void setAlpha( Int alpha ) { m_drawnValid = m_drawnValid && alpha == m_alpha; m_alpha = alpha; }
-
- litehtml::uint_ptr create_font( const litehtml::font_description &description, const litehtml::document *document,
- litehtml::font_metrics *metrics ) override;
- void delete_font( litehtml::uint_ptr font ) override {}
- litehtml::pixel_t text_width( const char *text, litehtml::uint_ptr font ) override;
- void draw_text( litehtml::uint_ptr hdc, const char *text, litehtml::uint_ptr font, litehtml::web_color color,
- const litehtml::position &place ) override;
- litehtml::pixel_t pt_to_px( float points ) const override { return points * PIXELS_PER_POINT; }
- litehtml::pixel_t get_default_font_size( void ) const override { return DEFAULT_FONT_SIZE; }
- const char *get_default_font_name( void ) const override { return m_defaultFont.c_str(); }
- void draw_list_marker( litehtml::uint_ptr hdc, const litehtml::list_marker &marker ) override {}
- void load_image( const char *source, const char *baseUrl, bool redrawOnReady ) override {}
- void get_image_size( const char *source, const char *baseUrl, litehtml::size &size ) override;
- void draw_image( litehtml::uint_ptr hdc, const litehtml::background_layer &layer, const std::string &url,
- const std::string &baseUrl ) override;
- void draw_solid_fill( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const litehtml::web_color &color ) override;
- void draw_linear_gradient( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const litehtml::background_layer::linear_gradient &gradient ) override;
- void draw_radial_gradient( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const litehtml::background_layer::radial_gradient &gradient ) override;
- void draw_conic_gradient( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const litehtml::background_layer::conic_gradient &gradient ) override;
- void draw_borders( litehtml::uint_ptr hdc, const litehtml::borders &borders, const litehtml::position &place,
- bool root ) override;
- void set_caption( const char *caption ) override {}
- void set_base_url( const char *baseUrl ) override {}
- void link( const std::shared_ptr< litehtml::document > &document, const litehtml::element::ptr &element ) override {}
- void on_anchor_click( const char *url, const litehtml::element::ptr &element ) override {}
- bool on_element_click( const litehtml::element::ptr &element ) override;
- void on_mouse_event( const litehtml::element::ptr &element, litehtml::mouse_event event ) override {}
- void set_cursor( const char *cursor ) override {}
- void transform_text( litehtml::string &text, litehtml::text_transform transform ) override;
- void import_css( litehtml::string &text, const litehtml::string &url, litehtml::string &baseUrl ) override;
- void set_clip( const litehtml::position &place, const litehtml::border_radiuses &radiuses ) override {}
- void del_clip( void ) override {}
- void get_viewport( litehtml::position &viewport ) const override;
- litehtml::element::ptr create_element( const char *tagName, const litehtml::string_map &attributes,
- const std::shared_ptr< litehtml::document > &document ) override { return nullptr; }
- void get_media_features( litehtml::media_features &media ) const override;
- void get_language( litehtml::string &language, litehtml::string &culture ) const override;
-
-private:
- struct CachedString
- {
- DisplayString *string;
- UnsignedInt stamp; ///< the draw that last used it
- };
- typedef std::map< std::pair< GameFont *, std::string >, CachedString > StringCache;
-
- /** A row of pixels of one colour in a rasterised SVG, from the box's corner, in screen pixels. */
- struct SvgRun
- {
- Int x;
- Int y;
- Int length;
- Color color;
- };
- typedef std::vector< SvgRun > SvgRuns;
-
- /** One 2D call the last draw made: text when `string` is set, else a mapped image when `image`
- * names one, from x, y to width, height as its right and bottom, else a fill. */
- struct DrawnCall
- {
- DisplayString *string;
- AsciiString image;
- Int x;
- Int y;
- Int width;
- Int height;
- Color color;
- Color dropColor;
- };
-
- /** A colour with its alpha scaled by the whole page's, setAlpha's. */
- Color tint( Int red, Int green, Int blue, Int alpha ) const { return GameMakeColor( red, green, blue, alpha * m_alpha / OPAQUE_ALPHA ); }
- Color tint( const litehtml::web_color &color ) const { return tint( color.red, color.green, color.blue, color.alpha ); }
-
- Int screen( litehtml::pixel_t pagePixels ) const { return (Int)floorf( pagePixels * m_scale + 0.5f ); }
- litehtml::pixel_t page( Int screenPixels ) const { return screenPixels / m_scale; }
- litehtml::pixel_t viewportWidth( void ) const { return page( m_screenWidth ); }
- litehtml::pixel_t viewportHeight( void ) const { return page( m_screenHeight ); }
- DisplayString *displayString( GameFont *font, const char *text );
- void freeStrings( Bool all );
- void fillBox( const litehtml::position &box, const litehtml::web_color &color );
- void fillRect( Int x, Int y, Int width, Int height, Color color );
- void record( const DrawnCall &call );
- void play( const DrawnCall &call );
- void changed( void );
- NSVGimage *svgImage( const std::string &source );
- const SvgRuns &svgRuns( const std::string &source, Int width, Int height );
-
- std::string m_defaultFont;
- NSVGrasterizer * m_rasterizer;
- std::map< std::string, NSVGimage * > m_svgImages; ///< by page path; NULL for a file missing or unreadable
- std::map< std::string, SvgRuns > m_svgRuns; ///< by page path and screen size
- std::string m_page;
- litehtml::document::ptr m_document;
- litehtml::document::ptr m_cssDocument; ///< an empty page the stylesheets are parsed against, for its quirks mode
- litehtml::css m_masterCss; ///< litehtml's own stylesheet, parsed once
- litehtml::css m_pageCss; ///< the page's <style>, parsed while its text stays the same
- std::string m_styles; ///< that text
- Real m_scale;
- Int m_screenWidth;
- Int m_screenHeight;
- StringCache m_strings;
- UnsignedInt m_stamp;
- std::string m_clicked;
- Int m_alpha; ///< the whole page's, OPAQUE_ALPHA unless it is fading
- std::vector< DrawnCall > m_drawn; ///< what the last draw of this layout made, in order
- Bool m_drawnValid; ///< and nothing it was drawn from has changed since
- ICoord2D m_hoverMouse;
- Bool m_hoverValid; ///< hover() at m_hoverMouse would find what it found last
- Bool m_hovered;
- std::map< std::string, std::vector< IRegion2D > > m_rects; ///< rectsOf() by selector, for this layout
- std::map< std::string, Int > m_bottoms; ///< bottomOf() by selector, for this layout
-public:
- Bool m_hud; ///< laid out at ControlBarHudScale(), the bottom HUD's own
- Bool m_hudPage; ///< laid out at ControlBarHudPageScale(), the in-match HUD's other pages
- Bool m_screenPixels; ///< laid out in the screen's own pixels, over either scale
-};
-
-//-------------------------------------------------------------------------------------------------
-HtmlOverlayContainer::HtmlOverlayContainer( const AsciiString &defaultFont ) :
- m_defaultFont( defaultFont.str() ),
- m_rasterizer( nsvgCreateRasterizer() ),
- m_scale( 1.0f ),
- m_screenWidth( 0 ),
- m_screenHeight( 0 ),
- m_stamp( 0 ),
- m_alpha( OPAQUE_ALPHA ),
- m_drawnValid( FALSE ),
- m_hoverValid( FALSE ),
- m_hovered( FALSE ),
- m_hud( FALSE ),
- m_hudPage( FALSE ),
- m_screenPixels( FALSE )
-{
-}
-
-//-------------------------------------------------------------------------------------------------
-HtmlOverlayContainer::~HtmlOverlayContainer( void )
-{
- m_document = nullptr;
- m_cssDocument = nullptr;
- freeStrings( TRUE );
- for( std::map< std::string, NSVGimage * >::iterator image = m_svgImages.begin(); image != m_svgImages.end(); ++image )
- if( image->second )
- nsvgDelete( image->second );
- nsvgDeleteRasterizer( m_rasterizer );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** `same` when `html` is known to be the text the last call was handed, so it need not be compared. */
-void HtmlOverlayContainer::setPage( const std::string &html, Bool same )
-{
- const Int width = TheDisplay->getWidth();
- const Int height = TheDisplay->getHeight();
- const Real scale = m_screenPixels ? 1.0f : m_hud ? ControlBarHudScale() : m_hudPage ? ControlBarHudPageScale() : ControlBarUniformScale();
- if( m_document && ( same || html == m_page ) && width == m_screenWidth && height == m_screenHeight && scale == m_scale )
- return;
-
- m_page = html;
- m_screenWidth = width;
- m_screenHeight = height;
- m_scale = scale;
-
- // litehtml makes an element for every word and one for every white space character, each with a
- // whole set of CSS properties, so the stylesheet and the indenting came in as thousands of them:
- // eleven milliseconds to build the command bar and three to throw it away
- std::string body;
- std::string styles;
- HtmlTemplate_compact( html, body, styles );
-
- // the stylesheets were two thirds of building a page, and they are the same text every time:
- // litehtml's own is parsed once, and the page's again only when its text changes
- if( m_cssDocument == nullptr )
- {
- m_cssDocument = litehtml::document::createFromString( litehtml::estring( EMPTY_PAGE, litehtml::encoding::utf_8 ), this, "", "" );
- m_masterCss.parse_css_stylesheet( std::string( litehtml::master_css ), "", m_cssDocument );
- m_masterCss.sort_selectors();
- }
- if( styles != m_styles )
- {
- m_styles = styles;
- m_pageCss = litehtml::css();
- m_pageCss.parse_css_stylesheet( m_styles, "", m_cssDocument );
- m_pageCss.sort_selectors();
- }
-
- m_document = litehtml::document::createFromString( litehtml::estring( body, litehtml::encoding::utf_8 ), this, "", "",
- &m_masterCss, &m_pageCss );
- m_document->render( viewportWidth() );
- changed();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The layout, the styles or what is under the pointer moved: what was drawn, hit and selected from
- * the page before is not what it would be now. */
-void HtmlOverlayContainer::changed( void )
-{
- m_drawnValid = FALSE;
- m_hoverValid = FALSE;
- m_rects.clear();
- m_bottoms.clear();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Walking litehtml's tree to make the same 2D calls as the pass before was most of what a page cost
- * while nothing on it changed, at near two hundred passes a second; the calls are kept and made
- * again instead until the page is laid out, restyled, hovered onto something else or faded. */
-void HtmlOverlayContainer::draw( void )
-{
- if( !m_document )
- return;
-
- TheDisplay->beginBatch2D();
- if( m_drawnValid )
- {
- for( std::vector< DrawnCall >::const_iterator call = m_drawn.begin(); call != m_drawn.end(); ++call )
- play( *call );
- TheDisplay->endBatch2D();
- return;
- }
-
- m_drawn.clear();
- m_stamp++;
- const litehtml::position clip( 0, 0, viewportWidth(), viewportHeight() );
- m_document->draw( 0, 0, 0, &clip );
- TheDisplay->endBatch2D();
- freeStrings( FALSE );
- m_drawnValid = TRUE;
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::record( const DrawnCall &call )
-{
- m_drawn.push_back( call );
- play( call );
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::play( const DrawnCall &call )
-{
- if( call.string )
- call.string->draw( call.x, call.y, call.color, call.dropColor );
- else if( call.image.isEmpty() )
- TheDisplay->drawFillRect( call.x, call.y, call.width, call.height, call.color );
- else
- {
- const Image *image = TheMappedImageCollection->findImageByName( call.image );
- if( image )
- TheDisplay->drawImage( image, call.x, call.y, call.width, call.height, call.color );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::fillRect( Int x, Int y, Int width, Int height, Color color )
-{
- DrawnCall call;
- call.string = NULL;
- call.x = x;
- call.y = y;
- call.width = width;
- call.height = height;
- call.color = color;
- call.dropColor = 0;
- record( call );
-}
-
-//-------------------------------------------------------------------------------------------------
-Bool HtmlOverlayContainer::hover( const ICoord2D &mouse )
-{
- if( !m_document )
- return FALSE;
-
- // a pointer that has not moved over a page that has not changed is over what it was over: the
- // same point in the same layout finds the same element, already hovered
- if( m_hoverValid && mouse.x == m_hoverMouse.x && mouse.y == m_hoverMouse.y )
- return m_hovered;
-
- litehtml::position::vector redraw;
- const litehtml::pixel_t x = page( mouse.x );
- const litehtml::pixel_t y = page( mouse.y );
- const std::shared_ptr< const litehtml::element > was = m_document->get_over_element();
- const Bool restyled = m_document->on_mouse_over( x, y, x, y, redraw );
- if( restyled )
- m_document->render( viewportWidth() );
- if( restyled || m_document->get_over_element() != was )
- changed();
-
- // the root and the body span the whole screen; only what is drawn on them is the page's
- std::shared_ptr< const litehtml::element > over = m_document->get_over_element();
- m_hovered = over && over->parent() && !over->is_body();
- m_hoverMouse = mouse;
- // laid out again, the page may have put something else under the same point
- m_hoverValid = !restyled;
- return m_hovered;
-}
-
-//-------------------------------------------------------------------------------------------------
-std::string HtmlOverlayContainer::click( const ICoord2D &mouse )
-{
- m_clicked.clear();
- if( !m_document )
- return m_clicked;
-
- litehtml::position::vector redraw;
- const litehtml::pixel_t x = page( mouse.x );
- const litehtml::pixel_t y = page( mouse.y );
- m_document->on_lbutton_down( x, y, x, y, redraw );
- m_document->on_lbutton_up( x, y, x, y, redraw );
- changed();
- return m_clicked;
-}
-
-//-------------------------------------------------------------------------------------------------
-std::string HtmlOverlayContainer::tip( IRegion2D &rect )
-{
- rect.lo.x = rect.lo.y = rect.hi.x = rect.hi.y = 0;
- if( !m_document )
- return std::string();
-
- for( std::shared_ptr< const litehtml::element > element = m_document->get_over_element(); element; element = element->parent() )
- {
- const char *text = element->get_attr( "data-tip" );
- if( text == NULL )
- continue;
-
- const litehtml::position placement = element->get_placement();
- rect.lo.x = screen( placement.x );
- rect.lo.y = screen( placement.y );
- rect.hi.x = screen( placement.x + placement.width );
- rect.hi.y = screen( placement.y + placement.height );
- return text;
- }
- return std::string();
-}
-
-//-------------------------------------------------------------------------------------------------
-Int HtmlOverlayContainer::bottomOf( const char *selector )
-{
- if( !m_document )
- return 0;
-
- std::map< std::string, Int >::iterator found = m_bottoms.find( selector );
- if( found != m_bottoms.end() )
- return found->second;
-
- Int &bottom = m_bottoms[ selector ];
- bottom = 0;
- litehtml::element::ptr element = m_document->root()->select_one( selector );
- if( element )
- {
- const litehtml::position placement = element->get_placement();
- bottom = screen( placement.y + placement.height );
- }
- return bottom;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Matched once for each layout: the command bar asked for its keys and solids every pass, and
- * matching a selector against every element of the page was its own share of the frame. */
-void HtmlOverlayContainer::rectsOf( const char *selector, std::vector< IRegion2D > &rects )
-{
- rects.clear();
- if( !m_document )
- return;
-
- std::map< std::string, std::vector< IRegion2D > >::iterator found = m_rects.find( selector );
- if( found != m_rects.end() )
- {
- rects = found->second;
- return;
- }
-
- const litehtml::elements_list elements = m_document->root()->select_all( selector );
- for( litehtml::elements_list::const_iterator element = elements.begin(); element != elements.end(); ++element )
- {
- const litehtml::position placement = ( *element )->get_placement();
- if( placement.width <= 0 || placement.height <= 0 )
- continue;
-
- IRegion2D rect;
- rect.lo.x = screen( placement.x );
- rect.lo.y = screen( placement.y );
- rect.hi.x = screen( placement.x + placement.width );
- rect.hi.y = screen( placement.y + placement.height );
- rects.push_back( rect );
- }
- m_rects[ selector ] = rects;
-}
-
-//-------------------------------------------------------------------------------------------------
-bool HtmlOverlayContainer::on_element_click( const litehtml::element::ptr &element )
-{
- const char *action = element->get_attr( "data-click" );
- if( action == NULL )
- return false;
- m_clicked = action;
- return true;
-}
-
-//-------------------------------------------------------------------------------------------------
-DisplayString *HtmlOverlayContainer::displayString( GameFont *font, const char *text )
-{
- const StringCache::key_type key( font, text );
- StringCache::iterator found = m_strings.find( key );
- if( found == m_strings.end() )
- {
- CachedString cached;
- cached.string = TheDisplayStringManager->newDisplayString();
- cached.string->setFont( font );
- cached.string->setText( UnicodeString( MultiByteToWideCharSingleLine( text ).c_str() ) );
- found = m_strings.insert( std::make_pair( key, cached ) ).first;
- }
- found->second.stamp = m_stamp;
- return found->second.string;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Strings the last draw did not use go, so a number that changes every half second does not leave
- * a string behind for every value it has had. */
-void HtmlOverlayContainer::freeStrings( Bool all )
-{
- for( StringCache::iterator cached = m_strings.begin(); cached != m_strings.end(); )
- {
- if( !all && cached->second.stamp == m_stamp )
- {
- ++cached;
- continue;
- }
- TheDisplayStringManager->freeDisplayString( cached->second.string );
- cached = m_strings.erase( cached );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-litehtml::uint_ptr HtmlOverlayContainer::create_font( const litehtml::font_description &description,
- const litehtml::document *document,
- litehtml::font_metrics *metrics )
-{
- std::string family = firstFamily( description.family );
- if( family.empty() || isGenericFamily( family ) )
- family = m_defaultFont;
-
- const Int points = std::max( 1, screen( description.size ) );
- const Bool bold = description.weight >= BOLD_WEIGHT;
- GameFont *font = TheFontLibrary->getFont( AsciiString( family.c_str() ), points, bold );
- if( font == NULL )
- font = TheFontLibrary->getFont( AsciiString( m_defaultFont.c_str() ), points, bold );
- if( font == NULL )
- return 0;
-
- if( metrics )
- {
- metrics->font_size = description.size;
- metrics->height = page( font->height );
- metrics->ascent = metrics->height * ASCENT_SHARE;
- metrics->descent = metrics->height - metrics->ascent;
- metrics->x_height = metrics->height * X_HEIGHT_SHARE;
- metrics->ch_width = text_width( "0", (litehtml::uint_ptr)font );
- metrics->draw_spaces = false;
- }
- return (litehtml::uint_ptr)font;
-}
-
-//-------------------------------------------------------------------------------------------------
-litehtml::pixel_t HtmlOverlayContainer::text_width( const char *text, litehtml::uint_ptr font )
-{
- if( font == 0 )
- return 0;
-
- Int width = 0, height = 0;
- displayString( (GameFont *)font, text )->getSize( &width, &height );
- return page( width );
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::draw_text( litehtml::uint_ptr hdc, const char *text, litehtml::uint_ptr font,
- litehtml::web_color color, const litehtml::position &place )
-{
- if( font == 0 || color.alpha == 0 )
- return;
-
- DrawnCall call;
- call.string = displayString( (GameFont *)font, text );
- call.x = screen( place.x );
- call.y = screen( place.y );
- call.width = call.height = 0;
- call.color = tint( color );
- call.dropColor = tint( 0, 0, 0, color.alpha );
- record( call );
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::get_image_size( const char *source, const char *baseUrl, litehtml::size &size )
-{
- if( isSvg( source ) )
- {
- const NSVGimage *picture = svgImage( source );
- size.width = picture ? picture->width : 0;
- size.height = picture ? picture->height : 0;
- return;
- }
-
- const Image *image = TheMappedImageCollection->findImageByName( AsciiString( source ) );
- size.width = image ? (litehtml::pixel_t)image->getImageWidth() : 0;
- size.height = image ? (litehtml::pixel_t)image->getImageHeight() : 0;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** An image source is the name of one of the game's mapped images, stretched over the box, or a .svg
- * file beside the pages, fitted into the box whole and centred. */
-void HtmlOverlayContainer::draw_image( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const std::string &url, const std::string &baseUrl )
-{
- if( layer.is_root )
- return;
-
- const litehtml::position &box = layer.origin_box;
- const Int left = screen( box.x );
- const Int top = screen( box.y );
- const Int right = screen( box.x + box.width );
- const Int bottom = screen( box.y + box.height );
- if( isSvg( url ) )
- {
- const SvgRuns &runs = svgRuns( url, right - left, bottom - top );
- for( SvgRuns::const_iterator run = runs.begin(); run != runs.end(); ++run )
- {
- UnsignedByte red, green, blue, alpha;
- GameGetColorComponents( run->color, &red, &green, &blue, &alpha );
- fillRect( left + run->x, top + run->y, run->length, 1, tint( red, green, blue, alpha ) );
- }
- return;
- }
-
- // kept by name and found again on every replay, as it was on every draw: a name the collection
- // gives a new image draws the new one. No name names no image, and would replay as a fill
- if( url.empty() )
- return;
- DrawnCall call;
- call.string = NULL;
- call.image = url.c_str();
- call.x = left;
- call.y = top;
- call.width = right;
- call.height = bottom;
- call.color = tint( OPAQUE_ALPHA, OPAQUE_ALPHA, OPAQUE_ALPHA, OPAQUE_ALPHA );
- call.dropColor = 0;
- record( call );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A .svg beside the pages, parsed once. */
-NSVGimage *HtmlOverlayContainer::svgImage( const std::string &source )
-{
- std::map< std::string, NSVGimage * >::iterator found = m_svgImages.find( source );
- if( found != m_svgImages.end() )
- return found->second;
-
- NSVGimage *picture = NULL;
- const std::string path = std::string( PAGE_FOLDER ) + source;
- File *file = TheFileSystem->openFile( path.c_str(), File::READ | File::BINARY );
- if( file == NULL )
- DEBUG_LOG(( "HtmlOverlay: the picture %s is missing\n", path.c_str() ));
- else
- {
- const Int size = file->size();
- char *contents = file->readEntireAndClose();
- std::vector< char > text( contents, contents + size );
- delete [] contents;
- text.push_back( '\0' );
- picture = nsvgParse( &text[ 0 ], SVG_UNITS, (float)BROWSER_DPI );
- }
- m_svgImages[ source ] = picture;
- return picture;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A .svg rasterised at `width` by `height` screen pixels, kept as rows of one colour so the game's
- * rectangle fill can draw it; once per size, since the picture itself never changes. */
-const HtmlOverlayContainer::SvgRuns &HtmlOverlayContainer::svgRuns( const std::string &source, Int width, Int height )
-{
- const std::string key = source + "@" + std::to_string( width ) + "x" + std::to_string( height );
- std::map< std::string, SvgRuns >::iterator found = m_svgRuns.find( key );
- if( found != m_svgRuns.end() )
- return found->second;
-
- SvgRuns &runs = m_svgRuns[ key ];
- NSVGimage *picture = svgImage( source );
- if( picture == NULL || width <= 0 || height <= 0 || picture->width <= 0 || picture->height <= 0 )
- return runs;
-
- const float scale = std::min( width / picture->width, height / picture->height );
- const float offsetX = ( width - picture->width * scale ) / 2;
- const float offsetY = ( height - picture->height * scale ) / 2;
- std::vector< unsigned char > pixels( width * height * RGBA_BYTES );
- nsvgRasterize( m_rasterizer, picture, offsetX, offsetY, scale, &pixels[ 0 ], width, height, width * RGBA_BYTES );
-
- for( Int y = 0; y < height; y++ )
- {
- const unsigned char *row = &pixels[ y * width * RGBA_BYTES ];
- Int x = 0;
- while( x < width )
- {
- const unsigned char *pixel = row + x * RGBA_BYTES;
- Int length = 1;
- while( x + length < width && memcmp( pixel, row + ( x + length ) * RGBA_BYTES, RGBA_BYTES ) == 0 )
- length++;
- if( pixel[ 3 ] > 0 )
- {
- SvgRun run;
- run.x = x;
- run.y = y;
- run.length = length;
- run.color = GameMakeColor( pixel[ 0 ], pixel[ 1 ], pixel[ 2 ], pixel[ 3 ] );
- runs.push_back( run );
- }
- x += length;
- }
- }
- return runs;
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::fillBox( const litehtml::position &box, const litehtml::web_color &color )
-{
- const Int left = screen( box.x );
- const Int top = screen( box.y );
- const Int right = screen( box.x + box.width );
- const Int bottom = screen( box.y + box.height );
- if( color.alpha > 0 && right > left && bottom > top )
- fillRect( left, top, right - left, bottom - top, tint( color ) );
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::draw_solid_fill( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const litehtml::web_color &color )
-{
- if( layer.is_root )
- return;
- fillBox( layer.border_box, color );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** One row or column of pixels at a time across the box, along whichever axis the gradient runs
- * further on, each filled with the colour its stops blend to there. A line as thick as the box,
- * blended between its ends, was the first way: the line takes whole-pixel centres, so a box an odd
- * number of pixels wide came out a pixel short on one side and let what was under it show. */
-void HtmlOverlayContainer::draw_linear_gradient( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const litehtml::background_layer::linear_gradient &gradient )
-{
- if( layer.is_root || gradient.color_points.empty() )
- return;
-
- std::vector< litehtml::background_layer::color_point > stops = gradient.color_points;
- if( stops.front().offset > 0 )
- stops.insert( stops.begin(), litehtml::background_layer::color_point( 0, stops.front().color ) );
- if( stops.back().offset < 1 )
- stops.push_back( litehtml::background_layer::color_point( 1, stops.back().color ) );
-
- const litehtml::position &box = layer.border_box;
- const Real runX = gradient.end.x - gradient.start.x;
- const Real runY = gradient.end.y - gradient.start.y;
- const Bool across = fabsf( runX ) >= fabsf( runY );
- const Int left = screen( box.x );
- const Int top = screen( box.y );
- const Int right = screen( box.x + box.width );
- const Int bottom = screen( box.y + box.height );
- const Int first = across ? left : top;
- const Int last = across ? right : bottom;
- const Real start = across ? gradient.start.x : gradient.start.y;
- const Real run = across ? runX : runY;
- if( right <= left || bottom <= top || run == 0 )
- return;
-
- size_t stop = 0;
- for( Int pixel = first; pixel < last; pixel++ )
- {
- const Real offset = ( page( pixel ) + page( 1 ) / 2 - start ) / run;
- while( stop + 2 < stops.size() && offset > stops[ stop + 1 ].offset )
- stop++;
- const litehtml::web_color &from = stops[ stop ].color;
- const litehtml::web_color &to = stops[ stop + 1 ].color;
- const Real span = stops[ stop + 1 ].offset - stops[ stop ].offset;
- const Real share = span > 0 ? std::min( 1.0f, std::max( 0.0f, ( offset - stops[ stop ].offset ) / span ) ) : 0.0f;
- const Color color = tint( REAL_TO_INT( from.red + ( to.red - from.red ) * share ),
- REAL_TO_INT( from.green + ( to.green - from.green ) * share ),
- REAL_TO_INT( from.blue + ( to.blue - from.blue ) * share ),
- REAL_TO_INT( from.alpha + ( to.alpha - from.alpha ) * share ) );
- if( across )
- fillRect( pixel, top, 1, bottom - top, color );
- else
- fillRect( left, pixel, right - left, 1, color );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::draw_radial_gradient( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const litehtml::background_layer::radial_gradient &gradient )
-{
- if( !layer.is_root && !gradient.color_points.empty() )
- fillBox( layer.border_box, gradient.color_points.front().color );
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::draw_conic_gradient( litehtml::uint_ptr hdc, const litehtml::background_layer &layer,
- const litehtml::background_layer::conic_gradient &gradient )
-{
- if( !layer.is_root && !gradient.color_points.empty() )
- fillBox( layer.border_box, gradient.color_points.front().color );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A border's width as drawn: none for a side styled away. */
-static litehtml::pixel_t drawnWidth( const litehtml::border &border )
-{
- const Bool styledAway = border.style == litehtml::border_style_none || border.style == litehtml::border_style_hidden;
- return styledAway || border.width <= 0 ? 0 : border.width;
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::draw_borders( litehtml::uint_ptr hdc, const litehtml::borders &borders,
- const litehtml::position &place, bool root )
-{
- if( root )
- return;
-
- //
- // A side is as many whole screen pixels thick as its width comes to, one at least, measured in
- // from the box's own edge, and never short of where its inner edge rounds to by itself. With
- // both edges rounded apart and nothing else, at a scale that is not a whole number a one pixel
- // border was one screen pixel on one side of a cell and two on the other. Cut to its width and
- // nothing else, it stopped a pixel short of what stands inside it: a cell's ring left the command
- // button's own coloured outline showing down one side of a whole column at HUD Size 115%.
- //
- const Int left = screen( place.x );
- const Int top = screen( place.y );
- const Int right = screen( place.x + place.width );
- const Int bottom = screen( place.y + place.height );
- const litehtml::border *sides[] = { &borders.top, &borders.bottom, &borders.left, &borders.right };
- const Int inner[] =
- {
- screen( place.y + borders.top.width ) - top,
- bottom - screen( place.y + place.height - borders.bottom.width ),
- screen( place.x + borders.left.width ) - left,
- right - screen( place.x + place.width - borders.right.width )
- };
- Int thick[ ARRAY_SIZE( sides ) ];
- for( size_t side = 0; side < ARRAY_SIZE( sides ); side++ )
- thick[ side ] = drawnWidth( *sides[ side ] ) > 0 ? std::max( inner[ side ], std::max( 1, screen( sides[ side ]->width ) ) ) : 0;
-
- // the top and bottom own the corners and the sides stand between them: drawn full height, a
- // groove's dark left edge ran on down past its lit bottom and stuck out of the bevel in black
- const Int sideTop = top + thick[ 0 ];
- const Int sideHeight = bottom - top - thick[ 0 ] - thick[ 1 ];
- const IRegion2D edges[] =
- {
- { { left, top }, { right, top + thick[ 0 ] } },
- { { left, bottom - thick[ 1 ] }, { right, bottom } },
- { { left, sideTop }, { left + thick[ 2 ], sideTop + sideHeight } },
- { { right - thick[ 3 ], sideTop }, { right, sideTop + sideHeight } }
- };
- for( size_t side = 0; side < ARRAY_SIZE( sides ); side++ )
- {
- const IRegion2D &edge = edges[ side ];
- if( sides[ side ]->color.alpha > 0 && edge.hi.x > edge.lo.x && edge.hi.y > edge.lo.y )
- fillRect( edge.lo.x, edge.lo.y, edge.hi.x - edge.lo.x, edge.hi.y - edge.lo.y, tint( sides[ side ]->color ) );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::transform_text( litehtml::string &text, litehtml::text_transform transform )
-{
- Bool wordStart = TRUE;
- for( size_t index = 0; index < text.size(); index++ )
- {
- const unsigned char letter = (unsigned char)text[ index ];
- if( transform == litehtml::text_transform_uppercase || ( transform == litehtml::text_transform_capitalize && wordStart ) )
- text[ index ] = (char)toupper( letter );
- else if( transform == litehtml::text_transform_lowercase )
- text[ index ] = (char)tolower( letter );
- wordStart = isspace( letter ) != 0;
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** <link rel="stylesheet" href="x.css"> reads x.css from beside the pages. */
-void HtmlOverlayContainer::import_css( litehtml::string &text, const litehtml::string &url, litehtml::string &baseUrl )
-{
- const std::string path = std::string( PAGE_FOLDER ) + url;
- File *file = TheFileSystem->openFile( path.c_str(), File::READ | File::BINARY );
- if( file == NULL )
- {
- DEBUG_LOG(( "HtmlOverlay: the stylesheet %s is missing\n", path.c_str() ));
- return;
- }
- const Int size = file->size();
- char *contents = file->readEntireAndClose();
- text.assign( contents, size );
- delete [] contents;
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::get_viewport( litehtml::position &viewport ) const
-{
- viewport = litehtml::position( 0, 0, viewportWidth(), viewportHeight() );
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::get_media_features( litehtml::media_features &media ) const
-{
- media.type = litehtml::media_type_screen;
- media.width = media.device_width = viewportWidth();
- media.height = media.device_height = viewportHeight();
- media.color = COLOR_BITS;
- media.color_index = 0;
- media.monochrome = 0;
- media.resolution = BROWSER_DPI;
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlOverlayContainer::get_language( litehtml::string &language, litehtml::string &culture ) const
-{
- language = "en";
- culture.clear();
-}
-
-//-------------------------------------------------------------------------------------------------
-HtmlOverlay::HtmlOverlay( const AsciiString &defaultFont ) :
- m_container( new HtmlOverlayContainer( defaultFont ) ),
- m_expandedSent( FALSE )
-{
-}
-
-//-------------------------------------------------------------------------------------------------
-HtmlOverlay::~HtmlOverlay( void )
-{
- delete m_container;
-}
-
-void HtmlOverlay::setPage( const std::string &html ) { m_expandedSent = FALSE; m_container->setPage( html, FALSE ); }
-
-//-------------------------------------------------------------------------------------------------
-/** Filling 38 KB of command bar in again every pass, to hand litehtml the page it already had, was a
- * share of the frame of its own. */
-void HtmlOverlay::setPage( const std::string &written, const HtmlValues &values, const HtmlLists &lists,
- const HtmlLookup &lookup )
-{
- // compared against the page it made last time, as it would be filled in now: only the names the
- // page uses are read, where comparing every value and list entry kept, and copying them all on
- // every change, was most of a pass's page cost
- const Bool same = m_expandedSent && HtmlTemplate_matches( written, values, lists, lookup, m_expanded );
- if( !same )
- m_expanded = HtmlTemplate_expand( written, values, lists, lookup );
- m_container->setPage( m_expanded, same );
- m_expandedSent = TRUE;
-}
-void HtmlOverlay::draw( void ) { m_container->draw(); }
-void HtmlOverlay::setHud( Bool hud ) { m_container->m_hud = hud; }
-void HtmlOverlay::setHudPage( Bool hudPage ) { m_container->m_hudPage = hudPage; }
-void HtmlOverlay::setScreenPixels( Bool screenPixels ) { m_container->m_screenPixels = screenPixels; }
-void HtmlOverlay::setAlpha( Int alpha ) { m_container->setAlpha( alpha ); }
-Bool HtmlOverlay::hover( const ICoord2D &mouse ) { return m_container->hover( mouse ); }
-std::string HtmlOverlay::click( const ICoord2D &mouse ) { return m_container->click( mouse ); }
-std::string HtmlOverlay::tip( IRegion2D &rect ) { return m_container->tip( rect ); }
-Int HtmlOverlay::bottomOf( const char *selector ) { return m_container->bottomOf( selector ); }
-void HtmlOverlay::rectsOf( const char *selector, std::vector< IRegion2D > &rects ) { m_container->rectsOf( selector, rects ); }
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/HtmlTemplate.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/HtmlTemplate.cpp
deleted file mode 100644
index 67caf0fa1..000000000
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/HtmlTemplate.cpp
+++ /dev/null
@@ -1,376 +0,0 @@
-/*
-** 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/>.
-*/
-
-// HtmlTemplate.cpp ///////////////////////////////////////////////////////////////////////////////
-// {{name}} and data-each, see HtmlTemplate.h.
-///////////////////////////////////////////////////////////////////////////////////////////////////
-
-#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
-
-#include "GameClient/HtmlTemplate.h"
-
-#include <ctype.h>
-
-namespace
-{
-
-const std::string EACH_ATTRIBUTE = "data-each=";
-const std::string OPEN_BRACES = "{{";
-const std::string CLOSE_BRACES = "}}";
-
-std::string lowered( const std::string &text )
-{
- std::string lower = text;
- for( size_t index = 0; index < lower.size(); index++ )
- lower[ index ] = (char)tolower( (unsigned char)lower[ index ] );
- return lower;
-}
-
-/** The page without its <!-- comments -->, which may well describe {{names}} and data-each. */
-std::string withoutComments( const std::string &page )
-{
- std::string kept;
- size_t at = 0;
- for( size_t open = page.find( "<!--" ); open != std::string::npos; open = page.find( "<!--", at ) )
- {
- kept.append( page, at, open - at );
- const size_t close = page.find( "-->", open );
- if( close == std::string::npos )
- return kept;
- at = close + 3;
- }
- kept.append( page, at, std::string::npos );
- return kept;
-}
-
-std::string trimmed( const std::string &text )
-{
- size_t first = 0;
- size_t last = text.size();
- while( first < last && isspace( (unsigned char)text[ first ] ) )
- first++;
- while( last > first && isspace( (unsigned char)text[ last - 1 ] ) )
- last--;
- return text.substr( first, last - first );
-}
-
-/** Where a page is filled in: onto the end of `out`, or, with `against` set instead, over a page
- * already made, to learn whether it would come out the same without making it. */
-struct Sink
-{
- std::string *out;
- const std::string *against;
- size_t at;
- Bool same;
-
- void put( const char *text, size_t length )
- {
- if( out )
- {
- out->append( text, length );
- return;
- }
- same = same && at + length <= against->size() && memcmp( against->data() + at, text, length ) == 0;
- at += length;
- }
-};
-
-void putEscaped( Sink &sink, const std::string &text )
-{
- size_t run = 0;
- for( size_t index = 0; index < text.size(); index++ )
- {
- const char *entity = NULL;
- switch( text[ index ] )
- {
- case '&': entity = "&amp;"; break;
- case '<': entity = "&lt;"; break;
- case '>': entity = "&gt;"; break;
- case '"': entity = "&quot;"; break;
- case '\'': entity = "&#39;"; break;
- default: continue;
- }
- sink.put( text.data() + run, index - run );
- sink.put( entity, strlen( entity ) );
- run = index + 1;
- }
- sink.put( text.data() + run, text.size() - run );
-}
-
-/** A stretch of page: literal text, or the trimmed name inside one {{name}}. */
-struct Piece
-{
- std::string text;
- Bool name;
-};
-typedef std::vector< Piece > Pieces;
-
-/** Page text written once, or a data-each element written once per entry of `list`. */
-struct Block
-{
- Pieces pieces;
- std::string list;
- Bool each;
-};
-typedef std::vector< Block > Blocks;
-
-void split( const std::string &text, Pieces &pieces )
-{
- size_t at = 0;
- for( ;; )
- {
- const size_t open = text.find( OPEN_BRACES, at );
- const size_t close = open == std::string::npos ? std::string::npos : text.find( CLOSE_BRACES, open + OPEN_BRACES.size() );
- if( close == std::string::npos )
- {
- if( at < text.size() )
- pieces.push_back( Piece{ text.substr( at ), FALSE } );
- return;
- }
-
- if( open > at )
- pieces.push_back( Piece{ text.substr( at, open - at ), FALSE } );
- pieces.push_back( Piece{ trimmed( text.substr( open + OPEN_BRACES.size(), close - open - OPEN_BRACES.size() ) ), TRUE } );
- at = close + CLOSE_BRACES.size();
- }
-}
-
-void fill( Sink &sink, const Pieces &pieces, const HtmlValues *entry, const HtmlValues &values,
- const HtmlLookup &lookup, std::string &looked )
-{
- for( Pieces::const_iterator piece = pieces.begin(); piece != pieces.end() && sink.same; ++piece )
- {
- if( !piece->name )
- {
- sink.put( piece->text.data(), piece->text.size() );
- continue;
- }
-
- if( entry )
- {
- HtmlValues::const_iterator found = entry->find( piece->text );
- if( found != entry->end() )
- {
- putEscaped( sink, found->second );
- continue;
- }
- }
-
- HtmlValues::const_iterator found = values.find( piece->text );
- if( found != values.end() )
- {
- putEscaped( sink, found->second );
- continue;
- }
-
- looked.clear();
- if( lookup && lookup( piece->text, looked ) )
- putEscaped( sink, looked );
- }
-}
-
-/** Just past the end tag of the element whose start tag is at `open`, counting elements of the same
- * name nested inside it.
- * ponytail: an element with no end tag (<img data-each>) runs to the end of the page; wrap it in a
- * <div data-each> if that ever matters. */
-size_t elementEnd( const std::string &lower, size_t open, const std::string &tag )
-{
- Int depth = 0;
- for( size_t at = lower.find( '<', open ); at != std::string::npos; at = lower.find( '<', at + 1 ) )
- {
- const Bool closing = at + 1 < lower.size() && lower[ at + 1 ] == '/';
- const size_t nameAt = at + ( closing ? 2 : 1 );
- const size_t after = nameAt + tag.size();
- if( lower.compare( nameAt, tag.size(), tag ) != 0 || after >= lower.size() || strchr( " \t\r\n/>", lower[ after ] ) == NULL )
- continue;
-
- depth += closing ? -1 : 1;
- if( depth == 0 )
- {
- const size_t end = lower.find( '>', at );
- return end == std::string::npos ? lower.size() : end + 1;
- }
- }
- return lower.size();
-}
-
-/** The page cut into blocks once: everything but filling in the values, which is all that changes
- * from one frame to the next. */
-void compile( const std::string &written, Blocks &blocks )
-{
- const std::string page = withoutComments( written );
- const std::string lower = lowered( page );
- size_t at = 0;
- for( ;; )
- {
- const size_t attribute = lower.find( EACH_ATTRIBUTE, at );
- const size_t open = attribute == std::string::npos ? std::string::npos : lower.rfind( '<', attribute );
- if( open == std::string::npos || open < at )
- {
- blocks.push_back( Block{ Pieces(), std::string(), FALSE } );
- split( page.substr( at ), blocks.back().pieces );
- return;
- }
-
- size_t nameAt = attribute + EACH_ATTRIBUTE.size();
- const char quote = nameAt < page.size() ? page[ nameAt ] : 0;
- const Bool quoted = quote == '"' || quote == '\'';
- if( quoted )
- nameAt++;
- size_t nameEnd = nameAt;
- while( nameEnd < page.size() && ( quoted ? page[ nameEnd ] != quote : strchr( " \t\r\n>", page[ nameEnd ] ) == NULL ) )
- nameEnd++;
-
- size_t tagEnd = open + 1;
- while( tagEnd < lower.size() && isalnum( (unsigned char)lower[ tagEnd ] ) )
- tagEnd++;
- const std::string tag = lower.substr( open + 1, tagEnd - open - 1 );
- const size_t end = elementEnd( lower, open, tag );
-
- blocks.push_back( Block{ Pieces(), std::string(), FALSE } );
- split( page.substr( at, open - at ), blocks.back().pieces );
-
- blocks.push_back( Block{ Pieces(), page.substr( nameAt, nameEnd - nameAt ), TRUE } );
- split( page.substr( open, end - open ), blocks.back().pieces );
-
- at = end;
- }
-}
-
-/** The page filled in into `sink`. */
-void expandInto( Sink &sink, const std::string &written, const HtmlValues &values, const HtmlLists &lists,
- const HtmlLookup &lookup )
-{
- // the command bar's page alone is 38 KB and was lowercased and searched four times a frame;
- // keyed by its text, so a page that changes is cut again rather than served stale.
- // ponytail: never evicted; the game has a dozen fixed pages, add a bound if pages become generated
- static std::map< std::string, Blocks > compiled;
- std::map< std::string, Blocks >::iterator found = compiled.find( written );
- if( found == compiled.end() )
- {
- found = compiled.insert( std::make_pair( written, Blocks() ) ).first;
- compile( written, found->second );
- }
-
- std::string looked;
- for( Blocks::const_iterator block = found->second.begin(); block != found->second.end() && sink.same; ++block )
- {
- if( !block->each )
- {
- fill( sink, block->pieces, NULL, values, lookup, looked );
- continue;
- }
-
- HtmlLists::const_iterator list = lists.find( block->list );
- if( list != lists.end() )
- for( size_t entry = 0; entry < list->second.size() && sink.same; entry++ )
- fill( sink, block->pieces, &list->second[ entry ], values, lookup, looked );
- }
-}
-
-} // namespace
-
-//-------------------------------------------------------------------------------------------------
-std::string HtmlTemplate_escape( const std::string &text )
-{
- std::string escaped;
- Sink sink = { &escaped, NULL, 0, TRUE };
- putEscaped( sink, text );
- return escaped;
-}
-
-//-------------------------------------------------------------------------------------------------
-std::string HtmlTemplate_expand( const std::string &written, const HtmlValues &values,
- const HtmlLists &lists, const HtmlLookup &lookup )
-{
- std::string out;
- out.reserve( written.size() );
- Sink sink = { &out, NULL, 0, TRUE };
- expandInto( sink, written, values, lists, lookup );
- return out;
-}
-
-//-------------------------------------------------------------------------------------------------
-Bool HtmlTemplate_matches( const std::string &written, const HtmlValues &values, const HtmlLists &lists,
- const HtmlLookup &lookup, const std::string &expanded )
-{
- Sink sink = { NULL, &expanded, 0, TRUE };
- expandInto( sink, written, values, lists, lookup );
- return sink.same && sink.at == expanded.size();
-}
-
-//-------------------------------------------------------------------------------------------------
-static Bool isPageSpace( char character )
-{
- return character == ' ' || character == '\t' || character == '\n' || character == '\r' || character == '\f';
-}
-
-//-------------------------------------------------------------------------------------------------
-void HtmlTemplate_compact( const std::string &page, std::string &body, std::string &styles )
-{
- static const std::string STYLE_OPEN = "<style";
- static const std::string STYLE_CLOSE = "</style>";
-
- body.clear();
- styles.clear();
- body.reserve( page.size() );
- size_t at = 0;
- while( at < page.size() )
- {
- if( page.compare( at, STYLE_OPEN.size(), STYLE_OPEN ) == 0 )
- {
- const size_t open = page.find( '>', at );
- const size_t close = open == std::string::npos ? std::string::npos : page.find( STYLE_CLOSE, open );
- if( close == std::string::npos )
- {
- body.append( page, at, std::string::npos );
- break;
- }
- styles.append( page, open + 1, close - open - 1 );
- at = close + STYLE_CLOSE.size();
- }
- else if( page[ at ] == '<' )
- {
- // a tag goes over whole, the white space in its attribute values with it
- char quote = 0;
- const size_t start = at;
- for( ; at < page.size(); at++ )
- {
- const char character = page[ at ];
- if( quote != 0 )
- quote = character == quote ? 0 : quote;
- else if( character == '"' || character == '\'' )
- quote = character;
- else if( character == '>' )
- {
- at++;
- break;
- }
- }
- body.append( page, start, at - start );
- }
- else if( isPageSpace( page[ at ] ) )
- {
- while( at < page.size() && isPageSpace( page[ at ] ) )
- at++;
- body += ' ';
- }
- else
- body += page[ at++ ];
- }
-}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
index 80b16c5c0..88ecfac90 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
@@ -76,7 +76,6 @@
#include "Common/FileSystem.h"
#include "Common/file.h"
#include "GameNetwork/GameSpy/ThreadUtils.h"
-#include "GameClient/HtmlOverlay.h"
#include "GameClient/GameWindowManager.h"
#include "GameClient/Drawable.h"
#include "GameClient/GadgetPushButton.h"
@@ -156,65 +155,23 @@ static void dressPlacementPreview( Drawable *draw )
static const RGBColor illegalBuildColor = { 1.0, 0.0, 0.0 };
// ------------------------------------------------------------------------------------------------
-// Layout of the production strip; drawProductionStrip() further down is where it is all used.
+// Layout of the production list; drawProductionList() further down is where it is used.
// ------------------------------------------------------------------------------------------------
enum
{
- PRODUCTION_STRIP_CAMEO = 16, ///< a cameo edge to hit-test against before the first draw has
- /// measured the real one off the general's power bar
- /// (the tray a queue cameo stands in is up in InGameUI.h)
-
- PRODUCTION_STRIP_GAP = 2, ///< space between cameos, and between the two rows
- PRODUCTION_STRIP_LEFT = 8, ///< inset from the left edge of the screen
- PRODUCTION_STRIP_LIFT = 24, ///< clearance above the control bar
- PRODUCTION_STRIP_MORE = 18, ///< width kept for the "+N" that closes an overflowing row
- PRODUCTION_STRIP_SECS = 7, ///< point size of the countdown written inside a cameo
-
- STRIP_TRAY_OVERLAP_PARTS = 8, ///< a strip's trays close up by one part in this many of a tray
-
- BLIND_SPOT_RAYS = 180, ///< rays round a placed defence looking for the buildings it cannot shoot past
-
- REACH_OUTLINE_SEGMENTS = 256, ///< straight pieces round one reach circle
- REACH_CROSSING_HALVINGS = 8, ///< halvings that find where one circle's outline enters another
- REACH_OUTLINE_ALPHA = 230, ///< the outline in the owner's colour, a touch see-through
- ELEVATED_REACH_PASSES = 3 ///< where the ground under the edge is read moves with the edge
+ PRODUCTION_LIST_LIFT = 24 ///< clearance between the list's last line and the control bar
};
-static const Real REACH_OUTLINE_WIDTH = 1.0f;
-
-static const Real BLIND_SPOT_TARGET_HEIGHT = 7.5f; ///< top of a Rocket Buggy, Combat Cycle or Technical, the lowest
- /// thing that raids a base: ground that is clear is clear for all
-static const Real LOS_TERRAIN_SLOP = 0.5f; ///< the terrain line-of-sight test's own fudge
-static const Real BLIND_SPOT_RING_WIDTH = PATHFIND_CELL_SIZE_F * 0.5f; ///< two looks a pathfind cell, so a corner is not stepped over
-
//-------------------------------------------------------------------------------------------------
-/** Every number above is an 800x600 one, the resolution the command bar right below the strip was
- * drawn at, so every one of them goes through here to become pixels.
- *
- * The scale is the command bar's own - one factor for both axes - and not the display over 800
- * wide. The two are the same at 4:3 and a third apart at 16:9, and the strip stands on the bar:
- * measured the wide way its gaps grew away from the trays they space out. */
+/** Every number above is an 800x600 one, the resolution the command bar was drawn at, so every one
+ * of them goes through here to become pixels. The scale is the command bar's own, one factor for
+ * both axes, and not the display over 800 wide. */
//-------------------------------------------------------------------------------------------------
static Int stripPixels( Int nominal )
{
return REAL_TO_INT_CEIL( nominal * ControlBarHudPageScale() );
}
-//-------------------------------------------------------------------------------------------------
-/** A countdown written inside a cameo, always in bare seconds with the unit on it: "45s", "200s".
- * A tank takes seconds and a superweapon charges for minutes, and both are read against every
- * other countdown on the screen, all of which are in seconds - m:ss was a number you had to
- * convert first. The trailing s is what stops a lone "45" reading as a count of something; a
- * number too wide for its cameo with the s on goes without it, see drawStripSeconds. */
-//-------------------------------------------------------------------------------------------------
-static void formatStripSeconds( UnicodeString *text, Int seconds )
-{
- if( seconds < 0 )
- seconds = 0;
-
- text->format( u"%ds", seconds );
-}
-
//-------------------------------------------------------------------------------------------------
/** The cameo a special power is fired from. A SpecialPowerTemplate carries no art of its own -
* the picture lives on whichever command button launches it - so the button list is what has to
@@ -242,18 +199,6 @@ static const Image *superweaponCameo( const SpecialPowerTemplate *powerTemplate
return button ? button->getButtonImage() : NULL;
}
-/** The promotion screen's button that buys a science, the picture a bought promotion goes by. */
-static const CommandButton *scienceButton( ScienceType science )
-{
- for( const CommandButton *button = TheControlBar->getCommandButtons(); button; button = button->getNext() )
- {
- const ScienceVec &sciences = button->getScienceVec();
- if( button->getButtonImage() && std::find( sciences.begin(), sciences.end(), science ) != sciences.end() )
- return button;
- }
- return NULL;
-}
-
//-------------------------------------------------------------------------------------------------
/** Pointer to show while a structure rides the cursor. Mouse::BUILD_PLACEMENT and
* INVALID_BUILD_PLACEMENT are two names in CursorININames[] that no shipped Mouse.ini ever
@@ -1194,34 +1139,20 @@ InGameUI::InGameUI()
m_cameoVideoStream = NULL;
m_cameoVideoBuffer = NULL;
- m_feedOverlay = NULL;
- m_feedPageLoaded = FALSE;
- m_feedTop = 0;
- m_queueCorner.x = m_queueCorner.y = 0;
- m_consoleTop = 0;
- m_topBarBottom = 0;
- m_peacePlateBottom = 0;
m_armedSignal = SIGNAL_KIND_COUNT;
m_dozerCheckFrame = 0;
for( Int index = 0; index < MAX_PLAYER_COUNT; index++ )
m_hadDozer[ index ] = FALSE;
- m_chatOverlay = NULL;
- m_chatPageLoaded = FALSE;
m_replayWindow = NULL;
m_messagesOn = TRUE;
- m_placementRangeRingUp = FALSE;
- m_placementRingRadius = 0.0f;
forgetPendingPlacements();
m_hudDisplayString = NULL;
m_peaceTimeDisplayString = NULL;
m_peaceTimeLabelDisplayString = NULL;
m_peaceCountdownDisplayString = NULL;
m_lastMoneyDisplayed = -1;
- m_lastEarningDisplayed = 0;
- m_lastEarningPerMinute = FALSE;
- m_moneyPlate = MoneyPlateWidth();
m_hudDrawCount = 0;
m_hudLastSampleFrame = 0;
m_hudLastSampleMs = 0;
@@ -1232,77 +1163,11 @@ InGameUI::InGameUI()
m_hudLastSampleLogicFrame = 0;
m_hudRealClockBaseMs = 0;
m_hudLastDrawMs = 0;
- m_hudOverlayBottom = 0;
- m_wireframeNotice[ 0 ] = m_wireframeNotice[ 1 ] = NULL;
- m_wireframePos.x = m_wireframePos.y = 0.0f;
- m_wireframeDir.x = m_wireframeDir.y = 1.0f;
- m_wireframeLastMs = 0;
- m_productionStripCount = 0;
- m_productionStripTotal = 0;
- m_productionStripCameoW = PRODUCTION_STRIP_CAMEO;
- m_productionStripCameoH = PRODUCTION_STRIP_CAMEO;
- m_productionStripThemed = FALSE;
- m_productionStripStep = 0;
- m_queueOverlay = NULL;
- m_queueFrontOverlay = NULL;
- m_superweaponOverlay = NULL;
- m_queuePageLoaded = FALSE;
- m_productionStripTray = NULL;
- m_productionStripTraySource = NULL;
- for( Int stripString = 0; stripString < STRIP_OVERFLOW_STRINGS; stripString++ )
- m_productionStripOverflow[ stripString ] = NULL;
- m_spectatorOverlay = NULL;
- m_spectatorPageLoaded = FALSE;
- m_spectatorPageShown = FALSE;
- m_spectatorListsFrame = 0;
- m_spectatorListsWatched = NULL;
- m_scoreboardOpen = FALSE;
- m_scoreboardOverlay = NULL;
- m_scoreboardPageLoaded = FALSE;
- m_scoreboardHtmlFrame = 0;
- m_earnedReadingCount = 0;
- m_controlBarOverlay = NULL;
- m_controlBarPageLoaded = FALSE;
- m_controlBarPageHovered = FALSE;
- m_netOverlay = NULL;
- m_netPageLoaded = FALSE;
- m_readoutOverlay = NULL;
- m_readoutPageLoaded = FALSE;
- m_alertStartMs = 0;
- m_alertOverlay = NULL;
- m_alertPageLoaded = FALSE;
- m_alertBottom = 0;
- m_promotionOverlay = NULL;
- m_promotionFrontOverlay = NULL;
- for( Int grid = 0; grid < CELL_GRID_COUNT; grid++ )
- m_cellFrontOverlay[ grid ] = NULL;
- m_orderKeyPoints = 0;
- for( Int orderKey = 0; orderKey < ORDER_KEYS; orderKey++ )
- {
- m_orderKeyString[ orderKey ] = NULL;
- m_orderKeyPlace[ orderKey ] = -1;
- }
- m_promotionPageLoaded = FALSE;
- m_promotionShownMs = 0;
- m_promotionDrawnAt = 0;
- m_promotionClosing = FALSE;
- m_quitMenuOverlay = NULL;
- m_quitMenuPageLoaded = FALSE;
- m_quitMenuShownMs = 0;
- m_quitMenuDrawnAt = 0;
- m_quitMenuClosingMs = -1;
- m_controlBarPageShown = FALSE;
- m_tooltipOverlay = NULL;
- m_tooltipPageLoaded = FALSE;
- m_tooltipSize.x = 0;
- m_tooltipSize.y = 0;
- m_signalsWereShown = FALSE;
- m_signalsRiseStartMs = 0;
- for( Int stripSeconds = 0; stripSeconds < STRIP_SECONDS_STRINGS; stripSeconds++ )
- m_stripSecondsString[ stripSeconds ] = NULL;
- for( Int stripQuantity = 0; stripQuantity < STRIP_QUANTITY_STRINGS; stripQuantity++ )
- m_stripQuantityString[ stripQuantity ] = NULL;
- m_superweaponIconCount = 0;
+ m_productionListCount = 0;
+ m_productionListTotal = 0;
+ for( Int line = 0; line <= PRODUCTION_LIST_LINES; line++ )
+ m_productionListText[ line ] = NULL;
+ m_superweaponMoreText = NULL;
m_superweaponPosition.x = 0.7f;
m_superweaponPosition.y = 0.7f;
@@ -1364,7 +1229,6 @@ InGameUI::InGameUI()
m_orderKeyKeptByShift = false;
m_preferSelection = false;
m_isAttackCircling = FALSE;
- clearAllyCursors();
m_curRcType = RADIUSCURSOR_NONE;
@@ -1403,55 +1267,12 @@ InGameUI::~InGameUI()
clearWorldAnimations();
resetIdleWorker();
- // our own mirrored copy of the power bar's tray - the bar keeps the original
- if( m_productionStripTray )
- {
- m_productionStripTray->deleteInstance();
- m_productionStripTray = NULL;
- m_productionStripTraySource = NULL;
- }
-
- delete m_spectatorOverlay;
- m_spectatorOverlay = NULL;
- delete m_feedOverlay;
- m_feedOverlay = NULL;
- delete m_chatOverlay;
- m_chatOverlay = NULL;
- delete m_scoreboardOverlay;
- m_scoreboardOverlay = NULL;
- delete m_controlBarOverlay;
- m_controlBarOverlay = NULL;
- delete m_netOverlay;
- m_netOverlay = NULL;
- delete m_readoutOverlay;
- m_readoutOverlay = NULL;
- delete m_alertOverlay;
- m_alertOverlay = NULL;
- delete m_promotionOverlay;
- m_promotionOverlay = NULL;
- delete m_promotionFrontOverlay;
- m_promotionFrontOverlay = NULL;
- delete m_quitMenuOverlay;
- m_quitMenuOverlay = NULL;
- for( size_t key = 0; key < m_quitMenuKeyOverlays.size(); key++ )
- delete m_quitMenuKeyOverlays[ key ];
- m_quitMenuKeyOverlays.clear();
for( std::map< std::string, DisplayString * >::iterator text = m_broadcastTexts.begin(); text != m_broadcastTexts.end(); ++text )
TheDisplayStringManager->freeDisplayString( text->second );
m_broadcastTexts.clear();
- for( Int grid = 0; grid < CELL_GRID_COUNT; grid++ )
- {
- delete m_cellFrontOverlay[ grid ];
- m_cellFrontOverlay[ grid ] = NULL;
- }
- delete m_queueOverlay;
- m_queueOverlay = NULL;
- delete m_queueFrontOverlay;
- m_queueFrontOverlay = NULL;
- delete m_superweaponOverlay;
- m_superweaponOverlay = NULL;
- delete m_tooltipOverlay;
- m_tooltipOverlay = NULL;
+ for( Int line = 0; line <= PRODUCTION_LIST_LINES; line++ )
+ TheDisplayStringManager->freeDisplayString( m_productionListText[ line ] );
+ TheDisplayStringManager->freeDisplayString( m_superweaponMoreText );
}
//-------------------------------------------------------------------------------------------------
@@ -1492,10 +1313,6 @@ void InGameUI::init( void )
if (TheGlobalLanguageData->m_superweaponCountdownNormalFont.name.isNotEmpty())
{ m_superweaponNormalFont = TheGlobalLanguageData->m_superweaponCountdownNormalFont.name;
m_superweaponNormalPointSize = TheGlobalLanguageData->m_superweaponCountdownNormalFont.size;
- // these are overlay text on the battlefield, not panel text - take them down a notch, except
- // in the Classic interface, which draws EA's column of them at EA's size
- if( !TheGlobalData->isClassicUI() )
- m_superweaponNormalPointSize = max( 8, (m_superweaponNormalPointSize * 4) / 5 );
m_superweaponNormalBold = TheGlobalLanguageData->m_superweaponCountdownNormalFont.bold;
}
@@ -1518,13 +1335,6 @@ void InGameUI::init( void )
}
}
- // the message list is overlay text in the top-left corner of the battlefield, not panel text -
- // take it down a notch, same as the superweapon countdown above. (line spacing follows the
- // font height in postDraw(), so the whole stack shrinks with it.)
- // The Classic interface's list is EA's, at EA's size.
- if( !TheGlobalData->isClassicUI() )
- m_messagePointSize = max( 8, (m_messagePointSize * 4) / 5 );
-
/**@ todo we used to put in the hint spy translator, but it's difficult
to order the translators when the code is not centralized so it has
been moved to where all the other translators are attached in game client */
@@ -1624,10 +1434,7 @@ void InGameUI::setRadiusCursor(RadiusCursorType cursorType, const SpecialPowerTe
break;
case RADIUSCURSOR_GUARD_AREA:
// no decal: its size was fixed when the button was pressed, and the wheel changes the radius
- // after that. The area pick ring takes its place (isAreaPicking). Classic has no ring and
- // no wheel, so it wears EA's decal at the standard range the guard will hold
- if( TheGlobalData->isClassicUI() )
- radius = AIGuardMachine::getStdGuardRange(obj);
+ // after that. The area pick ring takes its place (isAreaPicking)
break;
case RADIUSCURSOR_FRIENDLY_SPECIALPOWER:
case RADIUSCURSOR_OFFENSIVE_SPECIALPOWER:
@@ -1780,279 +1587,36 @@ void InGameUI::evaluateSoloNexus( Drawable *newlyAddedDrawable )
//-------------------------------------------------------------------------------------------------
-/** Whether a defence shoots this weapon at the ground on its own: the weapon hits ground targets,
- * and the set lets a target the defence picked for itself choose it, the test the weapon set's
- * chooser makes for CMD_FROM_AI. A Patriot's 450 assist missile is NONE there and only fires
- * when another Patriot asks, a Gattling Cannon's 400 gun is anti-air, and both used to be the
- * ring while the ground gun that does the shooting reaches 225. */
-//-------------------------------------------------------------------------------------------------
-static Bool picksGroundTargetsWith( const WeaponTemplateSet &set, WeaponSlotType slot )
-{
- const WeaponTemplate *wt = set.getNth( slot );
- if( wt == NULL || ( wt->getAntiMask() & WEAPON_ANTI_GROUND ) == 0 )
- return FALSE;
- const UnsignedInt sources = set.getNthCommandSourceMask( slot );
- return ( sources & ( 1 << CMD_FROM_AI ) ) != 0 || ( sources & CMD_DEFAULT_SWITCH_WEAPON ) != 0;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The longest range, and the shortest minimum range, of the guns this template shoots at the
- * ground with (picksGroundTargetsWith). Every set is walked, not just the one an empty condition
- * mask happens to select: a defence whose gun lives in a conditional set (an upgrade, a garrisoned
- * variant) would otherwise report no range. The range is the one the weapon is tested with,
- * which the game trims a little from the INI number. No structure carries a range bonus (battle
- * plans leave out STRUCTURE), so the bare range is the live one. */
-//-------------------------------------------------------------------------------------------------
-static Real templateWeaponRange( const ThingTemplate *tmpl, Real *minimumRange = NULL )
-{
- if( minimumRange )
- *minimumRange = 0.0f;
- if( tmpl == NULL )
- return 0.0f;
-
- const WeaponBonus noBonus;
- Real range = 0.0f;
- Real closest = FLT_MAX;
- const WeaponTemplateSetVector& sets = tmpl->getWeaponTemplateSets();
- for( WeaponTemplateSetVector::const_iterator si = sets.begin(); si != sets.end(); ++si )
- {
- for( Int ws = PRIMARY_WEAPON; ws < WEAPONSLOT_COUNT; ++ws )
- {
- if( !picksGroundTargetsWith( *si, (WeaponSlotType)ws ) )
- continue;
- const WeaponTemplate *wt = si->getNth( (WeaponSlotType)ws );
- range = max( range, wt->getAttackRange( noBonus ) );
- closest = min( closest, wt->getMinimumAttackRange() );
- }
- }
-
- if( minimumRange && range > 0.0f )
- *minimumRange = closest;
- return range;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The radius to ring while this structure is being placed.
- *
- * Its own weapons first - and if it has none, the weapons of whatever it puts on the ground.
- * Half the GLA's defences carry no gun at all: a stinger site is an empty shell with a
- * SpawnBehavior that keeps three stinger soldiers alive next to it, and the soldiers own the
- * missiles. Judged by its own template the site is unarmed, so no ring was ever drawn for the
- * one faction whose defences most need siting.
- *
- * Only a structure the INI marks SPAWNS_ARE_THE_WEAPONS counts its spawns. A GLA supply stash
- * spawns workers too, and a worker carries a mine-disarming weapon, so reading every spawner's
- * spawns put a reach circle round the stash. Spawns walk about the site, so they get no
- * minimum range hole. */
-//-------------------------------------------------------------------------------------------------
-static Real templatePlacementRange( const ThingTemplate *tmpl, Real *minimumRange = NULL )
-{
- Real range = templateWeaponRange( tmpl, minimumRange );
- if( range > 0.0f || tmpl == NULL || TheThingFactory == NULL )
- return range;
- if( !tmpl->isKindOf( KINDOF_SPAWNS_ARE_THE_WEAPONS ) )
- return range;
-
- const ModuleInfo& modules = tmpl->getBehaviorModuleInfo();
- for( Int i = 0; i < modules.getCount(); i++ )
- {
- if( modules.getNthName( i ) != "SpawnBehavior" )
- continue;
-
- const SpawnBehaviorModuleData *data =
- (const SpawnBehaviorModuleData *)modules.getNthData( i );
- if( data == NULL )
- continue;
-
- for( size_t s = 0; s < data->m_spawnTemplateNameData.size(); ++s )
- {
- const ThingTemplate *spawn =
- TheThingFactory->findTemplate( data->m_spawnTemplateNameData[ s ] );
- Real spawnRange = templateWeaponRange( spawn );
- if( spawnRange > range )
- range = spawnRange;
- }
- }
-
- return range;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** How far from its centre a structure of this template hits. The game measures a shot from the
- * edge of the shooter's bounding circle, so the weapon range starts there, not at the middle. */
-//-------------------------------------------------------------------------------------------------
-static Real templateReach( const ThingTemplate *tmpl )
-{
- const Real range = templatePlacementRange( tmpl );
- // an AttackRange of inf (sscanf takes it, and 1e39, from a mod's INI) has no circle to draw: its
- // outline went NaN, and Windows' INT_MIN for a NaN angle read the outline out of bounds
- if( !( range > 0.0f && range <= FLT_MAX ) )
- return 0.0f;
- return range + tmpl->getTemplateGeometryInfo().getBoundingCircleRadius();
-}
-
-/// the hole in the middle of templateReach that a minimum range leaves (a Fire Base's 50, a Strategy
-/// Center's 100), from the centre the same way; 0 for a defence that shoots at its own feet
-static Real templateHole( const ThingTemplate *tmpl )
-{
- Real minimumRange = 0.0f;
- if( templatePlacementRange( tmpl, &minimumRange ) <= 0.0f || minimumRange <= 0.0f )
- return 0.0f;
- return minimumRange + tmpl->getTemplateGeometryInfo().getBoundingCircleRadius();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A structure's flat reach, templateReach, along one direction from where it stands: further
- * wherever the ground it looks down on lies below it, by the same high ground bonus its weapon,
- * of templatePlacementRange, is tested with. How far the edge goes decides whose ground height
- * it gets, so it is settled over a few passes. */
-//-------------------------------------------------------------------------------------------------
-static Real elevatedReach( Real reach, Real range, const Coord3D &center, Real angle )
-{
- const Real dirX = Cos( angle );
- const Real dirY = Sin( angle );
-
- Real along = reach;
- for( Int pass = 0; pass < ELEVATED_REACH_PASSES; pass++ )
- {
- const Real groundZ = TheTerrainLogic->getGroundHeight( center.x + dirX * along, center.y + dirY * along );
- along = reach + Weapon_elevationRangeBonus( range, center.z - groundZ );
- }
- return along;
-}
-
+// The spectator actions the control socket sends (runSpectatorAction): "camera:free",
+// "camera:director" or "camera:player" picks who drives the camera (ObserverCamera.h); "follow:N"
+// or "follow:none" picks the player it follows; "fog" turns the followed player's fog on and off.
//-------------------------------------------------------------------------------------------------
-// The spectator's page. A loose copy under Run/ beats the archive, so it can be edited between two
-// matches without a build. What a data-click names is also the {{name}} that reads it back:
-// data-click="option:Key" flips that on/off option and {{option:Key}} is "on" while it is on;
-// data-click="flip:name" flips a switch that lasts the match and {{flip:name}} is "flipped" while
-// it is flipped. data-click="pick:group:choice" makes choice the group's one pick, so {{pick:group}}
-// is "choice" and {{pick:group:choice}} is "on", and folds up the flip of the same name: a drop-down
-// that flip:group opened closes on the choice made in it. {{text:Label}} is a string table label
-// in the player's language.
-//-------------------------------------------------------------------------------------------------
-static const char *const SPECTATOR_PAGE = "Window\\Html\\Spectator.html";
-static const std::string FLIP_ACTION = "flip:";
-static const std::string PICK_ACTION = "pick:";
-// data-click="camera:free", "camera:director" or "camera:player" picks who drives the camera
-// (ObserverCamera.h) and folds up flip:camera; "follow:N" or "follow:none" picks the player it
-// follows and folds up flip:follow; "fog" turns the followed player's fog on and off
static const std::string CAMERA_ACTION = "camera:";
static const std::string CAMERA_DIRECTOR = "director";
static const std::string CAMERA_FREE = "free";
static const std::string CAMERA_PLAYER = "player";
-static const std::string CAMERA_GROUP = "camera";
static const std::string FOLLOW_ACTION = "follow:";
static const std::string FOLLOW_NOBODY = "none";
-static const std::string FOLLOW_GROUP = "follow";
static const std::string FOG_ACTION = "fog";
-static const std::string TEXT_LOOKUP = "text:";
-static const std::string STAT_GROUP = "stat";
enum
{
- NET_WORTH_REFRESH_FRAMES = LOGICFRAMES_PER_SECOND / 2, ///< how often every player's worth is counted again
FRAMES_PER_MINUTE = LOGICFRAMES_PER_SECOND * 60,
- ARMY_CHART_UNITS = 6, ///< kinds of unit shown per player, the most money first
- PLAYER_NAME_CHARS = 11, ///< a name longer than this is cut, there is no clipping to hide it
SECONDS_IN_MINUTE = 60,
SECONDS_PER_HOUR = 60 * 60,
- FEED_LINE_FRAMES = LOGICFRAMES_PER_SECOND * 10, ///< how long a line of the event feed stays up
- FEED_LINES_KEPT = 6, ///< the most of those on screen at once; the oldest goes first
- FEED_HISTORY_KEPT = 12, ///< the lines held for the open chat to show, however old
PERCENT = 100
};
-//-------------------------------------------------------------------------------------------------
-/** Read a page under Window/Html into `page`, empty when it is not there: a missing page draws
- * nothing rather than stopping the match. */
-//-------------------------------------------------------------------------------------------------
-static void readHtmlPage( const char *path, std::string &page )
-{
- page.clear();
- // the Classic interface is EA's, and every page here has EA's windows, or nothing, to fall back on
- if( TheGlobalData->isClassicUI() )
- return;
- File *file = TheFileSystem->openFile( path, File::READ | File::BINARY );
- if( file == NULL )
- {
- DEBUG_LOG(( "Html page: %s is missing, so nothing is drawn in its place\n", path ));
- return;
- }
- const Int size = file->size();
- char *text = file->readEntireAndClose();
- page.assign( text, size );
- delete [] text;
-}
-
//-------------------------------------------------------------------------------------------------
/** Is the local player watching rather than playing - an observer, or knocked out and stayed? */
//-------------------------------------------------------------------------------------------------
static Bool localPlayerWatching( void )
{
- const Player *local = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
+ const Player *local = ThePlayerList->getLocalPlayer();
return local != NULL && !local->isPlayerActive();
}
-//-------------------------------------------------------------------------------------------------
-/** Is this strip switched off from the drop-down? Only a watcher has the drop-down, so a player
- * always has his strips, whatever he last chose while watching somebody else's match. */
-//-------------------------------------------------------------------------------------------------
-static Bool stripSwitchedOff( Bool GlobalData::* flag )
-{
- return localPlayerWatching() && !( TheGlobalData->*flag );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Labels the string table had, by {{text:Label}} name, already turned into UTF-8. The game's own
- * table is read once at startup and searched before the map's, so a label found there answers the
- * same all session; one only the map's map.str has answers the same until reset() at the match's
- * end, the resetAll that also drops the map's table. A missing label is asked again every time.
- * ponytail: map.str reloaded mid-match (the map cache's scan) would leave a map-only label stale;
- * no page asks for one. */
-static std::map< std::string, std::string > s_gameTexts;
-
-/** What drawProductionStrip's last sweep was of, and how many slots it filled. */
-static struct
-{
- Bool valid;
- UnsignedInt frame;
- const Player *player;
- ObjectID selected;
- Int count;
- Int total;
-} s_stripGather;
-
-/** {{text:Label}}: a string table label, in the player's language. */
-//-------------------------------------------------------------------------------------------------
-static Bool lookupGameText( const std::string &name, std::string &value )
-{
- if( name.compare( 0, TEXT_LOOKUP.size(), TEXT_LOOKUP ) != 0 )
- return FALSE;
- std::map< std::string, std::string >::const_iterator found = s_gameTexts.find( name );
- if( found != s_gameTexts.end() )
- {
- value = found->second;
- return TRUE;
- }
- Bool exists = FALSE;
- value = WideCharStringToMultiByte( TheGameText->fetch( name.substr( TEXT_LOOKUP.size() ).c_str(), &exists ).str() );
- if( exists )
- s_gameTexts[ name ] = value;
- return TRUE;
-}
-
-//-------------------------------------------------------------------------------------------------
-static std::string cssColor( Color color )
-{
- UnsignedByte red, green, blue, alpha;
- GameGetColorComponents( color, &red, &green, &blue, &alpha );
- char text[ sizeof( "#rrggbb" ) ];
- sprintf( text, "#%02x%02x%02x", red, green, blue );
- return text;
-}
-
-/** Everything the page can rank one player by, counted in one walk over what he owns. */
+/** Everything a player can be ranked by, counted in one walk over what he owns. */
struct SpectatorStats
{
Player *player;
@@ -2068,36 +1632,17 @@ struct SpectatorStats
std::map< const ThingTemplate *, Int > units; ///< how many of each unit with a cameo he has standing
};
-/** One entry of the stat drop-down: what pick:stat:key names, the label it goes by, and the number
- * the list is ranked by when it is picked. */
+/** The number a list of players is ranked by. */
struct SpectatorStat
{
- const char *key;
- const char *label;
Int SpectatorStats::*value;
};
static const SpectatorStat SPECTATOR_STATS[] =
{
- { "networth", "GUI:HudNetWorth", &SpectatorStats::networth },
- { "cash", "GUI:HudStatCash", &SpectatorStats::cash },
- { "income", "GUI:HudStatIncome", &SpectatorStats::income },
- { "army", "GUI:HudStatArmy", &SpectatorStats::army },
- { "kills", "GUI:HudStatKills", &SpectatorStats::kills },
- { "rank", "GUI:HudStatRank", &SpectatorStats::rank },
- { "power", "GUI:HudStatPower", &SpectatorStats::power }
+ { &SpectatorStats::networth }
};
-/** The stat pick:stat:key names, the first until one is picked. */
-static const SpectatorStat &spectatorStat( const std::map< std::string, std::string > &picked )
-{
- std::map< std::string, std::string >::const_iterator pick = picked.find( STAT_GROUP );
- for( Int stat = 0; pick != picked.end() && stat < (Int)ARRAY_SIZE( SPECTATOR_STATS ); stat++ )
- if( pick->second == SPECTATOR_STATS[ stat ].key )
- return SPECTATOR_STATS[ stat ];
- return SPECTATOR_STATS[ 0 ];
-}
-
static void addObjectStats( Object *obj, void *userData )
{
SpectatorStats *stats = (SpectatorStats *)userData;
@@ -2164,130 +1709,6 @@ static std::vector< SpectatorStats > gatherSpectatorStats( const SpectatorStat &
return players;
}
-//-------------------------------------------------------------------------------------------------
-/** The page's "players" list: one entry per player in the order `players` is ranked, the picked
- * number written out and as a percentage of the highest. */
-//-------------------------------------------------------------------------------------------------
-static void fillSpectatorPlayers( const std::vector< SpectatorStats > &players, const SpectatorStat &stat,
- std::vector< HtmlValues > &rows )
-{
- Int highest = 0;
- for( size_t index = 0; index < players.size(); index++ )
- highest = max( highest, players[ index ].*stat.value );
-
- rows.clear();
- for( size_t index = 0; index < players.size(); index++ )
- {
- const SpectatorStats &stats = players[ index ];
- const PlayerTemplate *side = stats.player->getPlayerTemplate();
- const Image *portrait = side ? side->getEnabledImage() : NULL;
- const Int value = stats.*stat.value;
-
- WideCharString name( stats.player->getPlayerDisplayName().str() );
- if( name.size() > PLAYER_NAME_CHARS )
- name.resize( PLAYER_NAME_CHARS );
-
- std::string text = std::to_string( value );
- if( stat.value == &SpectatorStats::kills )
- text += " / " + std::to_string( stats.losses );
-
- HtmlValues row;
- row[ "name" ] = WideCharStringToMultiByte( name.c_str() );
- row[ "value" ] = text;
- row[ "networth" ] = std::to_string( stats.networth );
- row[ "share" ] = std::to_string( highest > 0 && value > 0 ? value * PERCENT / highest : 0 );
- row[ "color" ] = cssColor( clientPlayerColor( stats.player ) );
- row[ "portrait" ] = portrait ? portrait->getName().str() : "";
- rows.push_back( row );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The page's "army" list, Dota's item chart for an army: per player an entry of kind "head" with
- * his portrait and colour, then his most expensive kinds of unit, each of kind "unit" with its
- * cameo and how many are standing. Flat, so a page floats the entries and clears at each head. */
-//-------------------------------------------------------------------------------------------------
-static void fillSpectatorArmies( const std::vector< SpectatorStats > &players, std::vector< HtmlValues > &cells )
-{
- typedef std::pair< const ThingTemplate *, Int > UnitCount;
-
- cells.clear();
- for( size_t index = 0; index < players.size(); index++ )
- {
- const SpectatorStats &stats = players[ index ];
- const PlayerTemplate *side = stats.player->getPlayerTemplate();
- const Image *portrait = side ? side->getEnabledImage() : NULL;
-
- HtmlValues head;
- head[ "kind" ] = "head";
- head[ "image" ] = portrait ? portrait->getName().str() : "";
- head[ "color" ] = cssColor( clientPlayerColor( stats.player ) );
- cells.push_back( head );
-
- const Player *owner = stats.player;
- std::vector< UnitCount > units( stats.units.begin(), stats.units.end() );
- std::stable_sort( units.begin(), units.end(), [ owner ]( const UnitCount &a, const UnitCount &b )
- { return a.second * a.first->calcCostToBuild( owner ) > b.second * b.first->calcCostToBuild( owner ); } );
- if( units.size() > ARMY_CHART_UNITS )
- units.resize( ARMY_CHART_UNITS );
-
- for( size_t unit = 0; unit < units.size(); unit++ )
- {
- HtmlValues cell;
- cell[ "kind" ] = "unit";
- cell[ "image" ] = units[ unit ].first->getButtonImage()->getName().str();
- cell[ "count" ] = std::to_string( units[ unit ].second );
- cells.push_back( cell );
- }
- }
-}
-
-static Int gatherPlayerSkills( const Player *player, const CommandButton **buttons, Int count, Int max );
-
-//-------------------------------------------------------------------------------------------------
-/** The class the page dresses itself in: the side whose command bar is on screen, "america",
- * "china" or "gla". The observer bar is America's art under a name of its own, and a watcher who
- * selects a unit gets its owner's bar, so this follows whoever is being watched. */
-//-------------------------------------------------------------------------------------------------
-static std::string spectatorSide( void )
-{
- ControlBarSchemeManager *schemes = TheControlBar ? TheControlBar->getControlBarSchemeManager() : NULL;
- if( schemes == NULL )
- return "america";
-
- AsciiString side = schemes->getCurrentSide();
- if( side == "Observer" )
- side = schemes->getCurrentArtTwinSide();
- if( side.startsWith( "China" ) || side == "Boss" )
- return "china";
- if( side.startsWith( "GLA" ) )
- return "gla";
- return "america";
-}
-
-/** A player's name as the page writes it, cut where there is no clipping to hide the rest. */
-static std::string spectatorName( Player *player )
-{
- WideCharString name( player->getPlayerDisplayName().str() );
- if( name.size() > PLAYER_NAME_CHARS )
- name.resize( PLAYER_NAME_CHARS );
- return WideCharStringToMultiByte( name.c_str() );
-}
-
-/** The entry that opens a player's run in a flat list: kind "head", his general and his colour. */
-static HtmlValues spectatorHead( Player *player )
-{
- const PlayerTemplate *side = player->getPlayerTemplate();
- const Image *portrait = side ? side->getEnabledImage() : NULL;
-
- HtmlValues head;
- head[ "kind" ] = "head";
- head[ "image" ] = portrait ? portrait->getName().str() : "";
- head[ "color" ] = cssColor( clientPlayerColor( player ) );
- head[ "name" ] = spectatorName( player );
- return head;
-}
-
/** m:ss of match time, or h:mm:ss once it runs past the hour. */
static std::string spectatorClock( UnsignedInt frame )
{
@@ -2301,70 +1722,17 @@ static std::string spectatorClock( UnsignedInt frame )
}
//-------------------------------------------------------------------------------------------------
-/** The players the camera can follow, grouped by team the way the scoreboard is. Which one it is
- * following is marked every frame, not at the lists' rebuilds. */
-//-------------------------------------------------------------------------------------------------
-static void fillSpectatorFollows( std::vector< SpectatorStats > players, std::vector< HtmlValues > &entries )
-{
- std::stable_sort( players.begin(), players.end(),
- []( const SpectatorStats &a, const SpectatorStats &b ) { return a.team < b.team; } );
-
- entries.clear();
- for( size_t index = 0; index < players.size(); index++ )
- {
- HtmlValues entry = spectatorHead( players[ index ].player );
- entry[ "click" ] = FOLLOW_ACTION + std::to_string( players[ index ].player->getPlayerIndex() );
- entries.push_back( entry );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** What the camera's and the followed player's drop-downs and the fog switch show this frame. */
-//-------------------------------------------------------------------------------------------------
-static void fillSpectatorCameraValues( std::vector< HtmlValues > &follows, HtmlValues &values )
-{
- const Int followed = TheObserverCamera.getFollowedPlayerIndex();
- const ObserverCameraMode mode = TheObserverCamera.getMode();
- const std::string followedClick = FOLLOW_ACTION + std::to_string( followed );
- for( size_t index = 0; index < follows.size(); index++ )
- follows[ index ][ "on" ] = follows[ index ][ "click" ] == followedClick ? "on" : "";
-
- const char *label = mode == OBSERVER_CAMERA_DIRECTOR ? "GUI:HudCameraDirector"
- : mode == OBSERVER_CAMERA_PLAYER ? "GUI:HudCameraPlayer" : "GUI:HudCameraFree";
- values[ "camera" ] = WideCharStringToMultiByte( TheGameText->fetch( label ).str() );
- values[ "cameradirector" ] = mode == OBSERVER_CAMERA_DIRECTOR ? "on" : "";
- values[ "cameraplayer" ] = mode == OBSERVER_CAMERA_PLAYER ? "on" : "";
- values[ "camerafree" ] = mode == OBSERVER_CAMERA_FREE ? "on" : "";
- values[ "fog" ] = TheObserverCamera.isFogOn() ? "on" : "";
- values[ "follownobody" ] = followed == ObserverCamera::NO_PLAYER ? "on" : "";
- if( followed == ObserverCamera::NO_PLAYER )
- {
- values[ "follow" ] = WideCharStringToMultiByte( TheGameText->fetch( "GUI:HudFollowNobody" ).str() );
- values[ "followcolor" ] = "";
- return;
- }
-
- const HtmlValues head = spectatorHead( ThePlayerList->getNthPlayer( followed ) );
- values[ "follow" ] = head.at( "name" );
- values[ "followcolor" ] = head.at( "color" );
-}
-
-//-------------------------------------------------------------------------------------------------
-// The replay strip, on the spectator's page where a player's command grid stands: the timeline and
-// the playback speed. data-click="replay:seek" on #track jumps to the frame under the pointer,
-// "replay:pause" pauses and resumes, and "replay:speed:N" plays at N percent of the logic rate the
-// game was played at. A seek forward fast-forwards, one picture in thirty drawn, until the frame
+// Replay playback from the control socket: "replay:pause" pauses and resumes, "replay:seek:N" jumps
+// to frame N, and "replay:speed:N" plays at N percent of the logic rate the game was played at.
+// A seek forward fast-forwards, one picture in thirty drawn, until the frame
// is reached. A seek back loads the last checkpoint in front of the frame and runs forward from
// there: the simulation keeps no history to step back through, so the replay saves the whole world
// every half minute of it as it plays. The load puts no loading screen up; the picture holds.
//-------------------------------------------------------------------------------------------------
static const std::string REPLAY_ACTION = "replay:";
-static const std::string REPLAY_SEEK = REPLAY_ACTION + "seek";
-static const std::string REPLAY_SEEK_TO = REPLAY_SEEK + ":";
+static const std::string REPLAY_SEEK_TO = REPLAY_ACTION + "seek:";
static const std::string REPLAY_PAUSE = REPLAY_ACTION + "pause";
static const std::string REPLAY_SPEED = REPLAY_ACTION + "speed:";
-static const char *const REPLAY_TRACK = "#track";
-static const Int REPLAY_SPEEDS[] = { 50, 100, 200, 400, 800 };
/** The frame a seek runs to, 0 for none. Not a member: a seek back resets the whole interface when
* it starts the replay over, and the frame has to outlive that. */
@@ -2377,38 +1745,6 @@ static Int replayNormalFramesPerSecond( void )
return recorded > 0 ? recorded : LOGICFRAMES_PER_SECOND;
}
-/** The replay's length, or the frame reached if the header never had it written. */
-static UnsignedInt replayLength( void )
-{
- return max( TheRecorder->getPlaybackFrameDuration(), TheGameLogic->getFrame() );
-}
-
-/** The replay strip's values, the strip standing on `floor`, the top of what is under it in screen
- * pixels: the bar's console, or the screen's bottom edge. */
-static void fillReplayValues( HtmlValues &values, Int floor )
-{
- if( !TheGameLogic->isInReplayGame() )
- return;
-
- // Spectator.html's #replay with its padding and its borders, and a gap under it
- enum { REPLAY_STRIP_WIDTH = 322, REPLAY_STRIP_HEIGHT = 52 };
- const Real scale = ControlBarHudScale();
- const UnsignedInt frame = TheGameLogic->getFrame();
- const UnsignedInt length = replayLength();
- values[ "replay" ] = "on";
- values[ "replayleft" ] = std::to_string( ( REAL_TO_INT_FLOOR( TheDisplay->getWidth() / scale ) - REPLAY_STRIP_WIDTH ) / 2 );
- values[ "replaytop" ] = std::to_string( REAL_TO_INT_FLOOR( floor / scale ) - REPLAY_STRIP_HEIGHT );
- values[ "replaypaused" ] = TheGameLogic->isGamePaused() ? "paused" : "";
- values[ "replayseeking" ] = TheReplaySeekFrame > 0 ? "seeking" : "";
- values[ "replaytime" ] = spectatorClock( frame );
- values[ "replaylength" ] = spectatorClock( length );
- values[ "replayshare" ] = std::to_string( length > 0 ? frame * PERCENT / length : 0 );
-
- const Int speed = TheGameEngine->getFramesPerSecondLimit() * PERCENT / replayNormalFramesPerSecond();
- for( Int each = 0; each < (Int)ARRAY_SIZE( REPLAY_SPEEDS ); each++ )
- values[ REPLAY_SPEED + std::to_string( REPLAY_SPEEDS[ each ] ) ] = speed == REPLAY_SPEEDS[ each ] ? "on" : "";
-}
-
/** A rewind checkpoint: the world saved between two logic frames, where playback stood in the
* replay, and the CRCs the last logic frame posted that the next one has yet to compare. Those
* are messages on their way, and the load's reset empties the stream they are in. */
@@ -2591,185 +1927,12 @@ static void updateReplaySeek( void )
TheReplaySeekFrame = 0;
}
-//-------------------------------------------------------------------------------------------------
-/** The key a command bar slot is bound to right now, "Q" for KEY_Q, so the page names the key the
- * player really has after a rebinding in Options > Keyboard. Empty when unbound. */
-//-------------------------------------------------------------------------------------------------
-static std::string commandSlotKey( Int commandSlot )
-{
- static const std::string KEY_PREFIX = "KEY_";
- const GameMessage::Type meta = (GameMessage::Type)( GameMessage::MSG_META_COMMAND_SLOT01 + commandSlot );
- for( const MetaMapRec *map = TheMetaMap ? TheMetaMap->getFirstMetaMapRec() : NULL; map; map = map->m_next )
- {
- if( map->m_meta != meta )
- continue;
- for( const LookupListRec *key = KeyNames; key->name; key++ )
- if( key->value == map->m_key )
- return std::string( key->name ).substr( KEY_PREFIX.size() );
- }
- return std::string();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The command grid's keys in reading order while the spectator page is up - Q, W, E, R, T, Y, A as
- * shipped - pick the stats in the order the drop-down lists them, and {{statkey:stat}} names each
- * one's key. Anything past the last stat is left to the command bar. */
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::pickSpectatorStat( Int commandSlot )
-{
- const Int stat = commandSlot;
- if( !m_spectatorPageShown || stat >= (Int)ARRAY_SIZE( SPECTATOR_STATS ) )
- return FALSE;
-
- m_spectatorPicked[ STAT_GROUP ] = SPECTATOR_STATS[ stat ].key;
- m_spectatorFlipped.erase( STAT_GROUP );
- m_spectatorLists.clear();
- return TRUE;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The spectator's page: the camera, every player ranked by the number picked in the stat drop-down
- * and each army's most expensive units. The players themselves, the promotions and the production
- * are on the Tab scoreboard, and what happens is in the feed over the radar. Only while watching:
- * the other side's worth is not a player's to know. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawSpectatorPage( void )
-{
- m_spectatorPageShown = FALSE;
-
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
- if( !localPlayerWatching() )
- return;
-
- if( !m_spectatorPageLoaded )
- {
- m_spectatorPageLoaded = TRUE;
- readHtmlPage( SPECTATOR_PAGE, m_spectatorPage );
- }
- if( m_spectatorPage.empty() )
- return;
- if( m_spectatorOverlay == NULL )
- {
- m_spectatorOverlay = new HtmlOverlay( m_superweaponNormalFont );
- // the console's own scale: the column and the replay strip standing on the console were left
- // at the old size when the console was cut to CONTROL_BAR_HUD_PERCENT
- m_spectatorOverlay->setHud( TRUE );
- }
-
- // a unit selected turns the page to his side's steel the same frame, not half a second on
- const UnsignedInt frame = TheGameLogic->getFrame();
- const Player *watched = TheControlBar->getObserverLookAtPlayer();
- if( m_spectatorLists.empty() || watched != m_spectatorListsWatched
- || frame < m_spectatorListsFrame || frame >= m_spectatorListsFrame + NET_WORTH_REFRESH_FRAMES )
- {
- const SpectatorStat &stat = spectatorStat( m_spectatorPicked );
- const std::vector< SpectatorStats > players = gatherSpectatorStats( stat, ThePlayerList->getLocalPlayer() );
- fillSpectatorPlayers( players, stat, m_spectatorLists[ "players" ] );
- fillSpectatorArmies( players, m_spectatorLists[ "army" ] );
- fillSpectatorFollows( players, m_spectatorLists[ "follows" ] );
-
- m_spectatorTotals.clear();
- m_spectatorTotals[ "stat" ] = WideCharStringToMultiByte( TheGameText->fetch( stat.label ).str() );
- m_spectatorTotals[ PICK_ACTION + STAT_GROUP + ":" + stat.key ] = "on";
- m_spectatorTotals[ "side" ] = spectatorSide();
- for( Int each = 0; each < (Int)ARRAY_SIZE( SPECTATOR_STATS ); each++ )
- m_spectatorTotals[ std::string( "statkey:" ) + SPECTATOR_STATS[ each ].key ] = commandSlotKey( each );
- m_spectatorListsFrame = frame;
- m_spectatorListsWatched = watched;
- }
-
- HtmlValues values = m_spectatorTotals;
- fillSpectatorCameraValues( m_spectatorLists[ "follows" ], values );
- fillReplayValues( values, m_controlBarPageShown ? m_consoleTop : (Int)TheDisplay->getHeight() );
- for( std::map< std::string, std::string >::const_iterator pick = m_spectatorPicked.begin(); pick != m_spectatorPicked.end(); ++pick )
- {
- values[ PICK_ACTION + pick->first ] = pick->second;
- values[ PICK_ACTION + pick->first + ":" + pick->second ] = "on";
- }
- for( std::set< std::string >::const_iterator name = m_spectatorFlipped.begin(); name != m_spectatorFlipped.end(); ++name )
- values[ FLIP_ACTION + *name ] = "flipped";
-
- m_spectatorOverlay->setPage( m_spectatorPage, values, m_spectatorLists, lookupGameText );
- m_spectatorOverlay->hover( TheMouse->getMouseStatus()->pos );
- m_spectatorOverlay->draw();
- m_spectatorPageShown = TRUE;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A click on something the page drew is the page's, whatever button it was, so it never becomes a
- * move order into the ground under it. Only a plain left click does anything. */
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::handleSpectatorPageClick( const ICoord2D *mouse, Bool act )
-{
- if( !m_spectatorPageShown || !m_spectatorOverlay->hover( *mouse ) )
- return FALSE;
- if( !act )
- return TRUE;
-
- const std::string action = m_spectatorOverlay->click( *mouse );
- if( action == REPLAY_SEEK && TheGameLogic->isInReplayGame() )
- {
- std::vector< IRegion2D > tracks;
- m_spectatorOverlay->rectsOf( REPLAY_TRACK, tracks );
- const IRegion2D &track = tracks.front();
- const Real share = clamp( 0.0f, (Real)( mouse->x - track.lo.x ) / (Real)( track.hi.x - track.lo.x ), 1.0f );
- seekReplay( REAL_TO_UNSIGNEDINT( share * replayLength() ) );
- return TRUE;
- }
-
- runSpectatorAction( action );
- return TRUE;
-}
-
-/** The page's three drop-downs, each opened by a flip of its name. */
-static const std::string *const SPECTATOR_DROP_DOWNS[] = { &CAMERA_GROUP, &FOLLOW_GROUP, &STAT_GROUP };
-
-//-------------------------------------------------------------------------------------------------
-/** Any button pressed anywhere but on the page, over a window or over the world, folds up whichever
- * drop-down is open. A press on the page is the page's, and runSpectatorAction folds the rest. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::foldSpectatorDropDowns( const ICoord2D &mouse )
-{
- if( !m_spectatorPageShown || m_spectatorOverlay->hover( mouse ) )
- return;
- for( Int each = 0; each < (Int)ARRAY_SIZE( SPECTATOR_DROP_DOWNS ); each++ )
- m_spectatorFlipped.erase( *SPECTATOR_DROP_DOWNS[ each ] );
-}
-
//-------------------------------------------------------------------------------------------------
void InGameUI::runSpectatorAction( const std::string &action )
{
- // whatever the page was clicked for, every drop-down but the one it opens folds up
- for( Int each = 0; each < (Int)ARRAY_SIZE( SPECTATOR_DROP_DOWNS ); each++ )
- if( action != FLIP_ACTION + *SPECTATOR_DROP_DOWNS[ each ] )
- m_spectatorFlipped.erase( *SPECTATOR_DROP_DOWNS[ each ] );
-
- if( action.compare( 0, FLIP_ACTION.size(), FLIP_ACTION ) == 0 )
- {
- const std::string name = action.substr( FLIP_ACTION.size() );
- if( m_spectatorFlipped.erase( name ) == 0 )
- m_spectatorFlipped.insert( name );
- }
- else if( action.compare( 0, PICK_ACTION.size(), PICK_ACTION ) == 0 )
- {
- const std::string pick = action.substr( PICK_ACTION.size() );
- const size_t colon = pick.find( ':' );
- if( colon == std::string::npos )
- {
- DEBUG_LOG(( "Spectator page: data-click=\"%s\" is not pick:group:choice\n", action.c_str() ));
- return;
- }
-
- const std::string group = pick.substr( 0, colon );
- m_spectatorPicked[ group ] = pick.substr( colon + 1 );
- m_spectatorFlipped.erase( group );
- m_spectatorLists.clear();
- }
- else if( action.compare( 0, CAMERA_ACTION.size(), CAMERA_ACTION ) == 0 )
+ if( action.compare( 0, CAMERA_ACTION.size(), CAMERA_ACTION ) == 0 )
{
const std::string choice = action.substr( CAMERA_ACTION.size() );
- m_spectatorFlipped.erase( CAMERA_GROUP );
if( choice == CAMERA_DIRECTOR )
TheObserverCamera.setMode( OBSERVER_CAMERA_DIRECTOR );
else if( choice == CAMERA_PLAYER )
@@ -2777,14 +1940,13 @@ void InGameUI::runSpectatorAction( const std::string &action )
else if( choice == CAMERA_FREE )
TheObserverCamera.setMode( OBSERVER_CAMERA_FREE );
else
- DEBUG_LOG(( "Spectator page: data-click=\"%s\" names no camera\n", action.c_str() ));
+ DEBUG_LOG(( "Spectator action \"%s\" names no camera\n", action.c_str() ));
}
else if( action.compare( 0, FOLLOW_ACTION.size(), FOLLOW_ACTION ) == 0 )
{
- // following a player is watching him too: his side on the bar and the page's steel
+ // following a player is watching him too: his side on the bar
const std::string choice = action.substr( FOLLOW_ACTION.size() );
Player *player = choice == FOLLOW_NOBODY ? NULL : ThePlayerList->getNthPlayer( atoi( choice.c_str() ) );
- m_spectatorFlipped.erase( FOLLOW_GROUP );
deselectAllDrawables();
TheControlBar->watchPlayer( player );
TheObserverCamera.followPlayer( player != NULL ? player->getPlayerIndex() : ObserverCamera::NO_PLAYER );
@@ -2801,1745 +1963,908 @@ void InGameUI::runSpectatorAction( const std::string &action )
TheGameEngine->setFramesPerSecondLimit( atoi( action.substr( REPLAY_SPEED.size() ).c_str() ) * replayNormalFramesPerSecond() / PERCENT );
}
-//-------------------------------------------------------------------------------------------------
-/** Add the pixel rows a convex four-cornered shape covers to a per-row list of spans, one span a
- * row, as x = start and y = end. Rows are sampled through their middle and both edges are rounded
- * the same way, so two shapes sharing an edge meet on the same pixel. */
-//-------------------------------------------------------------------------------------------------
-static void addQuadSpans( const ICoord2D *corners[ 4 ], std::vector< std::vector< ICoord2D > > &rows )
+void InGameUI::handleBuildPlacements( void )
{
- Int top = corners[ 0 ]->y;
- Int bottom = corners[ 0 ]->y;
- for( Int c = 1; c < 4; c++ )
- {
- top = min( top, corners[ c ]->y );
- bottom = max( bottom, corners[ c ]->y );
- }
- top = max( top, 0 );
- bottom = min( bottom, (Int)rows.size() );
- for( Int y = top; y < bottom; y++ )
+ //
+ // if we're in the process of placing something we need up update one or more drawables
+ // based on the position of the mouse
+ //
+ if( m_pendingPlaceType )
{
- const Real rowY = y + 0.5f;
- Real left = FLT_MAX;
- Real right = -FLT_MAX;
+ ICoord2D loc;
+ Coord3D world;
+ Real angle = m_placeIcon[ 0 ]->getOrientation();
- for( Int c = 0; c < 4; c++ )
+ // update the angle of the icon to match any placement angle and pick the
+ // location the icon will be at (anchored is the start, otherwise it's the mouse)
+ Bool row = FALSE;
+ if( isPlacementAnchored() )
{
- const ICoord2D &from = *corners[ c ];
- const ICoord2D &to = *corners[ ( c + 1 ) % 4 ];
- if( ( rowY < from.y ) == ( rowY < to.y ) )
- continue; // this edge does not cross the row
-
- const Real x = from.x + ( to.x - from.x ) * ( rowY - from.y ) / (Real)( to.y - from.y );
- left = min( left, x );
- right = max( right, x );
- }
-
- ICoord2D span;
- span.x = REAL_TO_INT_FLOOR( left + 0.5f );
- span.y = REAL_TO_INT_FLOOR( right + 0.5f );
- rows[ y ].push_back( span );
- }
-}
-
-static Bool spanStartsFirst( const ICoord2D &a, const ICoord2D &b )
-{
- return a.x < b.x;
-}
+ ICoord2D start, end;
-//-------------------------------------------------------------------------------------------------
-/** Paint the rows addQuadSpans collected, each row's overlapping spans merged first, so ground two
- * shapes both cover is painted once and a see-through colour does not come out darker there. */
-//-------------------------------------------------------------------------------------------------
-static void fillSpanRows( std::vector< std::vector< ICoord2D > > &rows, Color color )
-{
- const Int screenW = (Int)TheDisplay->getWidth();
+ // get the placement arrow points
+ getPlacementPoints( &start, &end );
- TheDisplay->beginBatch2D();
+ // set icon to anchor point
+ loc = start;
- for( Int y = 0; y < (Int)rows.size(); y++ )
- {
- std::vector< ICoord2D > &spans = rows[ y ];
- if( spans.empty() )
- continue;
+ // only adjust angle if we've actually moved the mouse, and not into a row: that drag
+ // lays structures, the heading stays the one they had
+ const Bool dragged = start.x != end.x || start.y != end.y;
+ row = dragged && placesRow(); if( dragged && !row )
+ angle = computePlacementAngle( &start, &end );
- std::sort( spans.begin(), spans.end(), spanStartsFirst );
- ICoord2D run = spans[ 0 ];
- for( size_t s = 1; s <= spans.size(); s++ )
+ } // end if
+ else
{
- // a pixel's gap between two neighbours is rounding, not open ground
- if( s < spans.size() && spans[ s ].x <= run.y + 1 )
- {
- run.y = max( run.y, spans[ s ].y );
- continue;
- }
-
- const Int x0 = max( run.x, 0 );
- const Int x1 = min( run.y, screenW );
- if( x1 > x0 )
- TheDisplay->drawFillRect( x0, y, x1 - x0, 1, color );
- if( s < spans.size() )
- run = spans[ s ];
- }
- }
-
- TheDisplay->endBatch2D();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A defence's reach cut into the blind-spot polar grid: sector ray covers the angles from ray to
- * ray + 1, ring ring the distances from ring to ring + 1 ring widths. reach is how far each sector
- * goes, longer down a slope, and radius the longest of them; nothing nearer than hole is hit
- * either. blocked is empty for a defence that shoots whatever is in range. */
-//-------------------------------------------------------------------------------------------------
-struct ReachView
-{
- Coord3D center;
- Real radius;
- Real hole;
- std::vector< Real > reach;
- Int rings;
- std::vector< Bool > blocked;
-};
-
-static void traceReachView( ReachView &view, const ThingTemplate *tmpl )
-{
- const Real flatReach = templateReach( tmpl );
- const Real range = templatePlacementRange( tmpl );
- view.hole = templateHole( tmpl );
- view.reach.resize( BLIND_SPOT_RAYS );
- view.radius = 0.0f;
- for( Int ray = 0; ray < BLIND_SPOT_RAYS; ray++ )
- {
- view.reach[ ray ] = elevatedReach( flatReach, range, view.center, 2.0f * PI * ( ray + 0.5f ) / BLIND_SPOT_RAYS );
- view.radius = max( view.radius, view.reach[ ray ] );
- }
-}
+ const MouseIO *mouseIO = TheMouse->getMouseStatus();
-static Bool templateNeedsLineOfSight( const ThingTemplate *tmpl )
-{
- return TheAI->getAiData()->m_attackUsesLineOfSight && tmpl->isKindOf( KINDOF_ATTACK_NEEDS_LINE_OF_SIGHT );
-}
+ // location is the mouse position
+ loc = mouseIO->pos;
-/// ground inside the reach that the defence still cannot hit: behind a hill or a building, or too close
-static Bool templateHasBlindSpots( const ThingTemplate *tmpl )
-{
- return templateNeedsLineOfSight( tmpl ) || templateHole( tmpl ) > 0.0f;
-}
+ } // end else
-//-------------------------------------------------------------------------------------------------
-/** How many rings a blind-spot view of this radius is cut into. Never more than the map is long corner
- * to corner (mapSpan: its width plus its height), so a range longer than any map - 1e6 already held
- * hundreds of megabytes and froze every platform, and inf gave ARM64 2^31 rings whose 180-a-ring grid
- * overflowed Int - costs no more than the map does. Converted as Windows converts; never negative. */
-//-------------------------------------------------------------------------------------------------
-Int blindSpotRingCount( Real radius, Real mapSpan )
-{
- Int rings = floatToIntAsMsvc( ceil( radius / BLIND_SPOT_RING_WIDTH ) );
- Int most = ( INT_MAX / BLIND_SPOT_RAYS ) - 1; // never a grid Int cannot count
- if( mapSpan > 0.0f && mapSpan < (Real)most * BLIND_SPOT_RING_WIDTH )
- most = floatToIntAsMsvc( ceil( mapSpan / BLIND_SPOT_RING_WIDTH ) ) + 1;
- if( rings > most )
- rings = most;
- return rings < 0 ? 0 : rings;
-}
+ // set the location and angle of the place icon
+ /**@todo this whole orientation vector thing is LAME! Must replace, all I want to
+ to do is set a simple angle and have it automatically change, ug! */
+ // Above the horizon the ray reaches no ground and the answer is the corner of the map, which
+ // threw the ghost across the world and back. Hold it where it was instead.
+ if( !TheTacticalView->screenToTerrain( &loc, &world ) )
+ world = *m_placeIcon[ 0 ]->getPosition();
+ snapPlacementToGrid( &world, m_pendingPlaceType, angle );
+ snapPlacementToNeighbour( &world, m_pendingPlaceType, angle );
-//-------------------------------------------------------------------------------------------------
-/** Fill in which cells of the grid a defence cannot see from eyeZ. Along one sector the walk keeps
- * the steepest terrain seen so far, which is the horizon: a target whose top sits under that slope
- * is behind a hill. Everything from the first building cell outwards is behind that building, the
- * building's own ground included; the defence's own cells, self, are not in its way. Without
- * lineOfSight only the minimum range hole is filled in. */
-//-------------------------------------------------------------------------------------------------
-static void lookRoundReach( ReachView &view, Real eyeZ, ObjectID self, Bool lineOfSight )
-{
- Region3D extent;
- extent.zero();
- TheTerrainLogic->getExtent( &extent );
- view.rings = blindSpotRingCount( view.radius, extent.width() + extent.height() );
- view.blocked.assign( BLIND_SPOT_RAYS * view.rings, FALSE );
+ //
+ // NudgeBuildPlacement: the ghost sits where the last legality check found room, which is
+ // the cursor itself whenever the cursor works. The check below runs every other frame and
+ // always measures from the cursor, never from an already-nudged spot, so the offset cannot
+ // walk away from the mouse; the ghost is at most one frame behind it.
+ //
+ const Coord3D cursorWorld = world;
- for( Int ray = 0; ray < BLIND_SPOT_RAYS; ray++ )
- {
- const Real angle = 2.0f * PI * ( ray + 0.5f ) / BLIND_SPOT_RAYS;
- const Real dx = Cos( angle );
- const Real dy = Sin( angle );
+ // a row starts where it was anchored; each piece is judged where it stands, not nudged
+ if( row )
+ m_placementNudge.zero();
- Real horizonSlope = -FLT_MAX;
- Bool behindBuilding = FALSE;
- for( Int ring = 0; ring < view.rings; ring++ )
+ if( m_placementNudge.x != 0.0f || m_placementNudge.y != 0.0f )
{
- const Real along = min( ( ring + 0.5f ) * BLIND_SPOT_RING_WIDTH, view.radius );
- Coord3D look = { view.center.x + dx * along, view.center.y + dy * along, 0.0f };
- const Real groundZ = TheTerrainLogic->getGroundHeight( look.x, look.y );
-
- const PathfindCell *cell = TheAI->pathfinder()->getCell( LAYER_GROUND, &look );
- if( cell && cell->getType() == PathfindCell::CELL_OBSTACLE && !cell->isObstacleTransparent()
- && !( self != INVALID_ID && cell->isObstaclePresent( self ) ) )
- behindBuilding = TRUE;
-
- const Real targetSlope = ( groundZ + BLIND_SPOT_TARGET_HEIGHT - eyeZ ) / along;
- const Bool behindHill = targetSlope < horizonSlope;
- horizonSlope = max( horizonSlope, ( groundZ - LOS_TERRAIN_SLOP - eyeZ ) / along );
-
- const Real middle = ( ring + 0.5f ) * BLIND_SPOT_RING_WIDTH;
- const Bool unseen = lineOfSight && ( behindBuilding || behindHill );
- view.blocked[ ray * view.rings + ring ] = middle < view.reach[ ray ] && ( unseen || middle < view.hole );
+ world.x += m_placementNudge.x;
+ world.y += m_placementNudge.y;
+ world.z = TheTerrainLogic->getGroundHeight( world.x, world.y );
}
- }
-}
-
-static Bool reachViewHits( const ReachView &view, Real x, Real y )
-{
- const Real dx = x - view.center.x;
- const Real dy = y - view.center.y;
- const Real distance = sqrtf( sqr( dx ) + sqr( dy ) );
- if( !( distance < view.radius ) ) // a NaN distance is outside, not let through
- return FALSE;
-
- Real angle = atan2( dy, dx );
- if( angle < 0.0f )
- angle += 2.0f * PI;
- const Int ray = min( (Int)( angle * BLIND_SPOT_RAYS / ( 2.0f * PI ) ), BLIND_SPOT_RAYS - 1 );
- if( distance >= view.reach[ ray ] || distance < view.hole )
- return FALSE;
- if( view.blocked.empty() )
- return TRUE;
-
- const Int ring = min( (Int)( distance / BLIND_SPOT_RING_WIDTH ), view.rings - 1 );
- return !view.blocked[ ray * view.rings + ring ];
-}
-
-/// a structure whose reach and blind spots the local player is shown: their own, an ally's, or any to
-/// an observer. An enemy defence keeps both to itself, so they are found out by losing units to it.
-static Bool reachRevealedToLocal( const Object *obj )
-{
- const Player *local = ThePlayerList->getLocalPlayer();
- return obj->getControllingPlayer() == local || local->isPlayerObserver()
- || local->getRelationship( obj->getTeam() ) == ALLIES;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Every structure on the map as the reach drawing sees it, gathered once a frame. A building going
- * up or coming down changes what a defence can see past, and one coming out of the fog changes which
- * circles are drawn, so every cache below is thrown away when this list differs from the last
- * frame's. Working the circles and the blind spots out again every frame is what made clicking a
- * turret in a base of forty defences slow: each circle's outline was tested against every other
- * circle, every frame. */
-//-------------------------------------------------------------------------------------------------
-struct StructureKey
-{
- ObjectID id;
- Coord3D position;
- const Player *owner;
- Bool reachShown; ///< armed, revealed to the local player and out of the fog, so its circle is drawn
-
- Bool operator==( const StructureKey &other ) const
- {
- return id == other.id && position.x == other.position.x && position.y == other.position.y
- && position.z == other.position.z && owner == other.owner && reachShown == other.reachShown;
- }
-};
-
-static std::vector< StructureKey > theStructureKeys;
-static UnsignedInt theStructureKeysFrame = 0;
-static Int theStructureGeneration = 0; ///< goes up every time theStructureKeys changes
-
-static void refreshStructureKeys( void )
-{
- const UnsignedInt frame = TheGameClient->getFrame();
- if( frame == theStructureKeysFrame && !theStructureKeys.empty() )
- return;
- theStructureKeysFrame = frame;
-
- const Player *local = ThePlayerList->getLocalPlayer();
- std::vector< StructureKey > keys;
- keys.reserve( theStructureKeys.size() );
- for( Object *obj = TheGameLogic->getFirstObject(); obj; obj = obj->getNextObject() )
- {
- if( !obj->isKindOf( KINDOF_STRUCTURE ) )
- continue;
-
- StructureKey key;
- key.id = obj->getID();
- key.position = *obj->getPosition();
- key.owner = obj->getControllingPlayer();
- key.reachShown = templateReach( obj->getTemplate() ) > 0.0f && reachRevealedToLocal( obj )
- && ( key.owner == local || obj->getShroudedStatus( local->getPlayerIndex() ) < OBJECTSHROUD_FOGGED );
- keys.push_back( key );
- }
-
- if( keys == theStructureKeys )
- return;
- theStructureKeys.swap( keys );
- ++theStructureGeneration;
-}
-//-------------------------------------------------------------------------------------------------
-/** A defence's polar grid with the ground under every corner of it looked up: corner ( ray, ring )
- * sits on the ray's leading edge at the ring's inner radius. */
-//-------------------------------------------------------------------------------------------------
-struct BlindSpotShade
-{
- ReachView view;
- std::vector< Coord3D > corners;
-};
+ m_placeIcon[ 0 ]->setPosition( &world );
+ m_placeIcon[ 0 ]->setOrientation( angle );
-static void buildBlindSpotShade( BlindSpotShade &shade, const ThingTemplate *tmpl, const Coord3D &center, Real eyeZ, ObjectID self )
-{
- shade.view.center = center;
- traceReachView( shade.view, tmpl );
- lookRoundReach( shade.view, eyeZ, self, templateNeedsLineOfSight( tmpl ) );
- const Int cornerRings = shade.view.rings + 1;
- shade.corners.resize( BLIND_SPOT_RAYS * cornerRings );
- for( Int ray = 0; ray < BLIND_SPOT_RAYS; ray++ )
- {
- const Real angle = 2.0f * PI * ray / BLIND_SPOT_RAYS;
- for( Int ring = 0; ring < cornerRings; ring++ )
+ //
+ // check to see if this is a legal location to build something at and tint or "un-tint"
+ // the cursor icons as appropriate. This involves a pathfind which could be
+ // expensive so we don't want to do it on every frame (althought that would be ideal)
+ // If we discover there are cases that this is just too slow we should increase the
+ // delay time between checks or we need to come up with a way of recording what is
+ // valid and what isn't or "fudge" the results to feel "ok"
+ //
+ if( ( TheGameClient->getFrame() & 0x1 ) && !row )
{
- const Real along = min( ring * BLIND_SPOT_RING_WIDTH, shade.view.radius );
- Coord3D &ground = shade.corners[ ray * cornerRings + ring ];
- ground.x = center.x + Cos( angle ) * along;
- ground.y = center.y + Sin( angle ) * along;
- ground.z = TheTerrainLogic->getGroundHeight( ground.x, ground.y );
- }
- }
-}
+ TheTerrainVisual->removeAllBibs();
-//-------------------------------------------------------------------------------------------------
-/** The blocked cells of a shade projected corner by corner and filled as one shape, row by row, so
- * the shade follows the ground and has no seams in it. */
-//-------------------------------------------------------------------------------------------------
-static void fillBlindSpotShade( const BlindSpotShade &shade )
-{
- const ReachView &view = shade.view;
- if( std::find( view.blocked.begin(), view.blocked.end(), TRUE ) == view.blocked.end() )
- return;
+ Object *builderObject = TheGameLogic->findObjectByID( getPendingPlaceSourceObjectID() );
- // only the corners of blocked cells are projected, each once
- enum { CORNER_UNPROJECTED, CORNER_ON_SCREEN, CORNER_OFF_SCREEN };
- const Int rings = view.rings;
- const Int cornerRings = rings + 1;
- std::vector< ICoord2D > corners( shade.corners.size() );
- std::vector< UnsignedByte > projected( shade.corners.size(), CORNER_UNPROJECTED );
+ const UnsignedInt checkOptions = placementCheckOptions();
+ Coord3D spot = cursorWorld;
+ LegalBuildCode lbc;
+ lbc = TheBuildAssistant->isLocationLegalToBuild( &spot, m_pendingPlaceType, angle,
+ checkOptions, builderObject, NULL );
- std::vector< std::vector< ICoord2D > > rows( TheDisplay->getHeight() );
- for( Int ray = 0; ray < BLIND_SPOT_RAYS; ray++ )
- {
- const Int next = ( ray + 1 ) % BLIND_SPOT_RAYS;
- for( Int ring = 0; ring < rings; ring++ )
- {
- if( !view.blocked[ ray * rings + ring ] )
- continue;
+ //
+ // and the ground an order of your own has already been placed on but has not landed on
+ // yet - see recordPendingPlacement. Without this the ghost is green over a structure
+ // that is already paid for, which is what a shift-held run of clicks sees on a laggy link.
+ //
+ if( lbc == LBC_OK && overlapsPendingPlacement( &spot, m_pendingPlaceType, angle ) )
+ lbc = LBC_OBJECTS_IN_THE_WAY;
- const Int quad[ 4 ] = { ray * cornerRings + ring, next * cornerRings + ring,
- next * cornerRings + ring + 1, ray * cornerRings + ring + 1 };
- Bool allOnScreen = TRUE;
- for( Int q = 0; q < 4; q++ )
+ //
+ // Blocked: look for the nearest spot that is not, and move the ghost there - the click
+ // does the same search (see PlaceEventTranslator), so what you see is where it lands.
+ // Shroud is left alone on purpose: unscouted ground is not a placement mistake to fix,
+ // and hunting around in it would answer questions about ground you cannot see.
+ //
+ m_placementNudge.zero();
+ if( lbc != LBC_OK && lbc != LBC_SHROUD )
{
- UnsignedByte &state = projected[ quad[ q ] ];
- if( state == CORNER_UNPROJECTED )
+ const Bool moved = nudgePlacementToLegal( &spot, m_pendingPlaceType, angle,
+ builderObject );
+
+ //
+ // Either way the search has just painted a red bib on everything it bumped into on
+ // the way out, which is a report on spots nobody is proposing. Clear them, and if
+ // there was nowhere to go, ask about the spot under the cursor once more so the one
+ // bib that does explain the refusal comes back.
+ //
+ TheTerrainVisual->removeAllBibs();
+
+ if( moved )
+ {
+ m_placementNudge.x = spot.x - cursorWorld.x;
+ m_placementNudge.y = spot.y - cursorWorld.y;
+ lbc = LBC_OK;
+ }
+ else
{
- const Bool onScreen = TheTacticalView->worldToScreenTriReturn( &shade.corners[ quad[ q ] ], &corners[ quad[ q ] ] ) != View::WTS_INVALID;
- state = onScreen ? CORNER_ON_SCREEN : CORNER_OFF_SCREEN;
+ TheBuildAssistant->isLocationLegalToBuild( &cursorWorld, m_pendingPlaceType, angle,
+ checkOptions, builderObject, NULL );
}
- allOnScreen = allOnScreen && state == CORNER_ON_SCREEN;
}
- if( !allOnScreen )
- continue;
- const ICoord2D *quadCorners[ 4 ] = { &corners[ quad[ 0 ] ], &corners[ quad[ 1 ] ], &corners[ quad[ 2 ] ], &corners[ quad[ 3 ] ] };
- addQuadSpans( quadCorners, rows );
- }
- }
-
- fillSpanRows( rows, GameMakeColor( 0, 0, 0, 120 ) );
-}
+ // the cursor reads this too - see createCommandHint's MOUSEMODE_BUILD_PLACE case
+ m_placementLegal = ( lbc == LBC_OK );
-//-------------------------------------------------------------------------------------------------
-/** What each of the player's and the allies' defences hits from where it stands, kept until a
- * structure somewhere changes. */
-//-------------------------------------------------------------------------------------------------
-static std::map< ObjectID, ReachView > theGuardViews;
-static Int theGuardViewsGeneration = -1;
+ if( lbc != LBC_OK )
+ m_placeIcon[ 0 ]->colorTint( &illegalBuildColor );
+ else
+ m_placeIcon[ 0 ]->colorTint( NULL );
-static const ReachView &guardView( const Object *obj )
-{
- if( theGuardViewsGeneration != theStructureGeneration )
- {
- theGuardViews.clear();
- theGuardViewsGeneration = theStructureGeneration;
- }
+
- std::map< ObjectID, ReachView >::iterator found = theGuardViews.find( obj->getID() );
- if( found != theGuardViews.end() )
- return found->second;
-
- ReachView &guard = theGuardViews[ obj->getID() ];
- guard.center = *obj->getPosition();
- guard.rings = 0;
- traceReachView( guard, obj->getTemplate() );
- if( templateNeedsLineOfSight( obj->getTemplate() ) )
- lookRoundReach( guard, obj->getPosition()->z + obj->getGeometryInfo().getMaxHeightAbovePosition(), obj->getID(), TRUE );
- return guard;
-}
-//-------------------------------------------------------------------------------------------------
-/** Ground a defence on the cursor cannot see but one of the player's or an ally's defences already
- * hits is left bright: a turret beside the building covers the corner behind it, and that corner is
- * not a hole. Each of those defences has the same polar grid from where it stands, with its own
- * cells not counted as a building in its way, and the shaded cell's middle is looked up in it. */
-//-------------------------------------------------------------------------------------------------
-static void clearGuardedBlindSpots( ReachView &pending )
-{
- std::vector< const ReachView * > guards;
- for( size_t k = 0; k < theStructureKeys.size(); k++ )
- {
- const StructureKey &key = theStructureKeys[ k ];
- const Object *obj = TheGameLogic->findObjectByID( key.id );
- if( !reachRevealedToLocal( obj ) )
- continue;
+ // Add the bibs around the structure.
+ if (lbc != LBC_OK)
+ {
+ TheTerrainVisual->addFactionBibDrawable(m_placeIcon[0], lbc != LBC_OK);
+ } else {
+ TheTerrainVisual->removeFactionBibDrawable(m_placeIcon[0]);
+ }
+ } // end if
- const Real flatReach = templateReach( obj->getTemplate() );
- const Real furthest = flatReach + Weapon_elevationRangeBonus( templatePlacementRange( obj->getTemplate() ), FLT_MAX );
- if( flatReach <= 0.0f || sqr( key.position.x - pending.center.x ) + sqr( key.position.y - pending.center.y ) >= sqr( furthest + pending.radius ) )
- continue;
- guards.push_back( &guardView( obj ) );
- }
- for( Int ray = 0; ray < BLIND_SPOT_RAYS; ray++ )
- {
- const Real angle = 2.0f * PI * ( ray + 0.5f ) / BLIND_SPOT_RAYS;
- for( Int ring = 0; ring < pending.rings; ring++ )
+ //
+ // we have additional place icons when we're placing down a line of walls or other
+ // similarly placed object, or a shift-dragged row of structures ... for those we will
+ // have them be oriented the same way as the first one, but we'll set their positions so
+ // that they "tile" end to end
+ //
+ const Bool lineBuild = isPlacementAnchored() && TheBuildAssistant->isLineBuildTemplate( m_pendingPlaceType );
+ Int iconsUsed = 1;
+ if( lineBuild || row )
{
- const Int index = ray * pending.rings + ring;
- if( !pending.blocked[ index ] )
- continue;
+ Int i;
- const Real along = min( ( ring + 0.5f ) * BLIND_SPOT_RING_WIDTH, pending.radius );
- const Real x = pending.center.x + Cos( angle ) * along;
- const Real y = pending.center.y + Sin( angle ) * along;
- for( size_t g = 0; g < guards.size() && pending.blocked[ index ]; g++ )
- {
- if( reachViewHits( *guards[ g ], x, y ) )
- pending.blocked[ index ] = FALSE;
- }
- }
- }
-}
+ // get our line placement points
+ ICoord2D screenStart, screenEnd;
+ getPlacementPoints( &screenStart, &screenEnd );
-//-------------------------------------------------------------------------------------------------
-/** A selected defence's blind spots, worked out once and kept until a structure somewhere changes. */
-//-------------------------------------------------------------------------------------------------
-static std::map< ObjectID, BlindSpotShade > theSelectedShades;
-static Int theSelectedShadesGeneration = -1;
-
-static const BlindSpotShade &selectedBlindSpotShade( const Object *obj )
-{
- if( theSelectedShadesGeneration != theStructureGeneration )
- {
- theSelectedShades.clear();
- theSelectedShadesGeneration = theStructureGeneration;
- }
+ // project the start and the end points of the line anchor into the 3D world
+ Coord3D worldStart, worldEnd;
+ // An end that leaves the ground - the cursor dragged above the horizon - has no place on
+ // the map, and the corner is not it. Leave the line as it was last drawn. This block is
+ // the last thing handleBuildPlacements does.
+ if( !TheTacticalView->screenToTerrain( &screenStart, &worldStart ) ||
+ !TheTacticalView->screenToTerrain( &screenEnd, &worldEnd ) )
+ return;
- std::map< ObjectID, BlindSpotShade >::iterator found = theSelectedShades.find( obj->getID() );
- if( found != theSelectedShades.end() )
- return found->second;
+ // both ends, so a wall lands on the grid and tiles from a grid square; a row starts where
+ // the ghost did, against its neighbour, and runs toward the cursor itself, since a snapped
+ // end turned a short drag a few degrees off the line the player drew
+ snapPlacementToGrid( &worldStart, m_pendingPlaceType, angle );
+ if( lineBuild )
+ snapPlacementToGrid( &worldEnd, m_pendingPlaceType, angle );
+ snapPlacementToNeighbour( &worldStart, m_pendingPlaceType, angle );
- BlindSpotShade &shade = theSelectedShades[ obj->getID() ];
- const Coord3D *position = obj->getPosition();
- buildBlindSpotShade( shade, obj->getTemplate(), *position,
- position->z + obj->getGeometryInfo().getMaxHeightAbovePosition(), obj->getID() );
- return shade;
-}
+ // get the builder object that will be constructing things
+ Object *builderObject = TheGameLogic->findObjectByID( TheInGameUI->getPendingPlaceSourceObjectID() );
-//-------------------------------------------------------------------------------------------------
-/** The ground a defence could not shoot into, darkened inside its reach: the one on the cursor while
- * it is being sited, and every selected one of the local player's or an ally's.
- *
- * A defence that needs a line of sight - a Patriot battery, a Gattling Cannon, a Fire Base - does
- * not fire through a building, and cannot pick a target a hill hides from it. Both rules are the
- * game's own. Target picking asks the terrain for a clear line from the top of the defence to the
- * target, and the pathfinder refuses a shot when a solid structure's cells lie between them; a
- * structure the art says can be seen through does not count.
- *
- * The range area is cut into a polar grid, a sector per ray and a ring per half pathfind cell, and
- * each cell of it is looked at from the defence. Along one sector the walk keeps the steepest
- * terrain seen so far, which is the horizon: a target whose top sits under that slope is behind a
- * hill. Everything from the first building cell outwards is behind that building, the building's
- * own ground included. The blocked cells are projected corner by corner onto the terrain and
- * filled as one shape, row by row, so the shade follows the ground and has no seams in it.
- *
- * A defence with a minimum range, a Fire Base or a Strategy Center, gets the ground too close to
- * fire at shaded the same way. A Stinger Site, a bunker and anything else that needs neither gets
- * no shading, because none of that ground is out of its reach. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawBlindSpots( void )
-{
- if( m_pendingPlaceType != NULL && m_placementRangeRingUp && templateHasBlindSpots( m_pendingPlaceType ) )
- {
- refreshStructureKeys();
- Coord3D center = *m_placeIcon[ 0 ]->getPosition();
- center.z = TheTerrainLogic->getGroundHeight( center.x, center.y );
- const Real eyeZ = center.z + m_pendingPlaceType->getTemplateGeometryInfo().getMaxHeightAbovePosition();
+ const Coord3D *positions;
+ std::vector<Coord3D> rowPositions;
+ if( lineBuild )
+ {
+ // how big are each of our objects
+ Real objectSize = m_pendingPlaceType->getTemplateGeometryInfo().getMajorRadius() * 2.0f;
- BlindSpotShade pending;
- buildBlindSpotShade( pending, m_pendingPlaceType, center, eyeZ, INVALID_ID );
- clearGuardedBlindSpots( pending.view );
- fillBlindSpotShade( pending );
- }
+ //
+ // given the start/end points in the world and the the angle of the wall, fill
+ // out an array of positions that "tile" this wall across the landscape
+ //
+ BuildAssistant::TileBuildInfo *tileBuildInfo;
+ tileBuildInfo = TheBuildAssistant->buildTiledLocations( m_pendingPlaceType, angle,
+ &worldStart, &worldEnd,
+ objectSize,
+ TheGlobalData->m_maxLineBuildObjects,
+ builderObject );
+ positions = tileBuildInfo->positions;
+ iconsUsed = tileBuildInfo->tilesUsed;
+ }
+ else
+ {
+ computePlacementRow( m_pendingPlaceType, angle, &worldStart, &worldEnd, &rowPositions );
+ positions = &rowPositions[ 0 ];
+ iconsUsed = (Int)rowPositions.size();
+ }
- if( !TheGlobalData->m_showPlacementRangeRing || TheGlobalData->isClassicUI() )
- return;
+ // create any necessary drawables we need to "fill out" the line
+ for( i = 0; i < iconsUsed; i++ )
+ {
- // a selected defence shows its own blind spots only, not what its neighbours cover for it
- for( DrawableListCIt it = m_selectedDrawables.begin(); it != m_selectedDrawables.end(); ++it )
- {
- const Object *obj = (*it)->getObject();
- if( obj == NULL || !obj->isKindOf( KINDOF_STRUCTURE ) || templateReach( obj->getTemplate() ) <= 0.0f )
- continue;
- if( !templateHasBlindSpots( obj->getTemplate() ) || !reachRevealedToLocal( obj ) )
- continue;
+ if( m_placeIcon[ i ] == NULL )
+ m_placeIcon[ i ] = TheThingFactory->newDrawable( m_pendingPlaceType,
+ DRAWABLE_STATUS_NO_STATE_PARTICLES );
- refreshStructureKeys();
- fillBlindSpotShade( selectedBlindSpotShade( obj ) );
- }
-}
+ } // end for i
-struct ReachCircle
-{
- Coord3D center;
- Real radius; ///< the furthest the outline goes
- std::vector< Real > outline; ///< the reach at the start of each outline segment, longer down a slope
- const Player *owner;
-};
+ //
+ // A row is judged piece by piece, on the frames the single ghost would have been: red
+ // where the click will leave a gap, and the cursor says yes while any piece can go up.
+ //
+ const Bool judgeRow = row && ( TheGameClient->getFrame() & 0x1 );
+ if( judgeRow )
+ {
+ TheTerrainVisual->removeAllBibs();
+ m_placementLegal = FALSE;
+ }
-static void traceReachCircle( ReachCircle &circle, const ThingTemplate *tmpl )
-{
- const Real flatReach = templateReach( tmpl );
- const Real range = templatePlacementRange( tmpl );
- circle.outline.resize( REACH_OUTLINE_SEGMENTS );
- circle.radius = 0.0f;
- for( Int segment = 0; segment < REACH_OUTLINE_SEGMENTS; segment++ )
- {
- circle.outline[ segment ] = elevatedReach( flatReach, range, circle.center, 2.0f * PI * segment / REACH_OUTLINE_SEGMENTS );
- circle.radius = max( circle.radius, circle.outline[ segment ] );
- }
-}
+ //
+ // march down each drawable and set the position based on its position in the
+ // line and set their angles all the same
+ //
+ for( i = 0; i < iconsUsed; i++ )
+ {
-/// the reach toward an angle from 0 to two pi, read between the outline corners either side of it
-static Real reachAtAngle( const ReachCircle &circle, Real angle )
-{
- const Real at = angle * REACH_OUTLINE_SEGMENTS / ( 2.0f * PI );
- const Int from = at >= 0.0f ? min( (Int)at, REACH_OUTLINE_SEGMENTS - 1 ) : 0; // NaN: the first corner
- const Real part = at - from;
- return circle.outline[ from ] * ( 1.0f - part ) + circle.outline[ ( from + 1 ) % REACH_OUTLINE_SEGMENTS ] * part;
-}
+ // set the drawble position
+ m_placeIcon[ i ]->setPosition( &positions[ i ] );
-static Bool insideReach( const ReachCircle &circle, Real x, Real y )
-{
- const Real dx = x - circle.center.x;
- const Real dy = y - circle.center.y;
- const Real distanceSqr = sqr( dx ) + sqr( dy );
- if( !( distanceSqr < sqr( circle.radius ) ) ) // a NaN distance is outside, not let through
- return FALSE;
+ // set opacity and shadowing for the drawble
+ dressPlacementPreview( m_placeIcon[ i ] );
- Real angle = atan2( dy, dx );
- if( angle < 0.0f )
- angle += 2.0f * PI;
- return distanceSqr < sqr( reachAtAngle( circle, angle ) );
-}
+ // set the drawable angle
+ m_placeIcon[ i ]->setOrientation( angle );
-//-------------------------------------------------------------------------------------------------
-/** What hides a stretch of one player's outline: another of that player's circles in circles, or
- * extra when it is that player's. Two players' circles cross, each in its own colour. */
-//-------------------------------------------------------------------------------------------------
-struct ReachCover
-{
- const std::vector< ReachCircle > *circles; ///< NULL when only extra covers
- size_t self; ///< the circle being cut, which never covers itself
- const ReachCircle *extra; ///< NULL when there is none
- const Player *owner;
+ if( judgeRow )
+ {
+ const Bool legal =
+ TheBuildAssistant->isLocationLegalToBuild( &positions[ i ], m_pendingPlaceType, angle,
+ placementCheckOptions(), builderObject,
+ NULL ) == LBC_OK &&
+ !overlapsPendingPlacement( &positions[ i ], m_pendingPlaceType, angle );
+ m_placeIcon[ i ]->colorTint( legal ? NULL : &illegalBuildColor );
+ if( legal )
+ m_placementLegal = TRUE;
+ }
- Bool covers( Real x, Real y ) const
- {
- for( size_t c = 0; circles != NULL && c < circles->size(); c++ )
- {
- const ReachCircle &other = (*circles)[ c ];
- if( c != self && other.owner == owner && insideReach( other, x, y ) )
- return TRUE;
- }
- return extra != NULL && extra->owner == owner && insideReach( *extra, x, y );
- }
-};
+ } // end for i
-struct ReachSegment
-{
- size_t circle;
- Real angles[ 2 ];
- Coord3D ends[ 2 ]; ///< on the ground
-};
+ } // end if
-//-------------------------------------------------------------------------------------------------
-/** One stretch of a circle's outline between two angles, cut where it runs under cover: with both
- * ends covered it is dropped, with one it walks the arc in halves to where it crosses and keeps the
- * outside. */
-//-------------------------------------------------------------------------------------------------
-static void clipReachSegment( const ReachCircle &circle, size_t index, Real fromAngle, Real toAngle,
- const ReachCover &cover, std::vector< ReachSegment > &out )
-{
- ReachSegment segment;
- segment.circle = index;
- segment.angles[ 0 ] = fromAngle;
- segment.angles[ 1 ] = toAngle;
+ //
+ // destroy any drawables that we're not using anymore because a previous line length was
+ // longer, or the row was let go of
+ //
+ for( Int i = iconsUsed; i < TheGlobalData->m_maxLineBuildObjects; i++ )
+ {
- Bool inside[ 2 ];
- for( Int e = 0; e < 2; e++ )
- {
- const Real reach = reachAtAngle( circle, segment.angles[ e ] );
- inside[ e ] = cover.covers( circle.center.x + Cos( segment.angles[ e ] ) * reach, circle.center.y + Sin( segment.angles[ e ] ) * reach );
- }
- if( inside[ 0 ] && inside[ 1 ] )
- return;
+ if( m_placeIcon[ i ] != NULL )
+ TheGameClient->destroyDrawable( m_placeIcon[ i ] );
+ m_placeIcon[ i ] = NULL;
- if( inside[ 0 ] != inside[ 1 ] )
- {
- const Int cut = inside[ 0 ] ? 0 : 1;
- Real outsideAngle = segment.angles[ 1 - cut ];
- Real insideAngle = segment.angles[ cut ];
- for( Int halving = 0; halving < REACH_CROSSING_HALVINGS; halving++ )
- {
- const Real middle = 0.5f * ( outsideAngle + insideAngle );
- const Real middleReach = reachAtAngle( circle, middle );
- if( cover.covers( circle.center.x + Cos( middle ) * middleReach, circle.center.y + Sin( middle ) * middleReach ) )
- insideAngle = middle;
- else
- outsideAngle = middle;
- }
- segment.angles[ cut ] = outsideAngle;
- }
+ } // end for i
- for( Int e = 0; e < 2; e++ )
- {
- const Real reach = reachAtAngle( circle, segment.angles[ e ] );
- segment.ends[ e ].x = circle.center.x + Cos( segment.angles[ e ] ) * reach;
- segment.ends[ e ].y = circle.center.y + Sin( segment.angles[ e ] ) * reach;
- segment.ends[ e ].z = TheTerrainLogic->getGroundHeight( segment.ends[ e ].x, segment.ends[ e ].y );
- }
- out.push_back( segment );
-}
+ } // end if
-static void outlineReachCircle( const std::vector< ReachCircle > &circles, size_t index, const ReachCover &cover,
- std::vector< ReachSegment > &out )
-{
- for( Int segment = 0; segment < REACH_OUTLINE_SEGMENTS; segment++ )
- {
- clipReachSegment( circles[ index ], index, 2.0f * PI * segment / REACH_OUTLINE_SEGMENTS,
- 2.0f * PI * ( segment + 1 ) / REACH_OUTLINE_SEGMENTS, cover, out );
- }
-}
+} // end handleBuildPlacements
//-------------------------------------------------------------------------------------------------
-/** The outlines of every armed building in sight, cut against each other, kept until a structure
- * somewhere changes. Only the circle on the cursor is worked out every frame. */
+/** Pre-draw phase of the in game ui */
//-------------------------------------------------------------------------------------------------
-static std::vector< ReachCircle > theReachCircles;
-static std::vector< ReachSegment > theReachSegments;
-static Int theReachGeneration = -1;
-
-static void refreshReachOutlines( void )
+void InGameUI::preDraw( void )
{
- if( theReachGeneration == theStructureGeneration )
- return;
- theReachGeneration = theStructureGeneration;
- theReachCircles.clear();
- theReachSegments.clear();
- for( size_t k = 0; k < theStructureKeys.size(); k++ )
- {
- const StructureKey &key = theStructureKeys[ k ];
- if( !key.reachShown )
- continue;
+ // handle any "icons" for the act of building things and placing them in the world
+ handleBuildPlacements();
- ReachCircle placed;
- placed.center = key.position;
- placed.owner = key.owner;
- traceReachCircle( placed, TheGameLogic->findObjectByID( key.id )->getTemplate() );
- theReachCircles.push_back( placed );
- }
+ // handle radius-cursors, if any
+ handleRadiusCursor();
- for( size_t c = 0; c < theReachCircles.size(); c++ )
- {
- const ReachCover cover = { &theReachCircles, c, NULL, theReachCircles[ c ].owner };
- outlineReachCircle( theReachCircles, c, cover, theReachSegments );
- }
-}
+ // where the selection is headed, read fresh from the units themselves
+ updateOrderHints();
-static void drawReachSegment( const ReachSegment &segment, const Player *owner )
-{
- UnsignedByte red, green, blue, alpha;
- GameGetColorComponents( clientPlayerColor( owner ), &red, &green, &blue, &alpha );
+ // the build grid under a structure waiting to be placed is not drawn here: it is terrain
+ // geometry now, and HeightMapRenderObjClass::Render puts it down with the ground itself
- ICoord2D from, to;
- if( TheTacticalView->worldToScreenTriReturn( &segment.ends[ 0 ], &from ) != View::WTS_INVALID
- && TheTacticalView->worldToScreenTriReturn( &segment.ends[ 1 ], &to ) != View::WTS_INVALID )
- TheDisplay->drawLine( from.x, from.y, to.x, to.y, REACH_OUTLINE_WIDTH, GameMakeColor( red, green, blue, REACH_OUTLINE_ALPHA ) );
-}
+ // draw the floating text first;
+ drawFloatingText();
+
+ // draw world animations
+ updateAndDrawWorldAnimations();
+
+} // end preDraw
//-------------------------------------------------------------------------------------------------
-/** While a structure is on the cursor, the reach of every armed building in sight: yours, your
- * allies', and the one on the cursor if it is armed. An enemy's is never drawn.
- *
- * Each circle is exactly the distance a shot is allowed at: the range the game tests with of the
- * guns the building fires at the ground on its own (picksGroundTargetsWith), measured from the
- * edge of the shooter's bounding circle, so from the centre it is that range
- * plus the bounding radius. Each is drawn in its owner's colour. Where one player's circles
- * overlap they are one area: the thin outline leaves out every stretch of a circle that runs inside
- * another of the same player's, cutting it where the two cross. An ally's building under fog is
- * skipped, so the circles tell nothing the map does not. */
+/** Update the in game user interface */
//-------------------------------------------------------------------------------------------------
-void InGameUI::drawPlacementReach( void )
+DECLARE_PERF_TIMER(InGameUI_update)
+void InGameUI::update( void )
{
- if( !TheGlobalData->m_showPlacementRangeRing || TheGlobalData->isClassicUI() )
- return;
+ USE_PERF_TIMER(InGameUI_update)
- // on the cursor, or clicked: a selected armed building brings the circles up just the same
- Bool armedSelected = FALSE;
- for( DrawableListCIt it = m_selectedDrawables.begin(); it != m_selectedDrawables.end() && !armedSelected; ++it )
- {
- const Object *obj = (*it)->getObject();
- armedSelected = obj && obj->isKindOf( KINDOF_STRUCTURE ) && templateReach( obj->getTemplate() ) > 0.0f
- && reachRevealedToLocal( obj );
- }
- if( m_pendingPlaceType == NULL && !armedSelected )
- return;
+ updateReplaySeek();
- refreshStructureKeys();
- refreshReachOutlines();
-
- // the circle on the cursor moves every frame, so it alone is cut afresh against the kept ones
- const Bool pendingUp = m_pendingPlaceType != NULL && m_placementRangeRingUp;
- std::vector< ReachCircle > pendingCircles;
- std::vector< ReachSegment > pendingSegments;
- if( pendingUp )
- {
- ReachCircle pending;
- pending.center.x = m_placeIcon[ 0 ]->getPosition()->x;
- pending.center.y = m_placeIcon[ 0 ]->getPosition()->y;
- pending.center.z = TheTerrainLogic->getGroundHeight( pending.center.x, pending.center.y );
- pending.owner = ThePlayerList->getLocalPlayer();
- traceReachCircle( pending, m_pendingPlaceType );
- pendingCircles.push_back( pending );
-
- const ReachCover cover = { &theReachCircles, theReachCircles.size(), NULL, pending.owner };
- outlineReachCircle( pendingCircles, 0, cover, pendingSegments );
- }
+ // the wheeled radius belongs to the order it was wheeled for; a shift-kept key keeps it
+ if( !isAreaPicking() )
+ m_areaPickScale = 1.0f;
- TheDisplay->beginBatch2D();
- std::vector< ReachSegment > recut;
- for( size_t s = 0; s < theReachSegments.size(); s++ )
+ /// @todo make sure this code gets called even when the UI is not being drawn
+ if ( m_videoStream && m_videoBuffer )
{
- const ReachSegment &segment = theReachSegments[ s ];
- const ReachCircle &circle = theReachCircles[ segment.circle ];
- const Bool underPending = pendingUp && circle.owner == pendingCircles[ 0 ].owner
- && ( insideReach( pendingCircles[ 0 ], segment.ends[ 0 ].x, segment.ends[ 0 ].y )
- || insideReach( pendingCircles[ 0 ], segment.ends[ 1 ].x, segment.ends[ 1 ].y ) );
- if( !underPending )
+ if ( m_videoStream->isFrameReady())
{
- drawReachSegment( segment, circle.owner );
- continue;
+ m_videoStream->frameDecompress();
+ m_videoStream->frameRender( m_videoBuffer );
+ m_videoStream->frameNext();
+ if ( m_videoStream->frameIndex() == 0 )
+ {
+ stopMovie();
+ }
}
+ }
- recut.clear();
- const ReachCover cover = { NULL, segment.circle, &pendingCircles[ 0 ], circle.owner };
- clipReachSegment( circle, segment.circle, segment.angles[ 0 ], segment.angles[ 1 ], cover, recut );
- for( size_t r = 0; r < recut.size(); r++ )
- drawReachSegment( recut[ r ], circle.owner );
+ if ( m_cameoVideoStream && m_cameoVideoBuffer )
+ {
+ if ( m_cameoVideoStream->isFrameReady())
+ {
+ m_cameoVideoStream->frameDecompress();
+ m_cameoVideoStream->frameRender( m_cameoVideoBuffer );
+ m_cameoVideoStream->frameNext();
+// if ( m_cameoVideoStream->frameIndex() == 0 )
+// {
+// stopMovie();
+// }
+ }
}
- for( size_t s = 0; s < pendingSegments.size(); s++ )
- drawReachSegment( pendingSegments[ s ], pendingCircles[ 0 ].owner );
- TheDisplay->endBatch2D();
-}
-void InGameUI::handleBuildPlacements( void )
-{
+ // the messages are lines of the event feed now, which drops them at drawing by their frame
+ UnsignedInt currLogicFrame = TheGameLogic->getFrame();
+ if( TheGameLogic->isInGame() && !TheGameLogic->isInShellGame() )
+ watchDozers();
+ updateSignalMarks();
+ UnsignedByte r, g, b, a;
+ Int amount;
//
- // if we're in the process of placing something we need up update one or more drawables
- // based on the position of the mouse
+ // Update the Military Subtitle display
//
- if( m_pendingPlaceType )
+ if( m_militarySubtitle ) // if we have a subtitle, work on it
{
- ICoord2D loc;
- Coord3D world;
- Real angle = m_placeIcon[ 0 ]->getOrientation();
-
- //
- // ShowPlacementRangeRing: ring the structure's own weapon range while it is being placed,
- // so a defense can be sited against what it actually covers. The radius comes off the
- // template - there is no Object yet - and drawPlacementReach draws it under the cursor.
- //
- if( TheGlobalData->m_showPlacementRangeRing && !TheGlobalData->isClassicUI() )
- {
- m_placementRingRadius = templateReach( m_pendingPlaceType );
- m_placementRangeRingUp = ( m_placementRingRadius > 0.0f );
- }
-
- // update the angle of the icon to match any placement angle and pick the
- // location the icon will be at (anchored is the start, otherwise it's the mouse)
- Bool row = FALSE;
- if( isPlacementAnchored() )
+ // if the timeis frozen by a script, then we still want the text to display
+ if(TheScriptEngine->isTimeFrozenScript())
{
- ICoord2D start, end;
-
- // get the placement arrow points
- getPlacementPoints( &start, &end );
-
- // set icon to anchor point
- loc = start;
-
- // only adjust angle if we've actually moved the mouse, and not into a row: that drag
- // lays structures, the heading stays the one they had
- const Bool dragged = start.x != end.x || start.y != end.y;
- row = dragged && placesRow(); if( dragged && !row )
- angle = computePlacementAngle( &start, &end );
-
- } // end if
+ //
+ // These are LOGIC-frame counters walked down by hand to fake time passing while the
+ // logic clock is frozen. They cannot be gated on the logic frame - that is exactly
+ // what is not advancing - and one step per call was one step per RENDER frame, so
+ // with the renderer uncapped a cutscene's subtitles ran down (fps/30) times too fast.
+ // The wall clock supplies the missing 30Hz: count the frames the freeze has lasted
+ // so far and apply only the ones not applied yet, so nothing drifts however long it
+ // runs. See FINDINGS.md 7.2.
+ //
+ const UnsignedInt nowMs = Clock_Milliseconds();
+ if( m_subtitleFreezeStartMs == 0 )
+ {
+ m_subtitleFreezeStartMs = nowMs;
+ m_subtitleFreezeSteps = 0;
+ }
+ const UnsignedInt elapsedFrames = (nowMs - m_subtitleFreezeStartMs) * LOGICFRAMES_PER_SECOND / 1000;
+ const UnsignedInt steps = elapsedFrames - m_subtitleFreezeSteps;
+ m_subtitleFreezeSteps = elapsedFrames;
+ m_militarySubtitle->lifetime -= min( steps, m_militarySubtitle->lifetime );
+ m_militarySubtitle->blockBeginFrame -= min( steps, m_militarySubtitle->blockBeginFrame );
+ m_militarySubtitle->incrementOnFrame -= min( steps, m_militarySubtitle->incrementOnFrame );
+ }
else
{
- const MouseIO *mouseIO = TheMouse->getMouseStatus();
-
- // location is the mouse position
- loc = mouseIO->pos;
-
- } // end else
-
- // set the location and angle of the place icon
- /**@todo this whole orientation vector thing is LAME! Must replace, all I want to
- to do is set a simple angle and have it automatically change, ug! */
- // Above the horizon the ray reaches no ground and the answer is the corner of the map, which
- // threw the ghost across the world and back. Hold it where it was instead.
- if( !TheTacticalView->screenToTerrain( &loc, &world ) )
- world = *m_placeIcon[ 0 ]->getPosition();
- snapPlacementToGrid( &world, m_pendingPlaceType, angle );
- snapPlacementToNeighbour( &world, m_pendingPlaceType, angle );
-
- //
- // NudgeBuildPlacement: the ghost sits where the last legality check found room, which is
- // the cursor itself whenever the cursor works. The check below runs every other frame and
- // always measures from the cursor, never from an already-nudged spot, so the offset cannot
- // walk away from the mouse; the ghost is at most one frame behind it.
- //
- const Coord3D cursorWorld = world;
-
- // a row starts where it was anchored; each piece is judged where it stands, not nudged
- if( row )
- m_placementNudge.zero();
-
- if( m_placementNudge.x != 0.0f || m_placementNudge.y != 0.0f )
+ m_subtitleFreezeStartMs = 0;
+ }
+ // if it's time to remove the subtitle, Then remove it
+ if((Int)m_militarySubtitle->lifetime < (Int)currLogicFrame)
{
- world.x += m_placementNudge.x;
- world.y += m_placementNudge.y;
- world.z = TheTerrainLogic->getGroundHeight( world.x, world.y );
+ //steal colins fade from above :)
+ GameGetColorComponents( m_militarySubtitle->color, &r, &g, &b, &a );
+ // start fading the alpha on this color down
+ amount = REAL_TO_INT( ((currLogicFrame - m_militarySubtitle->lifetime ) * 0.1f) );
+ if( a - amount < 0 )
+ {
+ removeMilitarySubtitle();
+ }
+ else
+ {
+ a -= amount;
+ m_militarySubtitle->color = GameMakeColor(r, g, b, a);
+ }
}
-
- m_placeIcon[ 0 ]->setPosition( &world );
- m_placeIcon[ 0 ]->setOrientation( angle );
-
-
- //
- // check to see if this is a legal location to build something at and tint or "un-tint"
- // the cursor icons as appropriate. This involves a pathfind which could be
- // expensive so we don't want to do it on every frame (althought that would be ideal)
- // If we discover there are cases that this is just too slow we should increase the
- // delay time between checks or we need to come up with a way of recording what is
- // valid and what isn't or "fudge" the results to feel "ok"
- //
- if( ( TheGameClient->getFrame() & 0x1 ) && !row )
+ else
{
- TheTerrainVisual->removeAllBibs();
-
- Object *builderObject = TheGameLogic->findObjectByID( getPendingPlaceSourceObjectID() );
-
- const UnsignedInt checkOptions = placementCheckOptions();
- Coord3D spot = cursorWorld;
- LegalBuildCode lbc;
- lbc = TheBuildAssistant->isLocationLegalToBuild( &spot, m_pendingPlaceType, angle,
- checkOptions, builderObject, NULL );
-
- //
- // and the ground an order of your own has already been placed on but has not landed on
- // yet - see recordPendingPlacement. Without this the ghost is green over a structure
- // that is already paid for, which is what a shift-held run of clicks sees on a laggy link.
- //
- if( lbc == LBC_OK && overlapsPendingPlacement( &spot, m_pendingPlaceType, angle ) )
- lbc = LBC_OBJECTS_IN_THE_WAY;
+ // trigger whether or not we should draw the block
+ if( m_militarySubtitle->blockBeginFrame + 9 < currLogicFrame )
+ {
+ m_militarySubtitle->blockBeginFrame = currLogicFrame;
+ m_militarySubtitle->blockDrawn = !m_militarySubtitle->blockDrawn;
+ }
- //
- // Blocked: look for the nearest spot that is not, and move the ghost there - the click
- // does the same search (see PlaceEventTranslator), so what you see is where it lands.
- // Shroud is left alone on purpose: unscouted ground is not a placement mistake to fix,
- // and hunting around in it would answer questions about ground you cannot see.
- //
- m_placementNudge.zero();
- if( lbc != LBC_OK && lbc != LBC_SHROUD )
+ // If it's time to add another letter to the display string, lets do that.
+ if( m_militarySubtitle->incrementOnFrame < currLogicFrame )
{
- const Bool moved = nudgePlacementToLegal( &spot, m_pendingPlaceType, angle,
- builderObject );
+ // first grab the letter we want to add
+ WideChar tempWChar = m_militarySubtitle->subtitle.getCharAt(m_militarySubtitle->index);
+ // if that letter is a return, add a new line
+ if(tempWChar == u'\n')
+ {
+ // increment the Block position's Y value to draw it on the next line
+ Int height;
+ m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->getSize(NULL, &height);
+ m_militarySubtitle->blockPos.y = m_militarySubtitle->blockPos.y + height;
- //
- // Either way the search has just painted a red bib on everything it bumped into on
- // the way out, which is a report on spots nobody is proposing. Clear them, and if
- // there was nowhere to go, ask about the spot under the cursor once more so the one
- // bib that does explain the refusal comes back.
- //
- TheTerrainVisual->removeAllBibs();
+ // Now add a new display string
+ m_militarySubtitle->currentDisplayString++;
+ if(!(m_militarySubtitle->currentDisplayString >= MAX_SUBTITLE_LINES) )
+ {
+ m_militarySubtitle->blockPos.x = m_militarySubtitle->position.x;
+ m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString] = TheDisplayStringManager->newDisplayString();
+ m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->reset();
+ m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->setFont( TheFontLibrary->getFont( m_militaryCaptionFont, TheGlobalLanguageData->adjustFontSize(m_militaryCaptionPointSize), m_militaryCaptionBold ) ) ;
- if( moved )
- {
- m_placementNudge.x = spot.x - cursorWorld.x;
- m_placementNudge.y = spot.y - cursorWorld.y;
- lbc = LBC_OK;
+ m_militarySubtitle->blockDrawn = TRUE;
+ m_militarySubtitle->incrementOnFrame = currLogicFrame + (Int)(((Real)LOGICFRAMES_PER_SECOND * TheGlobalLanguageData->m_militaryCaptionDelayMS)/1000.0f);
+ }
+ else
+ {
+ // if we've exceeded the allocated number of display strings, this will force us to essentially truncate the remaining text
+ //
+ // roll the index back to the last real line. It used to be left at
+ // MAX_SUBTITLE_LINES, and displayStrings only has that many entries, so the
+ // draw loops (which run i <= currentDisplayString) read displayStrings[4]
+ // and removeMilitarySubtitle then freed that out-of-bounds pointer.
+ //
+ m_militarySubtitle->currentDisplayString = MAX_SUBTITLE_LINES - 1;
+ m_militarySubtitle->index = m_militarySubtitle->subtitle.getLength();
+ DEBUG_CRASH(("You're Only Allowed to use %d lines of subtitle text\n",MAX_SUBTITLE_LINES));
+ }
}
else
{
- TheBuildAssistant->isLocationLegalToBuild( &cursorWorld, m_pendingPlaceType, angle,
- checkOptions, builderObject, NULL );
- }
- }
-
- // the cursor reads this too - see createCommandHint's MOUSEMODE_BUILD_PLACE case
- m_placementLegal = ( lbc == LBC_OK );
-
- if( lbc != LBC_OK )
- m_placeIcon[ 0 ]->colorTint( &illegalBuildColor );
- else
- m_placeIcon[ 0 ]->colorTint( NULL );
-
-
+ // okay, we're not a \n, lets append this character to the display string
+ m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->appendChar(tempWChar);
+ // increment the draw position of the block
+ Int width;
+ m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->getSize(&width,NULL);
+ m_militarySubtitle->blockPos.x = m_militarySubtitle->position.x + width;
+ // lets make a sound
+ static AudioEventRTS click("MilitarySubtitlesTyping");
+ TheAudio->addAudioEvent(&click);
+ if(TheGlobalLanguageData)
+ m_militarySubtitle->incrementOnFrame = currLogicFrame + TheGlobalLanguageData->m_militaryCaptionSpeed;
+ else
+ m_militarySubtitle->incrementOnFrame = currLogicFrame + m_militaryCaptionSpeed;
- // Add the bibs around the structure.
- if (lbc != LBC_OK)
- {
- TheTerrainVisual->addFactionBibDrawable(m_placeIcon[0], lbc != LBC_OK);
- } else {
- TheTerrainVisual->removeFactionBibDrawable(m_placeIcon[0]);
+ }
+ // increment the index
+ m_militarySubtitle->index++;
+ if(m_militarySubtitle->index >= m_militarySubtitle->subtitle.getLength())
+ {
+ // We're at the end of the subtitle, set everything to persist till the subtitle has expired
+ m_militarySubtitle->incrementOnFrame = m_militarySubtitle->lifetime + 1;
+ }
+ /*
+ else
+ {
+ // randomize the space between printing of characters
+ if(GameClientRandomValueReal(0,1) < 0.95f)
+ {
+ m_militarySubtitle->incrementOnFrame = GameClientRandomValue(2, 5) + currLogicFrame;
+ }
+ else
+ {
+ m_militarySubtitle->incrementOnFrame = GameClientRandomValue(10, 13) + currLogicFrame;
+ }
+ }*/
+
}
- } // end if
-
+ }
+ }
+ //
+ // Update the player money window if the money amount has changed. The amount last written is
+ // a member and not a static inside this function: the gadget is thrown away and built again
+ // whenever the command bar is, and a cache that outlives the window it was filled for left the
+ // new one showing the dollar signs its .wnd ships with until the player's money next moved.
+ //
+ // This is also as good a place as any to do the power hide/show.
+ //
+ static NameKeyType moneyWindowKey = TheNameKeyGenerator->nameToKey( "ControlBar.wnd:MoneyDisplay" );
+ static NameKeyType powerWindowKey = TheNameKeyGenerator->nameToKey( "ControlBar.wnd:PowerWindow" );
- //
- // we have additional place icons when we're placing down a line of walls or other
- // similarly placed object, or a shift-dragged row of structures ... for those we will
- // have them be oriented the same way as the first one, but we'll set their positions so
- // that they "tile" end to end
- //
- const Bool lineBuild = isPlacementAnchored() && TheBuildAssistant->isLineBuildTemplate( m_pendingPlaceType );
- Int iconsUsed = 1;
- if( lineBuild || row )
+ GameWindow *moneyWin = TheWindowManager->winGetWindowFromId( NULL, moneyWindowKey );
+ GameWindow *powerWin = TheWindowManager->winGetWindowFromId( NULL, powerWindowKey );
+// if( moneyWin == NULL )
+// {
+// NameKeyType moneyWindowKey = TheNameKeyGenerator->nameToKey( "ControlBar.wnd:MoneyDisplay" );
+//
+// moneyWin = TheWindowManager->winGetWindowFromId( NULL, moneyWindowKey );
+//
+// } // end if
+ Player *moneyPlayer = NULL;
+ if( TheControlBar->isObserverControlBarOn())
+ moneyPlayer = TheControlBar->getObserverLookAtPlayer();
+ else
+ moneyPlayer = ThePlayerList->getLocalPlayer();
+ if( moneyPlayer)
+ {
+ Int currentMoney = moneyPlayer->getMoney()->countMoney();
+ if( m_lastMoneyDisplayed != currentMoney )
{
- Int i;
-
- // get our line placement points
- ICoord2D screenStart, screenEnd;
- getPlacementPoints( &screenStart, &screenEnd );
-
- // project the start and the end points of the line anchor into the 3D world
- Coord3D worldStart, worldEnd;
- // An end that leaves the ground - the cursor dragged above the horizon - has no place on
- // the map, and the corner is not it. Leave the line as it was last drawn. This block is
- // the last thing handleBuildPlacements does.
- if( !TheTacticalView->screenToTerrain( &screenStart, &worldStart ) ||
- !TheTacticalView->screenToTerrain( &screenEnd, &worldEnd ) )
- return;
-
- // both ends, so a wall lands on the grid and tiles from a grid square; a row starts where
- // the ghost did, against its neighbour, and runs toward the cursor itself, since a snapped
- // end turned a short drag a few degrees off the line the player drew
- snapPlacementToGrid( &worldStart, m_pendingPlaceType, angle );
- if( lineBuild )
- snapPlacementToGrid( &worldEnd, m_pendingPlaceType, angle );
- snapPlacementToNeighbour( &worldStart, m_pendingPlaceType, angle );
-
- // get the builder object that will be constructing things
- Object *builderObject = TheGameLogic->findObjectByID( TheInGameUI->getPendingPlaceSourceObjectID() );
-
- const Coord3D *positions;
- std::vector<Coord3D> rowPositions;
- if( lineBuild )
- {
- // how big are each of our objects
- Real objectSize = m_pendingPlaceType->getTemplateGeometryInfo().getMajorRadius() * 2.0f;
-
- //
- // given the start/end points in the world and the the angle of the wall, fill
- // out an array of positions that "tile" this wall across the landscape
- //
- BuildAssistant::TileBuildInfo *tileBuildInfo;
- tileBuildInfo = TheBuildAssistant->buildTiledLocations( m_pendingPlaceType, angle,
- &worldStart, &worldEnd,
- objectSize,
- TheGlobalData->m_maxLineBuildObjects,
- builderObject );
- positions = tileBuildInfo->positions;
- iconsUsed = tileBuildInfo->tilesUsed;
- }
- else
- {
- computePlacementRow( m_pendingPlaceType, angle, &worldStart, &worldEnd, &rowPositions );
- positions = &rowPositions[ 0 ];
- iconsUsed = (Int)rowPositions.size();
- }
-
- // create any necessary drawables we need to "fill out" the line
- for( i = 0; i < iconsUsed; i++ )
- {
-
- if( m_placeIcon[ i ] == NULL )
- m_placeIcon[ i ] = TheThingFactory->newDrawable( m_pendingPlaceType,
- DRAWABLE_STATUS_NO_STATE_PARTICLES );
-
- } // end for i
+ UnicodeString buffer;
+ buffer.format( TheGameText->fetch( "GUI:ControlBarMoneyDisplay" ), currentMoney );
+ GadgetStaticTextSetText( moneyWin, buffer );
+ m_lastMoneyDisplayed = currentMoney;
- //
- // A row is judged piece by piece, on the frames the single ghost would have been: red
- // where the click will leave a gap, and the cursor says yes while any piece can go up.
- //
- const Bool judgeRow = row && ( TheGameClient->getFrame() & 0x1 );
- if( judgeRow )
- {
- TheTerrainVisual->removeAllBibs();
- m_placementLegal = FALSE;
- }
+ } // end if
- //
- // march down each drawable and set the position based on its position in the
- // line and set their angles all the same
- //
- for( i = 0; i < iconsUsed; i++ )
- {
+ // put back on screen every frame, which is how they survive the context switching that hides
+ // everything else on the bar
+ moneyWin->winHide( FALSE );
+ powerWin->winHide( FALSE );
+ }
+ else
+ {
+ moneyWin->winHide(TRUE);
+ powerWin->winHide(TRUE);
+ }
+
+ // Update the floating Text;
+ updateFloatingText();
- // set the drawble position
- m_placeIcon[ i ]->setPosition( &positions[ i ] );
+ // update the control bar
+ TheControlBar->update();
- // set opacity and shadowing for the drawble
- dressPlacementPreview( m_placeIcon[ i ] );
+ updateIdleWorker();
- // set the drawable angle
- m_placeIcon[ i ]->setOrientation( angle );
+ // update any random window layout that so requests
+ for (std::list<WindowLayout *>::iterator it = m_windowLayouts.begin(); it != m_windowLayouts.end(); ++it)
+ {
+ WindowLayout *layout = *it;
+ layout->runUpdate();
+ }
- if( judgeRow )
- {
- const Bool legal =
- TheBuildAssistant->isLocationLegalToBuild( &positions[ i ], m_pendingPlaceType, angle,
- placementCheckOptions(), builderObject,
- NULL ) == LBC_OK &&
- !overlapsPendingPlacement( &positions[ i ], m_pendingPlaceType, angle );
- m_placeIcon[ i ]->colorTint( legal ? NULL : &illegalBuildColor );
- if( legal )
- m_placementLegal = TRUE;
- }
+ //
+ // Handle keyboard camera rotations. These used to apply one whole step per call and this
+ // update runs once per RENDER frame, so with the renderer uncapped the camera swung as fast
+ // as the machine happened to draw - the same key held for the same time went a different
+ // distance on every PC, and on a fast one a tap threw the view right past what you wanted.
+ // The step sizes are written for the 30Hz logic rate, so scale them by how many of those
+ // frames the wall clock says went by. Capped at four, so coming back from a hitch or an
+ // alt-tab does not fling the camera across the map on the first frame. See FINDINGS.md 7.4.
+ //
+ const UnsignedInt cameraNowMs = Clock_Milliseconds();
- } // end for i
+ // a watcher's camera is driven for him while it is not in his own hands (ObserverCamera.h)
+ if( TheGameLogic->isInGame() && localPlayerWatching() )
+ {
+ // -directorrecord: the director has the camera all match, nothing but the radar is over the
+ // picture, and the glide runs on the logic clock, which is what each recorded picture is
+ UnsignedInt observerNowMs = cameraNowMs;
+ if( TheGlobalData->m_directorRecord && !TheGameLogic->isInShellGame() )
+ {
+ if( TheObserverCamera.getMode() != OBSERVER_CAMERA_DIRECTOR )
+ TheObserverCamera.setMode( OBSERVER_CAMERA_DIRECTOR );
+ if( !CinemaDirector_showsMap() )
+ CinemaDirector_setHudHidden( TRUE, TRUE );
+ TheMouse->setVisibility( FALSE );
+ // the picture's own time, a share of a frame before the logic frame for a -recordfps
+ // picture between two of them
+ observerNowMs = GameEngine_pictureMilliseconds();
+ }
+ TheObserverCamera.update( observerNowMs );
+ }
- } // end if
+ Real cameraSteps = 1.0f;
+ if( m_cameraKeyLastMs != 0 )
+ cameraSteps = (Real)(cameraNowMs - m_cameraKeyLastMs) * (LOGICFRAMES_PER_SECOND / 1000.0f);
+ m_cameraKeyLastMs = cameraNowMs;
+ if( cameraSteps > 4.0f )
+ cameraSteps = 4.0f;
- //
- // destroy any drawables that we're not using anymore because a previous line length was
- // longer, or the row was let go of
- //
- for( Int i = iconsUsed; i < TheGlobalData->m_maxLineBuildObjects; i++ )
+ //
+ // SnapCameraRotateTo45 makes the heading discrete rather than smoothed-then-settled: the camera
+ // stands on an eighth and jumps to the next one, so there is no in-between heading to look at
+ // and nothing left to settle when the key comes up. The angle is therefore not accumulated per
+ // frame at all - a press turns the view one eighth and holding the key repeats that on a fixed
+ // interval, which is what the rotate keys do in Stronghold.
+ //
+ const UnsignedInt CAMERA_SNAP_REPEAT_MS = 250;
+ if( TheGlobalData->m_snapCameraRotateTo45 )
+ {
+ if( (m_cameraRotatingLeft || m_cameraRotatingRight) && m_cameraRotatingLeft != m_cameraRotatingRight
+ && cameraNowMs - m_cameraSnapRepeatMs >= CAMERA_SNAP_REPEAT_MS )
{
+ m_cameraSnapRepeatMs = cameraNowMs;
+ TheTacticalView->setAngle( View_stepAngleByEighths( TheTacticalView->getAngle(),
+ m_cameraRotatingRight ? 1 : -1 ) );
+ }
+ }
+ else
+ {
+ if( m_cameraRotatingLeft && !m_cameraRotatingRight )
+ {
+ //Keyboard rotate left
+ TheTacticalView->setAngle( TheTacticalView->getAngle() - TheGlobalData->m_keyboardCameraRotateSpeed * cameraSteps );
+ }
+ if( m_cameraRotatingRight && !m_cameraRotatingLeft )
+ {
+ //Keyboard rotate right
+ TheTacticalView->setAngle( TheTacticalView->getAngle() + TheGlobalData->m_keyboardCameraRotateSpeed * cameraSteps );
+ }
+ }
+ if( m_cameraZoomingIn && !m_cameraZoomingOut )
+ {
+ //Keyboard zoom in
+ TheTacticalView->zoomIn( cameraSteps );
+ }
+ if( m_cameraZoomingOut && !m_cameraZoomingIn )
+ {
+ //Keyboard zoom out
+ TheTacticalView->zoomOut( cameraSteps );
+ }
- if( m_placeIcon[ i ] != NULL )
- TheGameClient->destroyDrawable( m_placeIcon[ i ] );
- m_placeIcon[ i ] = NULL;
-
- } // end for i
+} // end update
- } // end if
+//-------------------------------------------------------------------------------------------------
+void InGameUI::registerWindowLayout( WindowLayout *layout )
+{
+ unregisterWindowLayout(layout); // sanity
+ m_windowLayouts.push_back(layout);
+}
-} // end handleBuildPlacements
+//-------------------------------------------------------------------------------------------------
+void InGameUI::unregisterWindowLayout( WindowLayout *layout )
+{
+ for (std::list<WindowLayout *>::iterator it = m_windowLayouts.begin(); it != m_windowLayouts.end(); ++it)
+ {
+ if (*it == layout)
+ {
+ m_windowLayouts.erase(it);
+ return;
+ }
+ }
+}
//-------------------------------------------------------------------------------------------------
-/** Pre-draw phase of the in game ui */
+/** Reset the in game user interface */
//-------------------------------------------------------------------------------------------------
-void InGameUI::preDraw( void )
+void InGameUI::reset( void )
{
+ for( Int i = 0; i < MAX_MOVE_HINTS; i++ )
+ {
+ m_moveHint[ i ].pos.zero();
+ m_moveHint[ i ].frame = 0;
+ }
+ m_nextMoveHint = 0;
- // handle any "icons" for the act of building things and placing them in the world
- handleBuildPlacements();
-
- // handle radius-cursors, if any
- handleRadiusCursor();
-
- // where the selection is headed, read fresh from the units themselves
- updateOrderHints();
-
- // the build grid under a structure waiting to be placed is not drawn here: it is terrain
- // geometry now, and HeightMapRenderObjClass::Render puts it down with the ground itself
+ m_isQuitMenuVisible = FALSE;
+ TheObserverCamera.reset();
+ CinemaDirector_forgetHudHidden();
+ clearSignalMarks();
+ m_armedSignal = SIGNAL_KIND_COUNT;
+ m_dozerCheckFrame = 0;
+ for( Int index = 0; index < MAX_PLAYER_COUNT; index++ )
+ m_hadDozer[ index ] = FALSE;
+ m_inputEnabled = true;
+ // reset the command bar
+ TheControlBar->reset();
- // draw the floating text first;
- drawFloatingText();
+ TheTacticalView->setDefaultView(0.0f, 0.0f, 1.0f);
- // draw world animations
- updateAndDrawWorldAnimations();
+ ResetInGameChat();
-} // end preDraw
+ // stop any movie currently playing
+ stopMovie();
-//-------------------------------------------------------------------------------------------------
-/** Update the in game user interface */
-//-------------------------------------------------------------------------------------------------
-DECLARE_PERF_TIMER(InGameUI_update)
-void InGameUI::update( void )
-{
- USE_PERF_TIMER(InGameUI_update)
+ // remove any pending GUI command
+ setGUICommand( NULL );
- updateReplaySeek();
+ // remove any build available status
+ placeBuildAvailable( NULL, NULL );
+ m_placeAngleOffset = 0.0f;
+ m_placeAngleType = NULL;
+ forgetPendingPlacements();
- // the wheeled radius belongs to the order it was wheeled for; a shift-kept key keeps it
- if( !isAreaPicking() )
- m_areaPickScale = 1.0f;
+ // free any message resources allocated
+ freeMessageResources();
- /// @todo make sure this code gets called even when the UI is not being drawn
- if ( m_videoStream && m_videoBuffer )
+ Int i;
+ for (i=0; i<MAX_PLAYER_COUNT; ++i)
{
- if ( m_videoStream->isFrameReady())
+ for (SuperweaponMap::iterator mapIt = m_superweapons[i].begin(); mapIt != m_superweapons[i].end(); ++mapIt)
{
- m_videoStream->frameDecompress();
- m_videoStream->frameRender( m_videoBuffer );
- m_videoStream->frameNext();
- if ( m_videoStream->frameIndex() == 0 )
+ for (SuperweaponList::iterator listIt = mapIt->second.begin(); listIt != mapIt->second.end(); ++listIt)
{
- stopMovie();
+ SuperweaponInfo *info = *listIt;
+ info->deleteInstance();
}
+ mapIt->second.clear();
}
+ m_superweapons[i].clear();
}
- if ( m_cameoVideoStream && m_cameoVideoBuffer )
+ for (NamedTimerMapIt timerIt = m_namedTimers.begin(); timerIt != m_namedTimers.end(); ++timerIt)
{
- if ( m_cameoVideoStream->isFrameReady())
- {
- m_cameoVideoStream->frameDecompress();
- m_cameoVideoStream->frameRender( m_cameoVideoBuffer );
- m_cameoVideoStream->frameNext();
-// if ( m_cameoVideoStream->frameIndex() == 0 )
-// {
-// stopMovie();
-// }
- }
+ NamedTimerInfo *info = timerIt->second;
+ TheDisplayStringManager->freeDisplayString(info->displayString);
+ info->deleteInstance();
}
+ m_namedTimers.clear();
+ m_namedTimerLastFlashFrame = 0;
+ m_namedTimerUsedFlashColor = TRUE; // so next one is false
+ m_showNamedTimers = TRUE;
- // the messages are lines of the event feed now, which drops them at drawing by their frame
- UnsignedInt currLogicFrame = TheGameLogic->getFrame();
- if( TheGameLogic->isInGame() && !TheGameLogic->isInShellGame() )
- watchDozers();
- updateSignalMarks();
- UnsignedByte r, g, b, a;
- Int amount;
+ removeMilitarySubtitle();
+ clearPopupMessageData();
+ m_superweaponLastFlashFrame = 0;
+ m_superweaponUsedFlashColor = TRUE; // so next one is false
+ m_superweaponHiddenByScript = FALSE;
- //
- // Update the Military Subtitle display
- //
- if( m_militarySubtitle ) // if we have a subtitle, work on it
- {
- // if the timeis frozen by a script, then we still want the text to display
- if(TheScriptEngine->isTimeFrozenScript())
- {
- //
- // These are LOGIC-frame counters walked down by hand to fake time passing while the
- // logic clock is frozen. They cannot be gated on the logic frame - that is exactly
- // what is not advancing - and one step per call was one step per RENDER frame, so
- // with the renderer uncapped a cutscene's subtitles ran down (fps/30) times too fast.
- // The wall clock supplies the missing 30Hz: count the frames the freeze has lasted
- // so far and apply only the ones not applied yet, so nothing drifts however long it
- // runs. See FINDINGS.md 7.2.
- //
- const UnsignedInt nowMs = Clock_Milliseconds();
- if( m_subtitleFreezeStartMs == 0 )
- {
- m_subtitleFreezeStartMs = nowMs;
- m_subtitleFreezeSteps = 0;
- }
- const UnsignedInt elapsedFrames = (nowMs - m_subtitleFreezeStartMs) * LOGICFRAMES_PER_SECOND / 1000;
- const UnsignedInt steps = elapsedFrames - m_subtitleFreezeSteps;
- m_subtitleFreezeSteps = elapsedFrames;
- m_militarySubtitle->lifetime -= min( steps, m_militarySubtitle->lifetime );
- m_militarySubtitle->blockBeginFrame -= min( steps, m_militarySubtitle->blockBeginFrame );
- m_militarySubtitle->incrementOnFrame -= min( steps, m_militarySubtitle->incrementOnFrame );
- }
- else
- {
- m_subtitleFreezeStartMs = 0;
- }
- // if it's time to remove the subtitle, Then remove it
- if((Int)m_militarySubtitle->lifetime < (Int)currLogicFrame)
- {
- //steal colins fade from above :)
- GameGetColorComponents( m_militarySubtitle->color, &r, &g, &b, &a );
- // start fading the alpha on this color down
- amount = REAL_TO_INT( ((currLogicFrame - m_militarySubtitle->lifetime ) * 0.1f) );
- if( a - amount < 0 )
- {
- removeMilitarySubtitle();
- }
- else
- {
- a -= amount;
- m_militarySubtitle->color = GameMakeColor(r, g, b, a);
- }
- }
- else
- {
- // trigger whether or not we should draw the block
- if( m_militarySubtitle->blockBeginFrame + 9 < currLogicFrame )
- {
- m_militarySubtitle->blockBeginFrame = currLogicFrame;
- m_militarySubtitle->blockDrawn = !m_militarySubtitle->blockDrawn;
- }
+ clearFloatingText();
+ clearWorldAnimations();
+ resetIdleWorker();
- // If it's time to add another letter to the display string, lets do that.
- if( m_militarySubtitle->incrementOnFrame < currLogicFrame )
- {
- // first grab the letter we want to add
- WideChar tempWChar = m_militarySubtitle->subtitle.getCharAt(m_militarySubtitle->index);
- // if that letter is a return, add a new line
- if(tempWChar == u'\n')
- {
- // increment the Block position's Y value to draw it on the next line
- Int height;
- m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->getSize(NULL, &height);
- m_militarySubtitle->blockPos.y = m_militarySubtitle->blockPos.y + height;
+ m_waypointMode = false;
+ m_forceAttackMode = false;
+ m_forceMoveToMode = false;
+ m_attackMoveToMode = false;
+ m_forceAttackArmed = false;
+ m_guardArmed = false;
+ m_areaPickScale = 1.0f;
+ m_moveArmed = false;
+ m_orderKeyKeptByShift = false;
+ m_preferSelection = false;
+ m_isAttackCircling = FALSE;
+ m_clientQuiet = false;
- // Now add a new display string
- m_militarySubtitle->currentDisplayString++;
- if(!(m_militarySubtitle->currentDisplayString >= MAX_SUBTITLE_LINES) )
- {
- m_militarySubtitle->blockPos.x = m_militarySubtitle->position.x;
- m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString] = TheDisplayStringManager->newDisplayString();
- m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->reset();
- m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->setFont( TheFontLibrary->getFont( m_militaryCaptionFont, TheGlobalLanguageData->adjustFontSize(m_militaryCaptionPointSize), m_militaryCaptionBold ) ) ;
+ // TheSuperHackers @bugfix A key or button still held when the game ended left its camera
+ // interaction latched on, and the shell then scrolled or spun on its own.
+ setScrolling(false);
+ setSelecting(false);
+ setCameraRotateLeft(false);
+ setCameraRotateRight(false);
+ setCameraZoomIn(false);
+ setCameraZoomOut(false);
+ setCameraTrackingDrawable(false);
- m_militarySubtitle->blockDrawn = TRUE;
- m_militarySubtitle->incrementOnFrame = currLogicFrame + (Int)(((Real)LOGICFRAMES_PER_SECOND * TheGlobalLanguageData->m_militaryCaptionDelayMS)/1000.0f);
- }
- else
- {
- // if we've exceeded the allocated number of display strings, this will force us to essentially truncate the remaining text
- //
- // roll the index back to the last real line. It used to be left at
- // MAX_SUBTITLE_LINES, and displayStrings only has that many entries, so the
- // draw loops (which run i <= currentDisplayString) read displayStrings[4]
- // and removeMilitarySubtitle then freed that out-of-bounds pointer.
- //
- m_militarySubtitle->currentDisplayString = MAX_SUBTITLE_LINES - 1;
- m_militarySubtitle->index = m_militarySubtitle->subtitle.getLength();
- DEBUG_CRASH(("You're Only Allowed to use %d lines of subtitle text\n",MAX_SUBTITLE_LINES));
- }
- }
- else
- {
- // okay, we're not a \n, lets append this character to the display string
- m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->appendChar(tempWChar);
- // increment the draw position of the block
- Int width;
- m_militarySubtitle->displayStrings[m_militarySubtitle->currentDisplayString]->getSize(&width,NULL);
- m_militarySubtitle->blockPos.x = m_militarySubtitle->position.x + width;
+ m_windowLayouts.clear();
- // lets make a sound
- static AudioEventRTS click("MilitarySubtitlesTyping");
- TheAudio->addAudioEvent(&click);
- if(TheGlobalLanguageData)
- m_militarySubtitle->incrementOnFrame = currLogicFrame + TheGlobalLanguageData->m_militaryCaptionSpeed;
- else
- m_militarySubtitle->incrementOnFrame = currLogicFrame + m_militaryCaptionSpeed;
+ m_tooltipsDisabledUntil = 0;
- }
- // increment the index
- m_militarySubtitle->index++;
- if(m_militarySubtitle->index >= m_militarySubtitle->subtitle.getLength())
- {
- // We're at the end of the subtitle, set everything to persist till the subtitle has expired
- m_militarySubtitle->incrementOnFrame = m_militarySubtitle->lifetime + 1;
- }
- /*
- else
- {
- // randomize the space between printing of characters
- if(GameClientRandomValueReal(0,1) < 0.95f)
- {
- m_militarySubtitle->incrementOnFrame = GameClientRandomValue(2, 5) + currLogicFrame;
- }
- else
- {
- m_militarySubtitle->incrementOnFrame = GameClientRandomValue(10, 13) + currLogicFrame;
- }
- }*/
-
- }
- }
- }
-
- //
- // Update the player money window if the money amount has changed. The amount last written is
- // a member and not a static inside this function: the gadget is thrown away and built again
- // whenever the command bar is, and a cache that outlives the window it was filled for left the
- // new one showing the dollar signs its .wnd ships with until the player's money next moved.
- //
- // This is also as good a place as any to do the power hide/show.
- //
- static NameKeyType moneyWindowKey = TheNameKeyGenerator->nameToKey( "ControlBar.wnd:MoneyDisplay" );
- static NameKeyType powerWindowKey = TheNameKeyGenerator->nameToKey( "ControlBar.wnd:PowerWindow" );
-
- GameWindow *moneyWin = TheWindowManager->winGetWindowFromId( NULL, moneyWindowKey );
- GameWindow *powerWin = TheWindowManager->winGetWindowFromId( NULL, powerWindowKey );
-// if( moneyWin == NULL )
-// {
-// NameKeyType moneyWindowKey = TheNameKeyGenerator->nameToKey( "ControlBar.wnd:MoneyDisplay" );
-//
-// moneyWin = TheWindowManager->winGetWindowFromId( NULL, moneyWindowKey );
-//
-// } // end if
- Player *moneyPlayer = NULL;
- if( TheControlBar->isObserverControlBarOn())
- moneyPlayer = TheControlBar->getObserverLookAtPlayer();
- else
- moneyPlayer = ThePlayerList->getLocalPlayer();
- if( moneyPlayer)
- {
- Int currentMoney = moneyPlayer->getMoney()->countMoney();
- Int currentEarning = earnedPerSecond( moneyPlayer->getPlayerIndex() );
- // the IncomeRate option: the same half minute of readings, counted per minute
- const Bool perMinute = InGameUI_incomePerMinute( TheGlobalData->m_incomeRateMode, currentEarning );
- if( perMinute )
- currentEarning = earnedOver( moneyPlayer->getPlayerIndex(), 60 );
-
- if( m_lastMoneyDisplayed != currentMoney || m_lastEarningDisplayed != currentEarning ||
- m_lastEarningPerMinute != perMinute )
- {
- UnicodeString buffer;
-
- // Classic's readout is EA's: the money and nothing beside it
- if( TheGlobalData->isClassicUI() )
- buffer.format( TheGameText->fetch( "GUI:ControlBarMoneyDisplay" ), currentMoney );
- else
- buffer.format( TheGameText->fetch( perMinute ? "GUI:ControlBarMoneyEarningMinute" : "GUI:ControlBarMoneyEarning" ),
- currentMoney, currentEarning );
- GadgetStaticTextSetText( moneyWin, buffer );
- m_lastMoneyDisplayed = currentMoney;
- m_lastEarningDisplayed = currentEarning;
- m_lastEarningPerMinute = perMinute;
+ UpdateDiplomacyBriefingText(AsciiString::TheEmptyString, TRUE);
+} // end reset
- } // end if
+//-------------------------------------------------------------------------------------------------
+/** Empty the message list: a new match, and the score screen, start without the last one's lines */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::freeMessageResources( void )
+{
+ freeClassicMessages();
+} // end freeMessageResources
- //
- // These two are put back on screen every frame, which is how they survive the context
- // switching that hides everything else on the bar. It also used to beat the minimised bar:
- // the radar and the whole middle panel went away and the money still sat there over the
- // battlefield, plate and all gone from under it. The bar's own stage has the last word.
- //
- const Bool centreUp = ( TheControlBar == NULL ||
- !TheControlBar->isPanelHidden( ControlBar::CB_PANEL_CENTER ) );
- moneyWin->winHide( !centreUp );
- powerWin->winHide( !centreUp );
- }
- else
+//-------------------------------------------------------------------------------------------------
+void InGameUI::freeClassicMessages( void )
+{
+ for( Int i = 0; i < CLASSIC_MESSAGES; i++ )
{
- moneyWin->winHide(TRUE);
- powerWin->winHide(TRUE);
+ if( m_classicMessages[ i ].text )
+ TheDisplayStringManager->freeDisplayString( m_classicMessages[ i ].text );
+ m_classicMessages[ i ].text = NULL;
+ m_classicMessages[ i ].frame = 0;
}
-
- // Update the floating Text;
- updateFloatingText();
-
- // update the control bar
- TheControlBar->update();
-
- updateIdleWorker();
+}
- // update any random window layout that so requests
- for (std::list<WindowLayout *>::iterator it = m_windowLayouts.begin(); it != m_windowLayouts.end(); ++it)
- {
- WindowLayout *layout = *it;
- layout->runUpdate();
- }
+//-------------------------------------------------------------------------------------------------
+/** EA's InGameUI::addMessageText: the oldest line falls off the end, the new one goes in at the top
+ * in white or grey by turns, or in the colour it was given. */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::addClassicMessage( const UnicodeString &text, const Color *color )
+{
+ const Color color1 = color ? ( *color | GameMakeColor( 0, 0, 0, 255 ) ) : m_messageColor1;
+ const Color color2 = color ? ( *color | GameMakeColor( 0, 0, 0, 255 ) ) : m_messageColor2;
- //
- // Handle keyboard camera rotations. These used to apply one whole step per call and this
- // update runs once per RENDER frame, so with the renderer uncapped the camera swung as fast
- // as the machine happened to draw - the same key held for the same time went a different
- // distance on every PC, and on a fast one a tap threw the view right past what you wanted.
- // The step sizes are written for the 30Hz logic rate, so scale them by how many of those
- // frames the wall clock says went by. Capped at four, so coming back from a hitch or an
- // alt-tab does not fling the camera across the map on the first frame. See FINDINGS.md 7.4.
- //
- const UnsignedInt cameraNowMs = Clock_Milliseconds();
+ if( m_classicMessages[ CLASSIC_MESSAGES - 1 ].text )
+ TheDisplayStringManager->freeDisplayString( m_classicMessages[ CLASSIC_MESSAGES - 1 ].text );
+ for( Int i = CLASSIC_MESSAGES - 1; i >= 1; i-- )
+ m_classicMessages[ i ] = m_classicMessages[ i - 1 ];
- // a watcher's camera is driven for him while it is not in his own hands (ObserverCamera.h)
- if( TheGameLogic->isInGame() && localPlayerWatching() )
- {
- // -directorrecord: the director has the camera all match, nothing but the radar is over the
- // picture, and the glide runs on the logic clock, which is what each recorded picture is
- UnsignedInt observerNowMs = cameraNowMs;
- if( TheGlobalData->m_directorRecord && !TheGameLogic->isInShellGame() )
- {
- if( TheObserverCamera.getMode() != OBSERVER_CAMERA_DIRECTOR )
- TheObserverCamera.setMode( OBSERVER_CAMERA_DIRECTOR );
- if( !CinemaDirector_showsMap() )
- CinemaDirector_setHudHidden( TRUE, TRUE );
- TheMouse->setVisibility( FALSE );
- // the picture's own time, a share of a frame before the logic frame for a -recordfps
- // picture between two of them
- observerNowMs = GameEngine_pictureMilliseconds();
- }
- TheObserverCamera.update( observerNowMs );
- }
+ ClassicMessage &added = m_classicMessages[ 0 ];
+ added.frame = TheGameLogic->getFrame();
+ added.text = TheDisplayStringManager->newDisplayString();
+ added.text->setFont( TheFontLibrary->getFont( m_messageFont,
+ TheGlobalLanguageData->adjustFontSize( m_messagePointSize ), m_messageBold ) );
+ added.text->setText( text );
+ added.color = ( m_classicMessages[ 1 ].text == NULL || m_classicMessages[ 1 ].color == color2 ) ? color1 : color2;
+}
- Real cameraSteps = 1.0f;
- if( m_cameraKeyLastMs != 0 )
- cameraSteps = (Real)(cameraNowMs - m_cameraKeyLastMs) * (LOGICFRAMES_PER_SECOND / 1000.0f);
- m_cameraKeyLastMs = cameraNowMs;
- if( cameraSteps > 4.0f )
- cameraSteps = 4.0f;
+//-------------------------------------------------------------------------------------------------
+/** EA's fade, once a logic frame: a line loses alpha by a hundredth of its age every frame from the
+ * start (MessageDelayMS divided by the frame rate and by a thousand is 0 in EA's arithmetic), so a
+ * line is gone about seven seconds after it came. */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::fadeClassicMessages( void )
+{
+ const UnsignedInt now = TheGameLogic->getFrame();
+ if( now == m_classicMessageFadeFrame )
+ return;
+ m_classicMessageFadeFrame = now;
- //
- // SnapCameraRotateTo45 makes the heading discrete rather than smoothed-then-settled: the camera
- // stands on an eighth and jumps to the next one, so there is no in-between heading to look at
- // and nothing left to settle when the key comes up. The angle is therefore not accumulated per
- // frame at all - a press turns the view one eighth and holding the key repeats that on a fixed
- // interval, which is what the rotate keys do in Stronghold.
- //
- const UnsignedInt CAMERA_SNAP_REPEAT_MS = 250;
- if( TheGlobalData->m_snapCameraRotateTo45 )
- {
- if( (m_cameraRotatingLeft || m_cameraRotatingRight) && m_cameraRotatingLeft != m_cameraRotatingRight
- && cameraNowMs - m_cameraSnapRepeatMs >= CAMERA_SNAP_REPEAT_MS )
- {
- m_cameraSnapRepeatMs = cameraNowMs;
- TheTacticalView->setAngle( View_stepAngleByEighths( TheTacticalView->getAngle(),
- m_cameraRotatingRight ? 1 : -1 ) );
- }
- }
- else
+ const UnsignedInt timeout = m_messageDelayMS / LOGICFRAMES_PER_SECOND / 1000;
+ for( Int i = CLASSIC_MESSAGES - 1; i >= 0; i-- )
{
- if( m_cameraRotatingLeft && !m_cameraRotatingRight )
- {
- //Keyboard rotate left
- TheTacticalView->setAngle( TheTacticalView->getAngle() - TheGlobalData->m_keyboardCameraRotateSpeed * cameraSteps );
- }
- if( m_cameraRotatingRight && !m_cameraRotatingLeft )
+ ClassicMessage &line = m_classicMessages[ i ];
+ if( line.text == NULL || now - line.frame <= timeout )
+ continue;
+ UnsignedByte r, g, b, a;
+ GameGetColorComponents( line.color, &r, &g, &b, &a );
+ const Int amount = REAL_TO_INT( ( now - line.frame ) * 0.01f );
+ a = ( a - amount < 0 ) ? 0 : a - amount;
+ line.color = GameMakeColor( r, g, b, a );
+ if( a == 0 )
{
- //Keyboard rotate right
- TheTacticalView->setAngle( TheTacticalView->getAngle() + TheGlobalData->m_keyboardCameraRotateSpeed * cameraSteps );
+ TheDisplayStringManager->freeDisplayString( line.text );
+ line.text = NULL;
}
}
- if( m_cameraZoomingIn && !m_cameraZoomingOut )
- {
- //Keyboard zoom in
- TheTacticalView->zoomIn( cameraSteps );
- }
- if( m_cameraZoomingOut && !m_cameraZoomingIn )
- {
- //Keyboard zoom out
- TheTacticalView->zoomOut( cameraSteps );
- }
-
- //
- // Where this machine's mouse is, for the allies, and where theirs were, for this screen. Here
- // rather than in preDraw because an ally's cursor is drawn twice: the patch of light goes down
- // in the terrain pass and the pointer over the top of it afterwards, and preDraw runs between
- // the two - so easing there moved the pointer a frame ahead of its own light, which on a fast
- // drag is a smear trailing the marker by an inch.
- //
- sendLocalAllyCursor();
- updateAllyCursors();
-
- sampleEarnings();
-
-} // end update
+}
//-------------------------------------------------------------------------------------------------
-void InGameUI::registerWindowLayout( WindowLayout *layout )
+/** Where an x EA gave as a fraction of its 800 wide screen lands at the HUD's one scale: as far from
+ * the nearer side edge as EA's was, so a column EA put on the right stays on the right of a 32:9
+ * screen. At 4:3 this is EA's own position. */
+//-------------------------------------------------------------------------------------------------
+static Int hudEdgeX( Real fraction )
{
- unregisterWindowLayout(layout); // sanity
- m_windowLayouts.push_back(layout);
+ const Real s = ControlBarUniformScale();
+ if( fraction < 0.5f )
+ return REAL_TO_INT( fraction * 800.0f * s );
+ return TheDisplay->getWidth() - REAL_TO_INT( ( 1.0f - fraction ) * 800.0f * s );
}
//-------------------------------------------------------------------------------------------------
-void InGameUI::unregisterWindowLayout( WindowLayout *layout )
+void InGameUI::drawClassicMessages( void )
{
- for (std::list<WindowLayout *>::iterator it = m_windowLayouts.begin(); it != m_windowLayouts.end(); ++it)
+ fadeClassicMessages();
+ if( !m_messagesOn )
+ return;
+
+ // the screen's own top left corner, not the menus' 4:3 box
+ const Int x = m_messagePosition.x;
+ Int y = m_messagePosition.y;
+ for( Int i = CLASSIC_MESSAGES - 1; i >= 0; i-- )
{
- if (*it == layout)
- {
- m_windowLayouts.erase(it);
- return;
- }
+ ClassicMessage &line = m_classicMessages[ i ];
+ if( line.text == NULL )
+ continue;
+ UnsignedByte r, g, b, a;
+ GameGetColorComponents( line.color, &r, &g, &b, &a );
+ line.text->draw( x, y, line.color, GameMakeColor( 0, 0, 0, a ) );
+ y += line.text->getFont()->height;
}
}
//-------------------------------------------------------------------------------------------------
-/** Reset the in game user interface */
+/** EA's countdown line: the power's name right-aligned to x and its clock after it, in its owner's
+ * colour, the ready one bold and flashing. The text is only set again when the second, the
+ * readiness or a forced refresh changes it. */
//-------------------------------------------------------------------------------------------------
-void InGameUI::reset( void )
+void InGameUI::drawClassicSuperweapon( SuperweaponInfo *info, const AsciiString &templateName, Bool isReady,
+ Int readySecs, Int x, Int *y )
{
- for( Int i = 0; i < MAX_MOVE_HINTS; i++ )
- {
- m_moveHint[ i ].pos.zero();
- m_moveHint[ i ].frame = 0;
- }
- m_nextMoveHint = 0;
-
- // the flags went with the match's drawables, and their ids are handed out again from the start
- m_orderFlagIDs.clear();
-
- m_isQuitMenuVisible = FALSE;
- m_scoreboardOpen = FALSE;
- m_scoreboardPageLoaded = FALSE;
- m_scoreboardHtml.clear();
- s_gameTexts.clear(); // the map's string table goes with the map
- s_stripGather.valid = FALSE; // and the strip's sweep with the match it was of
- m_earnedReadingCount = 0; // a new match and a loaded save both come through here
- m_controlBarPageLoaded = FALSE;
- m_netPageLoaded = FALSE;
- m_readoutPageLoaded = FALSE;
- m_alertPageLoaded = FALSE;
- m_alerts.clear();
- m_alertBottom = 0;
- m_tooltipPageLoaded = FALSE;
- m_promotionPageLoaded = FALSE;
- m_quitMenuPageLoaded = FALSE;
- m_signalsWereShown = FALSE;
- m_spectatorPageLoaded = FALSE;
- TheObserverCamera.reset();
- CinemaDirector_forgetHudHidden();
- m_spectatorFlipped.clear();
- m_spectatorPicked.clear();
- m_spectatorLists.clear();
- m_spectatorTotals.clear();
- m_spectatorSuperweapons.clear();
- m_feedPageLoaded = FALSE;
- m_chatPageLoaded = FALSE;
- m_chatLines.clear();
- clearSignalMarks();
- m_armedSignal = SIGNAL_KIND_COUNT;
- m_dozerCheckFrame = 0;
- for( Int index = 0; index < MAX_PLAYER_COUNT; index++ )
- m_hadDozer[ index ] = FALSE;
- m_inputEnabled = true;
- // reset the command bar
- TheControlBar->reset();
-
- TheTacticalView->setDefaultView(0.0f, 0.0f, 1.0f);
-
- ResetInGameChat();
-
- // stop any movie currently playing
- stopMovie();
-
- // remove any pending GUI command
- setGUICommand( NULL );
-
- // remove any build available status
- placeBuildAvailable( NULL, NULL );
- m_placeAngleOffset = 0.0f;
- m_placeAngleType = NULL;
- forgetPendingPlacements();
-
- // free any message resources allocated
- freeMessageResources();
-
- Int i;
- for (i=0; i<MAX_PLAYER_COUNT; ++i)
- {
- for (SuperweaponMap::iterator mapIt = m_superweapons[i].begin(); mapIt != m_superweapons[i].end(); ++mapIt)
- {
- for (SuperweaponList::iterator listIt = mapIt->second.begin(); listIt != mapIt->second.end(); ++listIt)
- {
- SuperweaponInfo *info = *listIt;
- info->deleteInstance();
- }
- mapIt->second.clear();
- }
- m_superweapons[i].clear();
- }
-
- for (NamedTimerMapIt timerIt = m_namedTimers.begin(); timerIt != m_namedTimers.end(); ++timerIt)
- {
- NamedTimerInfo *info = timerIt->second;
- TheDisplayStringManager->freeDisplayString(info->displayString);
- info->deleteInstance();
- }
- m_namedTimers.clear();
- m_namedTimerLastFlashFrame = 0;
- m_namedTimerUsedFlashColor = TRUE; // so next one is false
- m_showNamedTimers = TRUE;
-
- removeMilitarySubtitle();
- clearPopupMessageData();
- m_superweaponLastFlashFrame = 0;
- m_superweaponUsedFlashColor = TRUE; // so next one is false
- m_superweaponHiddenByScript = FALSE;
-
- clearFloatingText();
- clearWorldAnimations();
- resetIdleWorker();
-
- m_waypointMode = false;
- m_forceAttackMode = false;
- m_forceMoveToMode = false;
- m_attackMoveToMode = false;
- m_forceAttackArmed = false;
- m_guardArmed = false;
- m_areaPickScale = 1.0f;
- m_moveArmed = false;
- m_orderKeyKeptByShift = false;
- m_preferSelection = false;
- m_isAttackCircling = FALSE;
- clearAllyCursors();
- m_clientQuiet = false;
-
- // TheSuperHackers @bugfix A key or button still held when the game ended left its camera
- // interaction latched on, and the shell then scrolled or spun on its own.
- setScrolling(false);
- setSelecting(false);
- setCameraRotateLeft(false);
- setCameraRotateRight(false);
- setCameraZoomIn(false);
- setCameraZoomOut(false);
- setCameraTrackingDrawable(false);
-
- m_windowLayouts.clear();
-
- m_tooltipsDisabledUntil = 0;
-
- UpdateDiplomacyBriefingText(AsciiString::TheEmptyString, TRUE);
-} // end reset
-
-//-------------------------------------------------------------------------------------------------
-/** Empty the event feed: a new match, and the score screen, start without the last one's lines */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::freeMessageResources( void )
-{
- m_feedLines.clear();
- freeClassicMessages();
-} // end freeMessageResources
-
-//-------------------------------------------------------------------------------------------------
-void InGameUI::freeClassicMessages( void )
-{
- for( Int i = 0; i < CLASSIC_MESSAGES; i++ )
- {
- if( m_classicMessages[ i ].text )
- TheDisplayStringManager->freeDisplayString( m_classicMessages[ i ].text );
- m_classicMessages[ i ].text = NULL;
- m_classicMessages[ i ].frame = 0;
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** EA's InGameUI::addMessageText: the oldest line falls off the end, the new one goes in at the top
- * in white or grey by turns, or in the colour it was given. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::addClassicMessage( const UnicodeString &text, const Color *color )
-{
- const Color color1 = color ? ( *color | GameMakeColor( 0, 0, 0, 255 ) ) : m_messageColor1;
- const Color color2 = color ? ( *color | GameMakeColor( 0, 0, 0, 255 ) ) : m_messageColor2;
-
- if( m_classicMessages[ CLASSIC_MESSAGES - 1 ].text )
- TheDisplayStringManager->freeDisplayString( m_classicMessages[ CLASSIC_MESSAGES - 1 ].text );
- for( Int i = CLASSIC_MESSAGES - 1; i >= 1; i-- )
- m_classicMessages[ i ] = m_classicMessages[ i - 1 ];
-
- ClassicMessage &added = m_classicMessages[ 0 ];
- added.frame = TheGameLogic->getFrame();
- added.text = TheDisplayStringManager->newDisplayString();
- added.text->setFont( TheFontLibrary->getFont( m_messageFont,
- TheGlobalLanguageData->adjustFontSize( m_messagePointSize ), m_messageBold ) );
- added.text->setText( text );
- added.color = ( m_classicMessages[ 1 ].text == NULL || m_classicMessages[ 1 ].color == color2 ) ? color1 : color2;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** EA's fade, once a logic frame: a line loses alpha by a hundredth of its age every frame from the
- * start (MessageDelayMS divided by the frame rate and by a thousand is 0 in EA's arithmetic), so a
- * line is gone about seven seconds after it came. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::fadeClassicMessages( void )
-{
- const UnsignedInt now = TheGameLogic->getFrame();
- if( now == m_classicMessageFadeFrame )
- return;
- m_classicMessageFadeFrame = now;
-
- const UnsignedInt timeout = m_messageDelayMS / LOGICFRAMES_PER_SECOND / 1000;
- for( Int i = CLASSIC_MESSAGES - 1; i >= 0; i-- )
- {
- ClassicMessage &line = m_classicMessages[ i ];
- if( line.text == NULL || now - line.frame <= timeout )
- continue;
- UnsignedByte r, g, b, a;
- GameGetColorComponents( line.color, &r, &g, &b, &a );
- const Int amount = REAL_TO_INT( ( now - line.frame ) * 0.01f );
- a = ( a - amount < 0 ) ? 0 : a - amount;
- line.color = GameMakeColor( r, g, b, a );
- if( a == 0 )
- {
- TheDisplayStringManager->freeDisplayString( line.text );
- line.text = NULL;
- }
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Where an x EA gave as a fraction of its 800 wide screen lands at the HUD's one scale: as far from
- * the nearer side edge as EA's was, so a column EA put on the right stays on the right of a 32:9
- * screen. At 4:3 this is EA's own position. */
-//-------------------------------------------------------------------------------------------------
-static Int hudEdgeX( Real fraction )
-{
- const Real s = ControlBarUniformScale();
- if( fraction < 0.5f )
- return REAL_TO_INT( fraction * 800.0f * s );
- return TheDisplay->getWidth() - REAL_TO_INT( ( 1.0f - fraction ) * 800.0f * s );
-}
-
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawClassicMessages( void )
-{
- fadeClassicMessages();
- if( !m_messagesOn )
- return;
-
- // the screen's own top left corner, not the menus' 4:3 box
- const Int x = m_messagePosition.x;
- Int y = m_messagePosition.y;
- for( Int i = CLASSIC_MESSAGES - 1; i >= 0; i-- )
- {
- ClassicMessage &line = m_classicMessages[ i ];
- if( line.text == NULL )
- continue;
- UnsignedByte r, g, b, a;
- GameGetColorComponents( line.color, &r, &g, &b, &a );
- line.text->draw( x, y, line.color, GameMakeColor( 0, 0, 0, a ) );
- y += line.text->getFont()->height;
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** EA's countdown line: the power's name right-aligned to x and its clock after it, in its owner's
- * colour, the ready one bold and flashing. The text is only set again when the second, the
- * readiness or a forced refresh changes it. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawClassicSuperweapon( SuperweaponInfo *info, const AsciiString &templateName, Bool isReady,
- Int readySecs, Int x, Int *y )
-{
- if( readySecs != (Int)info->m_timestamp || isReady != info->m_ready || info->m_forceUpdateText )
+ if( readySecs != (Int)info->m_timestamp || isReady != info->m_ready || info->m_forceUpdateText )
{
if( isReady )
info->setFont( m_superweaponReadyFont, m_superweaponReadyPointSize, m_superweaponReadyBold );
@@ -4630,53 +2955,20 @@ void InGameUI::message( UnicodeString format, ... )
} // end message
//-------------------------------------------------------------------------------------------------
-/** A message is a line of the event feed over the radar, Window/Html/Feed.html, the way the kill
- * feed runs in Dota. It used to be a column of text written over the battlefield's top left. */
+/** A message is a line of EA's list over the battlefield's top left. */
//-------------------------------------------------------------------------------------------------
void InGameUI::addMessageText( const UnicodeString& formattedMessage )
{
- if( TheGlobalData->isClassicUI() )
- {
- addClassicMessage( formattedMessage, NULL );
- return;
- }
- HtmlValues line;
- line[ "kind" ] = "note";
- line[ "before" ] = WideCharStringToMultiByte( formattedMessage.str() );
- addFeedLine( line );
+ addClassicMessage( formattedMessage, NULL );
}
//-------------------------------------------------------------------------------------------------
-/** A message about one player: his general's flag at its head and his name in his colour where the
- * text says it. A chat line, a player beaten, a player gone. */
+/** A message about one player, in his colour as EA wrote it: a player beaten, a player gone. */
//-------------------------------------------------------------------------------------------------
void InGameUI::playerMessage( Player *player, const UnicodeString &text )
{
- // EA wrote these lines in the player's colour
- if( TheGlobalData->isClassicUI() )
- {
- const Color color = player->getPlayerColor();
- addClassicMessage( text, &color );
- return;
- }
- HtmlValues line = spectatorHead( player );
- line[ "kind" ] = "player";
- line[ "portrait" ] = line[ "image" ];
- const std::string whole = WideCharStringToMultiByte( text.str() );
- const std::string name = WideCharStringToMultiByte( player->getPlayerDisplayName().str() );
- const size_t at = name.empty() ? std::string::npos : whole.find( name );
- if( at == std::string::npos )
- {
- line[ "before" ] = whole;
- line[ "name" ] = "";
- }
- else
- {
- line[ "before" ] = whole.substr( 0, at );
- line[ "name" ] = name;
- line[ "after" ] = whole.substr( at + name.size() );
- }
- addFeedLine( line );
+ const Color color = player->getPlayerColor();
+ addClassicMessage( text, &color );
}
//-------------------------------------------------------------------------------------------------
@@ -4694,241 +2986,40 @@ static Bool feedShows( const Player *player )
}
//-------------------------------------------------------------------------------------------------
-/** A command button's name, its hotkey marker taken out: "&A-10 Strike" is "A-10 Strike". */
-//-------------------------------------------------------------------------------------------------
-static std::string buttonName( const CommandButton *button )
-{
- std::string name = WideCharStringToMultiByte( TheGameText->fetch( button->getTextLabel() ).str() );
- name.erase( std::remove( name.begin(), name.end(), '&' ), name.end() );
- return name;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A line about something one player did: his flag and his name, the `cameo` it is pictured by,
- * `what` it is called and the string table's `label` for what happened, coloured by `tag`. */
+/** Once a second: a player whose last dozer, or last worker for the GLA, has just gone gets a line,
+ * since without one he can build nothing more. Only where feedShows says, and not for a player
+ * already beaten, whose last dozer went with everything else. */
//-------------------------------------------------------------------------------------------------
-void InGameUI::feedAct( Player *player, const Image *cameo, const std::string &what, const char *tag, const char *label )
+void InGameUI::watchDozers( void )
{
- // the feed's own lines, a power fired or a promotion bought: EA's list never carried them
- if( TheGlobalData->isClassicUI() )
+ const UnsignedInt frame = TheGameLogic->getFrame();
+ if( frame < m_dozerCheckFrame + LOGICFRAMES_PER_SECOND && frame >= m_dozerCheckFrame )
return;
- HtmlValues line = spectatorHead( player );
- line[ "kind" ] = "act";
- line[ "portrait" ] = line[ "image" ];
- line[ "image" ] = cameo ? cameo->getName().str() : "";
- line[ "what" ] = what;
- line[ "tag" ] = tag;
- line[ "tagtext" ] = WideCharStringToMultiByte( TheGameText->fetch( label ).str() );
- addFeedLine( line );
-}
+ m_dozerCheckFrame = frame;
-//-------------------------------------------------------------------------------------------------
-/** A special power fired. A superweapon with a countdown on everybody's screen is told to everybody,
- * the way EVA tells them; a general's power, one a promotion bought, only where feedShows says. A
- * unit's own ability is neither and writes nothing. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::feedSpecialPower( const Object *source, const AsciiString &powerName, const SpecialPowerTemplate *power )
-{
- Player *owner = source->getControllingPlayer();
- const CommandButton *button = powerButton( power );
- const Image *cameo = button ? button->getButtonImage() : NULL;
- const SuperweaponInfo *info = findSWInfo( owner->getPlayerIndex(), powerName, source->getID(), power );
- if( info != NULL )
+ KindOfMaskType dozers;
+ dozers.set( KINDOF_DOZER );
+ for( Int index = 0; index < ThePlayerList->getPlayerCount() && index < MAX_PLAYER_COUNT; index++ )
{
- if( !info->m_hiddenByScript && !info->m_hiddenByScience )
- {
- feedAct( owner, cameo, WideCharStringToMultiByte( source->getTemplate()->getDisplayName().str() ),
- "launched", "GUI:HudSuperweaponLaunched" );
- alertSuperweapon( owner, source->getTemplate()->getDisplayName(), "GUI:HudAlertLaunched" );
- }
- return;
+ Player *player = ThePlayerList->getNthPlayer( index );
+ const Bool has = player->isPlayableSide() && player->countObjects( dozers, KINDOFMASK_NONE ) > 0;
+ const Bool lost = m_hadDozer[ index ] && !has;
+ m_hadDozer[ index ] = has;
+ if( !lost || TheVictoryConditions->hasSinglePlayerBeenDefeated( player ) || !feedShows( player ) )
+ continue;
+
+ const Bool workers = player->getPlayerTemplate()->getSide().startsWith( "GLA" );
+ UnicodeString text;
+ text.format( TheGameText->fetch( workers ? "GUI:HudNoWorkerLeft" : "GUI:HudNoDozerLeft" ), player->getPlayerDisplayName().str() );
+ playerMessage( player, text );
}
- if( power->getRequiredScience() == SCIENCE_INVALID || button == NULL || !feedShows( owner ) )
- return;
- feedAct( owner, cameo, buttonName( button ), "used", "GUI:HudPowerUsed" );
}
//-------------------------------------------------------------------------------------------------
-/** A superweapon or an advanced tech building going up, or finished. A finished superweapon is told
- * to everybody, the way EVA tells them; the rest only where feedShows says. */
+/** Where the command bar starts on screen, or the screen's bottom while the bar is hidden: it is
+ * hidden while the game loads and in the observer views. */
//-------------------------------------------------------------------------------------------------
-void InGameUI::feedStructure( Object *structure, Bool finished )
-{
- // a silo whose missile can never fire is not news: no feed line and no banner for every player
- const Bool superweapon = structure->isKindOf( KINDOF_FS_SUPERWEAPON ) && !SuperweaponSiloSilencedInMatch( structure );
- if( !superweapon && !structure->isKindOf( KINDOF_FS_ADVANCED_TECH ) )
- return;
-
- Player *owner = structure->getControllingPlayer();
- if( !( finished && superweapon ) && !feedShows( owner ) )
- return;
- feedAct( owner, structure->getTemplate()->getButtonImage(),
- WideCharStringToMultiByte( structure->getTemplate()->getDisplayName().str() ),
- finished ? "built" : "started", finished ? "GUI:HudStructureBuilt" : "GUI:HudStructureStarted" );
- if( finished && superweapon )
- alertSuperweapon( owner, structure->getTemplate()->getDisplayName(), "GUI:HudAlertBuilt" );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A banner for a superweapon built, charged or fired, queued behind any already up: the same three
- * moments EVA calls out to every player, so it tells nobody anything EVA does not. Whose it is
- * is the colour alone, the owner's call: the local player's own neutral, an ally's blue, an enemy's
- * red. A watcher has no side and gets the neutral one. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::alertSuperweapon( Player *owner, const UnicodeString &name, const char *label )
-{
- const Player *local = ThePlayerList->getLocalPlayer();
- SuperweaponAlert alert;
- UnicodeString text;
- text.format( TheGameText->fetch( label ), name.str() );
- alert.text = WideCharStringToMultiByte( text.str() );
- if( !local->isPlayerActive() || owner == local )
- alert.whose = "own";
- else
- alert.whose = local->getRelationship( owner->getDefaultTeam() ) == ENEMIES ? "enemy" : "ally";
- if( m_alerts.empty() )
- m_alertStartMs = Clock_Milliseconds();
- m_alerts.push_back( alert );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The banner up now, under the top page and centred on the console, fading out at the end of its
- * time. How long it holds is the owner's rule and goes by what waits behind it: alone, four
- * seconds; with one more, two; with two or more, one. It is asked again every frame, so a banner
- * arriving while one is up can cut the one up short and never draws it out. Timed on the client's
- * wall clock, as the money plate's settle and the superweapon strip's breath are: a picture, not a
- * thing the match counts. Its page is laid out once per banner: the fade is the page's alpha,
- * applied as it draws. */
-//-------------------------------------------------------------------------------------------------
-static const UnsignedInt ALERT_FADE_MS = 600;
-static const char *const ALERT_PAGE = "Window\\Html\\Alert.html";
-
-static UnsignedInt alertHoldMs( size_t waiting )
-{
- static const UnsignedInt HOLD_ALONE_MS = 4000, HOLD_ONE_WAITING_MS = 2000, HOLD_MORE_WAITING_MS = 1000;
- return waiting == 0 ? HOLD_ALONE_MS : waiting == 1 ? HOLD_ONE_WAITING_MS : HOLD_MORE_WAITING_MS;
-}
-
-void InGameUI::drawAlertPage( void )
-{
- enum { ALERT_GAP = 14, ALERT_WIDTH = 360, ALERT_OPAQUE = 255 }; // the gap clear of the plates, the owner's "a bit lower"
- m_alertBottom = 0;
- const UnsignedInt nowMs = Clock_Milliseconds();
- while( !m_alerts.empty() && nowMs - m_alertStartMs >= alertHoldMs( m_alerts.size() - 1 ) )
- {
- m_alerts.erase( m_alerts.begin() );
- m_alertStartMs = nowMs;
- }
- if( m_alerts.empty() )
- return;
-
- if( !m_alertPageLoaded )
- {
- m_alertPageLoaded = TRUE;
- readHtmlPage( ALERT_PAGE, m_alertPage );
- }
- if( m_alertPage.empty() )
- return;
- if( m_alertOverlay == NULL )
- {
- m_alertOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_alertOverlay->setHud( TRUE );
- }
-
- const Real scale = ControlBarHudScale();
- const SuperweaponAlert &alert = m_alerts.front();
- HtmlValues values;
- // the console stands with the powers' widest kept free on its right, so its axis with them is the
- // screen's middle, the line the top page's plates hang on too
- values[ "left" ] = std::to_string( REAL_TO_INT_FLOOR( TheDisplay->getWidth() / 2 / scale + 0.5f ) - ALERT_WIDTH / 2 );
- values[ "width" ] = std::to_string( ALERT_WIDTH );
- values[ "top" ] = std::to_string( REAL_TO_INT_FLOOR( m_topBarBottom / scale + 0.5f ) + ALERT_GAP );
- values[ "whose" ] = alert.whose;
- values[ "text" ] = alert.text;
- m_alertOverlay->setPage( m_alertPage, values, HtmlLists(), lookupGameText );
-
- const UnsignedInt left = alertHoldMs( m_alerts.size() - 1 ) - ( nowMs - m_alertStartMs );
- m_alertOverlay->setAlpha( left < ALERT_FADE_MS ? (Int)( ALERT_OPAQUE * left / ALERT_FADE_MS ) : ALERT_OPAQUE );
- m_alertOverlay->draw();
- m_alertBottom = m_alertOverlay->bottomOf( "#alert" );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A promotion bought: the power or the unit it opens, by the promotion screen's own button. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::feedScience( Player *player, ScienceType science )
-{
- if( !feedShows( player ) )
- return;
-
- UnicodeString name, description;
- TheScienceStore->getNameAndDescription( science, name, description );
- const CommandButton *button = scienceButton( science );
- feedAct( player, button ? button->getButtonImage() : NULL, WideCharStringToMultiByte( name.str() ),
- "unlocked", "GUI:HudPromotionBought" );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Once a second: a player whose last dozer, or last worker for the GLA, has just gone gets a line,
- * since without one he can build nothing more. Only where feedShows says, and not for a player
- * already beaten, whose last dozer went with everything else. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::watchDozers( void )
-{
- const UnsignedInt frame = TheGameLogic->getFrame();
- if( frame < m_dozerCheckFrame + LOGICFRAMES_PER_SECOND && frame >= m_dozerCheckFrame )
- return;
- m_dozerCheckFrame = frame;
-
- KindOfMaskType dozers;
- dozers.set( KINDOF_DOZER );
- for( Int index = 0; index < ThePlayerList->getPlayerCount() && index < MAX_PLAYER_COUNT; index++ )
- {
- Player *player = ThePlayerList->getNthPlayer( index );
- const Bool has = player->isPlayableSide() && player->countObjects( dozers, KINDOFMASK_NONE ) > 0;
- const Bool lost = m_hadDozer[ index ] && !has;
- m_hadDozer[ index ] = has;
- if( !lost || TheVictoryConditions->hasSinglePlayerBeenDefeated( player ) || !feedShows( player ) )
- continue;
-
- const Bool workers = player->getPlayerTemplate()->getSide().startsWith( "GLA" );
- UnicodeString text;
- text.format( TheGameText->fetch( workers ? "GUI:HudNoWorkerLeft" : "GUI:HudNoDozerLeft" ), player->getPlayerDisplayName().str() );
- playerMessage( player, text );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** One more line at the bottom of the feed, up for FEED_LINE_FRAMES; past FEED_HISTORY_KEPT the oldest
- * goes. Every line is logged too, so a run can be read for what the feed said. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::addFeedLine( HtmlValues line )
-{
- // written out first: reading the names fills in the ones a kind leaves out, so every line held
- // has all of them and two of the same compare equal
- const std::string logged = line[ "kind" ] + ": " + line[ "before" ] + line[ "name" ] + line[ "after" ] + " " +
- line[ "what" ] + " " + line[ "tagtext" ];
-
- // one power fired from several of its owner's buildings on the same frame is one line, not three
- const UnsignedInt until = TheGameLogic->getFrame() + FEED_LINE_FRAMES;
- for( size_t each = 0; each < m_feedLines.size(); each++ )
- if( m_feedLines[ each ].until == until && m_feedLines[ each ].values == line )
- return;
-
- DEBUG_LOG(( "FEED frame %u %s\n", TheGameLogic->getFrame(), logged.c_str() ));
- FeedLine added;
- added.values = line;
- added.until = until;
- m_feedLines.push_back( added );
- if( m_feedLines.size() > FEED_HISTORY_KEPT )
- m_feedLines.erase( m_feedLines.begin() );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Where the command bar starts on screen, or the screen's bottom while the bar is hidden: it is
- * hidden while the game loads and in the observer views. */
-//-------------------------------------------------------------------------------------------------
-static Int controlBarTop( void )
+static Int controlBarTop( void )
{
static NameKeyType controlBarKey = TheNameKeyGenerator->nameToKey( "ControlBar.wnd:ControlBarParent" );
GameWindow *bar = TheWindowManager->winGetWindowFromId( NULL, controlBarKey );
@@ -4940,165 +3031,15 @@ static Int controlBarTop( void )
return barPos.y;
}
-static const char *const FEED_PAGE = "Window\\Html\\Feed.html";
-
-//-------------------------------------------------------------------------------------------------
-/** Where the feed starts on screen: under the menu key in the top left corner, or the screen's top
- * without the bar's page. */
-//-------------------------------------------------------------------------------------------------
-Int InGameUI::feedTop( void ) const
-{
- return m_controlBarPageShown ? m_feedTop : 0;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The event feed, Window/Html/Feed.html, for a player and a watcher alike: the oldest line at the
- * top, under the menu key in the top left corner, and the newest under it, the run growing down
- * the screen. The last FEED_LINES_KEPT lines are up for FEED_LINE_FRAMES each, and while the
- * chat is open every line held is, so Enter shows what was missed. The messages switch
- * (toggleMessages) takes the whole feed away. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawFeed( void )
-{
- // a frame going backwards is a loaded save, and a line from its future is not from this game
- const UnsignedInt frame = TheGameLogic->getFrame();
- for( size_t line = 0; line < m_feedLines.size(); )
- if( frame + FEED_LINE_FRAMES < m_feedLines[ line ].until )
- m_feedLines.erase( m_feedLines.begin() + line );
- else
- line++;
-
- const Bool history = IsInGameChatActive();
- const size_t shownFrom = history ? 0 : m_feedLines.size() - min( m_feedLines.size(), (size_t)FEED_LINES_KEPT );
- HtmlLists lists;
- std::vector< HtmlValues > &lines = lists[ "feed" ];
- for( size_t line = shownFrom; line < m_feedLines.size(); line++ )
- if( history || frame < m_feedLines[ line ].until )
- lines.push_back( m_feedLines[ line ].values );
- if( lines.empty() || !m_messagesOn || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
-
- if( !m_feedPageLoaded )
- {
- m_feedPageLoaded = TRUE;
- readHtmlPage( FEED_PAGE, m_feedPage );
- }
- if( m_feedPage.empty() )
- return;
- if( m_feedOverlay == NULL )
- {
- m_feedOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_feedOverlay->setHudPage( TRUE );
- }
-
- HtmlValues values;
- values[ "top" ] = std::to_string( REAL_TO_INT_FLOOR( feedTop() / ControlBarHudPageScale() ) );
- m_feedOverlay->setPage( m_feedPage, values, lists, lookupGameText );
- m_feedOverlay->draw();
-}
-
-static const char *const CHAT_PAGE = "Window\\Html\\Chat.html";
-
-enum
-{
- CHAT_LINE_FRAMES = LOGICFRAMES_PER_SECOND * 10, ///< how long a chat line stays up with the chat shut
- CHAT_FADE_FRAMES = LOGICFRAMES_PER_SECOND * 3 / 2, ///< the last of that, over which the shut chat fades out
- OPAQUE_PAGE = 255, ///< HtmlOverlay::setAlpha's full strength
- CHAT_LINES_KEPT = 8, ///< the most lines held, all of them shown while the chat is open
- CHAT_WIDTH = 360, ///< the chat's width, 800x600
- CHAT_BAR_HEIGHT = 22, ///< the typing bar's height with its padding and border, 800x600
- FEED_LINE_HEIGHT = 16, ///< a line of Feed.html with the pixel over it, 800x600
- FEED_FOOT = 3, ///< Feed.html's gap under its newest line, 800x600
- CHAT_OVER_FEED = 12, ///< the gap between the typing bar and the full feed under it, 800x600
- CHAT_CARET_FRAMES = LOGICFRAMES_PER_SECOND / 2 ///< the caret's blink, on and off
-};
-
//-------------------------------------------------------------------------------------------------
-/** A line of chat from `player`: his flag, his name in his colour, what he said. It goes into the
- * chat under the middle of the screen, Dota's way, not into the feed. */
+/** A line of chat from `player`, EA's way: "[name] text" in the message list, in his colour. */
//-------------------------------------------------------------------------------------------------
void InGameUI::chatMessage( Player *player, const UnicodeString &text )
{
- // EA's: "[name] text" in the message list, in the sender's colour
- if( TheGlobalData->isClassicUI() )
- {
- UnicodeString said;
- said.format( u"[%ls] %ls", player->getPlayerDisplayName().str(), text.str() );
- const Color color = player->getPlayerColor();
- addClassicMessage( said, &color );
- return;
- }
- FeedLine line;
- line.values = spectatorHead( player );
- line.values[ "text" ] = WideCharStringToMultiByte( text.str() );
- line.until = TheGameLogic->getFrame() + CHAT_LINE_FRAMES;
- DEBUG_LOG(( "CHAT frame %u %s: %s\n", TheGameLogic->getFrame(), line.values[ "name" ].c_str(), line.values[ "text" ].c_str() ));
- m_chatLines.push_back( line );
- if( m_chatLines.size() > CHAT_LINES_KEPT )
- m_chatLines.erase( m_chatLines.begin() );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The chat, Window/Html/Chat.html, in the top left corner under the feed, clear of it even with all
- * FEED_LINES_KEPT of its lines up so the chat does not move as the feed grows, and open, clear of
- * the feed's whole history over it too: shut, the talk round its newest line, fading out
- * together; open, the typing bar under every line held, the chat's own windows moved under it so
- * they take the keys and the clicks there and draw nothing. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawChat( void )
-{
- // Classic: EA's InGameChat.wnd draws itself where it was laid out, and the lines are messages
- if( !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() || TheGlobalData->isClassicUI() )
- return;
-
- // shut, the chat is the talk around its newest line: every line that came within CHAT_LINE_FRAMES
- // before it, up until CHAT_LINE_FRAMES after it and fading out together over the last
- // CHAT_FADE_FRAMES of that
- const UnsignedInt frame = TheGameLogic->getFrame();
- const UnsignedInt newestUntil = m_chatLines.empty() ? 0 : m_chatLines.back().until;
- const Bool active = IsInGameChatActive();
- HtmlLists lists;
- std::vector< HtmlValues > &lines = lists[ "chat" ];
- for( size_t line = 0; line < m_chatLines.size(); line++ )
- if( active || m_chatLines[ line ].until + CHAT_LINE_FRAMES >= newestUntil )
- lines.push_back( m_chatLines[ line ].values );
-
- // under the feed, clear of all FEED_LINES_KEPT of its lines so it does not move as the feed grows,
- // and open, clear of the feed's whole history over it too; the lines stand on the typing bar, which
- // stands under room for every line kept, so a line coming in does not move it
- const Real scale = ControlBarHudPageScale();
- const size_t feedLines = max( (size_t)FEED_LINES_KEPT, active ? m_feedLines.size() : 0 );
- const Int bar = REAL_TO_INT_FLOOR( feedTop() / scale ) + (Int)feedLines * FEED_LINE_HEIGHT + FEED_FOOT + CHAT_OVER_FEED +
- CHAT_LINES_KEPT * FEED_LINE_HEIGHT + FEED_FOOT;
-
- UnicodeString typed, audience;
- const Bool open = GetInGameChatEntry( typed, audience, 0, REAL_TO_INT_FLOOR( bar * scale ),
- REAL_TO_INT_CEIL( CHAT_WIDTH * scale ), REAL_TO_INT_CEIL( CHAT_BAR_HEIGHT * scale ) );
- if( !open && ( frame >= newestUntil || frame + CHAT_LINE_FRAMES < newestUntil ) )
- return;
-
- if( !m_chatPageLoaded )
- {
- m_chatPageLoaded = TRUE;
- readHtmlPage( CHAT_PAGE, m_chatPage );
- }
- if( m_chatPage.empty() )
- return;
- if( m_chatOverlay == NULL )
- {
- m_chatOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_chatOverlay->setHudPage( TRUE );
- }
-
- HtmlValues values;
- values[ "bar" ] = std::to_string( bar );
- values[ "open" ] = open ? "open" : "";
- values[ "typed" ] = WideCharStringToMultiByte( typed.str() );
- values[ "caret" ] = frame / CHAT_CARET_FRAMES % 2 == 0 ? "lit" : "";
- values[ "audience" ] = WideCharStringToMultiByte( audience.str() );
- m_chatOverlay->setPage( m_chatPage, values, lists, lookupGameText );
- m_chatOverlay->setAlpha( open ? OPAQUE_PAGE : min( (Int)OPAQUE_PAGE, (Int)( newestUntil - frame ) * OPAQUE_PAGE / CHAT_FADE_FRAMES ) );
- m_chatOverlay->draw();
+ UnicodeString said;
+ said.format( u"[%ls] %ls", player->getPlayerDisplayName().str(), text.str() );
+ const Color color = player->getPlayerColor();
+ addClassicMessage( said, &color );
}
//-------------------------------------------------------------------------------------------------
@@ -5171,212 +3112,6 @@ void InGameUI::addFormationDragPoint( const ICoord2D& pt )
updateFormationHints();
}
-//-------------------------------------------------------------------------------------------------
-// Ally cursors. Ten reports a second, on a network command of their own that carries two floats
-// and is never acked, resent or written to a replay - the simulation cannot see any of this, so
-// none of it can change what a match does.
-//
-// A cursor that has not been heard from for ALLY_CURSOR_HOLD_MS starts fading and is gone by
-// ALLY_CURSOR_GONE_MS, which is what an ally alt-tabbing away or dropping out looks like.
-//-------------------------------------------------------------------------------------------------
-static const UnsignedInt ALLY_CURSOR_SEND_INTERVAL_MS = 100; ///< ten a second, which reads as continuous once eased
-static const UnsignedInt ALLY_CURSOR_IDLE_RESEND_MS = 1000; ///< a still mouse still says so, or it would fade out
-static const UnsignedInt ALLY_CURSOR_HOLD_MS = 2500; ///< heard from this recently, drawn at full strength
-static const UnsignedInt ALLY_CURSOR_GONE_MS = 3500; ///< and faded out entirely by here
-static const Real ALLY_CURSOR_MOVED_DIST = 1.0f; ///< world units a cursor has to have moved to be worth a packet
-static const Real ALLY_CURSOR_EASE_MS = 110.0f; ///< how long the marker takes to catch up with a new report
-static const Real ALLY_CURSOR_JUMP_DIST = 400.0f; ///< further than this and it snaps instead: a camera jump is not a mouse move
-
-//-------------------------------------------------------------------------------------------------
-void InGameUI::clearAllyCursors( void )
-{
- for( Int i = 0; i < MAX_PLAYER_COUNT; ++i )
- {
- m_allyCursors[ i ].position.zero();
- m_allyCursors[ i ].shown.zero();
- m_allyCursors[ i ].heardMs = 0;
- m_allyCursors[ i ].known = FALSE;
- }
- m_allyCursorSentMs = 0;
- m_allyCursorSentPosition.zero();
- m_allyCursorEasedMs = 0;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** One ally's mouse, as they last reported it. The height is not on the wire: the terrain both
- * machines loaded answers that, and reading it here means a cursor over a hill sits on the hill
- * rather than at whatever height the sender's own camera happened to make of it. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::noteAllyCursor( Int playerIndex, Real x, Real y )
-{
- if( !isValidPlayerIndex( playerIndex ) )
- return;
-
- //
- // The sender addresses these to its allies, but the relay mask is not what decides who reads
- // one: the packet router processes every command that passes through it on its way to somebody
- // else, so without this the player holding that seat would watch the enemy's mouse. The check
- // belongs here anyway - a machine that has been made to send its cursor to everyone gets the
- // same answer, because whether two players are allied is not the sender's to assert.
- //
- if( !isAllyOfLocalPlayer( playerIndex ) )
- return;
-
- AllyCursor& cursor = m_allyCursors[ playerIndex ];
-
- cursor.position.x = x;
- cursor.position.y = y;
- cursor.position.z = TheTerrainLogic->getGroundHeight( x, y );
- cursor.heardMs = Clock_Milliseconds();
-
- // the first report of a match arrives wherever that ally is looking, which is nowhere near the
- // origin the marker starts at - easing in from there would draw a line across the whole map
- if( cursor.known == FALSE )
- {
- cursor.shown = cursor.position;
- cursor.known = TRUE;
- DEBUG_LOG(("ALLYCURSOR: first report from player %d at %.1f,%.1f\n", playerIndex, x, y));
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Is this player mutually allied with the one sitting at this machine. One-sided alliances are
- * not a partnership: a player who has declared for somebody who has not declared back does not get
- * to watch them work. */
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::isAllyOfLocalPlayer( Int playerIndex ) const
-{
- const Player *localPlayer = ThePlayerList->getLocalPlayer();
- const Player *player = ThePlayerList->getNthPlayer( playerIndex );
- if( localPlayer == NULL || player == NULL || player == localPlayer )
- return FALSE;
-
- if( !localPlayer->isPlayerActive() || !player->isPlayerActive() )
- return FALSE;
-
- return player->getRelationship( localPlayer->getDefaultTeam() ) == ALLIES &&
- localPlayer->getRelationship( player->getDefaultTeam() ) == ALLIES;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** How strongly an ally's cursor should be drawn, 0 for one that should not be drawn at all. */
-//-------------------------------------------------------------------------------------------------
-Real InGameUI::getAllyCursorFade( Int playerIndex ) const
-{
- if( !isValidPlayerIndex( playerIndex ) )
- return 0.0f;
-
- const AllyCursor& cursor = m_allyCursors[ playerIndex ];
- if( cursor.known == FALSE )
- return 0.0f;
-
- const UnsignedInt ageMs = Clock_Milliseconds() - cursor.heardMs;
- if( ageMs >= ALLY_CURSOR_GONE_MS )
- return 0.0f;
- if( ageMs <= ALLY_CURSOR_HOLD_MS )
- return 1.0f;
-
- return 1.0f - (Real)( ageMs - ALLY_CURSOR_HOLD_MS ) / (Real)( ALLY_CURSOR_GONE_MS - ALLY_CURSOR_HOLD_MS );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Walk every marker towards the spot its owner last reported. Ten reports a second drawn raw
- * would step; eased over about a tenth of a second they read as one hand moving. Wall clock
- * rather than frames, because the picture is uncapped. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::updateAllyCursors( void )
-{
- const UnsignedInt nowMs = Clock_Milliseconds();
- const UnsignedInt elapsedMs = ( m_allyCursorEasedMs == 0 ) ? 0 : ( nowMs - m_allyCursorEasedMs );
- m_allyCursorEasedMs = nowMs;
-
- Real step = (Real)elapsedMs / ALLY_CURSOR_EASE_MS;
- if( step > 1.0f )
- step = 1.0f;
-
- for( Int i = 0; i < MAX_PLAYER_COUNT; ++i )
- {
- AllyCursor& cursor = m_allyCursors[ i ];
- if( cursor.known == FALSE )
- continue;
-
- Coord3D delta = cursor.position;
- delta.sub( &cursor.shown );
-
- if( delta.length() > ALLY_CURSOR_JUMP_DIST )
- {
- cursor.shown = cursor.position;
- continue;
- }
-
- delta.scale( step );
- cursor.shown.add( &delta );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The slots this machine is mutually allied with, its own left out. An observer is allied with
- * nobody, so the mask comes back empty and nothing is sent. */
-//-------------------------------------------------------------------------------------------------
-Int InGameUI::allyPlayerMask( void ) const
-{
- Int mask = 0;
- for( Int slot = 0; slot < MAX_SLOTS; ++slot )
- {
- // the network's slot numbers and the player list's indices are two different numberings, and
- // "player<slot>" is the name that joins them - the same lookup in-game chat uses
- AsciiString playerName;
- playerName.format( "player%d", slot );
- const Player *player = ThePlayerList->findPlayerWithNameKey( TheNameKeyGenerator->nameToKey( playerName ) );
- if( player != NULL && isAllyOfLocalPlayer( player->getPlayerIndex() ) )
- mask |= ( 1 << slot );
- }
-
- return mask;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Tell the allies where this machine's mouse is pointing, at most ten times a second, and only
- * while it is over the map. A mouse that has not moved still reports once a second, or the
- * marker on the other screens would fade out while its owner sat thinking. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::sendLocalAllyCursor( void )
-{
- // the game as shipped sent no cursor to anybody
- if( !TheGlobalData->m_showAllyCursors || TheGlobalData->isClassicUI() )
- return;
-
- // TheNetwork is the whole test for "is this a game with other people in it"
- if( TheNetwork == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
-
- const UnsignedInt nowMs = Clock_Milliseconds();
- if( m_allyCursorSentMs != 0 && ( nowMs - m_allyCursorSentMs ) < ALLY_CURSOR_SEND_INTERVAL_MS )
- return;
-
- // a pointer over the command bar or off the top of the map has no map position, and a marker
- // parked on the last piece of ground it crossed on the way there would be a lie
- const MouseIO *mouse = TheMouse->getMouseStatus();
- Coord3D world;
- if( !TheTacticalView->screenToTerrain( &mouse->pos, &world ) )
- return;
-
- Coord3D moved = world;
- moved.sub( &m_allyCursorSentPosition );
- if( m_allyCursorSentMs != 0 && moved.length() < ALLY_CURSOR_MOVED_DIST &&
- ( nowMs - m_allyCursorSentMs ) < ALLY_CURSOR_IDLE_RESEND_MS )
- return;
-
- const Int mask = allyPlayerMask();
- if( mask == 0 )
- return;
-
- TheNetwork->sendAllyCursor( world.x, world.y, mask );
-
- m_allyCursorSentMs = nowMs;
- m_allyCursorSentPosition = world;
-}
-
//-------------------------------------------------------------------------------------------------
/** Work out who is going where, from the curve as it stands. This is the same arithmetic the logic
* runs when the button comes up - same curve, same filter, same total order - so what the player
@@ -5585,8 +3320,6 @@ void InGameUI::updateOrderHints( void )
markOrderHints();
bunchOrderHints();
}
-
- updateOrderFlags();
}
//-------------------------------------------------------------------------------------------------
@@ -5626,57 +3359,6 @@ void InGameUI::markOrderHints( void )
}
}
-//-------------------------------------------------------------------------------------------------
-/** EA's rally flag (the RallyPointMarker the control bar stands on a building's rally point) on
- * every flagged destination. Client-only drawables, kept from frame to frame and moved, so the
- * flag's flutter does not restart every frame. Reforged only; Classic has EA's move ring. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::updateOrderFlags( void )
-{
- size_t used = 0;
- const ThingTemplate *flagTemplate = TheGlobalData->isClassicUI() ? NULL : TheThingFactory->findTemplate( "RallyPointMarker" );
- Player *player = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
- if( flagTemplate && player )
- {
- const Color color = ( TheGlobalData->m_timeOfDay == TIME_OF_DAY_NIGHT ) ? player->getPlayerNightColor() : player->getPlayerColor();
- for( std::vector<OrderHint>::const_iterator it = m_drawnOrderHints.begin(); it != m_drawnOrderHints.end(); ++it )
- {
- if( it->mark != ORDER_MARK_FLAG )
- continue;
-
- Drawable *flag = NULL;
- if( used < m_orderFlagIDs.size() )
- flag = TheGameClient->findDrawableByID( m_orderFlagIDs[ used ] );
- if( flag == NULL )
- {
- flag = TheThingFactory->newDrawable( flagTemplate );
- if( flag == NULL )
- break;
- flag->setDrawableStatus( DRAWABLE_STATUS_NO_SAVE );
- if( used < m_orderFlagIDs.size() )
- m_orderFlagIDs[ used ] = flag->getID();
- else
- m_orderFlagIDs.push_back( flag->getID() );
- }
-
- Coord3D spot = it->to;
- spot.z = TheTerrainLogic->getGroundHeight( spot.x, spot.y );
- flag->setPosition( &spot );
- flag->setOrientation( TheGlobalData->m_downwindAngle );
- flag->setIndicatorColor( color );
- ++used;
- }
- }
-
- while( m_orderFlagIDs.size() > used )
- {
- Drawable *flag = TheGameClient->findDrawableByID( m_orderFlagIDs.back() );
- if( flag )
- TheGameClient->destroyDrawable( flag );
- m_orderFlagIDs.pop_back();
- }
-}
-
//-------------------------------------------------------------------------------------------------
/** One hint per selected unit, and one more per queued point it still owes. */
//-------------------------------------------------------------------------------------------------
@@ -6597,10 +4279,6 @@ Bool InGameUI::isHiddenByShroud( const Object *obj ) const
//-------------------------------------------------------------------------------------------------
void InGameUI::markNextOrderQueued( OrderQueueMode mode )
{
- // the game as shipped had no order list, and Classic sends the logic nothing it did not have
- if( TheGlobalData->isClassicUI() )
- return;
-
GameMessage *msg = TheMessageStream->appendMessage( GameMessage::MSG_QUEUE_NEXT_ORDER );
msg->appendIntegerArgument( mode );
}
@@ -6690,9 +4368,6 @@ void InGameUI::createMouseoverHint( const GameMessage *msg )
Bool underWindow = false;
if (io && TheWindowManager)
window = TheWindowManager->getWindowUnderCursor(io->pos.x, io->pos.y);
- // the bar's page's steel where no window of the bar stands, the top page's, is the HUD's too
- if (io && window == NULL)
- underWindow = isOnControlBarSteel( io->pos );
while (window)
{
@@ -6862,18 +4537,7 @@ void InGameUI::createMouseoverHint( const GameMessage *msg )
{
Int boxes = warehouseModule->getBoxesStored();
Int value = boxes * TheGlobalData->m_baseValuePerSupplyBox;
- Int startingBoxes = warehouseModule->getStartingBoxes();
- if( startingBoxes > 0 && !TheGlobalData->isClassicUI() )
- {
- // what is left against what the pile began the match with; it can be stocked past that
- Int percent = min( 100, boxes * 100 / startingBoxes );
- warehouseFeedback.format(TheGameText->fetch("TOOLTIP:SupplyWarehousePercent"), value, percent);
- }
- else
- {
- // a map or a mod that starts the pile empty gives no total to take a share of: cash alone
- warehouseFeedback.format(TheGameText->fetch("TOOLTIP:SupplyWarehouse"), value);
- }
+ warehouseFeedback.format(TheGameText->fetch("TOOLTIP:SupplyWarehouse"), value);
str.concat(warehouseFeedback);
// the lobby's supply pile limit: say so when this player's gatherers would be turned away
if( warehouseModule->isClosedToPlayer( ThePlayerList->getLocalPlayer() ) )
@@ -7041,9 +4705,6 @@ void InGameUI::createCommandHint( const GameMessage *msg )
Bool underWindow = false;
if (io && TheWindowManager)
window = TheWindowManager->getWindowUnderCursor(io->pos.x, io->pos.y);
- // the bar's page's steel where no window of the bar stands, the top page's, is the HUD's too
- if (io && window == NULL)
- underWindow = isOnControlBarSteel( io->pos );
while (window)
@@ -7268,17 +4929,11 @@ void InGameUI::createCommandHint( const GameMessage *msg )
}
//-------------------------------------------------------------------------------------------------
-/** Force fire is the attack key alone in Reforged. Ctrl held is how the game as shipped force
- * fired, and Classic is that game. */
+/** Force fire is the attack key armed, or Ctrl held the way the game as shipped force fired. */
//-------------------------------------------------------------------------------------------------
-Bool InGameUI_isForceFireOn( Bool forceAttackArmed, Bool ctrlHeld, Bool classicUI )
-{
- return forceAttackArmed || ( classicUI && ctrlHeld );
-}
-
Bool InGameUI::isForceFireOn( void ) const
{
- return InGameUI_isForceFireOn( m_forceAttackArmed, m_forceAttackMode, TheGlobalData->isClassicUI() );
+ return m_forceAttackArmed || m_forceAttackMode;
}
//-------------------------------------------------------------------------------------------------
@@ -7478,7 +5133,6 @@ void InGameUI::placeBuildAvailable( const ThingTemplate *build, Drawable *buildD
// if building something, no radius cursor, thankew
if (build != NULL)
setRadiusCursorNone();
- m_placementRangeRingUp = FALSE;
//
// if we're setting another place available, but we're somehow already in the placement
@@ -7810,8 +5464,7 @@ Bool InGameUI::gridPlacementOn( void ) const
//-------------------------------------------------------------------------------------------------
Bool InGameUI::placesRow( void )
{
- // Classic places one structure a click, as the game shipped
- return m_pendingPlaceType != NULL && TheKeyboard && !TheGlobalData->isClassicUI() &&
+ return m_pendingPlaceType != NULL && TheKeyboard &&
( TheKeyboard->isShift() || TheKeyboard->isAlt() ) &&
!TheBuildAssistant->isLineBuildTemplate( m_pendingPlaceType );
}
@@ -7866,10 +5519,6 @@ static const Real AREA_PICK_STEP = 1.15f; ///< what one notch of the wheel mult
//-------------------------------------------------------------------------------------------------
Bool InGameUI::isAreaPicking( void ) const
{
- // Classic's guard holds the standard range: no ring under the cursor and nothing for the wheel
- if( TheGlobalData->isClassicUI() )
- return FALSE;
-
if( m_guardArmed )
return TRUE;
@@ -8603,13 +6252,7 @@ void InGameUI::disregardDrawable( Drawable *draw )
void InGameUI::postDraw( void )
{
// drawHudOverlay is NOT called here - it goes on top of everything, see W3DInGameUI::draw
- drawProductionStrip();
- drawSkillStrip(); // the same shelf, the other end of it
- drawBlindSpots();
- drawPlacementReach(); // after the shade, so the outline stays bright over it
- drawSpectatorPage();
- drawFeed();
- drawChat();
+ drawProductionList();
drawClassicMessages();
if( m_militarySubtitle )
@@ -8645,21 +6288,18 @@ void InGameUI::postDraw( void )
if (TheGameLogic->getFrame() > 0 )
{
//
- // The countdowns are cameos in the top right, not a column of names and clocks running down
- // over the battlefield. A superweapon is recognised by the picture it is fired from, a name
- // and a colon and a clock is a paragraph to read at a glance, and eight of them was a wall
- // of text over the terrain. Everything the loop below finds is gathered into one list and
- // laid out at the end of it, soonest first.
+ // EA's column of names and clocks in the top right. Everything the loop below finds is
+ // gathered first and written at the end of it, the soonest ready at the top, so the one that
+ // matters next is always the first line however many are behind it.
//
- m_superweaponIconCount = 0;
- m_spectatorSuperweapons.clear();
-
- // the Classic interface writes EA's column of names and clocks instead, in the top right
- const Bool classic = TheGlobalData->isClassicUI();
- const Int screenH = TheDisplay->getHeight();
- const Int classicX = hudEdgeX( m_superweaponPosition.x );
- Int classicY = REAL_TO_INT( m_superweaponPosition.y * screenH );
- const Int classicBottom = REAL_TO_INT( screenH * 0.8f * 0.82f ); // EA's: the view above its bar
+ struct ListedSuperweapon
+ {
+ SuperweaponInfo *info;
+ const AsciiString *templateName;
+ Bool ready;
+ Int seconds;
+ };
+ std::vector< ListedSuperweapon > listed;
for (Int i=0; i<MAX_PLAYER_COUNT; ++i)
{
@@ -8702,12 +6342,6 @@ void InGameUI::postDraw( void )
{
if ( TheGameLogic->getFrame() > 0 )
{
- feedAct( owningObject->getControllingPlayer(), superweaponCameo( info->getSpecialPowerTemplate() ),
- WideCharStringToMultiByte( owningObject->getTemplate()->getDisplayName().str() ),
- "ready", "GUI:HudSuperweaponReady" );
- alertSuperweapon( owningObject->getControllingPlayer(), owningObject->getTemplate()->getDisplayName(),
- "GUI:HudAlertReady" );
-
SpecialPowerType type = module->getSpecialPowerTemplate()->getSpecialPowerType();
Player *localPlayer = ThePlayerList->getLocalPlayer();
@@ -8769,39 +6403,8 @@ void InGameUI::postDraw( void )
info->m_evaReadyPlayed = false; // Reset Eva for next time
}
- if ( classic )
- {
- if ( !m_superweaponHiddenByScript && classicY < classicBottom )
- drawClassicSuperweapon( info, mapIt->first, isReady, readySecs, classicX, &classicY );
- }
- // hand it to the strip
- else if ( !m_superweaponHiddenByScript )
- {
- info->m_forceUpdateText = false;
- info->m_ready = isReady;
- info->m_timestamp = readySecs;
-
- //
- // How far through the charge it is, for the radial sweep. The module knows the
- // frame it comes ready on and the template knows how long a whole charge takes,
- // and the difference between the two is everything that has already been paid.
- //
- const UnsignedInt reload = info->getSpecialPowerTemplate()->getReloadTime();
- Int percent = 100;
- if ( !isReady && reload > 0 )
- {
- const UnsignedInt left = ( module->getReadyFrame() > TheGameLogic->getFrame() )
- ? module->getReadyFrame() - TheGameLogic->getFrame() : 0;
- percent = ( left >= reload ) ? 0
- : REAL_TO_INT( 100.0f * (Real)( reload - left ) / (Real)reload );
- }
-
- const CommandButton *button = powerButton( info->getSpecialPowerTemplate() );
- const Image *cameo = button ? button->getButtonImage() : NULL;
- addSuperweaponIcon( cameo, readySecs, percent, isReady, info->getColor() );
- SpectatorSuperweapon listed = { i, cameo, readySecs, isReady, button };
- m_spectatorSuperweapons.push_back( listed );
- }
+ ListedSuperweapon line = { info, &mapIt->first, isReady, readySecs };
+ listed.push_back( line );
if (info->getSpecialPowerTemplate()->isSharedNSync())
break; // Wow, it is almost too easy!
// This prevents redundant timers for shared powers/superweapons
@@ -8816,18 +6419,46 @@ void InGameUI::postDraw( void )
}
}
- if( !classic )
- drawSuperweaponStrip();
- }
+ if( !m_superweaponHiddenByScript )
+ {
+ std::stable_sort( listed.begin(), listed.end(), []( const ListedSuperweapon &a, const ListedSuperweapon &b )
+ { return a.ready != b.ready ? a.ready : a.seconds < b.seconds; } );
+
+ const Int screenH = TheDisplay->getHeight();
+ const Int x = hudEdgeX( m_superweaponPosition.x );
+ Int y = REAL_TO_INT( m_superweaponPosition.y * screenH );
+ const Int bottom = REAL_TO_INT( screenH * 0.8f * 0.82f ); // EA's: the view above its bar
+ size_t drawn = 0;
+ for( ; drawn < listed.size() && drawn < SUPERWEAPON_LIST_LINES && y < bottom; drawn++ )
+ drawClassicSuperweapon( listed[ drawn ].info, *listed[ drawn ].templateName, listed[ drawn ].ready,
+ listed[ drawn ].seconds, x, &y );
+
+ // the rest as one line, right-aligned to the names over it
+ if( drawn < listed.size() )
+ {
+ UnicodeString more;
+ more.format( TheGameText->fetch( "GUI:ListMore" ), (Int)( listed.size() - drawn ) );
+ if( m_superweaponMoreText == NULL )
+ {
+ m_superweaponMoreText = TheDisplayStringManager->newDisplayString();
+ m_superweaponMoreText->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
+ TheGlobalLanguageData->adjustFontSize( m_superweaponNormalPointSize ), m_superweaponNormalBold ) );
+ }
+ if( m_superweaponMoreText->getText().compare( more ) != 0 )
+ m_superweaponMoreText->setText( more );
+ m_superweaponMoreText->draw( x - m_superweaponMoreText->getWidth(), y, GameMakeColor( 255, 255, 255, 255 ),
+ GameMakeColor( 0, 0, 0, 255 ) );
+ }
+ }
+ }
// draw named timers
if (TheGameLogic->getFrame() > 0 && m_showNamedTimers)
{
// Int namedTimerCount = 0;
Bool reverseXDir = (m_namedTimerPosition.x >= 0.5f);
- // Classic keeps EA's column as far in from the right edge as EA had it, at the HUD's scale
- Int startX = TheGlobalData->isClassicUI() ? hudEdgeX( m_namedTimerPosition.x )
- : (Int)(m_namedTimerPosition.x * TheDisplay->getWidth());
+ // EA's column as far in from the right edge as EA had it, at the HUD's scale
+ Int startX = hudEdgeX( m_namedTimerPosition.x );
Int startY = (Int)(m_namedTimerPosition.y * TheDisplay->getHeight());
Color bgColor = GameMakeColor( 0, 0, 0, 255 );
for (NamedTimerMapIt mapIt = m_namedTimers.begin(); mapIt != m_namedTimers.end(); ++mapIt)
@@ -9168,14 +6799,11 @@ void InGameUI::militarySubtitle( const AsciiString& label, Int duration )
// disable tooltips until this frame, cause we don't want to collide with the military subtitles.
TheInGameUI->disableTooltipsUntil(messageTimeout);
- // calculate where this screen position should be since the position being passed in is based off 8x6
- // Classic: at the HUD's one scale from the screen's top left, as the messages are
+ // the position passed in is an 800x600 one: at the HUD's one scale from the screen's top left, as
+ // the messages are
Coord2D multiplier;
const UIRect box = { 0, 0, (Int)TheDisplay->getWidth(), (Int)TheDisplay->getHeight() };
- multiplier.x = (float)box.w / 800.0f;
- multiplier.y = (float)box.h / 600.0f;
- if( TheGlobalData->isClassicUI() )
- multiplier.x = multiplier.y = ControlBarUniformScale();
+ multiplier.x = multiplier.y = ControlBarUniformScale();
// lets bring out the data structure!
m_militarySubtitle = NEW MilitarySubtitleData;
@@ -9489,6542 +7117,2613 @@ Bool InGameUI::canSelectedObjectsDoAction( ActionType action, const Object *obje
success = false;
break;
}
- success = (obj->isKindOf(KINDOF_AUTO_RALLYPOINT) && obj->isLocallyControlled());
- break;
- }
- }
-
- if( success )
- {
- if( rule == SELECTION_ANY )
- {
- return TRUE;
- }
-
- ++qualify;
- }
- } // end for
-
- //If the rule is all must qualify, do the check now and return success
- //only if all the selected units qualified.
- if( rule == SELECTION_ALL && count > 0 && qualify == count )
- {
- return TRUE;
- }
-
- // no can do!
- return FALSE;
-}
-
-//------------------------------------------------------------------------------
-Bool InGameUI::canSelectedObjectsDoSpecialPower( const CommandButton *command, const Object *objectToInteractWith, const Coord3D *position, SelectionRules rule, UnsignedInt commandOptions, Object* ignoreSelObj ) const
-{
- //Get the special power template.
- const SpecialPowerTemplate *spTemplate = command->getSpecialPowerTemplate();
-
- //Order of precendence:
- //1) NO TARGET OR POS
- //2) COMMAND_OPTION_NEED_OBJECT_TARGET
- //3) NEED_TARGET_POS
- Bool doAtPosition = BitTest( command->getOptions(), NEED_TARGET_POS );
- Bool doAtObject = BitTest( command->getOptions(), COMMAND_OPTION_NEED_OBJECT_TARGET );
-
- //Sanity checks
- if( doAtObject && !objectToInteractWith )
- {
- return false;
- }
- if( doAtPosition && !position )
- {
- return false;
- }
-
- // get selected list of drawables
- Drawable* ignoreSelDraw = ignoreSelObj ? ignoreSelObj->getDrawable() : NULL;
-
- DrawableList tmpList;
- if (ignoreSelDraw)
- tmpList.push_back(ignoreSelDraw);
-
- const DrawableList* selected = (tmpList.size() > 0) ? &tmpList : TheInGameUI->getAllSelectedDrawables();
-
- // set up counters for rule checking
- Int count = 0;
- Int qualify = 0;
-
- // loop through all the selected drawables
- for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
- {
-
- // get this drawable
- Drawable* other = *it;
- count++;
-
- if( !doAtObject && !doAtPosition )
- {
- if( TheActionManager->canDoSpecialPower( other->getObject(), spTemplate, CMD_FROM_PLAYER, commandOptions ) )
- {
- //This is the no target version
- if( rule == SELECTION_ANY )
- {
- return true;
- }
- qualify++;
- }
- }
- else if( doAtObject )
- {
- if( TheActionManager->canDoSpecialPowerAtObject( other->getObject(), objectToInteractWith, CMD_FROM_PLAYER, spTemplate, commandOptions ) )
- {
- //This requires a object target
- if( rule == SELECTION_ANY )
- {
- return true;
- }
- qualify++;
- }
- }
- else if( doAtPosition )
- {
- if( TheActionManager->canDoSpecialPowerAtLocation( other->getObject(), position, CMD_FROM_PLAYER, spTemplate, objectToInteractWith, commandOptions ) )
- {
- //This requires a valid location.
- if( rule == SELECTION_ANY )
- {
- return true;
- }
- qualify++;
- }
- }
- }
- if( rule == SELECTION_ALL && count > 0 && qualify == count )
- {
- return true;
- }
- return false;
-}
-
-//------------------------------------------------------------------------------
-Bool InGameUI::canSelectedObjectsOverrideSpecialPowerDestination( const Coord3D *loc, SelectionRules rule, SpecialPowerType spType ) const
-{
- // set up counters for rule checking
- Int count = 0;
- Int qualify = 0;
-
- // get selected list of drawables
- const DrawableList *selected = TheInGameUI->getAllSelectedDrawables();
-
- // loop through all the selected drawables
- Drawable *other;
- for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
- {
-
- // get this drawable
- other = *it;
- count++;
-
- if( TheActionManager->canOverrideSpecialPowerDestination( other->getObject(), loc, spType, CMD_FROM_PLAYER ) )
- {
- if( rule == SELECTION_ANY )
- {
- return true;
- }
- qualify++;
- }
- }
- if( rule == SELECTION_ALL && count > 0 && qualify == count )
- {
- return true;
- }
- return false;
-}
-
-
-//------------------------------------------------------------------------------
-Bool InGameUI::canSelectedObjectsEffectivelyUseWeapon( const CommandButton *command, const Object *objectToInteractWith, const Coord3D *position, SelectionRules rule ) const
-{
- //Get the special power template.
- WeaponSlotType slot = command->getWeaponSlot();
-
- //Order of precendence:
- //1) NO TARGET OR POS
- //2) COMMAND_OPTION_NEED_OBJECT_TARGET
- //3) NEED_TARGET_POS
- Bool doAtPosition = BitTest( command->getOptions(), NEED_TARGET_POS );
- Bool doAtObject = BitTest( command->getOptions(), COMMAND_OPTION_NEED_OBJECT_TARGET );
-
- //Sanity checks
- if( doAtObject && !objectToInteractWith )
- {
- return false;
- }
- if( doAtPosition && !position )
- {
- return false;
- }
-
- // get selected list of drawables
- const DrawableList *selected = TheInGameUI->getAllSelectedDrawables();
-
- // set up counters for rule checking
- Int count = 0;
- Int qualify = 0;
-
- // loop through all the selected drawables
- Drawable *other;
- for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
- {
-
- // get this drawable
- other = *it;
- count++;
-
- if( !doAtObject && !doAtPosition )
- {
- if( TheActionManager->canFireWeapon( other->getObject(), slot, CMD_FROM_PLAYER ) )
- {
- //This is the no target version
- if( rule == SELECTION_ANY )
- {
- return true;
- }
- qualify++;
- }
- }
- else if( doAtObject )
- {
- if( TheActionManager->canFireWeaponAtObject( other->getObject(), objectToInteractWith, CMD_FROM_PLAYER, slot ) )
- {
- //This requires a object target
- if( rule == SELECTION_ANY )
- {
- return true;
- }
- qualify++;
- }
- }
- else if( doAtPosition )
- {
- if( TheActionManager->canFireWeaponAtLocation( other->getObject(), position, CMD_FROM_PLAYER, slot, objectToInteractWith ) )
- {
- //This requires a valid location.
- if( rule == SELECTION_ANY )
- {
- return true;
- }
- qualify++;
- }
- }
- }
- if( rule == SELECTION_ALL && count > 0 && qualify == count )
- {
- return true;
- }
- return false;
-}
-
-// ------------------------------------------------------------------------------------------------
-Int InGameUI::selectAllUnitsByTypeAcrossRegion( IRegion2D *region, KindOfMaskType mustBeSet, KindOfMaskType mustBeClear )
-{
- KindOfSelectionData data;
- Int newSelectionCount = 0;
- Int oldSelectionCount = getAllSelectedDrawables()->size();
-
- data.m_mustbeSet = mustBeSet;
- data.m_mustbeClear = mustBeClear;
-
- if (region)
- {
- TheTacticalView->iterateDrawablesInRegion(region, kindOfUnitSelection, (void *)&data);
- newSelectionCount += data.newlySelectedDrawables.size();
- }
- else
- {
- // loop over the map
- Drawable *temp = TheGameClient->firstDrawable();
- while( temp )
- {
- if( kindOfUnitSelection( temp, (void *)&data) )
- {
- newSelectionCount ++;
- }
-
- temp = temp->getNextDrawable();
- }
- }
- setDisplayedMaxWarning( FALSE );
-
- if (newSelectionCount > 0)
- {
- // create selected message
- GameMessage *teamMsg = TheMessageStream->appendMessage( GameMessage::MSG_CREATE_SELECTED_GROUP );
-
- teamMsg->appendBooleanArgument( (oldSelectionCount == 0) ? TRUE : FALSE );
-
- const Drawable *draw;
-
- //Loop through each drawable add append it's objectID to the event.
- for( DrawableListCIt it = data.newlySelectedDrawables.begin(); it != data.newlySelectedDrawables.end(); ++it )
- {
- draw = *it;
- if( draw && draw->getObject() )
- {
- teamMsg->appendObjectIDArgument( draw->getObject()->getID() );
- }
- }
- }
-
- return newSelectionCount;
-}
-
-// ------------------------------------------------------------------------------------------------
-/** Selects maching units on the screen */
-// ------------------------------------------------------------------------------------------------
-Int InGameUI::selectMatchingAcrossRegion( IRegion2D *region )
-{
- const DrawableList *selected = getAllSelectedDrawables();
-
- /* loop through all the selected drawables and create a set of all the objects,
- so that you only iterate once through each type of object
- */
-
- const Drawable *draw;
-
- //std::set<AsciiString> drawableList;
- std::set<const ThingTemplate*> drawableList;
- Bool carBomb = FALSE;
-
- for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
- {
- // get this drawable
- draw = *it;
- if( draw && draw->getObject() && draw->getObject()->isLocallyControlled() )
- {
- // Use the Object's thing template, doing so will prevent wierdness for disguised vehicles.
- drawableList.insert( draw->getObject()->getTemplate() );
- if( draw->getObject()->testStatus( OBJECT_STATUS_IS_CARBOMB ) )
- {
- carBomb = TRUE;
- }
- }
- }
-
- if (drawableList.size() == 0)
- return -1; // nothing useful selected to begin with - don't bother iterating
-
- std::set<const ThingTemplate*>::iterator iter;
- const ThingTemplate *templateName;
-
- // now use the list to select across screen
- MatchingUnitSelectionData data;
- Int newSelectionCount = 0;
-
- for( iter = drawableList.begin(); iter != drawableList.end(); ++iter )
- {
- // get this drawable
- templateName = *iter;
-
- data.templateToSelect = templateName;
- data.isCarBomb = carBomb;
- if (region)
- newSelectionCount +=TheTacticalView->iterateDrawablesInRegion(region, similarUnitSelection, (void *)&data);
- else
- {
- // loop over the map
- Drawable *temp = TheGameClient->firstDrawable();
- while( temp )
- {
- newSelectionCount += similarUnitSelection( temp, (void *)&data);
- temp = temp->getNextDrawable();
- }
- }
- setDisplayedMaxWarning( FALSE );
- }
-
- if (newSelectionCount > 0)
- {
- // create selected message
- GameMessage *teamMsg = TheMessageStream->appendMessage( GameMessage::MSG_CREATE_SELECTED_GROUP_NO_SOUND );
- // not creating a new team so pass in false
- teamMsg->appendBooleanArgument( FALSE );
-
- //Loop through each drawable add append it's objectID to the event.
- for( DrawableListCIt it = data.newlySelectedDrawables.begin(); it != data.newlySelectedDrawables.end(); ++it )
- {
- draw = *it;
- if( draw && draw->getObject() )
- {
- teamMsg->appendObjectIDArgument( draw->getObject()->getID() );
- }
- }
- }
-
- return newSelectionCount;
-
-}
-
-// ------------------------------------------------------------------------------------------------
-Int InGameUI::selectAllUnitsByTypeAcrossScreen(KindOfMaskType mustBeSet, KindOfMaskType mustBeClear)
-{
- /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
-
- IRegion2D region;
- ICoord2D origin;
- ICoord2D size;
-
- TheTacticalView->getOrigin( &origin.x, &origin.y );
- size.x = TheTacticalView->getWidth();
- size.y = TheTacticalView->getHeight();
-
- buildRegion( &origin, &size, &region );
-
- Int numSelected = selectAllUnitsByTypeAcrossRegion(&region, mustBeSet, mustBeClear);
- if (numSelected == -1)
- {
- UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
- TheInGameUI->message( message );
- }
- else if (numSelected == 0)
- {
- }
- else
- {
- UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossScreen" );
- TheInGameUI->message( message );
- }
- return numSelected;
-}
-
-// ------------------------------------------------------------------------------------------------
-/** Selects maching units on the screen */
-// ------------------------------------------------------------------------------------------------
-Int InGameUI::selectMatchingAcrossScreen( void )
-{
- /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
-
- IRegion2D region;
- ICoord2D origin;
- ICoord2D size;
-
- TheTacticalView->getOrigin( &origin.x, &origin.y );
- size.x = TheTacticalView->getWidth();
- size.y = TheTacticalView->getHeight();
-
- buildRegion( &origin, &size, &region );
-
- Int numSelected = selectMatchingAcrossRegion(&region);
- if (numSelected == -1)
- {
- UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
- TheInGameUI->message( message );
- }
- else if (numSelected == 0)
- {
- }
- else
- {
- UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossScreen" );
- TheInGameUI->message( message );
- }
- return numSelected;
-}
-
-//-------------------------------------------------------------------------------------------------
-Int InGameUI::selectAllUnitsByTypeAcrossMap(KindOfMaskType mustBeSet, KindOfMaskType mustBeClear)
-{
- /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
- Int numSelected = selectAllUnitsByTypeAcrossRegion(NULL, mustBeSet, mustBeClear);
- if (numSelected == -1)
- {
- UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
- TheInGameUI->message( message );
- }
- else if (numSelected == 0)
- {
- Drawable *draw = TheInGameUI->getFirstSelectedDrawable();
- if( !draw || !draw->getObject() || !draw->getObject()->isKindOf( KINDOF_STRUCTURE ) )
- {
- UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossMap" );
- TheInGameUI->message( message );
- }
- }
- else
- {
- UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossMap" );
- TheInGameUI->message( message );
- }
- return numSelected;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Selects matching units across map */
-//-------------------------------------------------------------------------------------------------
-Int InGameUI::selectMatchingAcrossMap()
-{
- /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
- Int numSelected = selectMatchingAcrossRegion(NULL);
- if (numSelected == -1)
- {
- UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
- TheInGameUI->message( message );
- }
- else if (numSelected == 0)
- {
- Drawable *draw = TheInGameUI->getFirstSelectedDrawable();
- if( !draw || !draw->getObject() || !draw->getObject()->isKindOf( KINDOF_STRUCTURE ) )
- {
- UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossMap" );
- TheInGameUI->message( message );
- }
- }
- else
- {
- UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossMap" );
- TheInGameUI->message( message );
- }
- return numSelected;
-}
-
-//-------------------------------------------------------------------------------------------------
-Int InGameUI::selectAllUnitsByType(KindOfMaskType mustBeSet, KindOfMaskType mustBeClear)
-{
- /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
- Int numSelected = selectAllUnitsByTypeAcrossScreen(mustBeSet, mustBeClear);
- if (numSelected == -1)
- {
- return numSelected;
- }
-
- if (numSelected == 0)
- {
- Int numSelectedAcrossMap = selectAllUnitsByTypeAcrossMap(mustBeSet, mustBeClear);
- return numSelectedAcrossMap;
- }
- return numSelected;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Selects matching units, either on screen or across map. When called by pressing 'T',
- their is not a way to tell if the game is supposed to select across the screen, or
- across the map. For mouse clicks, i.e. Alt + click or double click, we can directly call
- selectMatchingAcrossScreen or selectMatchingAcrossMap */
-//-------------------------------------------------------------------------------------------------
-Int InGameUI::selectUnitsMatchingCurrentSelection()
-{
- /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
- Int numSelected = selectMatchingAcrossScreen();
- if (numSelected == -1)
- return numSelected;
- if (numSelected == 0)
- {
- Int numSelectedAcrossMap = selectMatchingAcrossMap();
- //if (numSelectedAcrossMap < 1)
- //{
- //UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
- //TheInGameUI->message( message );
- //}
- return numSelectedAcrossMap;
- }
- return numSelected;
-
-}
-
-//-----------------------------------------------------------------------------
-/**
- * Given an "anchor" point and the current mouse position (dest),
- * construct a valid 2D bounding region.
- */
-//-----------------------------------------------------------------------------------
-void InGameUI::buildRegion( const ICoord2D *anchor, const ICoord2D *dest, IRegion2D *region )
-{
- // build rectangular region defined by the drag selection
- if (anchor->x < dest->x)
- {
- region->lo.x = anchor->x;
- region->hi.x = dest->x;
- }
- else
- {
- region->lo.x = dest->x;
- region->hi.x = anchor->x;
- }
-
- if (anchor->y < dest->y)
- {
- region->lo.y = anchor->y;
- region->hi.y = dest->y;
- }
- else
- {
- region->lo.y = dest->y;
- region->hi.y = anchor->y;
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Add a new floating text to our list */
-//-------------------------------------------------------------------------------------------------
-FloatingTextData *InGameUI::addFloatingText(const UnicodeString& text,const Coord3D *pos, Color color)
-{
- if( !TheGameLogic->getDrawIconUI() )
- return NULL;
-
- {
- FloatingTextData *newFTD = newInstance( FloatingTextData );
- newFTD->m_frameCount = 0;
- // the money a supply drop pays is drawn in its owner's colour, and the code that raises it
- // is in GameLogic, where the scheme does not exist
- newFTD->m_color = clientColor( color );
- newFTD->m_pos3D.x = pos->x;
- newFTD->m_pos3D.z = pos->z;
- newFTD->m_pos3D.y = pos->y;
- newFTD->m_text = text;
- newFTD->m_dString->setText(text);
-
-
- if(m_floatingTextTimeOut <= 0)
- newFTD->m_frameTimeOut = TheGameLogic->getFrame() + DEFAULT_FLOATING_TEXT_TIMEOUT;
- else
- newFTD->m_frameTimeOut = TheGameLogic->getFrame() + m_floatingTextTimeOut;
-
- m_floatingTextList.push_front( newFTD ); // add to the list
- return newFTD;
- }
-}
-
-/** Each signal's mark on the ground, by SignalKind: Art/Textures/<name>.tga, drawn by
- * Tools/signal_marks.py, white where the sender's colour goes. */
-static const char *const SIGNAL_MARK_TEXTURES[ SIGNAL_KIND_COUNT ] =
-{
- "ReforgedSignalAttack", "ReforgedSignalDefend", "ReforgedSignalLook"
-};
-
-enum
-{
- SIGNAL_MARK_SIZE = 160, ///< across, in world units: 90 read as a coin from the default camera
- SIGNAL_MARK_OPACITY = 230, ///< out of 255, so the ground under it still shows a little
- SIGNAL_MARK_FADE_OUT_FRAMES = LOGICFRAMES_PER_SECOND * 2 ///< the smoke's last steps, over which the mark fades
-};
-
-//-------------------------------------------------------------------------------------------------
-/** The mark a signal lays on the ground: crossed swords, a shield or an eye in a ring, in `color`,
- * turned to this viewer's camera as it stands now so it reads upright. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::addSignalMark( SignalKind kind, const Coord3D &pos, Color color, ParticleSystemID smoke )
-{
- // No decal manager without a renderer (headless, or off Windows until the D track): no mark.
- // GameLogicDispatch calls this for every signal a player sends, replays included.
- if( TheProjectedShadowManager == NULL )
- return;
-
- Shadow::ShadowTypeInfo decalInfo;
- decalInfo.allowUpdates = FALSE;
- decalInfo.allowWorldAlign = TRUE; // wrapped over the terrain it lands on
- // SHADOW_ALPHA_DECAL is the kind setColor and setOpacity reach, and removeShadow takes off
- decalInfo.m_type = SHADOW_ALPHA_DECAL;
- strcpy( decalInfo.m_ShadowName, SIGNAL_MARK_TEXTURES[ kind ] );
- decalInfo.m_sizeX = SIGNAL_MARK_SIZE;
- decalInfo.m_sizeY = SIGNAL_MARK_SIZE;
- decalInfo.m_offsetX = 0.0f;
- decalInfo.m_offsetY = 0.0f;
-
- SignalMark mark;
- mark.decal = TheProjectedShadowManager->addDecal( &decalInfo );
- mark.decal->setAngle( TheTacticalView->getAngle() );
- mark.decal->setColor( color );
- mark.decal->setOpacity( 0 );
- mark.decal->setPosition( pos.x, pos.y, pos.z );
- mark.smoke = smoke;
- m_signalMarks.push_back( mark );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Each mark lasts as long as its smoke and fades out over the smoke's last steps. Both can't
- * simply count logic frames: ParticleSystemManager::update steps once per pass that sees a new
- * logic frame, so a network game catching up several frames in one pass keeps its smoke longer
- * than the frame count says, and a mark on its own clock went a second early or late. The smoke
- * has left in it what it still has to emit plus the life of its youngest puff. Hidden while
- * scripts or -cinema hide the icons, like a radius decal. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::updateSignalMarks( void )
-{
- const Bool shown = TheGameLogic->getDrawIconUI() && !CinemaDirector_hidesHud();
- for( size_t index = 0; index < m_signalMarks.size(); )
- {
- SignalMark &mark = m_signalMarks[ index ];
- const ParticleSystem *smoke = TheParticleSystemManager->findParticleSystem( mark.smoke );
- if( smoke == NULL )
- {
- mark.decal->release();
- m_signalMarks.erase( m_signalMarks.begin() + index );
- continue;
- }
-
- const Particle *youngest = smoke->getLastParticle();
- const UnsignedInt left = smoke->getSystemLifetimeLeft() + ( youngest ? youngest->getLifetimeLeft() : 0 );
- const UnsignedInt opacity = min( (UnsignedInt)SIGNAL_MARK_OPACITY, left * SIGNAL_MARK_OPACITY / SIGNAL_MARK_FADE_OUT_FRAMES );
- mark.decal->setOpacity( shown ? (Int)opacity : 0 );
- index++;
- }
-}
-
-void InGameUI::clearSignalMarks( void )
-{
- for( size_t index = 0; index < m_signalMarks.size(); index++ )
- m_signalMarks[ index ].decal->release();
- m_signalMarks.clear();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The same logic message as the Alt+Z/X/C keys, so the same throttle and the same allies see it. */
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::placeArmedSignal( const Coord3D &world )
-{
- if( !isSignalArmed() )
- return FALSE;
-
- GameMessage *message = TheMessageStream->appendMessage( GameMessage::MSG_PLACE_SIGNAL );
- message->appendLocationArgument( world );
- message->appendIntegerArgument( m_armedSignal );
- disarmSignal();
- return TRUE;
-}
-
-//-------------------------------------------------------------------------------------------------
-//-------------------------------------------------------------------------------------------------
-#if defined(_DEBUG) || defined(_INTERNAL)
-inline Bool isClose(Real a, Real b) { return fabs(a-b) <= 1.0f; }
-inline Bool isClose(const Coord3D& a, const Coord3D& b)
-{
- return isClose(a.x, b.x) &&
- isClose(a.y, b.y) &&
- isClose(a.z, b.z);
-}
-void InGameUI::DEBUG_addFloatingText(const AsciiString& text, const Coord3D * pos, Color color)
-{
- const Int POINTSIZE = 8;
- const Int LEADING = 0;
-
- Coord3D posToUse = *pos;
-
-try_again:
- for (FloatingTextListIt it = m_floatingTextList.begin(); it != m_floatingTextList.end(); ++it)
- {
- if (isClose((*it)->m_pos3D, posToUse))
- {
- posToUse.z -= (POINTSIZE + LEADING);
- goto try_again;
- }
- }
-
- FloatingTextData *newFTD = newInstance( FloatingTextData );
- newFTD->m_color = clientColor( color );
- newFTD->m_pos3D.x = posToUse.x;
- newFTD->m_pos3D.y = posToUse.y;
- newFTD->m_pos3D.z = posToUse.z;
- UnicodeString translate;
- translate.translate(text);
- newFTD->m_text = translate;
- newFTD->m_dString->setText(translate);
- newFTD->m_dString->setFont(TheWindowManager->winFindFont( AsciiString("Arial"), POINTSIZE, FALSE ));
-
- if(m_floatingTextTimeOut <= 0)
- newFTD->m_frameTimeOut = TheGameLogic->getFrame() + DEFAULT_FLOATING_TEXT_TIMEOUT;
- else
- newFTD->m_frameTimeOut = TheGameLogic->getFrame() + m_floatingTextTimeOut;
-
- m_floatingTextList.push_front( newFTD ); // add to the list
-
- //DEBUG_LOG(("%s\n",text.str()));
-}
-#endif
-
-//-------------------------------------------------------------------------------------------------
-/** modify the position of our floating text */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::updateFloatingText( void )
-{
- FloatingTextData *ftd; // pointer to our floating point data
- UnsignedInt currLogicFrame = TheGameLogic->getFrame(); // the current logic frame
- UnsignedByte r, g, b, a; // we'll need to break apart our color so we can modify the alpha
- Int amount; // The amout we'll change the alpha
- static UnsignedInt lastLogicFrameUpdate = currLogicFrame; // We need to make sure our current frame is different then our last frame we updated.
-
- // only update the position if we're incrementing frames
- if(lastLogicFrameUpdate == currLogicFrame)
- return;
-
- lastLogicFrameUpdate = currLogicFrame;
-
- // Loop through our floating text list
- for(FloatingTextListIt it = m_floatingTextList.begin(); it != m_floatingTextList.end();)
- {
- ftd = *it;
-
- // move it up
- ++ftd->m_frameCount;
-
- // fade the text
- if( currLogicFrame > ftd->m_frameTimeOut)
- {
- // modify the color
- GameGetColorComponents(ftd->m_color, &r, &g, &b, &a);
- amount = REAL_TO_INT( (currLogicFrame - ftd->m_frameTimeOut) * m_floatingTextMoveVanishRate);
- if(a - amount < 0)
- a = 0;
- else
- a -= amount;
- ftd->m_color = GameMakeColor(r, g, b, a);
- // if we have 0 alpha delete it
- if( a <= 0)
- {
- it = m_floatingTextList.erase(it);
- ftd->deleteInstance();
- continue; // don't do the ++it below
- }
-
- }
- // increase our itterator
- ++it;
-
- }
-
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Itterates through and draws each floating text */
-//-------------------------------------------------------------------------------------------------
-//-------------------------------------------------------------------------------------------------
-/** A one-line heads-up overlay: render rate and elapsed game time.
- * GlobalData's m_showHudOverlay: on by default in the developer builds (Debug, _INTERNAL) and off in
- * Release, a project rule. A player turns it on with ShowHudOverlay = Yes in GameData.ini; the harnesses
- * whose screenshots are evidence pass -showHudOverlay. Nothing shipped forces it on: the staged overlay
- * and the packages refuse a ShowHudOverlay = Yes. Retail only ever showed the frame rate, and only behind
- * -displayDebug together with a screenful of engine internals. */
-//-------------------------------------------------------------------------------------------------
-//-------------------------------------------------------------------------------------------------
-/** How the last ten seconds of peace time animate, as fractions of one second. */
-//-------------------------------------------------------------------------------------------------
-static const Real PEACE_COUNTDOWN_POP_SCALE = 1.35f; ///< the size the digit lands at when the second turns
-static const Real PEACE_COUNTDOWN_POP_TIME = 0.35f; ///< how long it takes to settle back to its own size
-static const Real PEACE_COUNTDOWN_FADE_TIME = 0.30f; ///< how long it fades out for at the end of the second
-
-//-------------------------------------------------------------------------------------------------
-/** The one red the truce is written in, wherever it is written. */
-//-------------------------------------------------------------------------------------------------
-static Color peaceTimeColor( Int alpha )
-{
- return GameMakeColor( 255, 48, 48, alpha );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The lobby's peace time at the top of the screen, in the middle of it: the word PEACE in small
- * letters over the time left, both red and bold on one plate. The top centre is where a player
- * already looks for the state of the match, and it keeps the corner free for the clock and the
- * superweapon timers. It is not behind ShowHudOverlay - that switch is for a readout, and this
- * is a rule of the match.
- *
- * The plate goes away for the last ten seconds. Those are counted out across the middle of the
- * screen instead, and two copies of the same number in two places is one of them asking to be
- * read and neither getting it. Nothing draws once the truce runs out. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawPeaceTimer( void )
-{
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
-
- if( !TheGameLogic->isPeaceTime() )
- return;
-
- const UnsignedInt left = TheGameLogic->getPeaceTimeEndFrame() - TheGameLogic->getFrame();
- if( left <= PEACE_COUNTDOWN_SECONDS * LOGICFRAMES_PER_SECOND )
- {
- drawPeaceCountdown( left );
- return;
- }
-
- // the bar's top page carries it in a plate of its own (drawControlBarPage); this loose plate is
- // for a screen without that page
- if( m_controlBarPageShown && m_peacePlateBottom > 0 )
- return;
-
- const UnsignedInt secs = ControlBar_secondsFromFrames( (Real)left );
-
- UnicodeString text;
- text.format( TheGameText->fetch( "GUI:PeaceTimeHud" ), secs / 60, secs % 60 );
-
- if( m_peaceTimeDisplayString == NULL )
- {
- m_peaceTimeDisplayString = TheDisplayStringManager->newDisplayString();
- m_peaceTimeDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
- TheGlobalLanguageData->adjustFontSize( PEACE_TIMER_POINT_SIZE ),
- TRUE ) );
- }
- m_peaceTimeDisplayString->setText( text );
-
- // the label is a second string rather than a line of the first: the text renderer has no
- // concept of a newline and would draw one as a character
- if( m_peaceTimeLabelDisplayString == NULL )
- {
- m_peaceTimeLabelDisplayString = TheDisplayStringManager->newDisplayString();
- m_peaceTimeLabelDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
- TheGlobalLanguageData->adjustFontSize( PEACE_TIMER_LABEL_POINT_SIZE ),
- TRUE ) );
- }
- m_peaceTimeLabelDisplayString->setText( TheGameText->fetch( "GUI:PeaceTimeHudLabel" ) );
-
- Int textWidth = 0, textHeight = 0;
- m_peaceTimeDisplayString->getSize( &textWidth, &textHeight );
-
- Int labelWidth = 0, labelHeight = 0;
- m_peaceTimeLabelDisplayString->getSize( &labelWidth, &labelHeight );
-
- // under the top page, the money, clock and power, rather than jammed against it, and the gap grows
- // with the screen the same way the command bar does
- const Int pad = 4;
- const Int plateWidth = (labelWidth > textWidth ? labelWidth : textWidth) + pad*2;
- const Int plateLeft = (TheDisplay->getWidth() - plateWidth) / 2;
- const Int top = ( m_controlBarPageShown ? m_topBarBottom : 0 ) + stripPixels( PEACE_TIMER_TOP_PAD );
-
- TheDisplay->drawFillRect( plateLeft, top - 1, plateWidth, labelHeight + textHeight + 2,
- GameMakeColor( 0, 0, 0, 160 ) );
-
- m_peaceTimeLabelDisplayString->draw( (TheDisplay->getWidth() - labelWidth) / 2, top,
- peaceTimeColor( 255 ), GameMakeColor( 0, 0, 0, 255 ) );
-
- m_peaceTimeDisplayString->draw( (TheDisplay->getWidth() - textWidth) / 2, top + labelHeight,
- peaceTimeColor( 255 ), GameMakeColor( 0, 0, 0, 255 ) );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The last ten seconds of that peace time, one digit at a time, with the plate at the top of the
- * screen taken down for them. The word PEACE goes over the digit at a quarter of its size, on
- * the same line the plate's own word was on, so what happens at ten seconds is the time being
- * replaced by a number you cannot miss rather than the whole thing moving somewhere else. The
- * middle of the screen is where the fighting you are about to do is, and a countdown sitting on
- * your own units is in the way of the thing it counts down to.
- *
- * Each second the digit lands at PEACE_COUNTDOWN_POP_SCALE of its size, settles to it over the
- * first third of the second, then fades out through the last third, so the movement is what
- * catches the eye rather than the number changing. The word holds still and keeps its colour
- * through all of it, and the digit grows downwards from under it, so nothing but the number
- * moves.
- *
- * The animation is driven by the logic frame, not the wall clock, because the number it counts
- * is a logic frame: a paused or slowed game shows a paused countdown instead of one that has
- * run ahead of the truce it belongs to. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawPeaceCountdown( UnsignedInt framesLeft )
-{
- const UnsignedInt secondsLeft = (framesLeft + LOGICFRAMES_PER_SECOND - 1) / LOGICFRAMES_PER_SECOND;
- const UnsignedInt framesLeftOfSecond = framesLeft - (secondsLeft - 1) * LOGICFRAMES_PER_SECOND;
- const Real secondElapsed = 1.0f - INT_TO_REAL( framesLeftOfSecond ) / INT_TO_REAL( LOGICFRAMES_PER_SECOND );
-
- Real scale = 1.0f;
- if( secondElapsed < PEACE_COUNTDOWN_POP_TIME )
- scale = PEACE_COUNTDOWN_POP_SCALE
- - (PEACE_COUNTDOWN_POP_SCALE - 1.0f) * (secondElapsed / PEACE_COUNTDOWN_POP_TIME);
-
- Real opacity = 1.0f;
- if( secondElapsed > 1.0f - PEACE_COUNTDOWN_FADE_TIME )
- opacity = (1.0f - secondElapsed) / PEACE_COUNTDOWN_FADE_TIME;
-
- // rounded to a step so a second's worth of scaling asks the font library for a few sizes, not thirty
- const Int wantedPointSize = REAL_TO_INT_CEIL( PEACE_COUNTDOWN_POINT_SIZE * scale );
- const Int pointSize = ((wantedPointSize + PEACE_COUNTDOWN_SIZE_STEP - 1) / PEACE_COUNTDOWN_SIZE_STEP)
- * PEACE_COUNTDOWN_SIZE_STEP;
-
- if( m_peaceCountdownDisplayString == NULL )
- m_peaceCountdownDisplayString = TheDisplayStringManager->newDisplayString();
-
- m_peaceCountdownDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
- TheGlobalLanguageData->adjustFontSize( pointSize ),
- TRUE ) );
-
- UnicodeString text;
- text.format( u"%d", (Int)secondsLeft );
- m_peaceCountdownDisplayString->setText( text );
-
- // the same string the plate at the top uses, in its own size: the two are never up together
- if( m_peaceTimeLabelDisplayString == NULL )
- m_peaceTimeLabelDisplayString = TheDisplayStringManager->newDisplayString();
-
- m_peaceTimeLabelDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
- TheGlobalLanguageData->adjustFontSize( PEACE_COUNTDOWN_POINT_SIZE
- / PEACE_COUNTDOWN_LABEL_SHARE ),
- TRUE ) );
- m_peaceTimeLabelDisplayString->setText( TheGameText->fetch( "GUI:PeaceTimeHudLabel" ) );
-
- Int textWidth = 0, textHeight = 0;
- m_peaceCountdownDisplayString->getSize( &textWidth, &textHeight );
-
- Int labelWidth = 0, labelHeight = 0;
- m_peaceTimeLabelDisplayString->getSize( &labelWidth, &labelHeight );
-
- const Int alpha = REAL_TO_INT_CEIL( opacity * 255.0f );
-
- // with the top page up the word stays in its plate and the digit hangs from the plate's foot;
- // without it, the word and the digit stand on the line the loose plate's word was on
- if( m_controlBarPageShown && m_peacePlateBottom > 0 )
- {
- m_peaceCountdownDisplayString->draw( (TheDisplay->getWidth() - textWidth) / 2, m_peacePlateBottom + stripPixels( 2 ),
- peaceTimeColor( alpha ), GameMakeColor( 0, 0, 0, alpha ) );
- return;
- }
-
- const Int top = stripPixels( PEACE_TIMER_TOP_PAD );
- m_peaceTimeLabelDisplayString->draw( (TheDisplay->getWidth() - labelWidth) / 2, top,
- peaceTimeColor( 255 ), GameMakeColor( 0, 0, 0, 255 ) );
-
- m_peaceCountdownDisplayString->draw( (TheDisplay->getWidth() - textWidth) / 2, top + labelHeight,
- peaceTimeColor( alpha ), GameMakeColor( 0, 0, 0, alpha ) );
-}
-
-// -directorrecord's broadcast is drawn in zerohour.gg's colours: the ground, its panel, ink, muted
-// text, the line and the gold the pane lines are drawn in. The ground is opaque: at the site's veil
-// the gold of the pane lines under it showed through the score bar's corners. The site sets words in
-// Chivo and numbers in JetBrains Mono; Windows has neither, and these are the site's own fallbacks
-static const Color BROADCAST_GROUND = GameMakeColor( 0x0c, 0x12, 0x20, 255 );
-static const Color BROADCAST_PANEL = GameMakeColor( 0x12, 0x1a, 0x2b, 255 );
-static const Color BROADCAST_LINE = GameMakeColor( 0x1f, 0x29, 0x40, 255 );
-static const Color BROADCAST_INK = GameMakeColor( 0xe8, 0xea, 0xf0, 255 );
-static const Color BROADCAST_MUTED = GameMakeColor( 0x8e, 0x97, 0xad, 255 );
-static const Color BROADCAST_GOLD = GameMakeColor( 0xf2, 0xc2, 0x30, 255 );
-/// the score bar's frame is the corner radar's (W3DInGameUI's drawPaneRays and its corner frame): the
-/// brand's blue band as a halo at these strengths, a pixel of the ground a 720 rows and half the pane
-/// lines' gold, on the three sides that are on the screen
-static const UnsignedByte BROADCAST_BAND_RGB[ 3 ] = { 0x80, 0x95, 0xea };
-static const Real BROADCAST_BAND_OUTER_ALPHA = 0.3f;
-static const Real BROADCAST_BAND_INNER_ALPHA = 0.55f;
-static const Real BROADCAST_FRAME_EDGE_ROWS_A_PIXEL = 720.0f;
-static const char *const BROADCAST_WORDS = "Segoe UI";
-static const char *const BROADCAST_NUMBERS = "Consolas";
-/// the broadcast's sizes are a 720 row picture's, grown with the picture's height
-static const Real BROADCAST_ROWS = 720.0f;
-static const Int BROADCAST_NAME_POINTS = 11;
-static const Int BROADCAST_COMPACT_POINTS = 8;
-static const Int BROADCAST_SIDE_POINTS = 9;
-static const Int BROADCAST_HEAD_POINTS = 7;
-/// the clock was 16 and the armies' bar 6 rows; both gave up height when the bar was thinned
-static const Int BROADCAST_CLOCK_POINTS = 13;
-static const Real BROADCAST_PAD = 8.0f;
-static const Real BROADCAST_GAP = 10.0f;
-static const Real BROADCAST_RULE = 2.0f;
-static const Real BROADCAST_TUG = 4.0f;
-static const Int THOUSANDS = 3;
-static const Int BROADCAST_WIDEST = 888888; ///< the number the cash and army columns are measured on
-
-/** A whole number with its thousands parted by commas, after prefix. */
-static UnicodeString broadcastNumber( const char *prefix, Int value )
-{
- std::string digits = std::to_string( value );
- for( Int at = (Int)digits.size() - THOUSANDS; at > 0; at -= THOUSANDS )
- digits.insert( at, "," );
- UnicodeString text;
- text.translate( AsciiString( ( prefix + digits ).c_str() ) );
- return text;
-}
-
-/** color with its opacity taken down to share of what it was. */
-static Color broadcastFade( Color color, Real share )
-{
- UnsignedByte red, green, blue, alpha;
- GameGetColorComponents( color, &red, &green, &blue, &alpha );
- return GameMakeColor( red, green, blue, (UnsignedByte)REAL_TO_INT( alpha * share ) );
-}
-
-/** A size given for the 720 row picture, in this picture's pixels and font points. */
-static Int broadcastPixels( Real at720 )
-{
- return max( REAL_TO_INT( at720 * ( TheDisplay->getHeight() / BROADCAST_ROWS ) ), 1 );
-}
-
-static Int broadcastPoints( Int at720 )
-{
- return REAL_TO_INT( at720 * ( TheDisplay->getHeight() / BROADCAST_ROWS ) );
-}
-
-/** What the broadcast calls a player and what goes beside it. Every AI's name is its difficulty, so
- * a plate read "Hard AI vs Hard AI": an AI is called by its general, the difficulty beside it. A
- * computer seat given a name of its own (-seatname) is called by it, as a player is. */
-static Bool broadcastByDifficulty( Player *player )
-{
- const UnicodeString &name = player->getPlayerDisplayName();
- return player->getPlayerType() == PLAYER_COMPUTER && ( name.compare( SlotStateName( SLOT_EASY_AI ) ) == 0
- || name.compare( SlotStateName( SLOT_MED_AI ) ) == 0 || name.compare( SlotStateName( SLOT_BRUTAL_AI ) ) == 0 );
-}
-
-static UnicodeString broadcastName( Player *player )
-{
- return broadcastByDifficulty( player ) ? player->getPlayerTemplate()->getDisplayName() : player->getPlayerDisplayName();
-}
-
-static UnicodeString broadcastSide( Player *player )
-{
- return broadcastByDifficulty( player ) ? player->getPlayerDisplayName() : player->getPlayerTemplate()->getDisplayName();
-}
-
-/// U+2026 by number: written as a character in a u"" literal, MSVC read this file in the machine's
-/// code page and the bar drew the three characters of its UTF-8 bytes
-static const WideChar BROADCAST_ELLIPSIS[] = { 0x2026, 0 };
-static const WideChar HIGH_SURROGATE_FIRST = 0xD800;
-static const WideChar HIGH_SURROGATE_LAST = 0xDBFF;
-
-/** full's text as it fits widest pixels: whole, or as many of its first characters as fit with
- * ellipsis, a string holding the ellipsis in full's font, after them. Spaces before the ellipsis
- * go, and a character outside the 16 bit range is never cut in half. */
-static UnicodeString broadcastFitted( DisplayString *full, DisplayString *ellipsis, Int widest )
-{
- UnicodeString text = full->getText();
- if( full->getWidth() <= widest )
- return text;
- std::vector< Int > prefixWidths( text.getLength() + 1, 0 );
- for( Int count = 1; count <= text.getLength(); count++ )
- prefixWidths[ count ] = full->getWidth( count );
- const Int kept = ObserverCamera_fitCount( prefixWidths, ellipsis->getWidth(), widest );
- while( text.getLength() > kept )
- text.removeLastChar();
- auto dangles = [ &text ]() -> Bool
- {
- const WideChar last = text.getCharAt( text.getLength() - 1 );
- return last == u' ' || ( last >= HIGH_SURROGATE_FIRST && last <= HIGH_SURROGATE_LAST );
- };
- while( text.getLength() > 0 && dangles() )
- text.removeLastChar();
- text.concat( BROADCAST_ELLIPSIS );
- return text;
-}
-
-/** How many of players are on team. */
-static Int broadcastTeamSize( const std::vector< SpectatorStats > &players, Int team )
-{
- Int size = 0;
- for( size_t index = 0; index < players.size(); index++ )
- size += players[ index ].team == team ? 1 : 0;
- return size;
-}
-
-/** A team of two or more by its letter, Team A the first such team in team order; a player alone has
- * no team name. */
-static UnicodeString broadcastTeamName( const std::vector< SpectatorStats > &players, Int team )
-{
- Int letter = 'A';
- for( Int earlier = 0; earlier < team; earlier++ )
- letter += broadcastTeamSize( players, earlier ) >= 2 ? 1 : 0;
- AsciiString name;
- name.format( "Team %c", letter );
- UnicodeString text;
- text.translate( name );
- return text;
-}
-
-/// the ground's edge round a gold player's swatch, in 720 line pixels: one pixel was lost at 720p
-static const Real BROADCAST_GOLD_EDGE = 2.0f;
-
-/** A player's colour as a filled rectangle; one near the lines' gold gets an edge of the ground round
- * it, outside so a swatch three pixels wide keeps its colour, and over its neighbours' ends in the
- * army bar so it does not run into them. */
-static void drawBroadcastSwatch( Int left, Int top, Int width, Int height, Color color )
-{
- if( width <= 0 )
- return;
- if( ObserverCamera_nearBrandGold( color ) )
- {
- const Int edge = max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 );
- TheDisplay->drawFillRect( left - edge, top - edge, width + edge * 2, height + edge * 2, BROADCAST_GROUND );
- }
- TheDisplay->drawFillRect( left, top, width, height, color );
-}
-
-/// a label on the picture: pieces of text side by side, each its colour, on the ground with the gold
-/// rule along its bottom
-struct BroadcastPlate
-{
- std::vector< DisplayString * > pieces;
- std::vector< Color > colors;
-};
-
-/** The plate's text alone, its pieces half a gap apart: their width and the tallest's height. */
-static void broadcastPiecesSize( const BroadcastPlate &plate, Int *width, Int *height )
-{
- *width = *height = 0;
- for( size_t piece = 0; piece < plate.pieces.size(); piece++ )
- {
- Int pieceWidth = 0, pieceHeight = 0;
- plate.pieces[ piece ]->getSize( &pieceWidth, &pieceHeight );
- *width += pieceWidth + ( piece > 0 ? broadcastPixels( BROADCAST_GAP ) / 2 : 0 );
- *height = max( *height, pieceHeight );
- }
-}
-
-/** The plate's text from left, each piece centred down a line height rows high from top, faded to
- * shown, its shadow in ground. */
-static void drawBroadcastPieces( const BroadcastPlate &plate, Int left, Int top, Int height, Real shown, Color ground )
-{
- Int x = left;
- for( size_t piece = 0; piece < plate.pieces.size(); piece++ )
- {
- Int pieceWidth = 0, pieceHeight = 0;
- plate.pieces[ piece ]->getSize( &pieceWidth, &pieceHeight );
- plate.pieces[ piece ]->draw( x, top + ( height - pieceHeight ) / 2, broadcastFade( plate.colors[ piece ], shown ),
- broadcastFade( ground, shown ) );
- x += pieceWidth + broadcastPixels( BROADCAST_GAP ) / 2;
- }
-}
-
-static void broadcastPlateSize( const BroadcastPlate &plate, Int *width, Int *height )
-{
- Int textWidth = 0, textHeight = 0;
- broadcastPiecesSize( plate, &textWidth, &textHeight );
- *width = textWidth + 2 * broadcastPixels( BROADCAST_PAD );
- *height = textHeight + broadcastPixels( BROADCAST_PAD ) + broadcastPixels( BROADCAST_RULE );
-}
-
-/** The plate with its top left at left, top, faded to shown. */
-static void drawBroadcastPlate( const BroadcastPlate &plate, Int left, Int top, Real shown )
-{
- const Int pad = broadcastPixels( BROADCAST_PAD );
- const Int rule = broadcastPixels( BROADCAST_RULE );
- Int width = 0, height = 0;
- broadcastPlateSize( plate, &width, &height );
- TheDisplay->drawFillRect( left, top, width, height, broadcastFade( BROADCAST_GROUND, shown ) );
- TheDisplay->drawFillRect( left, top + height - rule, width, rule, broadcastFade( BROADCAST_GOLD, shown ) );
- drawBroadcastPieces( plate, left + pad, top + pad / 2, height - pad - rule, shown, BROADCAST_GROUND );
-}
-
-/// the broadcast's red, for a defeat and nothing else: a struck card and the defeat banner's tab
-static const Color BROADCAST_DEFEAT = GameMakeColor( 0xb8, 0x26, 0x1f, 255 );
-/// the defeat and winner banners: the name's points, the tab's word's, and where the defeat banner's
-/// foot sits, a share of the picture's height down; the winner's hangs under it
-static const Int BROADCAST_BANNER_POINTS = 16;
-static const Int BROADCAST_BANNER_WORD_POINTS = 12;
-static const Real BROADCAST_BANNER_FOOT = 0.7f;
-
-/** A banner's height with title over under, its rule included. */
-static Int broadcastBannerHeight( const BroadcastPlate &title, const BroadcastPlate &under )
-{
- Int width = 0, titleHeight = 0, underHeight = 0;
- broadcastPiecesSize( title, &width, &titleHeight );
- broadcastPiecesSize( under, &width, &underHeight );
- return titleHeight + underHeight + broadcastPixels( BROADCAST_PAD ) + broadcastPixels( BROADCAST_RULE );
-}
-
-/** A banner across the lower picture for a defeat or the winner, centred, its foot on the row foot: a
- * tab of colour holding word, beside it title over the smaller under, on the ground with a rule of the
- * tab's colour along its foot. It opens as the rule grows out from its middle, the panel rises off the
- * rule and the words come last; shown runs it from 0 to 1, and going back down closes it the same way.
- * The rectangle it takes on the picture. */
-static IRegion2D drawBroadcastBanner( DisplayString *word, Color tab, Color wordColor, const BroadcastPlate &title,
- const BroadcastPlate &under, Int foot, Real shown )
-{
- const Int pad = broadcastPixels( BROADCAST_PAD );
- const Int rule = broadcastPixels( BROADCAST_RULE );
- Int wordWidth = 0, wordHeight = 0, titleWidth = 0, titleHeight = 0, underWidth = 0, underHeight = 0;
- word->getSize( &wordWidth, &wordHeight );
- broadcastPiecesSize( title, &titleWidth, &titleHeight );
- broadcastPiecesSize( under, &underWidth, &underHeight );
- const Int tabWidth = wordWidth + 2 * pad;
- const Int width = tabWidth + pad + max( titleWidth, underWidth ) + pad;
- const Int height = broadcastBannerHeight( title, under ) - rule;
- const Int left = ( (Int)TheDisplay->getWidth() - width ) / 2;
- const Int top = foot - rule - height;
-
- const Int ruleWidth = REAL_TO_INT( width * ObserverCamera_easeBetween( shown, 0.0f, 0.45f ) );
- TheDisplay->drawFillRect( left + ( width - ruleWidth ) / 2, foot - rule, ruleWidth, rule, tab );
- const Int panelHeight = REAL_TO_INT( height * ObserverCamera_easeBetween( shown, 0.3f, 0.85f ) );
- if( panelHeight > 0 )
- {
- TheDisplay->drawFillRect( left, foot - rule - panelHeight, width, panelHeight, BROADCAST_GROUND );
- TheDisplay->drawFillRect( left, foot - rule - panelHeight, tabWidth, panelHeight, tab );
- }
- const Real words = ObserverCamera_easeBetween( shown, 0.8f, 1.0f );
- if( words > 0.0f )
- {
- word->draw( left + pad, top + ( height - wordHeight ) / 2, broadcastFade( wordColor, words ), broadcastFade( tab, words ) );
- drawBroadcastPieces( title, left + tabWidth + pad, top + pad / 2, titleHeight, words, BROADCAST_GROUND );
- drawBroadcastPieces( under, left + tabWidth + pad, top + pad / 2 + titleHeight, underHeight, words, BROADCAST_GROUND );
- }
- IRegion2D drawn;
- drawn.lo.x = left;
- drawn.lo.y = top;
- drawn.hi.x = left + width;
- drawn.hi.y = foot;
- return drawn;
-}
-
-//-------------------------------------------------------------------------------------------------
-DisplayString *InGameUI::broadcastText( const std::string &key, const UnicodeString &text, const char *font, Int points, Bool bold )
-{
- DisplayString *&string = m_broadcastTexts[ key ];
- if( string == NULL )
- {
- string = TheDisplayStringManager->newDisplayString();
- string->setFont( TheFontLibrary->getFont( AsciiString( font ), points, bold ) );
- }
- string->setText( text );
- return string;
-}
-
-/// one player's card of the score bar
-struct BroadcastRow
-{
- const SpectatorStats *stats;
- Color color;
- DisplayString *name;
- DisplayString *side;
- DisplayString *cash;
- DisplayString *army;
-};
-
-/// the score bar's sizes, largest first, in 720 line points and pixels: a row of cards takes the first
-/// that fits the screen's width
-static const Int BROADCAST_CARD_STEPS = 4;
-static const Int BROADCAST_CARD_NAME_POINTS[ BROADCAST_CARD_STEPS ] = { 11, 10, 9, 8 };
-static const Int BROADCAST_CARD_DETAIL_POINTS[ BROADCAST_CARD_STEPS ] = { 9, 8, 8, 7 };
-static const Real BROADCAST_CARD_PAD[ BROADCAST_CARD_STEPS ] = { 6.0f, 5.0f, 4.0f, 3.0f };
-/// the widest a player's own name may be where the broadcast writes it, in 720 line pixels for a name of
-/// BROADCAST_NAME_POINTS and in proportion at other sizes: a longer one ends in an ellipsis, so one long
-/// name neither widens every card nor runs into the general beside it, past a pane's circle or across
-/// the picture. A computer player's name is his general and is never cut: "GLA Demolition General" is
-/// 171 at 11 points. A split's plate holds two names and a "vs" in a circle 265 across; the opening's
-/// holds one; a banner has the picture's middle
-static const Real BROADCAST_CARD_NAME_WIDEST = 140.0f;
-static const Real BROADCAST_PLATE_NAME_WIDEST = 110.0f;
-static const Real BROADCAST_INTRO_NAME_WIDEST = 120.0f;
-static const Real BROADCAST_BANNER_NAME_WIDEST = 210.0f;
-/// the house colour along a card's top
-static const Real BROADCAST_CARD_STRIP = 2.0f;
-/// the line through a defeated player's name, in 720 line pixels, with a pixel of the ground each side
-static const Real BROADCAST_STRIKE = 2.0f;
-/// a power's flag under a card: its icon this many 720 rows high, with this much of the panel round it
-static const Real BROADCAST_FLAG_ICON = 30.0f;
-static const Real BROADCAST_FLAG_INSET = 3.0f;
-
-//-------------------------------------------------------------------------------------------------
-DisplayString *InGameUI::broadcastNameText( const std::string &key, Player *player, Int points, Real widest )
-{
- const Int screenPoints = broadcastPoints( points );
- UnicodeString name = broadcastName( player );
- if( !broadcastByDifficulty( player ) )
- name = broadcastFitted( broadcastText( "full" + key, name, BROADCAST_WORDS, screenPoints, TRUE ),
- broadcastText( "ellipsis" + std::to_string( screenPoints ), UnicodeString( BROADCAST_ELLIPSIS ), BROADCAST_WORDS, screenPoints, TRUE ),
- broadcastPixels( widest * points / BROADCAST_NAME_POINTS ) );
- return broadcastText( key, name, BROADCAST_WORDS, screenPoints, TRUE );
-}
-
-/// the score bar laid out for one set of players: their cards' strings, every block's and card's place on
-/// the screen and the bar's measures. While a defeated player's card closes the bar is drawn between
-/// two, with that card and without it
-struct BroadcastLayout
-{
- std::vector< SpectatorStats > players;
- std::vector< BroadcastRow > rows;
- std::vector< Int > blockFirst, blockSizes, blockArmies, lineOf;
- std::vector< DisplayString * > teamNames, teamTotals;
- std::vector< Int > blockLefts, blockWidths, blockHeaderTops, blockCardsTops;
- std::vector< Int > cardLefts, cardTops, cardLines;
- DisplayString *armyHead = NULL;
- DisplayString *versusText = NULL;
- Bool compact = FALSE;
- Int step = 0, lines = 0, cardWidth = 0, fullCardWidth = 0, cardHeight = 0, cardPad = 0, halfPad = 0, versusWidth = 0;
- Int nameHeight = 0, sideHeight = 0, numberHeight = 0, labelHeight = 0, textHeight = 0, strip = 0;
- Int left = 0, barWidth = 0, height = 0, rowLeft = 0, rowWidth = 0, tugTop = 0;
-};
-
-/// a card's rectangle on the screen
-struct BroadcastPlace
-{
- Int left, top, width, height;
-};
-
-//-------------------------------------------------------------------------------------------------
-/** The score bar laid out for players into l: every side in one row (two rows of one-line cards from
- * five players), its cards sized to the largest step that fits the screen, under the clock's tab of
- * clockBox by clockBoxHeight. Team letters come from named, everyone who played; tag keeps this
- * layout's team totals apart from another's drawn in the same frame. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::layOutBroadcast( const std::vector< SpectatorStats > &players, const std::vector< SpectatorStats > &named,
- const std::string &tag, Int clockBox, Int clockBoxHeight, BroadcastLayout &l )
-{
- const Int pad = broadcastPixels( BROADCAST_PAD );
- const Int tug = broadcastPixels( BROADCAST_TUG );
- l.players = players;
- // a block is one side: a team, or a player on his own, its players' cards side by side and a "vs"
- // between two blocks
- for( size_t index = 0; index < l.players.size(); index++ )
- {
- if( index == 0 || l.players[ index ].team != l.players[ index - 1 ].team )
- {
- l.blockFirst.push_back( (Int)index );
- l.blockSizes.push_back( 0 );
- l.blockArmies.push_back( 0 );
- }
- l.blockSizes.back()++;
- l.blockArmies.back() += l.players[ index ].army;
- }
- const Int blocks = (Int)l.blockSizes.size();
-
- // five players or more stand in two rows, whole blocks to a row, and their cards keep one line each:
- // the name at the left, the army's value at the right, no general and no cash. One row of eight
- // two-line cards fell to 7 point text at 720, and one line with the cash had to be cut to fit
- l.lineOf = ObserverCamera_cardRows( l.blockSizes );
- l.lines = l.lineOf.back() + 1;
- l.compact = l.lines > 1;
- std::vector< std::vector< Int > > lineSizes( l.lines );
- for( Int block = 0; block < blocks; block++ )
- lineSizes[ l.lineOf[ block ] ].push_back( l.blockSizes[ block ] );
-
- // every card's text at a size, and the card width it needs: the widest of the name, the general or
- // difficulty, the money line (cash, then the army's label and value) at six digits each, and a team
- // header spread over its block's cards. Each size keeps strings of its own, since a string keeps
- // the font it was made with
- l.rows.assign( l.players.size(), BroadcastRow() );
- l.teamNames.assign( blocks, NULL );
- l.teamTotals.assign( blocks, NULL );
- Int widestWidth = 0;
- auto buildCards = [ & ]( Int step ) -> Int
- {
- const std::string size = "card" + std::to_string( step ) + ":";
- const Int cardPad = broadcastPixels( BROADCAST_CARD_PAD[ step ] );
- const Int detailPoints = broadcastPoints( BROADCAST_CARD_DETAIL_POINTS[ step ] );
- l.armyHead = broadcastText( size + "armyhead", TheGameText->fetch( "GUI:HudStatArmy" ), BROADCAST_WORDS,
- broadcastPoints( BROADCAST_HEAD_POINTS ), FALSE );
- l.versusText = broadcastText( size + "versus", UnicodeString( u"vs" ), BROADCAST_WORDS, detailPoints, FALSE );
- DisplayString *widest = broadcastText( size + "widest", broadcastNumber( "$", BROADCAST_WIDEST ), BROADCAST_NUMBERS, detailPoints, TRUE );
- Int width = 0, height = 0, labelWidth = 0;
- l.armyHead->getSize( &labelWidth, &height );
- widest->getSize( &widestWidth, &height );
- Int content = l.compact ? 0 : widestWidth + cardPad + labelWidth + cardPad / 2 + widestWidth;
- for( size_t index = 0; index < l.players.size(); index++ )
- {
- const SpectatorStats &stats = l.players[ index ];
- const std::string seat = size + std::to_string( stats.player->getPlayerIndex() );
- BroadcastRow &row = l.rows[ index ];
- row.stats = &stats;
- row.color = clientPlayerColor( stats.player );
- row.name = broadcastNameText( "name" + seat, stats.player, BROADCAST_CARD_NAME_POINTS[ step ], BROADCAST_CARD_NAME_WIDEST );
- row.side = broadcastText( "side" + seat, broadcastSide( stats.player ), BROADCAST_WORDS, detailPoints, FALSE );
- row.cash = broadcastText( "cash" + seat, broadcastNumber( "$", stats.cash ), BROADCAST_NUMBERS, detailPoints, TRUE );
- row.army = broadcastText( "army" + seat, broadcastNumber( "$", stats.army ), BROADCAST_NUMBERS, detailPoints, TRUE );
- row.name->getSize( &width, &height );
- if( l.compact )
- {
- content = max( content, width + cardPad + widestWidth );
- continue;
- }
- // the general or difficulty stands at the right end of the name's line
- Int sideWidth = 0;
- row.side->getSize( &sideWidth, &height );
- content = max( content, width + cardPad + sideWidth );
- }
- for( Int block = 0; block < blocks; block++ )
- {
- if( l.blockSizes[ block ] < 2 )
- continue;
- // keyed by the team and the layout, not the block's place: while a card closes both layouts are
- // up, and a team's total is not the same in the two
- const Int team = l.players[ l.blockFirst[ block ] ].team;
- const std::string key = size + tag + std::to_string( team );
- l.teamNames[ block ] = broadcastText( "teamname" + key, broadcastTeamName( named, team ), BROADCAST_WORDS, detailPoints, TRUE );
- l.teamTotals[ block ] = broadcastText( "teamtotal" + key, broadcastNumber( "$", l.blockArmies[ block ] ), BROADCAST_NUMBERS, detailPoints, TRUE );
- // the total measured as six digits, as the cards' numbers are, so the width holds still
- Int nameWidth = 0;
- l.teamNames[ block ]->getSize( &nameWidth, &height );
- const Int header = nameWidth + cardPad + widestWidth;
- const Int cards = l.blockSizes[ block ];
- content = max( content, ( header - ( cards - 1 ) * cardPad + cards - 1 ) / cards - 2 * cardPad );
- }
- return content + 2 * cardPad;
- };
-
- // the largest size whose row fits the screen less the bar's padding; past the smallest the cards are
- // cut to fit, so the bar never runs off the picture
- Int cardWidths[ BROADCAST_CARD_STEPS ], cardGaps[ BROADCAST_CARD_STEPS ], versusWidths[ BROADCAST_CARD_STEPS ];
- for( Int step = 0; step < BROADCAST_CARD_STEPS; step++ )
- {
- cardWidths[ step ] = buildCards( step );
- cardGaps[ step ] = broadcastPixels( BROADCAST_CARD_PAD[ step ] );
- Int versusWidth = 0, versusHeight = 0;
- l.versusText->getSize( &versusWidth, &versusHeight );
- versusWidths[ step ] = versusWidth + 4 * cardGaps[ step ];
- }
- const Int room = (Int)TheDisplay->getWidth() - 4 * pad;
- l.step = 0;
- for( Int line = 0; line < l.lines; line++ )
- l.step = max( l.step, ObserverCamera_cardStep( lineSizes[ line ], cardWidths, cardGaps, versusWidths, BROADCAST_CARD_STEPS, room ) );
- buildCards( l.step );
- l.cardPad = cardGaps[ l.step ];
- l.versusWidth = versusWidths[ l.step ];
- std::vector< Int > lineCards, lineBlocks;
- l.cardWidth = cardWidths[ l.step ];
- l.fullCardWidth = l.cardWidth;
- std::vector< Int > lineWidths( l.lines, 0 );
- for( Int line = 0; line < l.lines; line++ )
- lineWidths[ line ] = ObserverCamera_cardRow( lineSizes[ line ], l.cardWidth, l.cardPad, l.versusWidth, &lineCards, &lineBlocks );
- l.rowWidth = *std::max_element( lineWidths.begin(), lineWidths.end() );
- if( l.rowWidth > room )
- {
- for( Int line = 0; line < l.lines; line++ )
- l.cardWidth = min( l.cardWidth, ObserverCamera_cardWidthIn( lineSizes[ line ], l.cardPad, l.versusWidth, room ) );
- for( Int line = 0; line < l.lines; line++ )
- lineWidths[ line ] = ObserverCamera_cardRow( lineSizes[ line ], l.cardWidth, l.cardPad, l.versusWidth, &lineCards, &lineBlocks );
- l.rowWidth = *std::max_element( lineWidths.begin(), lineWidths.end() );
- }
- // every block's and every card's left across the bar, a shorter line in the middle under the longer
- std::vector< Int > cardLefts( l.players.size(), 0 ), blockLefts( blocks, 0 );
- for( Int line = 0; line < l.lines; line++ )
- {
- ObserverCamera_cardRow( lineSizes[ line ], l.cardWidth, l.cardPad, l.versusWidth, &lineCards, &lineBlocks );
- const Int shift = ( l.rowWidth - lineWidths[ line ] ) / 2;
- Int blockInLine = 0, cardInLine = 0;
- for( Int block = 0; block < blocks; block++ )
- {
- if( l.lineOf[ block ] != line )
- continue;
- blockLefts[ block ] = shift + lineBlocks[ blockInLine++ ];
- for( Int index = l.blockFirst[ block ]; index < l.blockFirst[ block ] + l.blockSizes[ block ]; index++ )
- cardLefts[ index ] = shift + lineCards[ cardInLine++ ];
- }
- }
-
- // the bar's measures: the clock in a tab at the top in the middle, under it a line of team headers
- // when there are teams, the cards, a header line and a card line again for a second row, and the
- // armies' bar under all of it
- Int headerHeight = 0, width = 0;
- l.rows[ 0 ].name->getSize( &width, &l.nameHeight );
- l.rows[ 0 ].side->getSize( &width, &l.sideHeight );
- l.rows[ 0 ].cash->getSize( &width, &l.numberHeight );
- l.armyHead->getSize( &width, &l.labelHeight );
- l.numberHeight = max( l.numberHeight, l.labelHeight );
- for( Int block = 0; block < blocks; block++ )
- if( l.teamNames[ block ] != NULL )
- l.teamNames[ block ]->getSize( &width, &headerHeight );
- // half a card pad round the card's text and under the team names, and a pad's half under the
- // armies' bar: with a pad each and the money on two lines the bar took 125 rows of 720
- l.halfPad = max( l.cardPad / 2, 1 );
- if( headerHeight > 0 )
- headerHeight += l.halfPad;
- l.barWidth = max( l.rowWidth, clockBox ) + 2 * pad;
- l.left = ( (Int)TheDisplay->getWidth() - l.barWidth ) / 2;
- l.rowLeft = l.left + ( l.barWidth - l.rowWidth ) / 2;
- const Int headerTop = clockBoxHeight + l.halfPad;
- l.strip = broadcastPixels( BROADCAST_CARD_STRIP );
- // a card is two lines, the name with the general or difficulty at its right, then the money; the
- // general on a line of its own made the bar 100 rows of 720 tall for a 1v1
- l.textHeight = l.compact ? max( l.nameHeight, l.numberHeight ) : max( l.nameHeight, l.sideHeight ) + l.numberHeight;
- l.cardHeight = l.strip + l.halfPad + l.textHeight + l.halfPad;
- // a row's team headers take a line over it only when the row has a team
- std::vector< Int > lineHeaders( l.lines, 0 ), lineTops( l.lines, 0 );
- for( Int block = 0; block < blocks; block++ )
- if( l.teamNames[ block ] != NULL )
- lineHeaders[ l.lineOf[ block ] ] = headerHeight;
- l.tugTop = headerTop;
- for( Int line = 0; line < l.lines; line++ )
- {
- lineTops[ line ] = l.tugTop;
- l.tugTop += lineHeaders[ line ] + l.cardHeight + l.halfPad;
- }
- l.height = l.tugTop + tug + l.halfPad;
-
- // and every block and card where it stands on the screen
- l.blockLefts.assign( blocks, 0 );
- l.blockWidths.assign( blocks, 0 );
- l.blockHeaderTops.assign( blocks, 0 );
- l.blockCardsTops.assign( blocks, 0 );
- l.cardLefts.assign( l.players.size(), 0 );
- l.cardTops.assign( l.players.size(), 0 );
- l.cardLines.assign( l.players.size(), 0 );
- for( Int block = 0; block < blocks; block++ )
- {
- l.blockLefts[ block ] = l.rowLeft + blockLefts[ block ];
- l.blockWidths[ block ] = l.blockSizes[ block ] * l.cardWidth + ( l.blockSizes[ block ] - 1 ) * l.cardPad;
- l.blockHeaderTops[ block ] = lineTops[ l.lineOf[ block ] ];
- l.blockCardsTops[ block ] = l.blockHeaderTops[ block ] + lineHeaders[ l.lineOf[ block ] ];
- for( Int index = l.blockFirst[ block ]; index < l.blockFirst[ block ] + l.blockSizes[ block ]; index++ )
- {
- l.cardLefts[ index ] = l.rowLeft + cardLefts[ index ];
- l.cardTops[ index ] = l.blockCardsTops[ block ];
- l.cardLines[ index ] = l.lineOf[ block ];
- }
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The score bar hangs from the top edge in the middle: the match clock in a tab of its own, and under
- * it every side in one row (two rows of one-line cards from five players), "Team A vs Team B vs a player alone", a card a player with his name in
- * his colour, his general or difficulty, his cash and the cost of everything he has standing that is
- * not a building. A team's cards sit together under its name and its armies' total. Under the row
- * the armies pull on one bar, each player his colour in the cards' order, gold at the middle when
- * two sides play so the side ahead is the one past it. A special power a player used, or an upgrade
- * he bought, drops its icon in a flag from under his card. A player who loses has his card flash red and struck through, then
- * it closes while the others slide to where they stand without it, and his banner comes up across
- * the lower picture; once the match is decided the winner's comes up under the last. While
- * a split is up each pane carries a plate in the top of its circle, inside its wedge and clear of
- * the lines and the radar, naming the fight's players.
- * Everything is read off the players and their objects; nothing here writes the logic. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawDirectorBroadcast( void )
-{
- TheObserverCamera.clearBroadcast();
- // everyone who played, the ones who lost included, so a team keeps its letter after a player of it is
- // gone; the bar holds the ones still in, and a defeated player's card until it has closed
- std::vector< SpectatorStats > named = gatherSpectatorStats( SPECTATOR_STATS[ 0 ], NULL, TheObserverCamera.getPlayedMask() );
- std::stable_sort( named.begin(), named.end(), []( const SpectatorStats &a, const SpectatorStats &b )
- { return a.team != b.team ? a.team < b.team : a.player->getPlayerIndex() < b.player->getPlayerIndex(); } );
- const UnsignedInt frame = TheGameLogic->getFrame();
- std::vector< SpectatorStats > shown, settled;
- std::vector< Real > flashes, strikes;
- Real slide = 0.0f;
- for( size_t index = 0; index < named.size(); index++ )
- {
- const Int seat = named[ index ].player->getPlayerIndex();
- Real flash = 0.0f, struck = 0.0f, collapse = 0.0f;
- if( TheObserverCamera.getDefeatFrame( seat ) != 0 )
- ObserverCamera_cardExit( GameEngine_pictureFrame(), TheObserverCamera.getDefeatFrame( seat ), TheObserverCamera.getCollapseFrame( seat ),
- &flash, &struck, &collapse );
- if( collapse >= 1.0f )
- continue;
- shown.push_back( named[ index ] );
- flashes.push_back( flash );
- strikes.push_back( struck );
- if( collapse > 0.0f )
- slide = collapse;
- else
- settled.push_back( named[ index ] );
- }
- // the match is over: nobody is left to score
- if( shown.empty() )
- return;
- // cards close one at a time, so the bar is between two layouts at most: with that card and without it
- const Bool sliding = slide > 0.0f && !settled.empty();
-
- const Int pad = broadcastPixels( BROADCAST_PAD );
- const Int rule = broadcastPixels( BROADCAST_RULE );
- const Int tug = broadcastPixels( BROADCAST_TUG );
- UnicodeString clockText;
- clockText.translate( AsciiString( spectatorClock( frame ).c_str() ) );
- DisplayString *clock = broadcastText( "clock", clockText, BROADCAST_NUMBERS, broadcastPoints( BROADCAST_CLOCK_POINTS ), TRUE );
- Int clockWidth = 0, clockHeight = 0;
- clock->getSize( &clockWidth, &clockHeight );
- const Int clockBox = clockWidth + 2 * broadcastPixels( BROADCAST_GAP );
- const Int clockBoxHeight = clockHeight + rule;
-
- BroadcastLayout from, to;
- layOutBroadcast( shown, named, "", clockBox, clockBoxHeight, from );
- if( sliding )
- layOutBroadcast( settled, named, "to", clockBox, clockBoxHeight, to );
-
- // the frame round the bar, the corner radar's own sizes
- const Int screenRows = TheDisplay->getHeight();
- const Int lineGold = ObserverCamera_paneLineWidth( screenRows );
- const Int frameGold = max( lineGold / 2, 1 );
- const Int frameEdge = frameGold + max( REAL_TO_INT( screenRows / BROADCAST_FRAME_EDGE_ROWS_A_PIXEL ), 1 );
- const Int frameHalo = max( ( ObserverCamera_paneBandWidth( screenRows ) - lineGold ) / 2 - OBSERVER_PANE_LINE_EDGE, 0 ) / 2;
- const Int frameReach = frameEdge + frameHalo;
- // while the screen is split the bar goes up off the top, frame and all, as the radar slides down
- // off the bottom, and comes back down as the radar comes back: the panes have the screen to
- // themselves. Everything the bar draws hangs from its layouts' rows, so lifting those lifts it
- const Int lift = REAL_TO_INT( TheObserverCamera.getCornerRadarSlide() * ( max( from.height, to.height ) + frameReach ) );
- auto liftLayout = [ lift ]( BroadcastLayout &l )
- {
- for( size_t index = 0; index < l.cardTops.size(); index++ )
- l.cardTops[ index ] -= lift;
- for( size_t block = 0; block < l.blockHeaderTops.size(); block++ )
- {
- l.blockHeaderTops[ block ] -= lift;
- l.blockCardsTops[ block ] -= lift;
- }
- l.tugTop -= lift;
- l.height -= lift;
- };
- liftLayout( from );
- if( sliding )
- liftLayout( to );
- // a card is drawn with the first layout's strings and measures over the first half of a slide and the
- // second's after: the same strings unless the size or the rows change
- const BroadcastLayout &face = sliding && slide >= 0.5f ? to : from;
- auto mix = [ & ]( Int first, Int second ) { return sliding ? first + REAL_TO_INT( ( second - first ) * slide ) : first; };
- auto seatIn = []( const BroadcastLayout &l, const Player *player ) -> Int
- {
- for( size_t index = 0; index < l.players.size(); index++ )
- if( l.players[ index ].player == player )
- return (Int)index;
- return -1;
- };
- auto teamIn = []( const BroadcastLayout &l, Int team ) -> Int
- {
- for( size_t block = 0; block < l.blockFirst.size(); block++ )
- if( l.players[ l.blockFirst[ block ] ].team == team )
- return (Int)block;
- return -1;
- };
- // a card in both layouts moves from its first place to its second; the closing one narrows on its own
- // middle and the others slide over it
- auto cardPlace = [ & ]( Int index ) -> BroadcastPlace
- {
- BroadcastPlace place = { from.cardLefts[ index ], from.cardTops[ index ], from.cardWidth, from.cardHeight };
- if( !sliding )
- return place;
- const Int other = seatIn( to, from.players[ index ].player );
- if( other < 0 )
- {
- const Int open = REAL_TO_INT( from.cardWidth * ( 1.0f - slide ) );
- place.left += ( from.cardWidth - open ) / 2;
- place.width = open;
- return place;
- }
- place.left = mix( from.cardLefts[ index ], to.cardLefts[ other ] );
- place.top = mix( from.cardTops[ index ], to.cardTops[ other ] );
- place.width = mix( from.cardWidth, to.cardWidth );
- place.height = mix( from.cardHeight, to.cardHeight );
- return place;
- };
- const Int left = mix( from.left, to.left );
- const Int barWidth = mix( from.barWidth, to.barWidth );
- const Int height = mix( from.height, to.height );
- const Int rowLeft = mix( from.rowLeft, to.rowLeft );
- const Int rowWidth = mix( from.rowWidth, to.rowWidth );
- const Int tugTop = mix( from.tugTop, to.tugTop );
- const Int clockLeft = left + ( barWidth - clockBox ) / 2;
-
- // a special power's flag, its button's icon on the panel, drops from the bar's foot under its
- // player's card; a superweapon's is edged in gold. Drawn before the bar, which covers it until it is
- // clear. In two rows the top row's flags hang a quarter card left and the bottom's a quarter right,
- // so a card and the one under it do not hang theirs on top of each other
- std::vector< IRegion2D > flagsDrawn;
- for( size_t index = 0; index < from.players.size(); index++ )
- {
- Real drop = 0.0f;
- const DirectorShowing *flag = TheObserverCamera.getPowerFlag( from.players[ index ].player->getPlayerIndex(), &drop );
- if( flag == NULL || drop <= 0.0f )
- continue;
- const Image *icon = flag->upgrade != NULL ? flag->upgrade->getButtonImage() : superweaponCameo( flag->power );
- if( icon == NULL && flag->sourceThing != NULL )
- icon = flag->sourceThing->getButtonImage();
- if( icon == NULL || icon->getImageHeight() <= 0 )
- continue;
- const BroadcastPlace place = cardPlace( (Int)index );
- const Int faceIndex = &face == &from ? (Int)index : seatIn( to, from.players[ index ].player );
- const Int quarter = face.lines > 1 ? ( face.cardLines[ faceIndex ] == 0 ? -place.width / 4 : place.width / 4 ) : 0;
- const Int iconHeight = broadcastPixels( BROADCAST_FLAG_ICON );
- const Int iconWidth = iconHeight * icon->getImageWidth() / icon->getImageHeight();
- const Int inset = broadcastPixels( BROADCAST_FLAG_INSET );
- const Int edge = flag->superweapon ? max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 ) : 0;
- const Int accent = from.strip;
- const Int flagWidth = iconWidth + 2 * inset + 2 * edge;
- const Int flagHeight = iconHeight + 2 * inset + accent;
- const Int flagLeft = place.left + place.width / 2 + quarter - flagWidth / 2;
- // a flag goes up with the bar, its own height further so it leaves the screen too
- const Int flagTop = height + frameReach - flagHeight + REAL_TO_INT( flagHeight * ( drop - TheObserverCamera.getCornerRadarSlide() ) );
- if( edge > 0 )
- TheDisplay->drawFillRect( flagLeft, flagTop, flagWidth, flagHeight, BROADCAST_GOLD );
- TheDisplay->drawFillRect( flagLeft + edge, flagTop, flagWidth - 2 * edge, flagHeight - accent, BROADCAST_PANEL );
- TheDisplay->drawImage( icon, flagLeft + edge + inset, flagTop + inset, flagLeft + edge + inset + iconWidth, flagTop + inset + iconHeight );
- if( edge == 0 )
- drawBroadcastSwatch( flagLeft, flagTop + flagHeight - accent, flagWidth, accent, from.rows[ index ].color );
- IRegion2D drawn;
- drawn.lo.x = flagLeft - max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 );
- drawn.lo.y = height;
- drawn.hi.x = flagLeft + flagWidth + max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 );
- drawn.hi.y = flagTop + flagHeight + max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 );
- flagsDrawn.push_back( drawn );
- }
-
- // the frame under the bar, squares one inside the other from the top edge down: the halo's two
- // strengths of blue, the ground's edge, then the gold up to the bar, so the bar sits on the gold.
- // Its top runs off the screen, which leaves the sides and the foot. Over the flags, which drop
- // from under it
- auto frameRect = [ & ]( Int outside, Color color )
- {
- if( height + outside > 0 )
- TheDisplay->drawFillRect( left - outside, 0, barWidth + 2 * outside, height + outside, color );
- };
- frameRect( frameReach, GameMakeColor( BROADCAST_BAND_RGB[ 0 ], BROADCAST_BAND_RGB[ 1 ], BROADCAST_BAND_RGB[ 2 ],
- (UnsignedByte)REAL_TO_INT( 255.0f * BROADCAST_BAND_OUTER_ALPHA ) ) );
- frameRect( frameEdge + frameHalo / 2, GameMakeColor( BROADCAST_BAND_RGB[ 0 ], BROADCAST_BAND_RGB[ 1 ], BROADCAST_BAND_RGB[ 2 ],
- (UnsignedByte)REAL_TO_INT( 255.0f * BROADCAST_BAND_INNER_ALPHA ) ) );
- frameRect( frameEdge, BROADCAST_GROUND );
- frameRect( frameGold, BROADCAST_GOLD );
-
- if( height > 0 )
- TheDisplay->drawFillRect( left, 0, barWidth, height, BROADCAST_GROUND );
- TheDisplay->drawFillRect( clockLeft, -lift, clockBox, clockBoxHeight, BROADCAST_PANEL );
- TheDisplay->drawFillRect( clockLeft, clockBoxHeight - rule - lift, clockBox, rule, BROADCAST_GOLD );
- clock->draw( clockLeft + ( clockBox - clockWidth ) / 2, -lift, BROADCAST_INK, BROADCAST_GROUND );
-
- // block by block: a "vs" before every block but the first of its row, and a team's name and its
- // armies' total over its cards. A block in both layouts moves with its cards; one in the first alone,
- // the closing player's own, or a team header gone with him, fades out where it stood
- auto drawMoving = [ & ]( DisplayString *text, Color color, Bool first, Int firstX, Int firstY, Bool second, Int secondX, Int secondY )
- {
- if( first && second )
- text->draw( mix( firstX, secondX ), mix( firstY, secondY ), color, BROADCAST_GROUND );
- else if( first )
- text->draw( firstX, firstY, broadcastFade( color, 1.0f - slide ), broadcastFade( BROADCAST_GROUND, 1.0f - slide ) );
- else if( second )
- text->draw( secondX, secondY, broadcastFade( color, slide ), broadcastFade( BROADCAST_GROUND, slide ) );
- };
- auto versusAt = []( const BroadcastLayout &l, Int block, Int *x, Int *y ) -> Bool
- {
- if( block <= 0 || l.lineOf[ block ] != l.lineOf[ block - 1 ] )
- return FALSE;
- Int width = 0, tall = 0;
- l.versusText->getSize( &width, &tall );
- *x = l.blockLefts[ block ] - ( l.versusWidth + width ) / 2;
- *y = l.blockCardsTops[ block ] + ( l.cardHeight - tall ) / 2;
- return TRUE;
- };
- for( size_t block = 0; block < from.blockFirst.size(); block++ )
- {
- const Int other = sliding ? teamIn( to, from.players[ from.blockFirst[ block ] ].team ) : -1;
- Int firstX = 0, firstY = 0, secondX = 0, secondY = 0;
- const Bool versusFirst = versusAt( from, (Int)block, &firstX, &firstY );
- const Bool versusSecond = other >= 0 && versusAt( to, other, &secondX, &secondY );
- drawMoving( versusFirst && versusSecond ? face.versusText : versusFirst ? from.versusText : to.versusText, BROADCAST_MUTED,
- versusFirst, firstX, firstY, versusSecond, secondX, secondY );
-
- const Bool headerFirst = from.teamNames[ block ] != NULL;
- const Bool headerSecond = other >= 0 && to.teamNames[ other ] != NULL;
- if( !headerFirst && !headerSecond )
- continue;
- const BroadcastLayout &look = headerFirst && headerSecond ? face : headerFirst ? from : to;
- const Int lookBlock = &look == &from ? (Int)block : other;
- Int totalWidth = 0, totalHeight = 0;
- look.teamTotals[ lookBlock ]->getSize( &totalWidth, &totalHeight );
- const Int secondLeft = other >= 0 ? to.blockLefts[ other ] : 0;
- const Int secondRight = other >= 0 ? to.blockLefts[ other ] + to.blockWidths[ other ] : 0;
- const Int secondTop = other >= 0 ? to.blockHeaderTops[ other ] : 0;
- drawMoving( look.teamNames[ lookBlock ], BROADCAST_GOLD, headerFirst, from.blockLefts[ block ], from.blockHeaderTops[ block ],
- headerSecond, secondLeft, secondTop );
- drawMoving( look.teamTotals[ lookBlock ], BROADCAST_INK, headerFirst, from.blockLefts[ block ] + from.blockWidths[ block ] - totalWidth,
- from.blockHeaderTops[ block ], headerSecond, secondRight - totalWidth, secondTop );
- }
-
- // a card a player, the house colour along its top, the name, the general or the difficulty, then one
- // money line: the cash at the left, the army's label and value at the right. A defeated player's card
- // flashes red, takes a red veil and has a line drawn through his name; closing, its words go first
- auto drawCard = [ & ]( const BroadcastLayout &l, Int index, const BroadcastPlace &place, Real faded, Real words, Real flash, Real struck )
- {
- const BroadcastRow &row = l.rows[ index ];
- const Int textLeft = place.left + l.cardPad;
- const Int numberEnd = place.left + place.width - l.cardPad;
- TheDisplay->drawFillRect( place.left, place.top, place.width, place.height, broadcastFade( BROADCAST_PANEL, faded ) );
- if( struck > 0.0f )
- TheDisplay->drawFillRect( place.left, place.top, place.width, place.height, broadcastFade( BROADCAST_DEFEAT, 0.2f * struck * faded ) );
- drawBroadcastSwatch( place.left, place.top, place.width, l.strip, broadcastFade( row.color, faded ) );
- if( words > 0.0f )
- {
- const Color ground = broadcastFade( BROADCAST_GROUND, words );
- Int top = place.top + l.strip + l.halfPad;
- Int numberWidth = 0, numberTall = 0;
- row.name->getSize( &numberWidth, &numberTall );
- const Int nameTop = l.compact ? top + l.textHeight - numberTall : top;
- const Int nameTall = numberTall;
- row.name->draw( textLeft, nameTop, broadcastFade( ObserverCamera_readableColor( row.color ), words * ( 1.0f - 0.4f * struck ) ), ground );
- if( !l.compact )
- {
- // the general or difficulty at the right of the name's line, on the name's foot
- const Int lineHeight = max( l.nameHeight, l.sideHeight );
- Int sideWidth = 0, sideTall = 0;
- row.side->getSize( &sideWidth, &sideTall );
- row.side->draw( numberEnd - sideWidth, top + lineHeight - sideTall, broadcastFade( BROADCAST_MUTED, words ), ground );
- top += lineHeight;
- }
- const Int moneyBottom = l.compact ? top + l.textHeight : top + l.numberHeight;
- row.army->getSize( &numberWidth, &numberTall );
- row.army->draw( numberEnd - numberWidth, moneyBottom - numberTall, broadcastFade( BROADCAST_INK, words ), ground );
- if( !l.compact )
- {
- Int armyLabelWidth = 0, armyLabelTall = 0;
- l.armyHead->getSize( &armyLabelWidth, &armyLabelTall );
- l.armyHead->draw( numberEnd - numberWidth - l.halfPad - armyLabelWidth, moneyBottom - l.labelHeight, broadcastFade( BROADCAST_MUTED, words ), ground );
- row.cash->getSize( &numberWidth, &numberTall );
- row.cash->draw( textLeft, moneyBottom - numberTall, broadcastFade( BROADCAST_INK, words ), ground );
- }
- // the line runs left to right across the card through the name, edged in the ground so it reads
- // over a red player's name as well
- if( struck > 0.0f )
- {
- const Int thick = max( broadcastPixels( BROADCAST_STRIKE ), 2 );
- const Int lineTop = nameTop + ( nameTall - thick ) / 2;
- const Int length = REAL_TO_INT( ( place.width - 2 * l.cardPad ) * struck );
- TheDisplay->drawFillRect( textLeft, lineTop - 1, length, thick + 2, ground );
- TheDisplay->drawFillRect( textLeft, lineTop, length, thick, broadcastFade( BROADCAST_DEFEAT, words ) );
- }
- }
- if( flash > 0.0f )
- TheDisplay->drawFillRect( place.left, place.top, place.width, place.height, broadcastFade( BROADCAST_DEFEAT, 0.85f * flash * faded ) );
- };
- // the closing card first, so the others slide over it
- for( Int pass = 0; pass < 2; pass++ )
- for( size_t index = 0; index < from.players.size(); index++ )
- {
- const Int other = sliding ? seatIn( to, from.players[ index ].player ) : (Int)index;
- const Bool closing = sliding && other < 0;
- if( closing != ( pass == 0 ) )
- continue;
- const BroadcastLayout &look = closing ? from : face;
- drawCard( look, &look == &from ? (Int)index : other, cardPlace( (Int)index ), closing ? 1.0f - slide : 1.0f,
- closing ? max( 1.0f - slide * 4.0f, 0.0f ) : 1.0f, flashes[ index ], strikes[ index ] );
- }
-
- // the armies' bar under the whole row, every player's share in the cards' order, so with two sides
- // each pulls from its own end and they meet at a gold mark in the middle; more sides are parted by
- // the ground's colour
- const Int faceBlocks = (Int)face.blockFirst.size();
- std::vector< Int > barArmies, barBlocks;
- for( Int block = 0; block < faceBlocks; block++ )
- for( Int index = face.blockFirst[ block ]; index < face.blockFirst[ block ] + face.blockSizes[ block ]; index++ )
- {
- barArmies.push_back( face.players[ index ].army );
- barBlocks.push_back( block );
- }
- TheDisplay->drawFillRect( rowLeft, tugTop, rowWidth, tug, BROADCAST_LINE );
- const std::vector< Int > shares = ObserverCamera_barShares( barArmies, rowWidth );
- Int barAt = rowLeft;
- for( size_t piece = 0; piece < shares.size(); piece++ )
- {
- drawBroadcastSwatch( barAt, tugTop, shares[ piece ], tug, face.rows[ piece ].color );
- if( faceBlocks > 2 && piece > 0 && barBlocks[ piece ] != barBlocks[ piece - 1 ] )
- TheDisplay->drawFillRect( barAt, tugTop - rule, rule, tug + 2 * rule, BROADCAST_GROUND );
- barAt += shares[ piece ];
- }
- if( faceBlocks == 2 )
- TheDisplay->drawFillRect( rowLeft + ( rowWidth - rule ) / 2, tugTop - rule, rule, tug + 2 * rule, BROADCAST_GOLD );
-
- IRegion2D bar;
- bar.lo.x = left - frameReach;
- bar.lo.y = 0;
- bar.hi.x = left + barWidth + frameReach;
- bar.hi.y = max( height + frameReach, 0 );
- TheObserverCamera.addBroadcast( bar );
- for( size_t flag = 0; flag < flagsDrawn.size(); flag++ )
- TheObserverCamera.addBroadcast( flagsDrawn[ flag ] );
- const Int barFoot = max( height + frameReach + pad, 0 );
- TheObserverCamera.setBroadcastTop( (Real)barFoot );
- static Int loggedHeight = -1;
- if( !sliding && lift == 0 && height != loggedHeight )
- {
- loggedHeight = height;
- DEBUG_LOG(( "OBSCAM frame %u score bar %d x %d, %d row(s), size %d (name %d, detail %d points), card %d of %d\n", frame,
- barWidth, height, from.lines, from.step, BROADCAST_CARD_NAME_POINTS[ from.step ], BROADCAST_CARD_DETAIL_POINTS[ from.step ],
- from.cardWidth, from.fullCardWidth ));
- }
-
- // a split's plate a pane, faded in and out with the panes; the opening's are each pane's own. The
- // whole screen has none: the score bar over it already names every side
- const Real paneShown = TheObserverCamera.getPaneProgress();
- const Int panes = TheObserverCamera.isIntro() ? 0 : TheObserverCamera.getDrawnPaneCount();
- DisplayString *versus = broadcastText( "versus", UnicodeString( u"vs" ), BROADCAST_WORDS, broadcastPoints( BROADCAST_SIDE_POINTS ), FALSE );
- // a team of two or more by its name once, a player alone by his own
- auto sidesPlate = [ & ]( PlayerMaskType sides ) -> BroadcastPlate
- {
- BroadcastPlate plate;
- for( size_t block = 0; block < from.blockFirst.size(); block++ )
- {
- for( Int index = from.blockFirst[ block ]; index < from.blockFirst[ block ] + from.blockSizes[ block ]; index++ )
- {
- Player *player = from.players[ index ].player;
- if( ( player->getPlayerMask() & sides ) == 0 )
- continue;
- if( !plate.pieces.empty() )
- {
- plate.pieces.push_back( versus );
- plate.colors.push_back( BROADCAST_MUTED );
- }
- const Bool team = from.teamNames[ block ] != NULL;
- plate.pieces.push_back( team ? broadcastText( "plateteam" + std::to_string( block ), broadcastTeamName( named, from.players[ index ].team ),
- BROADCAST_WORDS, broadcastPoints( BROADCAST_NAME_POINTS ), TRUE ) : broadcastNameText( "name" + std::to_string( player->getPlayerIndex() ),
- player, BROADCAST_NAME_POINTS, BROADCAST_PLATE_NAME_WIDEST ) );
- plate.colors.push_back( team ? BROADCAST_INK : ObserverCamera_readableColor( from.rows[ index ].color ) );
- if( team )
- break;
- }
- }
- return plate;
- };
- // each plate's sides are logged when they change, so a film's plates can be counted
- static PlayerMaskType loggedSides[ OBSERVER_MOST_PANES ];
- auto placePlate = [ & ]( Int slot, PlayerMaskType sides, const BroadcastPlate &plate, Int plateLeft, Int plateTop, Int plateWidth,
- Int plateHeight, Real shown )
- {
- if( sides != loggedSides[ slot ] )
- {
- loggedSides[ slot ] = sides;
- DEBUG_LOG(( "OBSCAM frame %u pane plate %d, %d name(s)%s\n", frame, slot, (Int)( plate.pieces.size() + 1 ) / 2,
- plate.pieces.size() > 1 ? ", vs" : "" ));
- }
- drawBroadcastPlate( plate, plateLeft, plateTop, shown );
- IRegion2D drawn;
- drawn.lo.x = plateLeft;
- drawn.lo.y = plateTop;
- drawn.hi.x = plateLeft + plateWidth;
- drawn.hi.y = plateTop + plateHeight;
- TheObserverCamera.addBroadcast( drawn );
- };
- for( Int pane = 0; pane < OBSERVER_MOST_PANES; pane++ )
- {
- const PlayerMaskType sides = pane < panes && panes >= 2 ? TheObserverCamera.getPaneSides( pane ) : 0;
- const BroadcastPlate plate = sidesPlate( sides );
- if( plate.pieces.empty() )
- {
- loggedSides[ pane ] = 0;
- continue;
- }
- Int plateWidth = 0, plateHeight = 0;
- broadcastPlateSize( plate, &plateWidth, &plateHeight );
- Coord2D centre;
- Real radius = 0.0f;
- TheObserverCamera.getPaneCircle( pane, &centre, &radius );
- const Int plateTop = REAL_TO_INT( ObserverCamera_paneLabelTop( centre, radius, (Real)plateWidth, (Real)plateHeight ) );
- placePlate( pane, sides, plate, REAL_TO_INT( centre.x ) - plateWidth / 2, plateTop, plateWidth, plateHeight, paneShown );
- }
- // a defeated player's banner across the lower picture, the broadcast's red in its tab, and once the
- // match is decided the winner's under it in gold. A banner names the player in his colour, under it
- // his general or difficulty and his team
- auto bannerLines = [ & ]( Player *player, BroadcastPlate *title, BroadcastPlate *under )
- {
- const std::string seat = std::to_string( player->getPlayerIndex() );
- title->pieces.push_back( broadcastNameText( "bannername" + seat, player, BROADCAST_BANNER_POINTS, BROADCAST_BANNER_NAME_WIDEST ) );
- title->colors.push_back( ObserverCamera_readableColor( clientPlayerColor( player ) ) );
- under->pieces.push_back( broadcastText( "bannerside" + seat, broadcastSide( player ), BROADCAST_WORDS, broadcastPoints( BROADCAST_SIDE_POINTS ), FALSE ) );
- under->colors.push_back( BROADCAST_MUTED );
- for( size_t index = 0; index < named.size(); index++ )
- {
- if( named[ index ].player != player || broadcastTeamSize( named, named[ index ].team ) < 2 )
- continue;
- under->pieces.push_back( broadcastText( "bannerteam" + seat, broadcastTeamName( named, named[ index ].team ), BROADCAST_WORDS,
- broadcastPoints( BROADCAST_SIDE_POINTS ), TRUE ) );
- under->colors.push_back( BROADCAST_GOLD );
- }
- };
- const Int foot = REAL_TO_INT( TheDisplay->getHeight() * BROADCAST_BANNER_FOOT );
- Real defeatShown = 0.0f;
- const DirectorShowing *defeat = TheObserverCamera.getDefeatBanner( &defeatShown );
- if( defeat != NULL && defeatShown > 0.0f )
- {
- BroadcastPlate title, under;
- bannerLines( ThePlayerList->getNthPlayer( defeat->player ), &title, &under );
- DisplayString *word = broadcastText( "bannerdefeated", UnicodeString( u"Defeated" ), BROADCAST_WORDS,
- broadcastPoints( BROADCAST_BANNER_WORD_POINTS ), TRUE );
- TheObserverCamera.addBroadcast( drawBroadcastBanner( word, BROADCAST_DEFEAT, BROADCAST_INK, title, under, foot, defeatShown ) );
- }
- // a team that won is named once, its players under it
- const Real winnerShown = TheObserverCamera.getWinnerShown();
- std::vector< const SpectatorStats * > winners;
- for( size_t index = 0; index < named.size(); index++ )
- if( named[ index ].player->isPlayerActive() )
- winners.push_back( &named[ index ] );
- if( winnerShown > 0.0f && !winners.empty() )
- {
- BroadcastPlate title, under;
- const Int team = winners[ 0 ]->team;
- if( broadcastTeamSize( named, team ) >= 2 )
- {
- title.pieces.push_back( broadcastText( "bannerwinteam", broadcastTeamName( named, team ), BROADCAST_WORDS,
- broadcastPoints( BROADCAST_BANNER_POINTS ), TRUE ) );
- title.colors.push_back( BROADCAST_INK );
- for( size_t index = 0; index < winners.size(); index++ )
- {
- Player *player = winners[ index ]->player;
- under.pieces.push_back( broadcastNameText( "bannerwinner" + std::to_string( player->getPlayerIndex() ), player,
- BROADCAST_SIDE_POINTS, BROADCAST_BANNER_NAME_WIDEST ) );
- under.colors.push_back( ObserverCamera_readableColor( clientPlayerColor( player ) ) );
- }
- }
- else
- bannerLines( winners[ 0 ]->player, &title, &under );
- DisplayString *word = broadcastText( "bannervictory", UnicodeString( u"Victory" ), BROADCAST_WORDS,
- broadcastPoints( BROADCAST_BANNER_WORD_POINTS ), TRUE );
- const Int winnerFoot = foot + broadcastPixels( BROADCAST_GAP ) + broadcastBannerHeight( title, under );
- TheObserverCamera.addBroadcast( drawBroadcastBanner( word, BROADCAST_GOLD, BROADCAST_GROUND, title, under, winnerFoot, winnerShown ) );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The opening's plate for the pane being drawn, the player's name with a player's side and team under
- * it, hung just over his command centre and kept inside the pane's circle through the camera drawing that pane, so it stays on the
- * building as the camera moves, zooms and slides. Drawn in the pane's own draw it lies on that
- * pane's picture, and the recording takes it with the pane; held on the screen when the building
- * goes off it, and faded with the panes. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawDirectorIntroPlate( void )
-{
- const Real shown = TheObserverCamera.getPaneProgress();
- if( !TheObserverCamera.isIntro() || shown <= 0.0f )
- return;
- const Int pane = TheObserverCamera.getDrawingPane();
- ICoord2D over;
- if( TheTacticalView->worldToScreenTriReturn( &TheObserverCamera.getIntroMark( pane ), &over ) == View::WTS_INVALID )
- return;
-
- Player *player = ThePlayerList->getNthPlayer( TheObserverCamera.getIntroPlayerIndex( pane ) );
- const std::string seat = std::to_string( player->getPlayerIndex() );
- const std::vector< SpectatorStats > players = gatherSpectatorStats( SPECTATOR_STATS[ 0 ], NULL );
- Coord2D centre;
- Real radius = 0.0f;
- TheObserverCamera.getPaneCircle( pane, &centre, &radius );
-
- // the name on top, and under it, smaller, a player's side and the team he is on: side by side on
- // one plate they ran past the rays of an eight-pane opening. A block wider than the pane's circle
- // steps down through smaller sizes until it fits, or takes the smallest; each size has keys of its
- // own since a string keeps the font it was made with
- BroadcastPlate name;
- BroadcastPlate under;
- Int nameWidth = 0, nameHeight = 0, underWidth = 0, underHeight = 0;
- const Int nameSizes[] = { BROADCAST_NAME_POINTS, BROADCAST_SIDE_POINTS, BROADCAST_HEAD_POINTS };
- const Int underSizes[] = { BROADCAST_SIDE_POINTS, BROADCAST_COMPACT_POINTS, BROADCAST_HEAD_POINTS };
- const Int sizeCount = ARRAY_SIZE( nameSizes );
- for( Int step = 0; step < sizeCount; step++ )
- {
- const std::string size = std::to_string( step ) + ":";
- const Int underPoints = broadcastPoints( underSizes[ step ] );
- name = BroadcastPlate();
- under = BroadcastPlate();
- name.pieces.push_back( broadcastNameText( "name" + size + seat, player, nameSizes[ step ], BROADCAST_INTRO_NAME_WIDEST ) );
- name.colors.push_back( ObserverCamera_readableColor( clientPlayerColor( player ) ) );
- // an AI called by its general has it on top already; one with a name of its own gets it here
- if( !broadcastByDifficulty( player ) )
- {
- under.pieces.push_back( broadcastText( "side" + size + seat, broadcastSide( player ), BROADCAST_WORDS, underPoints, FALSE ) );
- under.colors.push_back( BROADCAST_MUTED );
- }
- for( size_t index = 0; index < players.size(); index++ )
- {
- if( players[ index ].player != player || broadcastTeamSize( players, players[ index ].team ) < 2 )
- continue;
- under.pieces.push_back( broadcastText( "introteam" + size + seat, broadcastTeamName( players, players[ index ].team ), BROADCAST_WORDS,
- underPoints, TRUE ) );
- under.colors.push_back( BROADCAST_GOLD );
- }
- broadcastPlateSize( name, &nameWidth, &nameHeight );
- underWidth = underHeight = 0;
- if( !under.pieces.empty() )
- broadcastPlateSize( under, &underWidth, &underHeight );
- const Real across = (Real)max( nameWidth, underWidth );
- const Real down = (Real)( nameHeight + underHeight );
- if( across * across + down * down <= 4.0f * radius * radius )
- break;
- }
- const Real width = (Real)max( nameWidth, underWidth );
- const Real height = (Real)( nameHeight + underHeight );
-
- // hung over the command centre, then pulled in until all of it is inside the pane's circle, so no
- // ray cuts it and the score bar does not cover it
- Coord2D middle;
- middle.x = (Real)over.x;
- middle.y = over.y - broadcastPixels( BROADCAST_PAD ) - height * 0.5f;
- const Real room = max( radius - sqrtf( width * width + height * height ) * 0.5f, 0.0f );
- const Real dx = middle.x - centre.x;
- const Real dy = middle.y - centre.y;
- const Real away = sqrtf( dx * dx + dy * dy );
- if( away > room )
- {
- middle.x = centre.x + ( away > 0.0f ? dx / away * room : 0.0f );
- middle.y = centre.y + ( away > 0.0f ? dy / away * room : 0.0f );
- }
- const Int top = min( max( REAL_TO_INT( middle.y - height * 0.5f ), 0 ), (Int)( TheDisplay->getHeight() - height ) );
- const Int nameLeft = min( max( REAL_TO_INT( middle.x ) - nameWidth / 2, 0 ), (Int)TheDisplay->getWidth() - nameWidth );
- drawBroadcastPlate( name, nameLeft, top, shown );
- if( under.pieces.empty() )
- return;
- const Int underLeft = min( max( REAL_TO_INT( middle.x ) - underWidth / 2, 0 ), (Int)TheDisplay->getWidth() - underWidth );
- drawBroadcastPlate( under, underLeft, top + nameHeight, shown );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The Reforged command bar is still a draft, and players kept reporting it as one. This says so
- * first: a line of text drifting diagonally over the bar's band and turning back off its edges.
- * It moves on the wall clock, so 120 frames a second and 30 cross the bar at the same speed, and
- * it is only drawn, never a window, so a click goes straight through it. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawWireframeNotice( void )
-{
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
- // hidden while the game loads and in the observer views, and then there is nothing to excuse
- if( TheControlBar->getMasterParent()->winIsHidden() )
- return;
-
- // the three plates' laid out rectangles: radar on the left to the powers on the right
- IRegion2D box = *TheControlBar->getPanelRect( 0 );
- for( Int p = 1; p < ControlBar::CB_PANEL_COUNT; p++ )
- {
- const IRegion2D *panel = TheControlBar->getPanelRect( p );
- box.lo.x = min( box.lo.x, panel->lo.x );
- box.lo.y = min( box.lo.y, panel->lo.y );
- box.hi.x = max( box.hi.x, panel->hi.x );
- box.hi.y = max( box.hi.y, panel->hi.y );
- }
- box.hi.y = min( box.hi.y, (Int)TheDisplay->getHeight() );
+ success = (obj->isKindOf(KINDOF_AUTO_RALLYPOINT) && obj->isLocallyControlled());
+ break;
+ }
+ }
- // two strings, one a line: the text renderer has no concept of a newline
- static const char *const LINES[ WIREFRAME_LINES ] = { "GUI:WireframeNotice", "GUI:WireframeNotice2" };
- if( m_wireframeNotice[ 0 ] == NULL )
- {
- for( Int i = 0; i < WIREFRAME_LINES; i++ )
+ if( success )
{
- m_wireframeNotice[ i ] = TheDisplayStringManager->newDisplayString();
- m_wireframeNotice[ i ]->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
- TheGlobalLanguageData->adjustFontSize( 11 ), TRUE ) );
- m_wireframeNotice[ i ]->setText( TheGameText->fetch( LINES[ i ] ) );
+ if( rule == SELECTION_ANY )
+ {
+ return TRUE;
+ }
+
+ ++qualify;
}
- m_wireframePos.x = (Real)box.lo.x;
- m_wireframePos.y = (Real)box.lo.y;
- }
+ } // end for
- // the block is as wide as its wider line and as tall as both
- Int lineWidth[ WIREFRAME_LINES ], lineHeight[ WIREFRAME_LINES ];
- Int width = 0, height = 0;
- for( Int i = 0; i < WIREFRAME_LINES; i++ )
+ //If the rule is all must qualify, do the check now and return success
+ //only if all the selected units qualified.
+ if( rule == SELECTION_ALL && count > 0 && qualify == count )
{
- m_wireframeNotice[ i ]->getSize( &lineWidth[ i ], &lineHeight[ i ] );
- width = max( width, lineWidth[ i ] );
- height += lineHeight[ i ];
+ return TRUE;
}
- // a tenth of the screen's height a second; a frame after a stall or a pause moves at most 100 ms
- // worth, rather than jumping the text across the bar
- const UnsignedInt nowMs = Clock_Milliseconds();
- const UnsignedInt stepMs = m_wireframeLastMs == 0 ? 0 : min( nowMs - m_wireframeLastMs, 100u );
- m_wireframeLastMs = nowMs;
- const Real step = TheDisplay->getHeight() * 0.1f * stepMs / 1000.0f;
- m_wireframePos.x += m_wireframeDir.x * step;
- m_wireframePos.y += m_wireframeDir.y * step;
-
- const Real right = (Real)( box.hi.x - width );
- const Real bottom = (Real)( box.hi.y - height );
- if( m_wireframePos.x >= right ) { m_wireframePos.x = right; m_wireframeDir.x = -1.0f; }
- if( m_wireframePos.x <= box.lo.x ) { m_wireframePos.x = (Real)box.lo.x; m_wireframeDir.x = 1.0f; }
- if( m_wireframePos.y >= bottom ) { m_wireframePos.y = bottom; m_wireframeDir.y = -1.0f; }
- if( m_wireframePos.y <= box.lo.y ) { m_wireframePos.y = (Real)box.lo.y; m_wireframeDir.y = 1.0f; }
-
- Int y = REAL_TO_INT( m_wireframePos.y );
- for( Int i = 0; i < WIREFRAME_LINES; i++ )
- {
- m_wireframeNotice[ i ]->draw( REAL_TO_INT( m_wireframePos.x ) + ( width - lineWidth[ i ] ) / 2, y,
- GameMakeColor( 255, 220, 120, 100 ), GameMakeColor( 0, 0, 0, 100 ) );
- y += lineHeight[ i ];
- }
+ // no can do!
+ return FALSE;
}
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawHudOverlay( void )
+//------------------------------------------------------------------------------
+Bool InGameUI::canSelectedObjectsDoSpecialPower( const CommandButton *command, const Object *objectToInteractWith, const Coord3D *position, SelectionRules rule, UnsignedInt commandOptions, Object* ignoreSelObj ) const
{
- // the corner is measured fresh every frame, and this plate is the first thing in it
- m_hudOverlayBottom = 0;
-
- // the command bar page's network box reads these whether the plate is switched on or not; the
- // plate itself stands down while the page is up, the box is where they are written then
- const Bool plate = TheGlobalData->m_showHudOverlay && TheGlobalData->m_showNetBox && !m_controlBarPageShown;
-
- // only once a real game is under way - not in the shell, and not on the menu's background map
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
+ //Get the special power template.
+ const SpecialPowerTemplate *spTemplate = command->getSpecialPowerTemplate();
- if( TheGameLogic->getFrame() == 0 )
- return;
+ //Order of precendence:
+ //1) NO TARGET OR POS
+ //2) COMMAND_OPTION_NEED_OBJECT_TARGET
+ //3) NEED_TARGET_POS
+ Bool doAtPosition = BitTest( command->getOptions(), NEED_TARGET_POS );
+ Bool doAtObject = BitTest( command->getOptions(), COMMAND_OPTION_NEED_OBJECT_TARGET );
- //
- // Two rates, both sampled over half a second of wall clock so the numbers are readable, and
- // they are not the same thing. Client frames are the render rate. Logic frames are the
- // simulation, which is *supposed* to run at LOGICFRAMES_PER_SECOND and drops below it exactly
- // when a frame overruns its budget - so a reading under the nominal rate is the stutter,
- // measured, rather than something the render rate can be blamed for.
- //
- // NOT GameClient::getFrame() - that is the simulation frame number from the server, so the
- // "fps" reading was a second copy of the logic rate and moved with it. postDraw runs once per
- // rendered frame, so count the draws here instead.
- ++m_hudDrawCount;
- const UnsignedInt clientFrame = m_hudDrawCount;
- const UnsignedInt logicFrame = TheGameLogic->getFrame();
- UnsignedInt nowMs = Clock_Milliseconds();
- // a replay wound back runs the frame number backwards, and the unsigned difference read as tens
- // of millions of logic frames a second; the reading starts over from there instead
- if( m_hudLastSampleFrame == 0 || logicFrame < m_hudLastSampleLogicFrame )
+ //Sanity checks
+ if( doAtObject && !objectToInteractWith )
{
- m_hudLastSampleMs = nowMs;
- m_hudLastSampleFrame = clientFrame;
- m_hudLastSampleLogicFrame = logicFrame;
+ return false;
}
- else if( nowMs - m_hudLastSampleMs >= 500 )
+ if( doAtPosition && !position )
{
- const Real elapsed = (Real)(nowMs - m_hudLastSampleMs);
- m_hudFps.add( (clientFrame - m_hudLastSampleFrame) * 1000.0f / elapsed );
- m_hudLogicHz.add( (logicFrame - m_hudLastSampleLogicFrame) * 1000.0f / elapsed );
- m_hudLastSampleMs = nowMs;
- m_hudLastSampleFrame = clientFrame;
- m_hudLastSampleLogicFrame = logicFrame;
+ return false;
}
- //
- // Game time is logic frames; real time is the wall clock. They start together and drift apart
- // by however much the simulation has fallen behind - which is the same stutter the two rates
- // above show, totalled. The base is set the first time the overlay draws rather than at frame
- // zero, so switching it on mid-game does not invent an hour of lag.
- //
- // A pause stops the logic clock and not the wall clock, and the gap between the two readings
- // is meant to be simulation lag - time spent in the menu is not lag. So the base is walked
- // forward by every paused frame's worth of wall clock and both readouts stand still.
- //
- UnsignedInt gameSecs = logicFrame / LOGICFRAMES_PER_SECOND;
- if( m_hudRealClockBaseMs == 0 )
- m_hudRealClockBaseMs = nowMs - gameSecs * 1000;
- else if( TheGameLogic->isGamePaused() )
- m_hudRealClockBaseMs += nowMs - m_hudLastDrawMs;
- m_hudLastDrawMs = nowMs;
- UnsignedInt realSecs = (nowMs - m_hudRealClockBaseMs) / 1000;
-
- // the machine's own clock first, for a player who wants to know when to stop
- WallClockTime wallClock;
- getLocalWallClock( &wallClock );
+ // get selected list of drawables
+ Drawable* ignoreSelDraw = ignoreSelObj ? ignoreSelObj->getDrawable() : NULL;
- UnicodeString text;
- text.format( u"%02d:%02d %02d:%02d:%02d(%02d:%02d:%02d) %dhz(%dfps) %s",
- wallClock.wHour, wallClock.wMinute,
- gameSecs / 3600, (gameSecs / 60) % 60, gameSecs % 60,
- realSecs / 3600, (realSecs / 60) % 60, realSecs % 60,
- m_hudLogicHz.shown, m_hudFps.shown,
- TheDisplay->getRendererName() );
+ DrawableList tmpList;
+ if (ignoreSelDraw)
+ tmpList.push_back(ignoreSelDraw);
- UnicodeString frameText;
- frameText.format( u" frame %d", (Int)logicFrame );
- text.concat( frameText );
+ const DrawableList* selected = (tmpList.size() > 0) ? &tmpList : TheInGameUI->getAllSelectedDrawables();
- // in a network game, how far ahead the room can play without waiting on anybody, out of the
- // input delay it is running with, and the frame rate the slowest machine has set for everyone:
- // ready falling to 0 is the stall, seen before it is felt
- if( TheNetwork != NULL )
- {
- UnicodeString netText;
- netText.format( u" ready %d/%d room %dfps", (Int)TheNetwork->getFramesReady(),
- (Int)TheNetwork->getRunAhead(), (Int)TheNetwork->getFrameRate() );
- text.concat( netText );
- }
+ // set up counters for rule checking
+ Int count = 0;
+ Int qualify = 0;
- // the lobby's unit limit, as this player's own share and not the match total: what stands and
- // what is queued, against the number the production queue refuses at
- const UnsignedInt unitCap = TheGameLogic->getUnitCap();
- const Player *localPlayer = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
- if( unitCap > 0 && localPlayer && !localPlayer->isPlayerObserver() )
+ // loop through all the selected drawables
+ for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
{
- UnicodeString units;
- units.format( u" %d/%d units", localPlayer->countUnitsTowardCap(), unitCap );
- text.concat( units );
- }
+
+ // get this drawable
+ Drawable* other = *it;
+ count++;
- // the same readings, one value each, for the page
- char reading[ sizeof( "00:00:00" ) ];
- m_hudValues.clear();
- sprintf( reading, "%02d:%02d", wallClock.wHour, wallClock.wMinute );
- m_hudValues[ "net.clock" ] = reading;
- sprintf( reading, "%02u:%02u:%02u", gameSecs / 3600, ( gameSecs / 60 ) % 60, gameSecs % 60 );
- m_hudValues[ "net.game" ] = reading;
- sprintf( reading, "%02u:%02u:%02u", realSecs / 3600, ( realSecs / 60 ) % 60, realSecs % 60 );
- m_hudValues[ "net.real" ] = reading;
- m_hudValues[ "net.hz" ] = std::to_string( m_hudLogicHz.shown );
- m_hudValues[ "net.fps" ] = std::to_string( m_hudFps.shown );
- m_hudValues[ "net.renderer" ] = WideCharStringToMultiByte( TheDisplay->getRendererName() );
- // as of the last rate reading, twice a second: every frame laid the box out thirty times a second
- m_hudValues[ "net.frame" ] = std::to_string( m_hudLastSampleLogicFrame );
- if( TheNetwork != NULL )
- {
- enum { BYTES_PER_KILOBYTE = 1024 };
- m_hudValues[ "net.online" ] = "online";
- m_hudValues[ "net.ready" ] = std::to_string( TheNetwork->getFramesReady() );
- m_hudValues[ "net.runahead" ] = std::to_string( TheNetwork->getRunAhead() );
- m_hudValues[ "net.room" ] = std::to_string( TheNetwork->getFrameRate() );
- m_hudValues[ "net.in" ] = std::to_string( REAL_TO_INT( TheNetwork->getIncomingBytesPerSecond() / BYTES_PER_KILOBYTE ) );
- m_hudValues[ "net.out" ] = std::to_string( REAL_TO_INT( TheNetwork->getOutgoingBytesPerSecond() / BYTES_PER_KILOBYTE ) );
- }
- if( unitCap > 0 && localPlayer && !localPlayer->isPlayerObserver() )
- {
- m_hudValues[ "net.units" ] = std::to_string( localPlayer->countUnitsTowardCap() );
- m_hudValues[ "net.cap" ] = std::to_string( unitCap );
- m_hudValues[ "net.capped" ] = "capped";
+ if( !doAtObject && !doAtPosition )
+ {
+ if( TheActionManager->canDoSpecialPower( other->getObject(), spTemplate, CMD_FROM_PLAYER, commandOptions ) )
+ {
+ //This is the no target version
+ if( rule == SELECTION_ANY )
+ {
+ return true;
+ }
+ qualify++;
+ }
+ }
+ else if( doAtObject )
+ {
+ if( TheActionManager->canDoSpecialPowerAtObject( other->getObject(), objectToInteractWith, CMD_FROM_PLAYER, spTemplate, commandOptions ) )
+ {
+ //This requires a object target
+ if( rule == SELECTION_ANY )
+ {
+ return true;
+ }
+ qualify++;
+ }
+ }
+ else if( doAtPosition )
+ {
+ if( TheActionManager->canDoSpecialPowerAtLocation( other->getObject(), position, CMD_FROM_PLAYER, spTemplate, objectToInteractWith, commandOptions ) )
+ {
+ //This requires a valid location.
+ if( rule == SELECTION_ANY )
+ {
+ return true;
+ }
+ qualify++;
+ }
+ }
}
-
- if( !plate )
- return;
-
- if( m_hudDisplayString == NULL )
+ if( rule == SELECTION_ALL && count > 0 && qualify == count )
{
- // bold at a small point size, because this plate is read at a glance rather than read
- m_hudDisplayString = TheDisplayStringManager->newDisplayString();
- m_hudDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
- TheGlobalLanguageData->adjustFontSize( HUD_CLOCK_POINT_SIZE ),
- TRUE ) );
+ return true;
}
- m_hudDisplayString->setText( text );
-
- Int textWidth = 0, textHeight = 0;
- m_hudDisplayString->getSize( &textWidth, &textHeight );
+ return false;
+}
- // top right, clear of the radar and the superweapon timers, and first in that corner: the peace
- // time clock is drawn across the top middle of the screen and takes no room here.
- //
- // The three gaps are 800x600 numbers put through the command bar's own scale, like everything
- // else on this overlay. Held at a flat pixel count the plate crept into the corner as the
- // screen grew: the lettering inside it scales and the margin around it did not, so a 1440-tall
- // shot and a 1080-tall one did not overlay however the text was sized.
- const Int pad = stripPixels( 2 );
- const UIRect box = TheUIRect();
- Int x = box.x + box.w - textWidth - pad - stripPixels( 4 );
- Int y = box.y + stripPixels( 2 );
+//------------------------------------------------------------------------------
+Bool InGameUI::canSelectedObjectsOverrideSpecialPowerDestination( const Coord3D *loc, SelectionRules rule, SpecialPowerType spType ) const
+{
+ // set up counters for rule checking
+ Int count = 0;
+ Int qualify = 0;
- // a plate behind it, so it stays legible over bright terrain
- TheDisplay->drawFillRect( x - pad, y - 1, textWidth + pad*2, textHeight + 2,
- GameMakeColor( 0, 0, 0, 140 ) );
+ // get selected list of drawables
+ const DrawableList *selected = TheInGameUI->getAllSelectedDrawables();
- // the superweapon timers read this to start below the plate rather than behind it
- m_hudOverlayBottom = y - 1 + textHeight + 2;
+ // loop through all the selected drawables
+ Drawable *other;
+ for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
+ {
+
+ // get this drawable
+ other = *it;
+ count++;
- m_hudDisplayString->draw( x, y, GameMakeColor( 235, 235, 235, 255 ), GameMakeColor( 0, 0, 0, 255 ) );
+ if( TheActionManager->canOverrideSpecialPowerDestination( other->getObject(), loc, spType, CMD_FROM_PLAYER ) )
+ {
+ if( rule == SELECTION_ANY )
+ {
+ return true;
+ }
+ qualify++;
+ }
+ }
+ if( rule == SELECTION_ALL && count > 0 && qualify == count )
+ {
+ return true;
+ }
+ return false;
}
-//-------------------------------------------------------------------------------------------------
-// The production strip: one cameo per queued item, drawn in rows of five standing on the console
-// over the selection's well and growing upward, soonest to finish at the bottom left - the item
-// about to pop is always the cell nearest the bar, wherever in the base it is being built. The run
-// is global - everything the local player has queued anywhere, the buildings going up on the
-// ground among them. It draws at most PRODUCTION_STRIP_ROW_MAX cameos and closes with a tenth cell
-// wearing a "+N" for whatever else is queued. Units and upgrades wear the same two border colours the command bar uses. The item a
-// building is actually working on wears a radial fill. A click takes the camera to the building an
-// item is queued on; right-click (or Ctrl-click) cancels one queued item.
-//-------------------------------------------------------------------------------------------------
-//-------------------------------------------------------------------------------------------------
-/** Append everything this object has queued, units and upgrades alike, into a list kept sorted by
- * how long each item still has to wait - soonest first. Everything is counted in *total; only
- * the 'max' items that finish first get a slot to be drawn in, whatever order they were met in.
- *
- * The wait is cumulative down a producer's queue: an entry only starts once everything ahead of
- * it has popped, so its remaining time is the time left on the entry in front plus its own build
- * time. Only the head of a queue carries progress, so this is what separates "arrives next" from
- * "arrives eventually" across a whole base's worth of buildings. A quantity modifier (the China
- * barracks' Red Guard pairs) does not multiply the wait - the entry overbuilds in place and all
- * of its units pop in the same handful of frames.
- *
- * 'leads' marks the building you have selected: its items go to the head of the row ahead of
- * everything else, sorted among themselves the same way. The building you are looking at is the
- * one you want to read, and hunting its cameos out of the whole base's queue by their border was
- * the job a second row used to do badly. */
-//-------------------------------------------------------------------------------------------------
-static void appendProducerQueue( Object *obj, InGameUI::ProductionStripSlot *slots,
- Int *count, Int max, Int *total, Bool leads )
+//------------------------------------------------------------------------------
+Bool InGameUI::canSelectedObjectsEffectivelyUseWeapon( const CommandButton *command, const Object *objectToInteractWith, const Coord3D *position, SelectionRules rule ) const
{
- if( obj == NULL )
- return;
+ //Get the special power template.
+ WeaponSlotType slot = command->getWeaponSlot();
- ProductionUpdateInterface *pu = obj->getProductionUpdateInterface();
- if( pu == NULL )
- return;
+ //Order of precendence:
+ //1) NO TARGET OR POS
+ //2) COMMAND_OPTION_NEED_OBJECT_TARGET
+ //3) NEED_TARGET_POS
+ Bool doAtPosition = BitTest( command->getOptions(), NEED_TARGET_POS );
+ Bool doAtObject = BitTest( command->getOptions(), COMMAND_OPTION_NEED_OBJECT_TARGET );
- Player *owner = obj->getControllingPlayer();
- Int ahead = 0; ///< frames the queue in front of the current entry still needs
- Int runAt = -1; ///< where this producer's last item went, so a run of the same thing folds into it
+ //Sanity checks
+ if( doAtObject && !objectToInteractWith )
+ {
+ return false;
+ }
+ if( doAtPosition && !position )
+ {
+ return false;
+ }
- for( const ProductionEntry *p = pu->firstProduction(); p; p = pu->nextProduction( p ) )
+ // get selected list of drawables
+ const DrawableList *selected = TheInGameUI->getAllSelectedDrawables();
+
+ // set up counters for rule checking
+ Int count = 0;
+ Int qualify = 0;
+
+ // loop through all the selected drawables
+ Drawable *other;
+ for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
{
- Int id = 0;
- Int typeKey = 0;
- Bool isUpgrade = FALSE;
- Int buildFrames = 0;
+
+ // get this drawable
+ other = *it;
+ count++;
- if( p->getProductionType() == PRODUCTION_UNIT )
+ if( !doAtObject && !doAtPosition )
{
- id = (Int)p->getProductionID();
- if( p->getProductionObject() )
+ if( TheActionManager->canFireWeapon( other->getObject(), slot, CMD_FROM_PLAYER ) )
{
- buildFrames = p->getProductionObject()->calcTimeToBuild( owner );
- typeKey = (Int)p->getProductionObject()->getTemplateID();
+ //This is the no target version
+ if( rule == SELECTION_ANY )
+ {
+ return true;
+ }
+ qualify++;
}
}
- else if( p->getProductionType() == PRODUCTION_UPGRADE && p->getProductionUpgrade() )
+ else if( doAtObject )
{
- isUpgrade = TRUE;
- id = (Int)p->getProductionUpgrade()->getUpgradeNameKey();
- typeKey = id;
- buildFrames = p->getProductionUpgrade()->calcTimeToBuild( owner );
+ if( TheActionManager->canFireWeaponAtObject( other->getObject(), objectToInteractWith, CMD_FROM_PLAYER, slot ) )
+ {
+ //This requires a object target
+ if( rule == SELECTION_ANY )
+ {
+ return true;
+ }
+ qualify++;
+ }
}
- else
- continue;
-
- Int left = buildFrames - REAL_TO_INT( buildFrames * p->getPercentComplete() / 100.0f );
- if( left < 0 )
- left = 0; // an item that is overbuilding while it waits for a door
- const Int remaining = ahead + left;
- ahead = remaining;
-
- //
- // one cameo per queue entry, not per unit that entry will deliver. A quantity modifier
- // (ProductionUpdate's QuantityModifier - the China barracks builds Red Guards in pairs)
- // makes one order hand back several units, but it is still one order: it was paid for
- // once, the command bar's count badge counts it once, and one cancel takes all of it
- // away. Drawing it as several cameos said the player had queued more than they had, and
- // promised a cancel per cameo that does not exist.
- //
- (*total)++;
-
- //
- // Ten Red Guards queued back to back are one order repeated, not ten things to read: they
- // fold into the cameo the run started, which wears an "xN". Only a run does - the same unit
- // queued again after something else is a second cameo, because that is what the queue looks
- // like - and only within one producer's queue, so the cameo still stands for a place you can
- // jump to and an item you can cancel. The countdown stays the one the run's first item
- // carries: what the cameo says is when the next of these arrives.
- //
- if( runAt >= 0 && runAt < *count && slots[ runAt ].typeKey == typeKey
- && slots[ runAt ].isUpgrade == isUpgrade && slots[ runAt ].producer == obj->getID() )
+ else if( doAtPosition )
{
- slots[ runAt ].quantity++;
- continue;
+ if( TheActionManager->canFireWeaponAtLocation( other->getObject(), position, CMD_FROM_PLAYER, slot, objectToInteractWith ) )
+ {
+ //This requires a valid location.
+ if( rule == SELECTION_ANY )
+ {
+ return true;
+ }
+ qualify++;
+ }
}
+ }
+ if( rule == SELECTION_ALL && count > 0 && qualify == count )
+ {
+ return true;
+ }
+ return false;
+}
- //
- // walk back over the items that finish later than this one and drop it in front of them.
- // Ties keep the order they were met in, so a base full of identical barracks stays put
- // instead of shuffling frame to frame. The selected building's items are a block of their
- // own at the head of the row: one of them passes everything that is not one of them, and
- // nothing else ever passes one.
- //
- Int at = *count;
- while( at > 0 && InGameUI::stripSlotGoesBefore( leads, remaining,
- slots[ at - 1 ].leads,
- slots[ at - 1 ].remaining ) )
- at--;
+// ------------------------------------------------------------------------------------------------
+Int InGameUI::selectAllUnitsByTypeAcrossRegion( IRegion2D *region, KindOfMaskType mustBeSet, KindOfMaskType mustBeClear )
+{
+ KindOfSelectionData data;
+ Int newSelectionCount = 0;
+ Int oldSelectionCount = getAllSelectedDrawables()->size();
- // something else has come between: whatever this producer queues next starts a new run
- runAt = -1;
+ data.m_mustbeSet = mustBeSet;
+ data.m_mustbeClear = mustBeClear;
- if( at >= max )
- continue; // everything already kept finishes sooner: counted, but not drawn
+ if (region)
+ {
+ TheTacticalView->iterateDrawablesInRegion(region, kindOfUnitSelection, (void *)&data);
+ newSelectionCount += data.newlySelectedDrawables.size();
+ }
+ else
+ {
+ // loop over the map
+ Drawable *temp = TheGameClient->firstDrawable();
+ while( temp )
+ {
+ if( kindOfUnitSelection( temp, (void *)&data) )
+ {
+ newSelectionCount ++;
+ }
- if( *count < max )
- (*count)++;
+ temp = temp->getNextDrawable();
+ }
+ }
+ setDisplayedMaxWarning( FALSE );
- for( Int j = *count - 1; j > at; j-- )
- slots[ j ] = slots[ j - 1 ];
+ if (newSelectionCount > 0)
+ {
+ // create selected message
+ GameMessage *teamMsg = TheMessageStream->appendMessage( GameMessage::MSG_CREATE_SELECTED_GROUP );
- runAt = at;
+ teamMsg->appendBooleanArgument( (oldSelectionCount == 0) ? TRUE : FALSE );
- InGameUI::ProductionStripSlot *slot = &slots[ at ];
- slot->producer = obj->getID();
- slot->id = id;
- slot->typeKey = typeKey;
- slot->isUpgrade = isUpgrade;
- slot->isStructure = FALSE;
- slot->leads = leads;
- slot->remaining = remaining;
- slot->quantity = 1;
- slot->pos.x = 0;
- slot->pos.y = 0;
+ const Drawable *draw;
+
+ //Loop through each drawable add append it's objectID to the event.
+ for( DrawableListCIt it = data.newlySelectedDrawables.begin(); it != data.newlySelectedDrawables.end(); ++it )
+ {
+ draw = *it;
+ if( draw && draw->getObject() )
+ {
+ teamMsg->appendObjectIDArgument( draw->getObject()->getID() );
+ }
+ }
}
+
+ return newSelectionCount;
}
-//-------------------------------------------------------------------------------------------------
-/** A building going up on the map, for the same column the queues go in.
- *
- * A factory's queue is the only production this strip used to know about, and a base spends half
- * its early game on the other kind: what a dozer or a worker is putting up is nowhere in a queue,
- * it is an object on the ground with a construction percentage on it. It is sorted in among the
- * queued items on the one thing they share - how long it still has - and a click on one takes the
- * camera to the site, which is the question a half-built base actually raises: where is it. */
-//-------------------------------------------------------------------------------------------------
-static void appendStructureUnderConstruction( Object *obj, InGameUI::ProductionStripSlot *slots,
- Int *count, Int max, Int *total )
+// ------------------------------------------------------------------------------------------------
+/** Selects maching units on the screen */
+// ------------------------------------------------------------------------------------------------
+Int InGameUI::selectMatchingAcrossRegion( IRegion2D *region )
{
- if( obj == NULL || !obj->testStatus( OBJECT_STATUS_UNDER_CONSTRUCTION ) )
- return;
-
- //
- // A rebuild hole wears the same status while it puts a GLA structure back up, and it has no
- // cameo of its own to draw - it would come through as an empty box that jumps the camera.
- //
- if( obj->isKindOf( KINDOF_REBUILD_HOLE ) || obj->getTemplate() == NULL
- || obj->getTemplate()->getButtonImage() == NULL )
- return;
-
- const Real percent = obj->getConstructionPercent();
- const Int buildFrames = obj->getTemplate()->calcTimeToBuild( obj->getControllingPlayer() );
-
- Int remaining = REAL_TO_INT( buildFrames * ( 1.0f - percent / 100.0f ) );
- if( remaining < 0 )
- remaining = 0;
-
- (*total)++;
+ const DrawableList *selected = getAllSelectedDrawables();
- // soonest first, ties in the order they were met - the same order the queue row is kept in
- Int at = *count;
- while( at > 0 && InGameUI::stripSlotGoesBefore( FALSE, remaining,
- slots[ at - 1 ].leads,
- slots[ at - 1 ].remaining ) )
- at--;
+ /* loop through all the selected drawables and create a set of all the objects,
+ so that you only iterate once through each type of object
+ */
- if( at >= max )
- return;
+ const Drawable *draw;
- if( *count < max )
- (*count)++;
+ //std::set<AsciiString> drawableList;
+ std::set<const ThingTemplate*> drawableList;
+ Bool carBomb = FALSE;
+
+ for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
+ {
+ // get this drawable
+ draw = *it;
+ if( draw && draw->getObject() && draw->getObject()->isLocallyControlled() )
+ {
+ // Use the Object's thing template, doing so will prevent wierdness for disguised vehicles.
+ drawableList.insert( draw->getObject()->getTemplate() );
+ if( draw->getObject()->testStatus( OBJECT_STATUS_IS_CARBOMB ) )
+ {
+ carBomb = TRUE;
+ }
+ }
+ }
- for( Int j = *count - 1; j > at; j-- )
- slots[ j ] = slots[ j - 1 ];
+ if (drawableList.size() == 0)
+ return -1; // nothing useful selected to begin with - don't bother iterating
- InGameUI::ProductionStripSlot *slot = &slots[ at ];
- slot->producer = obj->getID();
- slot->id = 0;
- slot->typeKey = 0;
- slot->isUpgrade = FALSE;
- slot->isStructure = TRUE;
- slot->leads = FALSE;
- slot->remaining = remaining;
- // each site is its own place on the map, so two of the same building stay two cameos
- slot->quantity = 1;
- slot->pos.x = 0;
- slot->pos.y = 0;
-}
+ std::set<const ThingTemplate*>::iterator iter;
+ const ThingTemplate *templateName;
-//-------------------------------------------------------------------------------------------------
-/** What one Player::iterateObjects sweep fills in: one column of the strip. */
-//-------------------------------------------------------------------------------------------------
-struct ProductionStripGather
-{
- InGameUI::ProductionStripSlot *slot;
- Int *count;
- Int *total;
- Int max; ///< cameos this column will draw; the rest are counted into the "+N"
- ObjectID skip; ///< a building already put into the column ahead of the sweep, so its queue
- /// is not gathered a second time when the sweep reaches it
-};
+ // now use the list to select across screen
+ MatchingUnitSelectionData data;
+ Int newSelectionCount = 0;
-//-------------------------------------------------------------------------------------------------
-/** Player::iterateObjects callback: everything one player has coming, queued in a factory or going
- * up on the ground, in the one column. Both answer the same question - when does the next thing
- * land - so they are sorted against each other rather than kept apart, and a base whose dozers are
- * busy no longer reads its own building sites in a second column off to the side. Nothing is
- * counted twice: a building under construction produces nothing until it is finished. */
-//-------------------------------------------------------------------------------------------------
-static void gatherStripEverything( Object *obj, void *userData )
-{
- ProductionStripGather *g = (ProductionStripGather *)userData;
- if( obj == NULL || obj->getID() != g->skip )
- appendProducerQueue( obj, g->slot, g->count, g->max, g->total, FALSE );
- appendStructureUnderConstruction( obj, g->slot, g->count, g->max, g->total );
-}
+ for( iter = drawableList.begin(); iter != drawableList.end(); ++iter )
+ {
+ // get this drawable
+ templateName = *iter;
-//-------------------------------------------------------------------------------------------------
-/** Find the queue entry a slot stands for. Re-read every frame rather than cached: production runs
- * on the logic clock and this draws on the render clock, so anything held is stale. */
-//-------------------------------------------------------------------------------------------------
-static const ProductionEntry *findStripEntry( ProductionUpdateInterface *pu,
- const InGameUI::ProductionStripSlot *slot )
-{
- if( pu == NULL )
- return NULL;
+ data.templateToSelect = templateName;
+ data.isCarBomb = carBomb;
+ if (region)
+ newSelectionCount +=TheTacticalView->iterateDrawablesInRegion(region, similarUnitSelection, (void *)&data);
+ else
+ {
+ // loop over the map
+ Drawable *temp = TheGameClient->firstDrawable();
+ while( temp )
+ {
+ newSelectionCount += similarUnitSelection( temp, (void *)&data);
+ temp = temp->getNextDrawable();
+ }
+ }
+ setDisplayedMaxWarning( FALSE );
+ }
- for( const ProductionEntry *p = pu->firstProduction(); p; p = pu->nextProduction( p ) )
+ if (newSelectionCount > 0)
{
- if( slot->isUpgrade )
+ // create selected message
+ GameMessage *teamMsg = TheMessageStream->appendMessage( GameMessage::MSG_CREATE_SELECTED_GROUP_NO_SOUND );
+ // not creating a new team so pass in false
+ teamMsg->appendBooleanArgument( FALSE );
+
+ //Loop through each drawable add append it's objectID to the event.
+ for( DrawableListCIt it = data.newlySelectedDrawables.begin(); it != data.newlySelectedDrawables.end(); ++it )
{
- if( p->getProductionType() == PRODUCTION_UPGRADE && p->getProductionUpgrade() &&
- (Int)p->getProductionUpgrade()->getUpgradeNameKey() == slot->id )
- return p;
+ draw = *it;
+ if( draw && draw->getObject() )
+ {
+ teamMsg->appendObjectIDArgument( draw->getObject()->getID() );
+ }
}
- else if( p->getProductionType() == PRODUCTION_UNIT && (Int)p->getProductionID() == slot->id )
- return p;
}
- return NULL;
-}
+ return newSelectionCount;
-//-------------------------------------------------------------------------------------------------
-/** The picture a slot is drawn with, given its producer and the queue entry found for it: the
- * building going up, or what the entry makes. NULL once the producer or the entry is gone, or
- * for a template that carries no picture. */
-//-------------------------------------------------------------------------------------------------
-static const Image *stripSlotCameo( const Object *producer, const ProductionEntry *entry,
- const InGameUI::ProductionStripSlot *slot )
-{
- if( slot->isStructure )
- return producer ? producer->getTemplate()->getButtonImage() : NULL;
- if( entry == NULL )
- return NULL;
- if( slot->isUpgrade )
- return entry->getProductionUpgrade() ? entry->getProductionUpgrade()->getButtonImage() : NULL;
- return entry->getProductionObject() ? entry->getProductionObject()->getButtonImage() : NULL;
}
-/** The command button that builds a unit or a building, the one its build card is filled in from. */
-static const CommandButton *buildButtonForThing( const ThingTemplate *thing )
+// ------------------------------------------------------------------------------------------------
+Int InGameUI::selectAllUnitsByTypeAcrossScreen(KindOfMaskType mustBeSet, KindOfMaskType mustBeClear)
{
- for( const CommandButton *button = TheControlBar->getCommandButtons(); button; button = button->getNext() )
+ /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
+
+ IRegion2D region;
+ ICoord2D origin;
+ ICoord2D size;
+
+ TheTacticalView->getOrigin( &origin.x, &origin.y );
+ size.x = TheTacticalView->getWidth();
+ size.y = TheTacticalView->getHeight();
+
+ buildRegion( &origin, &size, &region );
+
+ Int numSelected = selectAllUnitsByTypeAcrossRegion(&region, mustBeSet, mustBeClear);
+ if (numSelected == -1)
{
- const GUICommandType type = button->getCommandType();
- if( ( type == GUI_COMMAND_UNIT_BUILD || type == GUI_COMMAND_DOZER_CONSTRUCT ) && button->getThingTemplate()
- && button->getThingTemplate()->isEquivalentTo( thing ) )
- return button;
+ UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
+ TheInGameUI->message( message );
}
- return NULL;
-}
-
-/** The command button that buys an upgrade. */
-static const CommandButton *buildButtonForUpgrade( const UpgradeTemplate *upgrade )
-{
- for( const CommandButton *button = TheControlBar->getCommandButtons(); button; button = button->getNext() )
+ else if (numSelected == 0)
{
- const GUICommandType type = button->getCommandType();
- if( ( type == GUI_COMMAND_PLAYER_UPGRADE || type == GUI_COMMAND_OBJECT_UPGRADE ) && button->getUpgradeTemplate() == upgrade )
- return button;
}
- return NULL;
+ else
+ {
+ UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossScreen" );
+ TheInGameUI->message( message );
+ }
+ return numSelected;
}
-/** A page's data-tip for a button on a player's row: the player's index, a space and the button's
- * name, which ControlBar::findCommandButton finds it by. Button names are INI tokens and hold no
- * space. Empty for no button. */
-static std::string buttonTip( const CommandButton *button, const Player *owner )
+// ------------------------------------------------------------------------------------------------
+/** Selects maching units on the screen */
+// ------------------------------------------------------------------------------------------------
+Int InGameUI::selectMatchingAcrossScreen( void )
{
- return button ? std::to_string( owner->getPlayerIndex() ) + " " + button->getName().str() : "";
-}
+ /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
+
+ IRegion2D region;
+ ICoord2D origin;
+ ICoord2D size;
+
+ TheTacticalView->getOrigin( &origin.x, &origin.y );
+ size.x = TheTacticalView->getWidth();
+ size.y = TheTacticalView->getHeight();
+
+ buildRegion( &origin, &size, &region );
-/** The button that builds what stripSlotCameo draws, NULL where it draws nothing. */
-static const CommandButton *stripSlotButton( const Object *producer, const ProductionEntry *entry,
- const InGameUI::ProductionStripSlot *slot )
-{
- if( slot->isStructure )
- return producer ? buildButtonForThing( producer->getTemplate() ) : NULL;
- if( entry == NULL )
- return NULL;
- if( slot->isUpgrade )
- return entry->getProductionUpgrade() ? buildButtonForUpgrade( entry->getProductionUpgrade() ) : NULL;
- return entry->getProductionObject() ? buildButtonForThing( entry->getProductionObject() ) : NULL;
+ Int numSelected = selectMatchingAcrossRegion(&region);
+ if (numSelected == -1)
+ {
+ UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
+ TheInGameUI->message( message );
+ }
+ else if (numSelected == 0)
+ {
+ }
+ else
+ {
+ UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossScreen" );
+ TheInGameUI->message( message );
+ }
+ return numSelected;
}
//-------------------------------------------------------------------------------------------------
-/** The tray a queue cameo stands in: the general's power bar's own, this side's copy of it, turned
- * back to front. That bar grows leftward out of the corner and its tray's heavy rail is on the
- * right hand edge; mirrored, the rail leads a row running the other way.
- *
- * Kept until the bar hands back a different tray - a side change, an observer picking a different
- * player out of the list, a mod's own bar - rather than rebuilt per cameo per frame. NULL when
- * there is no bar and nothing to borrow one from. */
-//-------------------------------------------------------------------------------------------------
-const Image *InGameUI::productionStripTray( void )
+Int InGameUI::selectAllUnitsByTypeAcrossMap(KindOfMaskType mustBeSet, KindOfMaskType mustBeClear)
{
- const Image *source = TheControlBar ? TheControlBar->getSpecialPowerTrayImage() : NULL;
-
- if( source != m_productionStripTraySource )
+ /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
+ Int numSelected = selectAllUnitsByTypeAcrossRegion(NULL, mustBeSet, mustBeClear);
+ if (numSelected == -1)
+ {
+ UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
+ TheInGameUI->message( message );
+ }
+ else if (numSelected == 0)
{
- if( m_productionStripTray )
+ Drawable *draw = TheInGameUI->getFirstSelectedDrawable();
+ if( !draw || !draw->getObject() || !draw->getObject()->isKindOf( KINDOF_STRUCTURE ) )
{
- m_productionStripTray->deleteInstance();
- m_productionStripTray = NULL;
+ UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossMap" );
+ TheInGameUI->message( message );
}
-
- if( source )
- m_productionStripTray = newMirroredImage( source );
-
- m_productionStripTraySource = source;
}
-
- return m_productionStripTray;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** How big a strip slot is and where the cameo sits in it - the general's power bar's own numbers,
- * at the size the loader gave that bar, so a slot here is a slot there at any resolution. 'hole'
- * is the inset the bar itself uses, measured from the tray's left edge; a strip that draws the
- * tray mirrored turns it round itself.
- *
- * Falls back to the 800x600 numbers that bar was authored with when there is no bar to measure -
- * a side whose template ships no shortcuts still gets a strip. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::stripTrayMetrics( ICoord2D *tray, ICoord2D *cameo, ICoord2D *hole, Int *step )
-{
- if( !TheControlBar || !TheControlBar->getSpecialPowerTrayLayout( tray, cameo, hole, step ) )
+ else
{
- tray->x = stripPixels( PRODUCTION_STRIP_TRAY_W );
- tray->y = stripPixels( PRODUCTION_STRIP_TRAY_H );
- cameo->x = stripPixels( PRODUCTION_STRIP_QUEUE_W );
- cameo->y = stripPixels( PRODUCTION_STRIP_QUEUE_H );
- hole->x = stripPixels( PRODUCTION_STRIP_TRAY_X );
- hole->y = stripPixels( PRODUCTION_STRIP_TRAY_Y );
+ UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossMap" );
+ TheInGameUI->message( message );
}
-
- //
- // Across a row the trays close up an eighth of a tray under each other, so a row reads as one
- // run of metal rather than a line of separate boxes. The command bar's own power slots stopped
- // doing that because they are windows and the neighbour's rail was drawn over each cameo's edge;
- // every strip here lays all its trays down before any cameo, so the rails overlap each other and
- // never a picture. The step never closes past a cameo's own width, so no two pictures touch.
- //
- const Int overlapped = tray->x - tray->x / STRIP_TRAY_OVERLAP_PARTS;
- const Int narrowest = cameo->x + stripPixels( PRODUCTION_STRIP_GAP );
- *step = overlapped > narrowest ? overlapped : narrowest;
+ return numSelected;
}
//-------------------------------------------------------------------------------------------------
-/** Where an item goes in a row: the selected building's items are one block at the head of it, and
- * inside a block the soonest to finish comes first. Every row of the strip is kept in this order
- * as it is filled, so the front of the row is always the next thing to arrive out of the building
- * you are looking at, and the row behind it is the rest of the base. */
+/** Selects matching units across map */
//-------------------------------------------------------------------------------------------------
-Bool InGameUI::stripSlotGoesBefore( Bool leads, Int remaining,
- Bool otherLeads, Int otherRemaining )
+Int InGameUI::selectMatchingAcrossMap()
{
- if( leads != otherLeads )
- return leads; // the selected building's block leads, whatever anything finishes in
-
- return otherRemaining > remaining; // inside a block: soonest first, ties stay as they were met
+ /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
+ Int numSelected = selectMatchingAcrossRegion(NULL);
+ if (numSelected == -1)
+ {
+ UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
+ TheInGameUI->message( message );
+ }
+ else if (numSelected == 0)
+ {
+ Drawable *draw = TheInGameUI->getFirstSelectedDrawable();
+ if( !draw || !draw->getObject() || !draw->getObject()->isKindOf( KINDOF_STRUCTURE ) )
+ {
+ UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossMap" );
+ TheInGameUI->message( message );
+ }
+ }
+ else
+ {
+ UnicodeString message = TheGameText->fetch( "GUI:SelectedAcrossMap" );
+ TheInGameUI->message( message );
+ }
+ return numSelected;
}
//-------------------------------------------------------------------------------------------------
-/** Write a countdown inside a cameo. The radial sweep says how much of the whole is left, which
- * is a shape rather than a number: it answers "nearly" and never "eleven seconds". Both strips
- * put the number in the bottom left corner of the box, over the sweep - the middle is where the
- * picture is, and a number sitting on it hid the one thing the cameo is there to show. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawStripSeconds( Int which, Int x, Int y, Int w, Int h, Int seconds )
+Int InGameUI::selectAllUnitsByType(KindOfMaskType mustBeSet, KindOfMaskType mustBeClear)
{
- const IRegion2D cell = { { x, y }, { x + w, y + h } };
-
- UnicodeString text, number;
- formatStripSeconds( &text, seconds );
- number.format( u"%d", seconds > 0 ? seconds : 0 );
+ /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
+ Int numSelected = selectAllUnitsByTypeAcrossScreen(mustBeSet, mustBeClear);
+ if (numSelected == -1)
+ {
+ return numSelected;
+ }
- //
- // Its own string, kept between frames - see m_stripSecondsString. Every countdown in a strip is
- // lettered at one size: a "103s" too wide for its cameo drops the unit and stays that size, where
- // set a point smaller it stood thin beside a bold "79s" in the next cell. A string already
- // holding the bare number was measured when the number last changed and is not measured again,
- // which would letter it twice a frame.
- //
- DisplayString *&string = m_stripSecondsString[ which ];
- if( string == NULL )
- string = TheDisplayStringManager->newDisplayString();
- const Bool unitDropped = string->getText().compare( number ) == 0;
- if( !unitDropped && ( string->getFont() == NULL || string->getText().compare( text ) != 0 ) )
+ if (numSelected == 0)
{
- string->setFont( TheFontLibrary->getFont( m_superweaponNormalFont, TheGlobalLanguageData->adjustFontSize( PRODUCTION_STRIP_SECS ), TRUE ) );
- string->setText( text );
+ Int numSelectedAcrossMap = selectAllUnitsByTypeAcrossMap(mustBeSet, mustBeClear);
+ return numSelectedAcrossMap;
}
- if( unitDropped || !HudReadout_fits( string, cell ) )
- fitStripString( string, number, PRODUCTION_STRIP_SECS, cell );
- HudReadout_draw( string, cell, HUD_READOUT_BOTTOM_LEFT, GameMakeColor( 245, 245, 245, 255 ) );
+ return numSelected;
}
//-------------------------------------------------------------------------------------------------
-/** A frame the page draws over a cell's edge, in screen pixels: one page pixel, as thick as
- * HtmlOverlay's draw_borders makes it at the HUD's scale. */
-//-------------------------------------------------------------------------------------------------
-static Int hudReadoutFrame( void )
-{
- const Int frame = REAL_TO_INT_FLOOR( ControlBarHudScale() + 0.5f );
- return frame > 1 ? frame : 1;
-}
-
-enum
-{
- HUD_READOUT_PAD = 2, ///< the plate's margin each side of its text, screen pixels
- HUD_READOUT_POINTS_LEAST = 6 ///< text that still does not fit at this size stays this size
-};
-
+/** Selects matching units, either on screen or across map. When called by pressing 'T',
+ their is not a way to tell if the game is supposed to select across the screen, or
+ across the map. For mouse clicks, i.e. Alt + click or double click, we can directly call
+ selectMatchingAcrossScreen or selectMatchingAcrossMap */
//-------------------------------------------------------------------------------------------------
-/** How wide a readout's text may be on `cell`: the cell less its frame and the plate's margins. */
-static Int readoutRoom( const IRegion2D &cell )
+Int InGameUI::selectUnitsMatchingCurrentSelection()
{
- return cell.hi.x - cell.lo.x - 2 * hudReadoutFrame() - 2 * HUD_READOUT_PAD;
-}
+ /// When implementing this, obey TheInGameUI->getMaxSelectCount() if it is > 0
+ Int numSelected = selectMatchingAcrossScreen();
+ if (numSelected == -1)
+ return numSelected;
+ if (numSelected == 0)
+ {
+ Int numSelectedAcrossMap = selectMatchingAcrossMap();
+ //if (numSelectedAcrossMap < 1)
+ //{
+ //UnicodeString message = TheGameText->fetch( "GUI:NothingSelected" );
+ //TheInGameUI->message( message );
+ //}
+ return numSelectedAcrossMap;
+ }
+ return numSelected;
-//-------------------------------------------------------------------------------------------------
-/** Measured the way the plate is: by the string's drawn size. getWidth() adds up the letters'
- * advances, which leaves out the last letter's overhang, so a "103s" that fitted by that sum had a
- * plate one pixel wider than its room and stood on the first column of the frame. */
-Bool HudReadout_fits( DisplayString *text, const IRegion2D &cell )
-{
- Int textWidth = 0;
- text->getSize( &textWidth, NULL );
- return textWidth <= readoutRoom( cell );
}
-//-------------------------------------------------------------------------------------------------
-void HudReadout_draw( DisplayString *text, const IRegion2D &cell, HudReadoutCorner corner, Color textColor )
+//-----------------------------------------------------------------------------
+/**
+ * Given an "anchor" point and the current mouse position (dest),
+ * construct a valid 2D bounding region.
+ */
+//-----------------------------------------------------------------------------------
+void InGameUI::buildRegion( const ICoord2D *anchor, const ICoord2D *dest, IRegion2D *region )
{
- Int textWidth = 0, textHeight = 0;
- text->getSize( &textWidth, &textHeight );
- if( textWidth <= 0 || textHeight <= 0 )
- return;
-
- // text still too wide at the smallest size loses its end to the plate's edge: the plate is never
- // wider than the cell inside its frame
- const Int frame = hudReadoutFrame();
- const Int plateWidth = min( textWidth, readoutRoom( cell ) ) + 2 * HUD_READOUT_PAD;
- const Bool atLeft = corner == HUD_READOUT_TOP_LEFT || corner == HUD_READOUT_BOTTOM_LEFT;
- const Bool atTop = corner == HUD_READOUT_TOP_LEFT || corner == HUD_READOUT_TOP_RIGHT;
-
- Int left = atLeft ? cell.lo.x + frame : cell.hi.x - frame - plateWidth;
- Int top = atTop ? cell.lo.y + frame : cell.hi.y - frame - textHeight;
- if( corner == HUD_READOUT_CENTRE )
+ // build rectangular region defined by the drag selection
+ if (anchor->x < dest->x)
{
- left = ( cell.lo.x + cell.hi.x - plateWidth ) / 2;
- top = ( cell.lo.y + cell.hi.y - textHeight ) / 2;
+ region->lo.x = anchor->x;
+ region->hi.x = dest->x;
+ }
+ else
+ {
+ region->lo.x = dest->x;
+ region->hi.x = anchor->x;
}
- // solid, the colour of a cell's own hole: the text is read against the plate at every HUD Size,
- // whatever picture is under it
- TheDisplay->drawFillRect( left, top, plateWidth, textHeight, GameMakeColor( 2, 4, 5, 255 ) );
- IRegion2D plate = { { left, top }, { left + plateWidth, top + textHeight } };
- text->setClipRegion( &plate );
- text->draw( left + HUD_READOUT_PAD, top, textColor, GameMakeColor( 0, 0, 0, 255 ) );
+ if (anchor->y < dest->y)
+ {
+ region->lo.y = anchor->y;
+ region->hi.y = dest->y;
+ }
+ else
+ {
+ region->lo.y = dest->y;
+ region->hi.y = anchor->y;
+ }
}
//-------------------------------------------------------------------------------------------------
-/** A readout's own string holding `text`, made the first time, in `fontName` bold at `points` or as
- * many points under it as it takes to fit a readout on `cell`. The font is only set when the text
- * changes or the text no longer fits, so a string whose value stands still keeps its font surface. */
+/** Add a new floating text to our list */
//-------------------------------------------------------------------------------------------------
-static DisplayString *fitReadoutString( DisplayString *&string, const UnicodeString &text,
- const AsciiString &fontName, Int points, const IRegion2D &cell )
+FloatingTextData *InGameUI::addFloatingText(const UnicodeString& text,const Coord3D *pos, Color color)
{
- if( string == NULL )
- string = TheDisplayStringManager->newDisplayString();
+ if( !TheGameLogic->getDrawIconUI() )
+ return NULL;
- if( string->getFont() == NULL || string->getText().compare( text ) != 0 )
{
- string->setFont( TheFontLibrary->getFont( fontName, points, TRUE ) );
- string->setText( text );
+ FloatingTextData *newFTD = newInstance( FloatingTextData );
+ newFTD->m_frameCount = 0;
+ // the money a supply drop pays is drawn in its owner's colour, and the code that raises it
+ // is in GameLogic, where the scheme does not exist
+ newFTD->m_color = clientColor( color );
+ newFTD->m_pos3D.x = pos->x;
+ newFTD->m_pos3D.z = pos->z;
+ newFTD->m_pos3D.y = pos->y;
+ newFTD->m_text = text;
+ newFTD->m_dString->setText(text);
+
+
+ if(m_floatingTextTimeOut <= 0)
+ newFTD->m_frameTimeOut = TheGameLogic->getFrame() + DEFAULT_FLOATING_TEXT_TIMEOUT;
+ else
+ newFTD->m_frameTimeOut = TheGameLogic->getFrame() + m_floatingTextTimeOut;
+
+ m_floatingTextList.push_front( newFTD ); // add to the list
+ return newFTD;
}
-
- while( !HudReadout_fits( string, cell ) && string->getFont()->pointSize > HUD_READOUT_POINTS_LEAST )
- string->setFont( TheFontLibrary->getFont( fontName, string->getFont()->pointSize - 1, TRUE ) );
-
- return string;
}
-//-------------------------------------------------------------------------------------------------
-/** One of the strips' own strings, in the strips' font. */
-//-------------------------------------------------------------------------------------------------
-DisplayString *InGameUI::fitStripString( DisplayString *&string, const UnicodeString &text, Int points, const IRegion2D &cell )
+/** Each signal's mark on the ground, by SignalKind: Art/Textures/<name>.tga, drawn by
+ * Tools/signal_marks.py, white where the sender's colour goes. */
+static const char *const SIGNAL_MARK_TEXTURES[ SIGNAL_KIND_COUNT ] =
{
- return fitReadoutString( string, text, m_superweaponNormalFont, TheGlobalLanguageData->adjustFontSize( points ), cell );
-}
+ "ReforgedSignalAttack", "ReforgedSignalDefend", "ReforgedSignalLook"
+};
-//-------------------------------------------------------------------------------------------------
-/** The "xN" a folded run of the same item wears, in the cameo's top right corner - the corner the
- * command bar puts its own count badge in, and the corner the countdown in the middle leaves free.
- * Kept per cameo for the reason the countdowns are: a DisplayString rebuilds a font surface every
- * time its text changes, and this one changes only when the run does. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawStripQuantity( Int which, Int x, Int y, Int w, Int h, Int quantity )
+enum
{
- const IRegion2D cell = { { x, y }, { x + w, y + h } };
-
- UnicodeString text;
- text.format( u"x%d", quantity );
-
- DisplayString *quantityString = fitStripString( m_stripQuantityString[ which ], text, PRODUCTION_STRIP_SECS, cell );
- HudReadout_draw( quantityString, cell, HUD_READOUT_TOP_RIGHT, GameMakeColor( 255, 255, 255, 255 ) );
-}
+ SIGNAL_MARK_SIZE = 160, ///< across, in world units: 90 read as a coin from the default camera
+ SIGNAL_MARK_OPACITY = 230, ///< out of 255, so the ground under it still shows a little
+ SIGNAL_MARK_FADE_OUT_FRAMES = LOGICFRAMES_PER_SECOND * 2 ///< the smoke's last steps, over which the mark fades
+};
//-------------------------------------------------------------------------------------------------
-/** Keep one superweapon timer for the strip, in a list sorted by how long it still has to wait -
- * soonest first. The strip has a cell for SUPERWEAPON_STRIP_MAX of them; past that the soonest
- * keep theirs and the latest to land have none. */
+/** The mark a signal lays on the ground: crossed swords, a shield or an eye in a ring, in `color`,
+ * turned to this viewer's camera as it stands now so it reads upright. */
//-------------------------------------------------------------------------------------------------
-void InGameUI::addSuperweaponIcon( const Image *image, Int seconds, Int percent, Bool ready, Color color )
+void InGameUI::addSignalMark( SignalKind kind, const Coord3D &pos, Color color, ParticleSystemID smoke )
{
- // walk back over the ones that come ready later than this and drop it in front of them; ties
- // keep the order they were met in, so a pair of identical silos stays put frame to frame
- Int at = m_superweaponIconCount;
- while( at > 0 && m_superweaponIcons[ at - 1 ].seconds > seconds )
- at--;
-
- if( at >= SUPERWEAPON_STRIP_MAX )
- return; // every cell is taken by one that lands sooner
-
- if( m_superweaponIconCount < SUPERWEAPON_STRIP_MAX )
- m_superweaponIconCount++;
+ // No decal manager without a renderer (headless, or off Windows until the D track): no mark.
+ // GameLogicDispatch calls this for every signal a player sends, replays included.
+ if( TheProjectedShadowManager == NULL )
+ return;
- for( Int j = m_superweaponIconCount - 1; j > at; j-- )
- m_superweaponIcons[ j ] = m_superweaponIcons[ j - 1 ];
+ Shadow::ShadowTypeInfo decalInfo;
+ decalInfo.allowUpdates = FALSE;
+ decalInfo.allowWorldAlign = TRUE; // wrapped over the terrain it lands on
+ // SHADOW_ALPHA_DECAL is the kind setColor and setOpacity reach, and removeShadow takes off
+ decalInfo.m_type = SHADOW_ALPHA_DECAL;
+ strcpy( decalInfo.m_ShadowName, SIGNAL_MARK_TEXTURES[ kind ] );
+ decalInfo.m_sizeX = SIGNAL_MARK_SIZE;
+ decalInfo.m_sizeY = SIGNAL_MARK_SIZE;
+ decalInfo.m_offsetX = 0.0f;
+ decalInfo.m_offsetY = 0.0f;
- SuperweaponIconSlot *slot = &m_superweaponIcons[ at ];
- slot->image = image;
- slot->seconds = seconds;
- slot->percent = percent;
- slot->ready = ready;
- slot->color = color;
+ SignalMark mark;
+ mark.decal = TheProjectedShadowManager->addDecal( &decalInfo );
+ mark.decal->setAngle( TheTacticalView->getAngle() );
+ mark.decal->setColor( color );
+ mark.decal->setOpacity( 0 );
+ mark.decal->setPosition( pos.x, pos.y, pos.z );
+ mark.smoke = smoke;
+ m_signalMarks.push_back( mark );
}
//-------------------------------------------------------------------------------------------------
-/** One bought promotion, and the cameo the promotion screen buys it from. */
-struct BoughtSkill
-{
- ScienceType science;
- const CommandButton *button;
-};
-
-/** Every science in one of a general's three promotion command sets that the player has actually
- * bought. Appends to skills and hands back the new count, so the three sets fill one list in rank
- * order. */
+/** Each mark lasts as long as its smoke and fades out over the smoke's last steps. Both can't
+ * simply count logic frames: ParticleSystemManager::update steps once per pass that sees a new
+ * logic frame, so a network game catching up several frames in one pass keeps its smoke longer
+ * than the frame count says, and a mark on its own clock went a second early or late. The smoke
+ * has left in it what it still has to emit plus the life of its youngest puff. Hidden while
+ * scripts or -cinema hide the icons, like a radius decal. */
//-------------------------------------------------------------------------------------------------
-static Int gatherSkillCameos( const Player *player, const AsciiString &setName,
- BoughtSkill *skills, Int count, Int max )
+void InGameUI::updateSignalMarks( void )
{
- const CommandSet *set = TheControlBar->findCommandSet( setName );
- if( set == NULL )
- return count;
-
- for( Int i = 0; i < MAX_COMMANDS_PER_SET && count < max; i++ )
+ const Bool shown = TheGameLogic->getDrawIconUI() && !CinemaDirector_hidesHud();
+ for( size_t index = 0; index < m_signalMarks.size(); )
{
- const CommandButton *button = set->getCommandButton( i );
- if( button == NULL || button->getScienceVec().empty() || button->getButtonImage() == NULL )
- continue;
-
- const ScienceType science = button->getScienceVec()[ 0 ];
- if( !player->hasScience( science ) || player->isScienceHidden( science ) )
+ SignalMark &mark = m_signalMarks[ index ];
+ const ParticleSystem *smoke = TheParticleSystemManager->findParticleSystem( mark.smoke );
+ if( smoke == NULL )
+ {
+ mark.decal->release();
+ m_signalMarks.erase( m_signalMarks.begin() + index );
continue;
+ }
- skills[ count ].science = science;
- skills[ count ].button = button;
- count++;
+ const Particle *youngest = smoke->getLastParticle();
+ const UnsignedInt left = smoke->getSystemLifetimeLeft() + ( youngest ? youngest->getLifetimeLeft() : 0 );
+ const UnsignedInt opacity = min( (UnsignedInt)SIGNAL_MARK_OPACITY, left * SIGNAL_MARK_OPACITY / SIGNAL_MARK_FADE_OUT_FRAMES );
+ mark.decal->setOpacity( shown ? (Int)opacity : 0 );
+ index++;
}
+}
- return count;
+void InGameUI::clearSignalMarks( void )
+{
+ for( size_t index = 0; index < m_signalMarks.size(); index++ )
+ m_signalMarks[ index ].decal->release();
+ m_signalMarks.clear();
}
//-------------------------------------------------------------------------------------------------
-/** Everything one player has bought out of his three promotion sets, in rank order, as the
- * promotion screen's buttons appended to buttons, each with a picture. Hands back the new count.
- *
- * A level that a later level of the same power has replaced is left out: Artillery Barrage 3 is
- * one cameo, not three of the same picture in a row. "Replaced" is the science's own
- * prerequisite list, so the second level asking for the first is what hides the first. */
+/** The same logic message as the Alt+Z/X/C keys, so the same throttle and the same allies see it. */
//-------------------------------------------------------------------------------------------------
-static Int gatherPlayerSkills( const Player *player, const CommandButton **buttons, Int count, Int max )
+Bool InGameUI::placeArmedSignal( const Coord3D &world )
{
- const PlayerTemplate *playerTemplate = player->getPlayerTemplate();
- if( playerTemplate == NULL )
- return count;
-
- enum { MOST_SKILLS = 3 * MAX_COMMANDS_PER_SET };
- BoughtSkill skills[ MOST_SKILLS ];
- Int bought = gatherSkillCameos( player, playerTemplate->getPurchaseScienceCommandSetRank1(),
- skills, 0, MOST_SKILLS );
- bought = gatherSkillCameos( player, playerTemplate->getPurchaseScienceCommandSetRank3(),
- skills, bought, MOST_SKILLS );
- bought = gatherSkillCameos( player, playerTemplate->getPurchaseScienceCommandSetRank8(),
- skills, bought, MOST_SKILLS );
-
- for( Int i = 0; i < bought && count < max; i++ )
- {
- Bool replaced = FALSE;
- for( Int later = 0; later < bought && !replaced; later++ )
- replaced = TheScienceStore->isDirectPrereq( skills[ i ].science, skills[ later ].science );
-
- if( replaced )
- continue;
-
- buttons[ count ] = skills[ i ].button;
- count++;
- }
+ if( !isSignalArmed() )
+ return FALSE;
- return count;
+ GameMessage *message = TheMessageStream->appendMessage( GameMessage::MSG_PLACE_SIGNAL );
+ message->appendLocationArgument( world );
+ message->appendIntegerArgument( m_armedSignal );
+ disarmSignal();
+ return TRUE;
}
//-------------------------------------------------------------------------------------------------
-/** The skill strip: what the generals have spent their promotions on, down the right hand edge
- * under the superweapon countdowns.
- *
- * Watching a match, those choices decide half of what is about to happen on the field, and the
- * only place they were written down was a screen you had to open - which came up blank anyway,
- * because it was filled in with the watcher's own empty template. The strip reads the way the
- * production rows on the other side of the screen do: with nothing selected it is every player
- * at once, one row each in his own colour, and a selected unit narrows the whole screen to his
- * owner - his row, and as many rows as his promotions need. Playing, it is not drawn at all:
- * your own promotions are one key away and you bought them yourself. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawSkillStrip( void )
-{
- // the spectator page's left panel lists them instead; the page's flag is the last frame's here
- if( stripSwitchedOff( &GlobalData::m_showSkillStrip ) || m_spectatorPageShown || TheGlobalData->isClassicUI() )
- return;
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
-
- Player *local = ThePlayerList->getLocalPlayer();
- if( local == NULL || local->isPlayerActive() || TheControlBar == NULL )
- return;
+//-------------------------------------------------------------------------------------------------
+#if defined(_DEBUG) || defined(_INTERNAL)
+inline Bool isClose(Real a, Real b) { return fabs(a-b) <= 1.0f; }
+inline Bool isClose(const Coord3D& a, const Coord3D& b)
+{
+ return isClose(a.x, b.x) &&
+ isClose(a.y, b.y) &&
+ isClose(a.z, b.z);
+}
+void InGameUI::DEBUG_addFloatingText(const AsciiString& text, const Coord3D * pos, Color color)
+{
+ const Int POINTSIZE = 8;
+ const Int LEADING = 0;
- const CommandButton *skills[ SKILL_STRIP_MAX ];
- Color rowColor[ SKILL_STRIP_ROWS ];
- Int rowCount[ SKILL_STRIP_ROWS ];
- Int rows = 0;
+ Coord3D posToUse = *pos;
- Player *selected = TheControlBar->getSelectedPlayer();
- if( selected )
+try_again:
+ for (FloatingTextListIt it = m_floatingTextList.begin(); it != m_floatingTextList.end(); ++it)
{
- const Int count = gatherPlayerSkills( selected, skills, 0, SKILL_STRIP_MAX );
- const Color color = clientPlayerColor( selected );
-
- while( rows * SKILL_STRIP_COLS < count && rows < SKILL_STRIP_ROWS )
+ if (isClose((*it)->m_pos3D, posToUse))
{
- const Int left = count - rows * SKILL_STRIP_COLS;
- rowCount[ rows ] = left > SKILL_STRIP_COLS ? SKILL_STRIP_COLS : left;
- rowColor[ rows ] = color;
- rows++;
+ posToUse.z -= (POINTSIZE + LEADING);
+ goto try_again;
}
}
+
+ FloatingTextData *newFTD = newInstance( FloatingTextData );
+ newFTD->m_color = clientColor( color );
+ newFTD->m_pos3D.x = posToUse.x;
+ newFTD->m_pos3D.y = posToUse.y;
+ newFTD->m_pos3D.z = posToUse.z;
+ UnicodeString translate;
+ translate.translate(text);
+ newFTD->m_text = translate;
+ newFTD->m_dString->setText(translate);
+ newFTD->m_dString->setFont(TheWindowManager->winFindFont( AsciiString("Arial"), POINTSIZE, FALSE ));
+
+ if(m_floatingTextTimeOut <= 0)
+ newFTD->m_frameTimeOut = TheGameLogic->getFrame() + DEFAULT_FLOATING_TEXT_TIMEOUT;
else
- {
- for( Int i = 0; i < ThePlayerList->getPlayerCount() && rows < SKILL_STRIP_ROWS; i++ )
- {
- Player *player = ThePlayerList->getNthPlayer( i );
- if( player == local || !player->isPlayerActive() || !player->isPlayableSide() )
- continue;
+ newFTD->m_frameTimeOut = TheGameLogic->getFrame() + m_floatingTextTimeOut;
+
+ m_floatingTextList.push_front( newFTD ); // add to the list
- // a row is one player's, so his own run stops at the end of it rather than running on
- const Int start = rows * SKILL_STRIP_COLS;
- const Int count = gatherPlayerSkills( player, skills, start, start + SKILL_STRIP_COLS );
- if( count == start )
- continue; // nothing bought yet: no row rather than an empty one
+ //DEBUG_LOG(("%s\n",text.str()));
+}
+#endif
- rowCount[ rows ] = count - start;
- rowColor[ rows ] = clientPlayerColor( player );
- rows++;
- }
- }
+//-------------------------------------------------------------------------------------------------
+/** modify the position of our floating text */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::updateFloatingText( void )
+{
+ FloatingTextData *ftd; // pointer to our floating point data
+ UnsignedInt currLogicFrame = TheGameLogic->getFrame(); // the current logic frame
+ UnsignedByte r, g, b, a; // we'll need to break apart our color so we can modify the alpha
+ Int amount; // The amout we'll change the alpha
+ static UnsignedInt lastLogicFrameUpdate = currLogicFrame; // We need to make sure our current frame is different then our last frame we updated.
- if( rows < 1 )
+ // only update the position if we're incrementing frames
+ if(lastLogicFrameUpdate == currLogicFrame)
return;
+
+ lastLogicFrameUpdate = currLogicFrame;
- ICoord2D traySize, cameoSize, trayHole;
- Int trayStep = 0;
- stripTrayMetrics( &traySize, &cameoSize, &trayHole, &trayStep );
-
- const Int trayW = traySize.x;
- const Int trayH = traySize.y;
- const Int cameoW = cameoSize.x;
- const Int cameoH = cameoSize.y;
- const Image *tray = TheControlBar->getSpecialPowerTrayImage();
-
- //
- // Bottom right, standing on the control bar and growing upward - the production rows' own
- // corner, on the other side of the screen. It was up under the superweapon countdowns to begin
- // with, which is where the eye is not: watching a match you read the bottom of the screen, and
- // the two strips now sit at either end of the same shelf.
- //
- const Int barTop = controlBarTop();
-
- const Int lowerY = barTop - ( trayH - trayHole.y ) - stripPixels( PRODUCTION_STRIP_LIFT );
- const Int right = TheDisplay->getWidth();
-
- // drawn as a batch, for the reason drawProductionStrip() gives - see Display::beginBatch2D
- TheDisplay->beginBatch2D();
-
- for( Int row = 0; row < rows; row++ )
+ // Loop through our floating text list
+ for(FloatingTextListIt it = m_floatingTextList.begin(); it != m_floatingTextList.end();)
{
- const Int first = row * SKILL_STRIP_COLS;
- const Int inRow = rowCount[ row ];
-
- UnsignedByte red, green, blue, alpha;
- GameGetColorComponents( rowColor[ row ], &red, &green, &blue, &alpha );
-
- // the first row is the one on the bar, and the rest are piled over it
- const Int y = lowerY - row * trayH;
- const Int trayY = y - trayHole.y;
- if( trayY < 0 )
- break;
-
- for( Int back = inRow - 1; back >= 0; back-- )
+ ftd = *it;
+
+ // move it up
+ ++ftd->m_frameCount;
+
+ // fade the text
+ if( currLogicFrame > ftd->m_frameTimeOut)
{
- const Int backX = right - trayW - back * trayStep;
- if( tray )
- TheDisplay->drawImage( tray, backX, trayY, backX + trayW, trayY + trayH );
+ // modify the color
+ GameGetColorComponents(ftd->m_color, &r, &g, &b, &a);
+ amount = REAL_TO_INT( (currLogicFrame - ftd->m_frameTimeOut) * m_floatingTextMoveVanishRate);
+ if(a - amount < 0)
+ a = 0;
else
- TheDisplay->drawFillRect( backX, trayY, trayW, trayH, GameMakeColor( 0, 0, 0, 130 ) );
- }
-
- for( Int cameoSlot = 0; cameoSlot < inRow; cameoSlot++ )
- {
- const Int x = right - trayW + trayHole.x - cameoSlot * trayStep;
- TheDisplay->drawImage( skills[ first + cameoSlot ]->getButtonImage(), x, y, x + cameoW, y + cameoH );
- }
+ a -= amount;
+ ftd->m_color = GameMakeColor(r, g, b, a);
+ // if we have 0 alpha delete it
+ if( a <= 0)
+ {
+ it = m_floatingTextList.erase(it);
+ ftd->deleteInstance();
+ continue; // don't do the ++it below
+ }
- // whose skills these are, in his own colour, the same border the superweapon cameos wear
- for( Int borderSlot = 0; borderSlot < inRow; borderSlot++ )
- {
- const Int x = right - trayW + trayHole.x - borderSlot * trayStep;
- TheDisplay->drawOpenRect( x, y, cameoW, cameoH, 2.0f, GameMakeColor( red, green, blue, 255 ) );
}
+ // increase our itterator
+ ++it;
+
}
- TheDisplay->endBatch2D();
}
//-------------------------------------------------------------------------------------------------
-/** The lobby's own team label, the one the diplomacy screen wore. */
-//-------------------------------------------------------------------------------------------------
-static UnicodeString scoreboardTeamLabel( const GameSlot *slot )
-{
- AsciiString teamLabel;
- teamLabel.format( "Team:%d", slot->getTeamNumber() + 1 );
- if( slot->isAI() && slot->getTeamNumber() == -1 )
- teamLabel = "Team:AI";
- return TheGameText->fetch( teamLabel );
-}
-
-static const char *const SCOREBOARD_PAGE = "Window\\Html\\Scoreboard.html";
-enum { SCOREBOARD_SKILLS_SHOWN = 7 }; ///< promotions on one row, each once at the level it has reached
-
+/** Itterates through and draws each floating text */
//-------------------------------------------------------------------------------------------------
-/** Every player's money earned so far, read on the first pass of each game second. Reading the
- * score keeper is all it does, so nothing here reaches the logic. */
//-------------------------------------------------------------------------------------------------
-void InGameUI::sampleEarnings( void )
-{
- if( !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
-
- const UnsignedInt second = TheGameLogic->getFrame() / LOGICFRAMES_PER_SECOND;
- if( m_earnedReadingCount > 0 && second == m_earnedReadings[ m_earnedReadingCount - 1 ].second )
- return;
-
- // full, the oldest reading drops off the front
- if( m_earnedReadingCount == EARNINGS_READINGS )
- std::copy( m_earnedReadings + 1, m_earnedReadings + EARNINGS_READINGS, m_earnedReadings );
- else
- m_earnedReadingCount++;
-
- EarnedReading &newest = m_earnedReadings[ m_earnedReadingCount - 1 ];
- newest.second = second;
- for( Int index = 0; index < ThePlayerList->getPlayerCount(); index++ )
- newest.earned[ index ] = ThePlayerList->getNthPlayer( index )->getScoreKeeper()->getTotalMoneyEarned();
-}
-
+/** A one-line heads-up overlay: render rate and elapsed game time.
+ * GlobalData's m_showHudOverlay: on by default in the developer builds (Debug, _INTERNAL) and off in
+ * Release, a project rule. A player turns it on with ShowHudOverlay = Yes in GameData.ini; the harnesses
+ * whose screenshots are evidence pass -showHudOverlay. Nothing shipped forces it on: the staged overlay
+ * and the packages refuse a ShowHudOverlay = Yes. Retail only ever showed the frame rate, and only behind
+ * -displayDebug together with a screenful of engine internals. */
//-------------------------------------------------------------------------------------------------
-/** Money a player earned in `over` seconds at the rate between the oldest reading held and the
- * newest, rounded; 0 until there are two. It is shared over the whole half minute even before the
- * readings reach back that far, so the first truck of a match reads as a trickle rather than a
- * fortune. */
//-------------------------------------------------------------------------------------------------
-Int InGameUI::earnedOver( Int playerIndex, Int over ) const
-{
- if( m_earnedReadingCount < 2 )
- return 0;
-
- const EarnedReading &oldest = m_earnedReadings[ 0 ];
- const EarnedReading &newest = m_earnedReadings[ m_earnedReadingCount - 1 ];
- const Int seconds = max( (Int)( newest.second - oldest.second ), (Int)EARNINGS_WINDOW_SECONDS );
- return ( ( newest.earned[ playerIndex ] - oldest.earned[ playerIndex ] ) * over + seconds / 2 ) / seconds;
-}
+/** How the last ten seconds of peace time animate, as fractions of one second. */
+//-------------------------------------------------------------------------------------------------
+static const Real PEACE_COUNTDOWN_POP_SCALE = 1.35f; ///< the size the digit lands at when the second turns
+static const Real PEACE_COUNTDOWN_POP_TIME = 0.35f; ///< how long it takes to settle back to its own size
+static const Real PEACE_COUNTDOWN_FADE_TIME = 0.30f; ///< how long it fades out for at the end of the second
//-------------------------------------------------------------------------------------------------
-Bool InGameUI_incomePerMinute( Int incomeRateMode, Int perSecond )
+/** The one red the truce is written in, wherever it is written. */
+//-------------------------------------------------------------------------------------------------
+static Color peaceTimeColor( Int alpha )
{
- if( incomeRateMode == INCOME_RATE_AUTOMATIC )
- return perSecond < INCOME_RATE_AUTOMATIC_PER_SECOND_FROM;
-
- return incomeRateMode == INCOME_RATE_PER_MINUTE;
+ return GameMakeColor( 255, 48, 48, alpha );
}
-static bool buildPlanComesFirst( const BuildPlanNumber& a, const BuildPlanNumber& b )
+//-------------------------------------------------------------------------------------------------
+/** The lobby's peace time at the top of the screen, in the middle of it: the word PEACE in small
+ * letters over the time left, both red and bold on one plate. The top centre is where a player
+ * already looks for the state of the match, and it keeps the corner free for the clock and the
+ * superweapon timers. It is not behind ShowHudOverlay - that switch is for a readout, and this
+ * is a rule of the match.
+ *
+ * The plate goes away for the last ten seconds. Those are counted out across the middle of the
+ * screen instead, and two copies of the same number in two places is one of them asking to be
+ * read and neither getting it. Nothing draws once the truce runs out. */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::drawPeaceTimer( void )
{
- if( a.builder != b.builder )
- return a.builder < b.builder;
- if( a.current != b.current )
- return a.current != FALSE;
- return a.plan < b.plan;
-}
+ if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
+ return;
-void InGameUI_numberBuildPlans( std::vector<BuildPlanNumber>& plans )
-{
- std::sort( plans.begin(), plans.end(), buildPlanComesFirst );
+ if( !TheGameLogic->isPeaceTime() )
+ return;
- size_t first = 0;
- while( first < plans.size() )
+ const UnsignedInt left = TheGameLogic->getPeaceTimeEndFrame() - TheGameLogic->getFrame();
+ if( left <= PEACE_COUNTDOWN_SECONDS * LOGICFRAMES_PER_SECOND )
{
- size_t end = first + 1;
- while( end < plans.size() && plans[ end ].builder == plans[ first ].builder )
- ++end;
-
- // a lone "1" says nothing, as on a unit's order markers
- for( size_t i = first; i < end; ++i )
- plans[ i ].step = end - first > 1 ? (Int)( i - first ) + 1 : 0;
- first = end;
+ drawPeaceCountdown( left );
+ return;
}
-}
-
-/** One seat on the scoreboard page. `full` is whether the local player may see the numbers: his
- * own side, or everybody when watching. An enemy is a name, a colour and a team. `perSecond` is
- * what the seat has earned a second lately, beside {{income}}, its average over the match. */
-static HtmlValues scoreboardSeat( Player *player, const GameSlot *slot, Bool full, Bool own, Int perSecond )
-{
- const PlayerTemplate *side = player->getPlayerTemplate();
- const Image *portrait = side ? side->getEnabledImage() : NULL;
- HtmlValues seat;
- seat[ "kind" ] = "seat";
- seat[ "name" ] = WideCharStringToMultiByte( slot->getName().str() );
- seat[ "color" ] = cssColor( clientPlayerColor( player ) );
- seat[ "team" ] = WideCharStringToMultiByte( scoreboardTeamLabel( slot ).str() );
- seat[ "state" ] = std::string( full ? "full" : "hidden" ) + ( own ? " own" : "" )
- + ( TheVictoryConditions->hasSinglePlayerBeenDefeated( player ) ? " defeated" : "" );
- if( !full )
- return seat;
+ const UnsignedInt secs = ControlBar_secondsFromFrames( (Real)left );
- seat[ "portrait" ] = portrait ? portrait->getName().str() : "";
- seat[ "general" ] = side ? WideCharStringToMultiByte( side->getDisplayName().str() ) : "";
+ UnicodeString text;
+ text.format( TheGameText->fetch( "GUI:PeaceTimeHud" ), secs / 60, secs % 60 );
- ScoreKeeper *score = player->getScoreKeeper();
- const UnsignedInt frame = TheGameLogic->getFrame();
- seat[ "rank" ] = std::to_string( player->getRankLevel() );
- seat[ "cash" ] = std::to_string( player->getMoney()->countMoney() );
- seat[ "income" ] = std::to_string( frame > 0 ? (Int)( (Int64)score->getTotalMoneyEarned() * FRAMES_PER_MINUTE / frame ) : 0 );
- seat[ "persecond" ] = std::to_string( perSecond );
- seat[ "kills" ] = std::to_string( score->getTotalUnitsDestroyed() + score->getTotalBuildingsDestroyed() );
- seat[ "losses" ] = std::to_string( score->getTotalUnitsLost() + score->getTotalBuildingsLost() );
-
- const CommandButton *skills[ SCOREBOARD_SKILLS_SHOWN ];
- const Int skillCount = gatherPlayerSkills( player, skills, 0, SCOREBOARD_SKILLS_SHOWN );
- for( Int skill = 0; skill < skillCount; skill++ )
- {
- const std::string name = "skill" + std::to_string( skill );
- seat[ name ] = skills[ skill ]->getButtonImage()->getName().str();
- seat[ name + ".tip" ] = buttonTip( skills[ skill ], player );
+ if( m_peaceTimeDisplayString == NULL )
+ {
+ m_peaceTimeDisplayString = TheDisplayStringManager->newDisplayString();
+ m_peaceTimeDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
+ TheGlobalLanguageData->adjustFontSize( PEACE_TIMER_POINT_SIZE ),
+ TRUE ) );
}
+ m_peaceTimeDisplayString->setText( text );
- const ThingTemplate *favourite = score->getMostBuiltUnit();
- if( favourite && favourite->getButtonImage() )
+ // the label is a second string rather than a line of the first: the text renderer has no
+ // concept of a newline and would draw one as a character
+ if( m_peaceTimeLabelDisplayString == NULL )
{
- seat[ "favourite" ] = favourite->getButtonImage()->getName().str();
- seat[ "favouritename" ] = WideCharStringToMultiByte( favourite->getDisplayName().str() );
- seat[ "favourite.tip" ] = buttonTip( buildButtonForThing( favourite ), player );
+ m_peaceTimeLabelDisplayString = TheDisplayStringManager->newDisplayString();
+ m_peaceTimeLabelDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
+ TheGlobalLanguageData->adjustFontSize( PEACE_TIMER_LABEL_POINT_SIZE ),
+ TRUE ) );
}
- return seat;
-}
+ m_peaceTimeLabelDisplayString->setText( TheGameText->fetch( "GUI:PeaceTimeHudLabel" ) );
-//-------------------------------------------------------------------------------------------------
-/** One scoreboard seat's superweapons, the SEAT_SUPERWEAPONS soonest side by side as {{wN.image}}
- * {{wN.time}} and {{wN.state}}: "ready" once it can fire, "none" for an unused place. The rest
- * are counted, {{more}} of them with {{moremark}} "off" when there are none, and {{moreready}}
- * of those ready with {{morereadymark}} "off" when none is. {{armed}} is "armed" when the
- * player has any. */
-//-------------------------------------------------------------------------------------------------
-static void putSeatSuperweapons( HtmlValues &row, Int playerIndex, const std::vector< SpectatorSuperweapon > &weapons )
-{
- enum { SEAT_SUPERWEAPONS = 5 };
+ Int textWidth = 0, textHeight = 0;
+ m_peaceTimeDisplayString->getSize( &textWidth, &textHeight );
- std::vector< SpectatorSuperweapon > owned;
- for( size_t weapon = 0; weapon < weapons.size(); weapon++ )
- if( weapons[ weapon ].playerIndex == playerIndex )
- owned.push_back( weapons[ weapon ] );
- std::stable_sort( owned.begin(), owned.end(),
- []( const SpectatorSuperweapon &a, const SpectatorSuperweapon &b ) { return a.seconds < b.seconds; } );
+ Int labelWidth = 0, labelHeight = 0;
+ m_peaceTimeLabelDisplayString->getSize( &labelWidth, &labelHeight );
- row[ "armed" ] = owned.empty() ? "" : "armed";
- for( Int place = 0; place < SEAT_SUPERWEAPONS; place++ )
- {
- const std::string name = "w" + std::to_string( place );
- if( place >= (Int)owned.size() )
- {
- row[ name + ".state" ] = "none";
- continue;
- }
+ // clear of the top edge, the gap growing with the screen the same way the command bar does
+ const Int pad = 4;
+ const Int plateWidth = (labelWidth > textWidth ? labelWidth : textWidth) + pad*2;
+ const Int plateLeft = (TheDisplay->getWidth() - plateWidth) / 2;
+ const Int top = stripPixels( PEACE_TIMER_TOP_PAD );
- UnicodeString time;
- formatStripSeconds( &time, owned[ place ].seconds );
- row[ name + ".image" ] = owned[ place ].cameo ? owned[ place ].cameo->getName().str() : "";
- row[ name + ".time" ] = WideCharStringToMultiByte( time.str() );
- row[ name + ".state" ] = owned[ place ].ready ? "ready" : "";
- row[ name + ".tip" ] = buttonTip( owned[ place ].button, ThePlayerList->getNthPlayer( playerIndex ) );
- }
+ TheDisplay->drawFillRect( plateLeft, top - 1, plateWidth, labelHeight + textHeight + 2,
+ GameMakeColor( 0, 0, 0, 160 ) );
- Int more = 0;
- Int moreReady = 0;
- for( size_t weapon = SEAT_SUPERWEAPONS; weapon < owned.size(); weapon++ )
- {
- more++;
- if( owned[ weapon ].ready )
- moreReady++;
- }
- row[ "more" ] = std::to_string( more );
- row[ "moremark" ] = more > 0 ? "" : "off";
- row[ "moreready" ] = std::to_string( moreReady );
- row[ "morereadymark" ] = moreReady > 0 ? "" : "off";
+ m_peaceTimeLabelDisplayString->draw( (TheDisplay->getWidth() - labelWidth) / 2, top,
+ peaceTimeColor( 255 ), GameMakeColor( 0, 0, 0, 255 ) );
+
+ m_peaceTimeDisplayString->draw( (TheDisplay->getWidth() - textWidth) / 2, top + labelHeight,
+ peaceTimeColor( 255 ), GameMakeColor( 0, 0, 0, 255 ) );
}
//-------------------------------------------------------------------------------------------------
-/** One scoreboard seat's production while watching, what the left edge of the screen used to carry:
- * the SEAT_JOBS soonest things coming, queued in a factory or going up on the ground, as
- * {{jN.image}} {{jN.time}} {{jN.count}} ("x5" for a run of the same thing) and {{jN.state}}, "none"
- * for an unused place. {{jobsmore}} counts the rest, with {{jobsmoremark}} "off" when there are
- * none. {{watching}} is "watching" on every seat, so the line keeps its place with nothing coming
- * and the superweapons after it stay put as a queue empties and fills. */
+/** The last ten seconds of that peace time, one digit at a time, with the plate at the top of the
+ * screen taken down for them. The word PEACE goes over the digit at a quarter of its size, on
+ * the same line the plate's own word was on, so what happens at ten seconds is the time being
+ * replaced by a number you cannot miss rather than the whole thing moving somewhere else. The
+ * middle of the screen is where the fighting you are about to do is, and a countdown sitting on
+ * your own units is in the way of the thing it counts down to.
+ *
+ * Each second the digit lands at PEACE_COUNTDOWN_POP_SCALE of its size, settles to it over the
+ * first third of the second, then fades out through the last third, so the movement is what
+ * catches the eye rather than the number changing. The word holds still and keeps its colour
+ * through all of it, and the digit grows downwards from under it, so nothing but the number
+ * moves.
+ *
+ * The animation is driven by the logic frame, not the wall clock, because the number it counts
+ * is a logic frame: a paused or slowed game shows a paused countdown instead of one that has
+ * run ahead of the truce it belongs to. */
//-------------------------------------------------------------------------------------------------
-static void putSeatQueue( HtmlValues &row, Player *player )
+void InGameUI::drawPeaceCountdown( UnsignedInt framesLeft )
{
- enum { SEAT_JOBS = 3 }; ///< the line's head; its superweapons follow on the same line
+ const UnsignedInt secondsLeft = (framesLeft + LOGICFRAMES_PER_SECOND - 1) / LOGICFRAMES_PER_SECOND;
+ const UnsignedInt framesLeftOfSecond = framesLeft - (secondsLeft - 1) * LOGICFRAMES_PER_SECOND;
+ const Real secondElapsed = 1.0f - INT_TO_REAL( framesLeftOfSecond ) / INT_TO_REAL( LOGICFRAMES_PER_SECOND );
- InGameUI::ProductionStripSlot slots[ SEAT_JOBS ];
- Int count = 0;
- Int total = 0;
- ProductionStripGather gather;
- gather.slot = slots;
- gather.count = &count;
- gather.total = &total;
- gather.max = SEAT_JOBS;
- gather.skip = INVALID_ID;
- player->iterateObjects( gatherStripEverything, &gather );
+ Real scale = 1.0f;
+ if( secondElapsed < PEACE_COUNTDOWN_POP_TIME )
+ scale = PEACE_COUNTDOWN_POP_SCALE
+ - (PEACE_COUNTDOWN_POP_SCALE - 1.0f) * (secondElapsed / PEACE_COUNTDOWN_POP_TIME);
- Int shown = 0;
- for( Int place = 0; place < SEAT_JOBS; place++ )
- {
- const std::string name = "j" + std::to_string( place );
- if( place >= count )
- {
- row[ name + ".state" ] = "none";
- continue;
- }
+ Real opacity = 1.0f;
+ if( secondElapsed > 1.0f - PEACE_COUNTDOWN_FADE_TIME )
+ opacity = (1.0f - secondElapsed) / PEACE_COUNTDOWN_FADE_TIME;
- const InGameUI::ProductionStripSlot *slot = &slots[ place ];
- Object *producer = TheGameLogic->findObjectByID( slot->producer );
- const ProductionEntry *entry = producer && !slot->isStructure
- ? findStripEntry( producer->getProductionUpdateInterface(), slot ) : NULL;
- const Image *cameo = stripSlotCameo( producer, entry, slot );
- UnicodeString time;
- formatStripSeconds( &time, ControlBar_secondsFromFrames( (Real)slot->remaining ) );
- row[ name + ".image" ] = cameo ? cameo->getName().str() : "";
- row[ name + ".time" ] = WideCharStringToMultiByte( time.str() );
- row[ name + ".count" ] = slot->quantity > 1 ? "x" + std::to_string( slot->quantity ) : "";
- row[ name + ".state" ] = "";
- row[ name + ".tip" ] = buttonTip( stripSlotButton( producer, entry, slot ), player );
- shown += slot->quantity;
- }
- row[ "jobsmore" ] = std::to_string( total - shown );
- row[ "jobsmoremark" ] = total > shown ? "" : "off";
- row[ "watching" ] = "watching";
-}
+ // rounded to a step so a second's worth of scaling asks the font library for a few sizes, not thirty
+ const Int wantedPointSize = REAL_TO_INT_CEIL( PEACE_COUNTDOWN_POINT_SIZE * scale );
+ const Int pointSize = ((wantedPointSize + PEACE_COUNTDOWN_SIZE_STEP - 1) / PEACE_COUNTDOWN_SIZE_STEP)
+ * PEACE_COUNTDOWN_SIZE_STEP;
-//-------------------------------------------------------------------------------------------------
-/** The scoreboard on Tab, Window/Html/Scoreboard.html, hanging under the top page in the middle of
- * the screen. A player sees two sections, his side in full and the enemy as names and teams,
- * because the enemy's general, money and promotions are for its own side to know. A watcher, an
- * observer or a player knocked out who stayed, sees one section a team, every seat in full and
- * with its production, the queue over the console he no longer has. Every section opens with a
- * band of kind "band" carrying its {{label}}, how many seats are {{standing}} of {{seats}}, and
- * {{side}} "allies", "enemies" or "team". */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::openScoreboard( void )
-{
- // the key that holds the scoreboard up is EA's diplomacy key, and Classic gives it back to diplomacy
- if( TheGlobalData->isClassicUI() )
- {
- ToggleDiplomacy( FALSE );
- return;
- }
- m_scoreboardOpen = TRUE;
-}
+ if( m_peaceCountdownDisplayString == NULL )
+ m_peaceCountdownDisplayString = TheDisplayStringManager->newDisplayString();
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawScoreboard( void )
-{
- TheControlBar->hideBoardCard();
- if( !m_scoreboardOpen || TheGameInfo == NULL )
- return;
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
+ m_peaceCountdownDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
+ TheGlobalLanguageData->adjustFontSize( pointSize ),
+ TRUE ) );
- if( !m_scoreboardPageLoaded )
- {
- m_scoreboardPageLoaded = TRUE;
- readHtmlPage( SCOREBOARD_PAGE, m_scoreboardPage );
- }
- if( m_scoreboardPage.empty() )
- return;
- if( m_scoreboardOverlay == NULL )
- {
- m_scoreboardOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_scoreboardOverlay->setHudPage( TRUE );
- }
+ UnicodeString text;
+ text.format( u"%d", (Int)secondsLeft );
+ m_peaceCountdownDisplayString->setText( text );
- // counted again twice a second, as the spectator page is: the money moves every frame, and every
- // change lays the whole page out again
- const UnsignedInt frame = TheGameLogic->getFrame();
- if( m_scoreboardHtml.empty() || frame < m_scoreboardHtmlFrame || frame >= m_scoreboardHtmlFrame + NET_WORTH_REFRESH_FRAMES )
- {
- m_scoreboardHtml = scoreboardHtml();
- m_scoreboardHtmlFrame = frame;
- }
- m_scoreboardOverlay->setPage( m_scoreboardHtml );
- // a promotion, a cameo or the favourite unit under the pointer gets the command bar's build card,
- // its health, damage and range; the board hides the battlefield's tooltips under it
- if( m_scoreboardOverlay->hover( TheMouse->getMouseStatus()->pos ) )
- {
- TheMouse->setCursorTooltip( UnicodeString::TheEmptyString );
- IRegion2D anchor;
- const std::string tip = m_scoreboardOverlay->tip( anchor );
- if( !tip.empty() )
- {
- // counted for the row's player: his prices, and his upgrades in the damage and the health
- const size_t space = tip.find( ' ' );
- TheControlBar->showBoardCard( TheControlBar->findCommandButton( AsciiString( tip.c_str() + space + 1 ) ),
- ThePlayerList->getNthPlayer( atoi( tip.c_str() ) ), anchor );
- }
- }
- m_scoreboardOverlay->draw();
-}
+ // the same string the plate at the top uses, in its own size: the two are never up together
+ if( m_peaceTimeLabelDisplayString == NULL )
+ m_peaceTimeLabelDisplayString = TheDisplayStringManager->newDisplayString();
-//-------------------------------------------------------------------------------------------------
-/** Window/Html/Scoreboard.html filled in with every seat as it stands this frame. */
-//-------------------------------------------------------------------------------------------------
-std::string InGameUI::scoreboardHtml( void )
-{
- Player *local = ThePlayerList->getLocalPlayer();
- const Bool watching = localPlayerWatching();
+ m_peaceTimeLabelDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
+ TheGlobalLanguageData->adjustFontSize( PEACE_COUNTDOWN_POINT_SIZE
+ / PEACE_COUNTDOWN_LABEL_SHARE ),
+ TRUE ) );
+ m_peaceTimeLabelDisplayString->setText( TheGameText->fetch( "GUI:PeaceTimeHudLabel" ) );
- struct Seat
- {
- Player *player;
- const GameSlot *slot;
- Int section; ///< 0 your side and 1 the enemy's, or the lobby team when watching
- };
- std::vector< Seat > seats;
- for( Int slotNum = 0; slotNum < MAX_SLOTS; slotNum++ )
- {
- const GameSlot *slot = TheGameInfo->getConstSlot( slotNum );
- if( !slot->isOccupied() )
- continue;
+ Int textWidth = 0, textHeight = 0;
+ m_peaceCountdownDisplayString->getSize( &textWidth, &textHeight );
- AsciiString playerName;
- playerName.format( "player%d", slotNum );
- Player *player = ThePlayerList->findPlayerWithNameKey( NAMEKEY( playerName ) );
- if( player == NULL || player->isPlayerObserver() )
- continue;
+ Int labelWidth = 0, labelHeight = 0;
+ m_peaceTimeLabelDisplayString->getSize( &labelWidth, &labelHeight );
- const Bool allied = player == local || local->getRelationship( player->getDefaultTeam() ) == ALLIES;
- Seat seat = { player, slot, watching ? slot->getTeamNumber() : ( allied ? 0 : 1 ) };
- seats.push_back( seat );
- }
- std::stable_sort( seats.begin(), seats.end(), []( const Seat &a, const Seat &b ) { return a.section < b.section; } );
-
- HtmlLists lists;
- std::vector< HtmlValues > &rows = lists[ "seats" ];
- for( size_t first = 0; first < seats.size(); )
- {
- size_t end = first;
- Int standing = 0;
- for( ; end < seats.size() && seats[ end ].section == seats[ first ].section; end++ )
- if( !TheVictoryConditions->hasSinglePlayerBeenDefeated( seats[ end ].player ) )
- standing++;
-
- HtmlValues band;
- band[ "kind" ] = "band";
- band[ "standing" ] = std::to_string( standing );
- band[ "seats" ] = std::to_string( end - first );
- if( watching )
- {
- // a free for all is one section of players with no team between them
- UnicodeString label = TheGameText->fetch( "GUI:ScoreboardPlayer" );
- if( seats[ first ].section >= 0 )
- label.format( u"%s %s", TheGameText->fetch( "GUI:ScoreboardTeam" ).str(), scoreboardTeamLabel( seats[ first ].slot ).str() );
- band[ "side" ] = "team";
- band[ "label" ] = WideCharStringToMultiByte( label.str() );
- }
- else
- {
- band[ "side" ] = seats[ first ].section == 0 ? "allies" : "enemies";
- band[ "label" ] = WideCharStringToMultiByte( TheGameText->fetch( seats[ first ].section == 0 ? "GUI:ScoreboardAllies"
- : "GUI:ScoreboardEnemies" ).str() );
- }
- rows.push_back( band );
+ const Int alpha = REAL_TO_INT_CEIL( opacity * 255.0f );
- for( ; first < end; first++ )
- {
- HtmlValues row = scoreboardSeat( seats[ first ].player, seats[ first ].slot, watching || seats[ first ].section == 0,
- seats[ first ].player == local, earnedPerSecond( seats[ first ].player->getPlayerIndex() ) );
- putSeatSuperweapons( row, seats[ first ].player->getPlayerIndex(), m_spectatorSuperweapons );
- if( watching )
- putSeatQueue( row, seats[ first ].player );
- rows.push_back( row );
- }
- }
+ // the word and the digit stand on the line the plate's word was on
+ const Int top = stripPixels( PEACE_TIMER_TOP_PAD );
+ m_peaceTimeLabelDisplayString->draw( (TheDisplay->getWidth() - labelWidth) / 2, top,
+ peaceTimeColor( 255 ), GameMakeColor( 0, 0, 0, 255 ) );
+
+ m_peaceCountdownDisplayString->draw( (TheDisplay->getWidth() - textWidth) / 2, top + labelHeight,
+ peaceTimeColor( alpha ), GameMakeColor( 0, 0, 0, alpha ) );
+}
+
+// -directorrecord's broadcast is drawn in zerohour.gg's colours: the ground, its panel, ink, muted
+// text, the line and the gold the pane lines are drawn in. The ground is opaque: at the site's veil
+// the gold of the pane lines under it showed through the score bar's corners. The site sets words in
+// Chivo and numbers in JetBrains Mono; Windows has neither, and these are the site's own fallbacks
+static const Color BROADCAST_GROUND = GameMakeColor( 0x0c, 0x12, 0x20, 255 );
+static const Color BROADCAST_PANEL = GameMakeColor( 0x12, 0x1a, 0x2b, 255 );
+static const Color BROADCAST_LINE = GameMakeColor( 0x1f, 0x29, 0x40, 255 );
+static const Color BROADCAST_INK = GameMakeColor( 0xe8, 0xea, 0xf0, 255 );
+static const Color BROADCAST_MUTED = GameMakeColor( 0x8e, 0x97, 0xad, 255 );
+static const Color BROADCAST_GOLD = GameMakeColor( 0xf2, 0xc2, 0x30, 255 );
+/// the score bar's frame is the corner radar's (W3DInGameUI's drawPaneRays and its corner frame): the
+/// brand's blue band as a halo at these strengths, a pixel of the ground a 720 rows and half the pane
+/// lines' gold, on the three sides that are on the screen
+static const UnsignedByte BROADCAST_BAND_RGB[ 3 ] = { 0x80, 0x95, 0xea };
+static const Real BROADCAST_BAND_OUTER_ALPHA = 0.3f;
+static const Real BROADCAST_BAND_INNER_ALPHA = 0.55f;
+static const Real BROADCAST_FRAME_EDGE_ROWS_A_PIXEL = 720.0f;
+static const char *const BROADCAST_WORDS = "Segoe UI";
+static const char *const BROADCAST_NUMBERS = "Consolas";
+/// the broadcast's sizes are a 720 row picture's, grown with the picture's height
+static const Real BROADCAST_ROWS = 720.0f;
+static const Int BROADCAST_NAME_POINTS = 11;
+static const Int BROADCAST_COMPACT_POINTS = 8;
+static const Int BROADCAST_SIDE_POINTS = 9;
+static const Int BROADCAST_HEAD_POINTS = 7;
+/// the clock was 16 and the armies' bar 6 rows; both gave up height when the bar was thinned
+static const Int BROADCAST_CLOCK_POINTS = 13;
+static const Real BROADCAST_PAD = 8.0f;
+static const Real BROADCAST_GAP = 10.0f;
+static const Real BROADCAST_RULE = 2.0f;
+static const Real BROADCAST_TUG = 4.0f;
+static const Int THOUSANDS = 3;
+static const Int BROADCAST_WIDEST = 888888; ///< the number the cash and army columns are measured on
- // hanging from the top page's foot in the middle of the screen, the two one plate
- enum { BOARD_WIDTH = 708 };
- const Real scale = ControlBarHudPageScale();
- HtmlValues values;
- values[ "side" ] = spectatorSide();
- values[ "clock" ] = spectatorClock( TheGameLogic->getFrame() );
- values[ "boardx" ] = std::to_string( REAL_TO_INT_FLOOR( TheDisplay->getWidth() / scale - BOARD_WIDTH ) / 2 );
- // under the top page, and under the superweapon banner while one is up
- values[ "boardy" ] = std::to_string( REAL_TO_INT_FLOOR( ( m_controlBarPageShown ? max( m_topBarBottom, m_alertBottom ) : 0 ) / scale ) );
- return HtmlTemplate_expand( m_scoreboardPage, values, lists, lookupGameText );
+/** A whole number with its thousands parted by commas, after prefix. */
+static UnicodeString broadcastNumber( const char *prefix, Int value )
+{
+ std::string digits = std::to_string( value );
+ for( Int at = (Int)digits.size() - THOUSANDS; at > 0; at -= THOUSANDS )
+ digits.insert( at, "," );
+ UnicodeString text;
+ text.translate( AsciiString( ( prefix + digits ).c_str() ) );
+ return text;
}
-static const char *const CONTROL_BAR_PAGE = "Window\\Html\\ControlBar.html";
-static const char *const PROMOTION_PAGE = "Window\\Html\\Promotion.html";
-static const char *const QUEUE_PAGE = "Window\\Html\\Queue.html";
-static void standDownPromotionScreen( void );
-
-/** The command bar's windows the page is told the place of, by their name in ControlBar.wnd. */
-static const char *const CONTROL_BAR_WINDOWS[] =
+/** color with its opacity taken down to share of what it was. */
+static Color broadcastFade( Color color, Real share )
{
- "LeftHUD", "RightHUD", "CameoWindow", "CommandWindow", "MoneyDisplay", "PowerWindow", "GeneralsExp",
- "ButtonGeneral", "ButtonLarge", "ButtonOptions", "ButtonIdleWorker", "PopupCommunicator"
-};
+ UnsignedByte red, green, blue, alpha;
+ GameGetColorComponents( color, &red, &green, &blue, &alpha );
+ return GameMakeColor( red, green, blue, (UnsignedByte)REAL_TO_INT( alpha * share ) );
+}
-/** The bar's windows the page draws instead of letting them paint themselves: the promotion and
- * minimise buttons among them. They still take their clicks; only their pictures are the page's. */
-static const char *const CONTROL_BAR_CUSTOM[] =
+/** A size given for the 720 row picture, in this picture's pixels and font points. */
+static Int broadcastPixels( Real at720 )
{
- "ButtonGeneral", "ButtonLarge", "PowerWindow", "GeneralsExp", "ExpBarForeground", "RightHUD",
- "WinUnitSelected"
-};
+ return max( REAL_TO_INT( at720 * ( TheDisplay->getHeight() / BROADCAST_ROWS ) ), 1 );
+}
-/** How far along its scale a power figure reaches, 0 to 1: the power bar's own logarithmic scale,
- * TheGlobalData's base and intervals, the one W3DPowerDraw measured with. */
-static Real powerBarShare( Real power )
+static Int broadcastPoints( Int at720 )
{
- if( power <= 1.0f || TheGlobalData->m_powerBarBase <= 1 || TheGlobalData->m_powerBarIntervals <= 0.0f )
- return 0.0f;
- const Real share = logf( power ) / logf( (Real)TheGlobalData->m_powerBarBase ) / TheGlobalData->m_powerBarIntervals;
- return share > 1.0f ? 1.0f : share;
+ return REAL_TO_INT( at720 * ( TheDisplay->getHeight() / BROADCAST_ROWS ) );
}
-/** Entry `index` of one of the command bar page's lists, made if the list is that short. The lists
- * are kept from frame to frame and every entry of one is written with the same keys each time, so
- * the map nodes and strings of last frame's entry are written over rather than freed and made
- * again; the caller cuts the list to what it filled. */
-static HtmlValues &listEntry( std::vector< HtmlValues > &list, size_t index )
+/** What the broadcast calls a player and what goes beside it. Every AI's name is its difficulty, so
+ * a plate read "Hard AI vs Hard AI": an AI is called by its general, the difficulty beside it. A
+ * computer seat given a name of its own (-seatname) is called by it, as a player is. */
+static Bool broadcastByDifficulty( Player *player )
{
- if( index >= list.size() )
- list.resize( index + 1 );
- return list[ index ];
+ const UnicodeString &name = player->getPlayerDisplayName();
+ return player->getPlayerType() == PLAYER_COMPUTER && ( name.compare( SlotStateName( SLOT_EASY_AI ) ) == 0
+ || name.compare( SlotStateName( SLOT_MED_AI ) ) == 0 || name.compare( SlotStateName( SLOT_BRUTAL_AI ) ) == 0 );
}
-//-------------------------------------------------------------------------------------------------
-/** The power bar as the page draws it, filling its frame: {{power.fill}} the production and
- * {{power.needle}} the consumption, both percent of the frame, and {{power.state}} "green",
- * "yellow" or "red" by the bar's own rule - red once consumption passes production, yellow within
- * m_powerBarYellowRange of it. Watching, it is the watched player's power. `cells` is the same
- * production as a row of POWER_CELLS cells, each {{lit}} "lit" up to it, for a segmented bar. */
-//-------------------------------------------------------------------------------------------------
-static void putPowerBar( HtmlValues &values, std::vector< HtmlValues > &cells )
+static UnicodeString broadcastName( Player *player )
{
- enum
- {
- ONE_UNIT_NEEDLE_TENTHS = 15, ///< a consumption of 1 is drawn as 1.5: log(1) is 0, and 1 is not nothing
- POWER_CELLS = 20 ///< the bar is drawn as this many cells, lit up to the production
- };
-
- Player *player = TheControlBar->isObserverControlBarOn() ? TheControlBar->getObserverLookAtPlayer()
- : ThePlayerList->getLocalPlayer();
- const Energy *energy = player ? player->getEnergy() : NULL;
- const Int production = energy ? energy->getProduction() : 0;
- const Int consumption = energy ? energy->getConsumption() : 0;
- const Real fill = powerBarShare( (Real)production );
- const Real needle = consumption == 1 ? ONE_UNIT_NEEDLE_TENTHS / 10.0f : (Real)consumption;
- values[ "power.fill" ] = std::to_string( REAL_TO_INT( fill * PERCENT ) );
- values[ "power.needle" ] = std::to_string( REAL_TO_INT( powerBarShare( needle ) * PERCENT ) );
- // with nothing drawing power the needle stood at nought, a white bar across the bar's foot
- values[ "power.consumes" ] = consumption > 0 ? "" : "hidden";
-
- // the bar lies along the grid: each cell gets its place and width in the page's pixels from the
- // left, cut from the frame's inside so they add up to it exactly - floated at a percentage each
- // the page rounded them up, and a percentage of an absolutely placed box does not resolve at all.
- // The needle is a pixel place for the same reason
- enum { FRAME_LIP = 1 };
- const Int row = atoi( values[ "powerframe.w" ].c_str() ) - 2 * FRAME_LIP;
- values[ "power.needlex" ] = std::to_string( REAL_TO_INT( powerBarShare( needle ) * row ) );
- const Int lit = REAL_TO_INT( fill * POWER_CELLS );
- size_t filled = 0;
- for( Int cell = 0; cell < POWER_CELLS && row > 0; cell++ )
- {
- const Int left = cell * row / POWER_CELLS;
- HtmlValues &entry = listEntry( cells, filled++ );
- entry[ "lit" ] = cell < lit ? "lit" : "";
- entry[ "x" ] = std::to_string( left );
- const Int width = ( cell + 1 ) * row / POWER_CELLS - left;
- entry[ "w" ] = std::to_string( width );
- entry[ "segw" ] = std::to_string( max( 0, width - 1 ) ); // the black line before it
- }
- cells.resize( filled );
- if( consumption > production )
- values[ "power.state" ] = "red";
- else if( consumption > production - TheGlobalData->m_powerBarYellowRange )
- values[ "power.state" ] = "yellow";
- else
- values[ "power.state" ] = "green";
+ return broadcastByDifficulty( player ) ? player->getPlayerTemplate()->getDisplayName() : player->getPlayerDisplayName();
}
-//-------------------------------------------------------------------------------------------------
-/** The general's experience as the page draws it, in the groove {{expframe.x}} ... puts down the
- * right panel: `cells` from the bottom up, each {{lit}} "lit" up to the way from this rank to the
- * next, at {{y}} and {{h}} pixels inside the lip, and `stars` one per rank, {{lit}} up to the rank
- * reached. The groove's border goes on top of its size in the page, so expframe.w and .h are cut
- * to its inside here. `player` is the general it is of, the watched one while watching and NULL
- * when nobody is, which leaves the groove empty; the caller stands the groove down then. */
-//-------------------------------------------------------------------------------------------------
-static void putExperienceBar( HtmlValues &values, const Player *player, std::vector< HtmlValues > &cells, std::vector< HtmlValues > &stars )
+static UnicodeString broadcastSide( Player *player )
{
- enum { FRAME_BORDER = 2, FRAME_LIP = 1, EXPERIENCE_CELLS = 10, FULL = 100 };
+ return broadcastByDifficulty( player ) ? player->getPlayerDisplayName() : player->getPlayerTemplate()->getDisplayName();
+}
- const Int width = atoi( values[ "expframe.w" ].c_str() ) - 2 * FRAME_BORDER;
- const Int height = atoi( values[ "expframe.h" ].c_str() ) - 2 * FRAME_BORDER;
- values[ "expframe.w" ] = std::to_string( max( 0, width ) );
- values[ "expframe.h" ] = std::to_string( max( 0, height ) );
- values[ "expframe.innerw" ] = std::to_string( max( 0, width - 2 * FRAME_LIP ) );
+/// U+2026 by number: written as a character in a u"" literal, MSVC read this file in the machine's
+/// code page and the bar drew the three characters of its UTF-8 bytes
+static const WideChar BROADCAST_ELLIPSIS[] = { 0x2026, 0 };
+static const WideChar HIGH_SURROGATE_FIRST = 0xD800;
+static const WideChar HIGH_SURROGATE_LAST = 0xDBFF;
- if( player == NULL )
+/** full's text as it fits widest pixels: whole, or as many of its first characters as fit with
+ * ellipsis, a string holding the ellipsis in full's font, after them. Spaces before the ellipsis
+ * go, and a character outside the 16 bit range is never cut in half. */
+static UnicodeString broadcastFitted( DisplayString *full, DisplayString *ellipsis, Int widest )
+{
+ UnicodeString text = full->getText();
+ if( full->getWidth() <= widest )
+ return text;
+ std::vector< Int > prefixWidths( text.getLength() + 1, 0 );
+ for( Int count = 1; count <= text.getLength(); count++ )
+ prefixWidths[ count ] = full->getWidth( count );
+ const Int kept = ObserverCamera_fitCount( prefixWidths, ellipsis->getWidth(), widest );
+ while( text.getLength() > kept )
+ text.removeLastChar();
+ auto dangles = [ &text ]() -> Bool
{
- cells.clear();
- stars.clear();
- return;
- }
-
- const Int lit = player->getRankProgressPercent() * EXPERIENCE_CELLS / FULL;
- const Int column = height - 2 * FRAME_LIP;
- size_t filled = 0;
- for( Int cell = 0; cell < EXPERIENCE_CELLS && column > 0; cell++ )
- {
- // cell 0 is the bottom one; each is cut from the column so they add up to it exactly, and its
- // segment is a pixel shorter, the black line over it
- enum { CELL_GAP = 1 };
- const Int top = column - ( cell + 1 ) * column / EXPERIENCE_CELLS;
- const Int cellHeight = column - cell * column / EXPERIENCE_CELLS - top;
- HtmlValues &entry = listEntry( cells, filled++ );
- entry[ "lit" ] = cell < lit ? "lit" : "";
- entry[ "y" ] = std::to_string( top );
- entry[ "h" ] = std::to_string( cellHeight );
- entry[ "segh" ] = std::to_string( max( 0, cellHeight - CELL_GAP ) );
- }
- cells.resize( filled );
-
- // the stars stand at pixel places centred on the key: centred as a line of text, the page measured
- // the star glyph wider than it drew it and the row sat to the left
- enum { RANK_KEY_WIDTH = 56, STAR_PITCH = 11, STAR_SIZE = 10 };
- const Int rankCount = TheRankInfoStore->getRankLevelCount();
- const Int firstStar = ( RANK_KEY_WIDTH - ( rankCount * STAR_PITCH - ( STAR_PITCH - STAR_SIZE ) ) ) / 2;
- for( Int rank = 1; rank <= rankCount; rank++ )
- {
- HtmlValues &entry = listEntry( stars, rank - 1 );
- entry[ "lit" ] = rank <= player->getRankLevel() ? "lit" : "";
- entry[ "x" ] = std::to_string( firstStar + ( rank - 1 ) * STAR_PITCH );
- }
- stars.resize( (size_t)max( 0, rankCount ) );
+ const WideChar last = text.getCharAt( text.getLength() - 1 );
+ return last == u' ' || ( last >= HIGH_SURROGATE_FIRST && last <= HIGH_SURROGATE_LAST );
+ };
+ while( text.getLength() > 0 && dangles() )
+ text.removeLastChar();
+ text.concat( BROADCAST_ELLIPSIS );
+ return text;
}
-/** The bar's windows the page stands down altogether. The menu, idle worker and promotion buttons are
- * the page's own, pressed through data-click="press:Name": the promotion button is the skills key
- * over the radar, above the top of the bar's frame, where a window takes no clicks. The chat button
- * is gone, and Enter still opens the chat; the minimise button is gone, the bar is only as big as
- * what it holds now; the experience bar's windows would take clicks where the page no longer draws
- * them. */
-static const char *const CONTROL_BAR_STOOD_DOWN[] =
-{
- "ButtonOptions", "ButtonIdleWorker", "PopupCommunicator", "ButtonLarge", "ButtonGeneral", "GeneralsExp", "ExpBarForeground"
-};
-static const std::string PRESS_ACTION = "press:";
-static const std::string SIGNAL_ACTION = "signal:";
-static const std::string ORDER_ACTION = "order:";
-
-/** A smoke signal may be sent: the rule the Alt+Z/X/C keys go by, a multiplayer game that is not a
- * replay, and a player still in it. */
-static Bool signalsAllowed( void )
+/** How many of players are on team. */
+static Int broadcastTeamSize( const std::vector< SpectatorStats > &players, Int team )
{
- const Player *local = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
- return TheGameLogic->isInMultiplayerGame() && !TheGameLogic->isInReplayGame() && local && local->isPlayerActive();
+ Int size = 0;
+ for( size_t index = 0; index < players.size(); index++ )
+ size += players[ index ].team == team ? 1 : 0;
+ return size;
}
-//-------------------------------------------------------------------------------------------------
-/** data-click="signal:attack", "signal:defend" or "signal:look": arms the smoke the Alt+Z/X/C keys
- * send, and the next left click on the ground or the radar drops it there; the right button or
- * Escape takes it back. */
-//-------------------------------------------------------------------------------------------------
-static void armSignalFromPage( const std::string &kind )
+/** A team of two or more by its letter, Team A the first such team in team order; a player alone has
+ * no team name. */
+static UnicodeString broadcastTeamName( const std::vector< SpectatorStats > &players, Int team )
{
- static const struct { const char *name; SignalKind kind; } KINDS[] =
- {
- { "attack", SIGNAL_ATTACK }, { "defend", SIGNAL_DEFEND }, { "look", SIGNAL_ATTENTION }
- };
-
- if( !signalsAllowed() )
- return;
- for( Int each = 0; each < (Int)ARRAY_SIZE( KINDS ); each++ )
- {
- if( kind != KINDS[ each ].name )
- continue;
-
- TheInGameUI->armSignal( KINDS[ each ].kind );
- return;
- }
- DEBUG_LOG(( "Command bar page: data-click=\"signal:%s\" names no signal\n", kind.c_str() ));
+ Int letter = 'A';
+ for( Int earlier = 0; earlier < team; earlier++ )
+ letter += broadcastTeamSize( players, earlier ) >= 2 ? 1 : 0;
+ AsciiString name;
+ name.format( "Team %c", letter );
+ UnicodeString text;
+ text.translate( name );
+ return text;
}
-//-------------------------------------------------------------------------------------------------
-/** data-click="order:attack", "order:hold" or "order:move", the command panel's orders no command set
- * has a button for: what the A, C and V keys do, force fire armed for the next click, hold position,
- * and a move armed for the next click. "order:stance" is the key after them, pressOrderKey's. */
-//-------------------------------------------------------------------------------------------------
-static void orderFromPage( const std::string &order )
+/// the ground's edge round a gold player's swatch, in 720 line pixels: one pixel was lost at 720p
+static const Real BROADCAST_GOLD_EDGE = 2.0f;
+
+/** A player's colour as a filled rectangle; one near the lines' gold gets an edge of the ground round
+ * it, outside so a swatch three pixels wide keeps its colour, and over its neighbours' ends in the
+ * army bar so it does not run into them. */
+static void drawBroadcastSwatch( Int left, Int top, Int width, Int height, Color color )
{
- if( order == "attack" )
- TheInGameUI->toggleForceAttackArmed();
- else if( order == "move" )
- TheInGameUI->toggleMoveArmed();
- else if( order == "stance" )
- TheInGameUI->pressOrderKey( ORDER_KEY_STANCE );
- else if( order == "hold" && TheInGameUI->getSelectCount() > 0 )
+ if( width <= 0 )
+ return;
+ if( ObserverCamera_nearBrandGold( color ) )
{
- GameMessage *hold = TheMessageStream->appendMessage( GameMessage::MSG_DO_HOLD_POSITION );
- hold->appendIntegerArgument( GUARDMODE_GUARD_WITHOUT_PURSUIT );
+ const Int edge = max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 );
+ TheDisplay->drawFillRect( left - edge, top - edge, width + edge * 2, height + edge * 2, BROADCAST_GROUND );
}
- else
- DEBUG_LOG(( "Command bar page: data-click=\"order:%s\" names no order\n", order.c_str() ));
+ TheDisplay->drawFillRect( left, top, width, height, color );
}
-/** The radar's window, the left panel's container with the experience bar's groove beside it. NULL
- * ends the list. */
-static const char *const CONTROL_BAR_LEFT[] = { "LeftHUD", NULL };
-static const Int COMMAND_BUTTONS = 14; ///< ButtonCommand01 to 14, the command set a player sees
-static const Int UPGRADE_CAMEOS = 5; ///< UnitUpgrade1 to 5, a single unit's upgrades in the portrait bar
-
-/** The bar as the owner drew it on 2026-09-28, 800x600 pixels at ControlBarHudScale(): from the left,
- * the radar with the experience bar beside it, then the command grid, six by three, with the power
- * bar lying along its top and the money on the power bar's left end, then the portrait bar on the
- * screen's bottom edge. Since 2026-10-01 the radar's keys stand in the selection's header instead,
- * the idle worker's key and the skills key from its left, the smoke signals after them, and the
- * radar has the height of its header too. */
-enum
+/// a label on the picture: pieces of text side by side, each its colour, on the ground with the gold
+/// rule along its bottom
+struct BroadcastPlate
{
- COMMAND_BUTTON_WIDTH = 50, ///< a command button as ControlBar.wnd authors it, the promotion screen's cell
- COMMAND_BUTTON_HEIGHT = 44,
- CELL_WIDTH = 38, ///< the portrait bar's and the trays' cell, three quarters of a command button:
- CELL_HEIGHT = 33, ///< the whole size made the owner's drawing a third again as wide
- COMMAND_CELL_WIDTH = 46, ///< the command grid's, a fifth bigger again: the owner asked for the production
- COMMAND_CELL_HEIGHT = 40, ///< area to stand out from the rest of the bar
- CELL_GAP = 4, ///< between two cells of the command grid and the portrait bar, a ring of half of
- ///< it round each picture
- COMMAND_COLUMNS = COMMAND_PLACE_COLUMNS,
- COMMAND_ROWS = COMMAND_PLACE_COUNT / COMMAND_PLACE_COLUMNS,
- PORTRAIT_WIDTH = 44, ///< the portrait's cell, a cell's height at the portrait's own shape
- PORTRAIT_PLACES = 5, ///< the selection's well, cells across: the portrait and a column of text, a
- ///< unit's five upgrades, or a row of a group's types
- RADAR_WIDTH = 167, ///< the radar's shape, as ControlBar.wnd authors LeftHUD; its height is the
- RADAR_HEIGHT = 152, ///< command grid's height
- EXPERIENCE_WIDTH = 12, ///< the experience bar's groove, the radar's height
- EXPERIENCE_GAP = 4, ///< between it and the radar
- PANEL_FOOT = 4, ///< a grid's ring over the screen's bottom edge, the steel under it
- HEADER_SLOTS = 7, ///< the selection's header, in slots of a seventh of it: the idle worker's key,
- ///< the skills key two and a smoke signal's key each; the last slot is bare
- ///< steel since the under-attack light went, so the keys kept their size
- IDLE_SLOTS = 1,
- SKILLS_SLOTS = 2,
- SIGNAL_BUTTONS = 3, ///< attack, defend, look, a slot each
- SIGNAL_STEP_HEIGHT = 24, ///< how far each smoke signal key rises into its place
- MONEY_TEXT_MARGIN = 5, ///< the money's well each side of its figure, which sets the well's width
- QUEUE_TRAY_BORDER = 3, ///< the production queue's tray's, thinner, since the row runs over the battlefield
- SKILL_CELL_GAP = 2, ///< the steel between two cells of the powers and the production queue
- QUEUE_TRAY_LINE = 1, ///< the light and dark lines along that tray's edges
- QUEUE_TRAY_WELL = SKILL_CELL_GAP, ///< the well round its cells: a row stepped under another starts in it
- QUEUE_TRAY_COLUMNS = 5, ///< the production queue's cells to a row, rows growing up over the selection
- HEADER_HEIGHT = 22, ///< the strip over the selection's and the grid's wells; the radar's well reaches
- ///< up through it to the console's top line
- HEADER_GAP = 2, ///< between a header and its well
- SELECTION_ROWS = 3, ///< the selection's well: three rows of PORTRAIT_PLACES cells for a group's types
- PORTRAIT_SCALE = 2, ///< a lone unit's portrait, two cells high
- TOP_WELL_HEIGHT = 22, ///< the top page's clock's well
- MONEY_WELL_HEIGHT = 16, ///< the money's well under it
- TOP_BORDER = 4, ///< the top page's steel round each of them
- TOP_BOX_GAP = 2, ///< the battlefield between two of the top page's plates
- PEACE_WELL_WIDTH = 100, ///< the peace time's well under the money, "PEACE 14:59" and a margin: at 88
- ///< the time broke onto a second line at 1920x1080
- CLOCK_WIDTH = 64, ///< the top page's wells at their narrowest, in the middle of the screen
- POWER_BAR_HEIGHT = 12, ///< the power bar's groove in the command grid's header
- POWER_BAR_MARGIN = 6, ///< the header's steel each end of it
- MENU_FOOT = 24 ///< the menu key's bottom edge in the top left corner, the feed under it
+ std::vector< DisplayString * > pieces;
+ std::vector< Color > colors;
};
-/** A grid cell's size on screen. */
-static ICoord2D cellSize( void )
-{
- const Real scale = ControlBarHudScale();
- ICoord2D cell;
- cell.x = REAL_TO_INT( CELL_WIDTH * scale );
- cell.y = REAL_TO_INT( CELL_HEIGHT * scale );
- return cell;
-}
-static const UnsignedInt SIGNAL_RISE_MS = 360; ///< each smoke signal button's climb out of the radar's bezel
-static const UnsignedInt SIGNAL_RISE_STAGGER_MS = 90; ///< between one button starting and the next
-
-/** `signalN.drop`, N 0 to 2, how far below its place each smoke signal button still is, in page
- * pixels, `elapsedMs` after the step came up: each starts a stagger after the one on its left and
- * slows as it arrives, the step's height to nothing. */
-static void putSignalRise( HtmlValues &values, UnsignedInt elapsedMs )
+/** The plate's text alone, its pieces half a gap apart: their width and the tallest's height. */
+static void broadcastPiecesSize( const BroadcastPlate &plate, Int *width, Int *height )
{
- for( Int button = 0; button < SIGNAL_BUTTONS; button++ )
+ *width = *height = 0;
+ for( size_t piece = 0; piece < plate.pieces.size(); piece++ )
{
- const Real started = (Real)elapsedMs - (Real)( button * SIGNAL_RISE_STAGGER_MS );
- const Real progress = min( 1.0f, max( 0.0f, started / SIGNAL_RISE_MS ) );
- const Real remaining = ( 1.0f - progress ) * ( 1.0f - progress ) * ( 1.0f - progress );
- values[ "signal" + std::to_string( button ) + ".drop" ] = std::to_string( REAL_TO_INT( remaining * SIGNAL_STEP_HEIGHT ) );
+ Int pieceWidth = 0, pieceHeight = 0;
+ plate.pieces[ piece ]->getSize( &pieceWidth, &pieceHeight );
+ *width += pieceWidth + ( piece > 0 ? broadcastPixels( BROADCAST_GAP ) / 2 : 0 );
+ *height = max( *height, pieceHeight );
}
}
-static void drawNothing( GameWindow *window, WinInstanceData *instData )
+/** The plate's text from left, each piece centred down a line height rows high from top, faded to
+ * shown, its shadow in ground. */
+static void drawBroadcastPieces( const BroadcastPlate &plate, Int left, Int top, Int height, Real shown, Color ground )
{
+ Int x = left;
+ for( size_t piece = 0; piece < plate.pieces.size(); piece++ )
+ {
+ Int pieceWidth = 0, pieceHeight = 0;
+ plate.pieces[ piece ]->getSize( &pieceWidth, &pieceHeight );
+ plate.pieces[ piece ]->draw( x, top + ( height - pieceHeight ) / 2, broadcastFade( plate.colors[ piece ], shown ),
+ broadcastFade( ground, shown ) );
+ x += pieceWidth + broadcastPixels( BROADCAST_GAP ) / 2;
+ }
}
-static GameWindow *controlBarWindow( const std::string &name )
+static void broadcastPlateSize( const BroadcastPlate &plate, Int *width, Int *height )
{
- return TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( ( "ControlBar.wnd:" + name ).c_str() ) );
+ Int textWidth = 0, textHeight = 0;
+ broadcastPiecesSize( plate, &textWidth, &textHeight );
+ *width = textWidth + 2 * broadcastPixels( BROADCAST_PAD );
+ *height = textHeight + broadcastPixels( BROADCAST_PAD ) + broadcastPixels( BROADCAST_RULE );
}
-/** A window's screen rectangle, and FALSE when it is missing or hidden. */
-static Bool controlBarWindowRect( GameWindow *window, IRegion2D &rect )
+/** The plate with its top left at left, top, faded to shown. */
+static void drawBroadcastPlate( const BroadcastPlate &plate, Int left, Int top, Real shown )
{
- rect.lo.x = rect.lo.y = rect.hi.x = rect.hi.y = 0;
- if( window == NULL || window->winIsHidden() )
- return FALSE;
-
+ const Int pad = broadcastPixels( BROADCAST_PAD );
+ const Int rule = broadcastPixels( BROADCAST_RULE );
Int width = 0, height = 0;
- window->winGetScreenPosition( &rect.lo.x, &rect.lo.y );
- window->winGetSize( &width, &height );
- rect.hi.x = rect.lo.x + width;
- rect.hi.y = rect.lo.y + height;
- return TRUE;
+ broadcastPlateSize( plate, &width, &height );
+ TheDisplay->drawFillRect( left, top, width, height, broadcastFade( BROADCAST_GROUND, shown ) );
+ TheDisplay->drawFillRect( left, top + height - rule, width, rule, broadcastFade( BROADCAST_GOLD, shown ) );
+ drawBroadcastPieces( plate, left + pad, top + pad / 2, height - pad - rule, shown, BROADCAST_GROUND );
}
-/** "disabled", "hilite" and "pushed" as they apply, for a page to draw a button's state by. */
-static std::string controlBarWindowState( GameWindow *window )
-{
- std::string state;
- if( window == NULL )
- return state;
- if( !BitTest( window->winGetStatus(), WIN_STATUS_ENABLED ) )
- state += " disabled";
- const UnsignedInt flags = window->winGetInstanceData()->getState();
- if( BitTest( flags, WIN_STATE_HILITED ) )
- state += " hilite";
- if( BitTest( flags, WIN_STATE_SELECTED ) )
- state += " pushed";
- return state;
-}
+/// the broadcast's red, for a defeat and nothing else: a struck card and the defeat banner's tab
+static const Color BROADCAST_DEFEAT = GameMakeColor( 0xb8, 0x26, 0x1f, 255 );
+/// the defeat and winner banners: the name's points, the tab's word's, and where the defeat banner's
+/// foot sits, a share of the picture's height down; the winner's hangs under it
+static const Int BROADCAST_BANNER_POINTS = 16;
+static const Int BROADCAST_BANNER_WORD_POINTS = 12;
+static const Real BROADCAST_BANNER_FOOT = 0.7f;
-/** The box round every shown window of a NULL-ended list, and FALSE when none of them is shown. */
-static Bool controlBarUnion( const char *const *names, IRegion2D &box )
+/** A banner's height with title over under, its rule included. */
+static Int broadcastBannerHeight( const BroadcastPlate &title, const BroadcastPlate &under )
{
- Bool found = FALSE;
- box.lo.x = box.lo.y = box.hi.x = box.hi.y = 0;
- for( ; *names; names++ )
- {
- IRegion2D rect;
- if( !controlBarWindowRect( controlBarWindow( *names ), rect ) )
- continue;
- if( !found )
- box = rect;
- box.lo.x = min( box.lo.x, rect.lo.x );
- box.lo.y = min( box.lo.y, rect.lo.y );
- box.hi.x = max( box.hi.x, rect.hi.x );
- box.hi.y = max( box.hi.y, rect.hi.y );
- found = TRUE;
- }
- return found;
+ Int width = 0, titleHeight = 0, underHeight = 0;
+ broadcastPiecesSize( title, &width, &titleHeight );
+ broadcastPiecesSize( under, &width, &underHeight );
+ return titleHeight + underHeight + broadcastPixels( BROADCAST_PAD ) + broadcastPixels( BROADCAST_RULE );
}
-/** The values `name`.x, `name`.y and so on, their keys built in one string kept from call to call:
- * name + ".x" made a new string for every key of every rectangle on the bar, every pass. One at a
- * time: a second one alive at once would write over the first's key. */
-struct HtmlValueKey
+/** A banner across the lower picture for a defeat or the winner, centred, its foot on the row foot: a
+ * tab of colour holding word, beside it title over the smaller under, on the ground with a rule of the
+ * tab's colour along its foot. It opens as the rule grows out from its middle, the panel rises off the
+ * rule and the words come last; shown runs it from 0 to 1, and going back down closes it the same way.
+ * The rectangle it takes on the picture. */
+static IRegion2D drawBroadcastBanner( DisplayString *word, Color tab, Color wordColor, const BroadcastPlate &title,
+ const BroadcastPlate &under, Int foot, Real shown )
{
- HtmlValueKey( HtmlValues &values, const std::string &name ) : m_values( values ), m_stem( name.size() ) { s_key.assign( name ); }
- std::string &at( const char *suffix )
+ const Int pad = broadcastPixels( BROADCAST_PAD );
+ const Int rule = broadcastPixels( BROADCAST_RULE );
+ Int wordWidth = 0, wordHeight = 0, titleWidth = 0, titleHeight = 0, underWidth = 0, underHeight = 0;
+ word->getSize( &wordWidth, &wordHeight );
+ broadcastPiecesSize( title, &titleWidth, &titleHeight );
+ broadcastPiecesSize( under, &underWidth, &underHeight );
+ const Int tabWidth = wordWidth + 2 * pad;
+ const Int width = tabWidth + pad + max( titleWidth, underWidth ) + pad;
+ const Int height = broadcastBannerHeight( title, under ) - rule;
+ const Int left = ( (Int)TheDisplay->getWidth() - width ) / 2;
+ const Int top = foot - rule - height;
+
+ const Int ruleWidth = REAL_TO_INT( width * ObserverCamera_easeBetween( shown, 0.0f, 0.45f ) );
+ TheDisplay->drawFillRect( left + ( width - ruleWidth ) / 2, foot - rule, ruleWidth, rule, tab );
+ const Int panelHeight = REAL_TO_INT( height * ObserverCamera_easeBetween( shown, 0.3f, 0.85f ) );
+ if( panelHeight > 0 )
{
- s_key.resize( m_stem );
- s_key += suffix;
- return m_values[ s_key ];
+ TheDisplay->drawFillRect( left, foot - rule - panelHeight, width, panelHeight, BROADCAST_GROUND );
+ TheDisplay->drawFillRect( left, foot - rule - panelHeight, tabWidth, panelHeight, tab );
}
-
- HtmlValues &m_values;
- size_t m_stem;
- static std::string s_key;
-};
-std::string HtmlValueKey::s_key;
-
-static void putPageRect( HtmlValues &values, const std::string &name, const IRegion2D &rect, Bool shown,
- Real scale = ControlBarUniformScale() );
-
-/** A panel's steel, 800x600 pixels. */
-enum
-{
- PANEL_BORDER = 8, ///< a panel's border outside its container, and the steel between two wells
- CONSOLE_MARGIN = 2, ///< the least battlefield each side of the console at its widest
- POWER_TRAY_EDGE = 4 ///< the general's powers' steel past their last column and over their top cell
-};
-
-/** The general's powers' steel at its widest, a column of cells for every group a key picks and the
- * steel between and past them, `scale` screen pixels to a page pixel. */
-static Int powersTrayWidth( Real scale )
-{
- enum { COLUMNS = ( MAX_SPECIAL_POWER_SHORTCUTS + SPECIAL_POWER_SHORTCUT_COLS - 1 ) / SPECIAL_POWER_SHORTCUT_COLS };
- const Int gap = REAL_TO_INT( SKILL_CELL_GAP * scale );
- return COLUMNS * ( REAL_TO_INT( CELL_WIDTH * scale ) + gap ) + REAL_TO_INT( POWER_TRAY_EDGE * scale );
-}
-
-/** The three wells drawControlBarPage stands side by side, the radar, the selection and the command
- * grid, with the steel between and round them, and the general's powers' steel at its widest on the
- * right: the console stands that much left of the middle, so the powers grow into room kept for
- * them and nothing moves when one comes. */
-Int InGameUI_consolePageWidth( void )
-{
- const Int radarHeight = COMMAND_ROWS * ( COMMAND_CELL_HEIGHT + CELL_GAP ) + HEADER_GAP + HEADER_HEIGHT;
- const Int radar = radarHeight * RADAR_WIDTH / RADAR_HEIGHT + EXPERIENCE_GAP + EXPERIENCE_WIDTH;
- const Int selection = PORTRAIT_PLACES * ( CELL_WIDTH + CELL_GAP );
- const Int grid = COMMAND_COLUMNS * ( COMMAND_CELL_WIDTH + CELL_GAP );
- enum { WELLS = 3 };
- return radar + selection + grid + ( WELLS + 1 ) * PANEL_BORDER + powersTrayWidth( 1.0f ) + 2 * CONSOLE_MARGIN;
+ const Real words = ObserverCamera_easeBetween( shown, 0.8f, 1.0f );
+ if( words > 0.0f )
+ {
+ word->draw( left + pad, top + ( height - wordHeight ) / 2, broadcastFade( wordColor, words ), broadcastFade( tab, words ) );
+ drawBroadcastPieces( title, left + tabWidth + pad, top + pad / 2, titleHeight, words, BROADCAST_GROUND );
+ drawBroadcastPieces( under, left + tabWidth + pad, top + pad / 2 + titleHeight, underHeight, words, BROADCAST_GROUND );
+ }
+ IRegion2D drawn;
+ drawn.lo.x = left;
+ drawn.lo.y = top;
+ drawn.hi.x = left + width;
+ drawn.hi.y = foot;
+ return drawn;
}
-/** The screen's bottom edge as the bar stands on it: while the match's intro slides the bar up from
- * below, its frame is under where layoutPanels put it, and everything standing on the edge goes
- * down with it, or the panels waited at the bottom while only the buttons rose. */
-static Int barBottom( void )
+//-------------------------------------------------------------------------------------------------
+DisplayString *InGameUI::broadcastText( const std::string &key, const UnicodeString &text, const char *font, Int points, Bool bold )
{
- Int frameX = 0, frameY = 0;
- TheControlBar->getMasterParent()->winGetScreenPosition( &frameX, &frameY );
- return TheDisplay->getHeight() + frameY - TheControlBar->getPanelOrigin()->y;
+ DisplayString *&string = m_broadcastTexts[ key ];
+ if( string == NULL )
+ {
+ string = TheDisplayStringManager->newDisplayString();
+ string->setFont( TheFontLibrary->getFont( AsciiString( font ), points, bold ) );
+ }
+ string->setText( text );
+ return string;
}
-/** The border round a container: `border` screen pixels on the sides facing the battlefield, out to
- * the screen's bottom edge under it. */
-static IRegion2D framed( const IRegion2D &content, Int border )
+/// one player's card of the score bar
+struct BroadcastRow
{
- IRegion2D box;
- box.lo.x = content.lo.x - border;
- box.lo.y = content.lo.y - border;
- box.hi.x = content.hi.x + border;
- box.hi.y = barBottom();
- return box;
-}
-
-/** A panel for the page: `name`.x and .y the border's outer corner, .w and .h the container, and
- * .bt .br .bb .bl the border's four widths, all in the page's pixels, `scale` screen pixels to one,
- * every edge rounded once so the container fits what it holds exactly; `name`.shown as putPageRect
- * writes it. */
-static void putFrame( HtmlValues &values, const std::string &name, const IRegion2D &content, const IRegion2D &box, Bool shown,
- Real scale = ControlBarHudScale() )
-{
- struct Edge { static Int page( Int screen, Real scale ) { return REAL_TO_INT_FLOOR( screen / scale + 0.5f ); } };
- const Int left = Edge::page( box.lo.x, scale ), top = Edge::page( box.lo.y, scale );
- const Int innerLeft = Edge::page( content.lo.x, scale ), innerTop = Edge::page( content.lo.y, scale );
- const Int innerRight = Edge::page( content.hi.x, scale ), innerBottom = Edge::page( content.hi.y, scale );
- const Int right = Edge::page( box.hi.x, scale ), bottom = Edge::page( box.hi.y, scale );
-
- HtmlValueKey key( values, name );
- key.at( ".x" ) = std::to_string( left );
- key.at( ".y" ) = std::to_string( top );
- key.at( ".w" ) = std::to_string( shown ? max( 0, innerRight - innerLeft ) : 0 );
- key.at( ".h" ) = std::to_string( shown ? max( 0, innerBottom - innerTop ) : 0 );
- key.at( ".bl" ) = std::to_string( max( 0, innerLeft - left ) );
- key.at( ".bt" ) = std::to_string( max( 0, innerTop - top ) );
- key.at( ".br" ) = std::to_string( max( 0, right - innerRight ) );
- key.at( ".bb" ) = std::to_string( max( 0, bottom - innerBottom ) );
- key.at( ".shown" ) = shown ? "shown" : "hidden";
-}
+ const SpectatorStats *stats;
+ Color color;
+ DisplayString *name;
+ DisplayString *side;
+ DisplayString *cash;
+ DisplayString *army;
+};
-/** The console's next well, `width` screen pixels wide from `left` between `top` and `bottom`, and
- * `left` moved on past it and the `gap` of steel after it. */
-static IRegion2D nextWell( Int &left, Int width, Int top, Int bottom, Int gap )
-{
- IRegion2D well;
- well.lo.x = left;
- well.hi.x = left + width;
- well.lo.y = top;
- well.hi.y = bottom;
- left = well.hi.x + gap;
- return well;
-}
+/// the score bar's sizes, largest first, in 720 line points and pixels: a row of cards takes the first
+/// that fits the screen's width
+static const Int BROADCAST_CARD_STEPS = 4;
+static const Int BROADCAST_CARD_NAME_POINTS[ BROADCAST_CARD_STEPS ] = { 11, 10, 9, 8 };
+static const Int BROADCAST_CARD_DETAIL_POINTS[ BROADCAST_CARD_STEPS ] = { 9, 8, 8, 7 };
+static const Real BROADCAST_CARD_PAD[ BROADCAST_CARD_STEPS ] = { 6.0f, 5.0f, 4.0f, 3.0f };
+/// the widest a player's own name may be where the broadcast writes it, in 720 line pixels for a name of
+/// BROADCAST_NAME_POINTS and in proportion at other sizes: a longer one ends in an ellipsis, so one long
+/// name neither widens every card nor runs into the general beside it, past a pane's circle or across
+/// the picture. A computer player's name is his general and is never cut: "GLA Demolition General" is
+/// 171 at 11 points. A split's plate holds two names and a "vs" in a circle 265 across; the opening's
+/// holds one; a banner has the picture's middle
+static const Real BROADCAST_CARD_NAME_WIDEST = 140.0f;
+static const Real BROADCAST_PLATE_NAME_WIDEST = 110.0f;
+static const Real BROADCAST_INTRO_NAME_WIDEST = 120.0f;
+static const Real BROADCAST_BANNER_NAME_WIDEST = 210.0f;
+/// the house colour along a card's top
+static const Real BROADCAST_CARD_STRIP = 2.0f;
+/// the line through a defeated player's name, in 720 line pixels, with a pixel of the ground each side
+static const Real BROADCAST_STRIKE = 2.0f;
+/// a power's flag under a card: its icon this many 720 rows high, with this much of the panel round it
+static const Real BROADCAST_FLAG_ICON = 30.0f;
+static const Real BROADCAST_FLAG_INSET = 3.0f;
-/** The header strip over a well of the console, the same width. */
-static IRegion2D wellHeader( const IRegion2D &well, Real scale )
+//-------------------------------------------------------------------------------------------------
+DisplayString *InGameUI::broadcastNameText( const std::string &key, Player *player, Int points, Real widest )
{
- IRegion2D header = well;
- header.hi.y = well.lo.y - REAL_TO_INT( HEADER_GAP * scale );
- header.lo.y = header.hi.y - REAL_TO_INT( HEADER_HEIGHT * scale );
- return header;
+ const Int screenPoints = broadcastPoints( points );
+ UnicodeString name = broadcastName( player );
+ if( !broadcastByDifficulty( player ) )
+ name = broadcastFitted( broadcastText( "full" + key, name, BROADCAST_WORDS, screenPoints, TRUE ),
+ broadcastText( "ellipsis" + std::to_string( screenPoints ), UnicodeString( BROADCAST_ELLIPSIS ), BROADCAST_WORDS, screenPoints, TRUE ),
+ broadcastPixels( widest * points / BROADCAST_NAME_POINTS ) );
+ return broadcastText( key, name, BROADCAST_WORDS, screenPoints, TRUE );
}
-/** A well of the console for the page, data-each="wells": {{well.x}} .y .w .h and, when `headed`, the
- * header strip over it, {{header.x}} .y .w .h. `filled` is how many of the list's entries this frame
- * has written, and the caller cuts the list to it. */
-static void putWell( std::vector< HtmlValues > &wells, size_t &filled, const IRegion2D &well, Bool shown, Bool headed, Real scale )
+/// the score bar laid out for one set of players: their cards' strings, every block's and card's place on
+/// the screen and the bar's measures. While a defeated player's card closes the bar is drawn between
+/// two, with that card and without it
+struct BroadcastLayout
{
- if( !shown )
- return;
- HtmlValues &entry = listEntry( wells, filled++ );
- putPageRect( entry, "well", well, TRUE, scale );
- putPageRect( entry, "header", wellHeader( well, scale ), headed, scale );
-}
+ std::vector< SpectatorStats > players;
+ std::vector< BroadcastRow > rows;
+ std::vector< Int > blockFirst, blockSizes, blockArmies, lineOf;
+ std::vector< DisplayString * > teamNames, teamTotals;
+ std::vector< Int > blockLefts, blockWidths, blockHeaderTops, blockCardsTops;
+ std::vector< Int > cardLefts, cardTops, cardLines;
+ DisplayString *armyHead = NULL;
+ DisplayString *versusText = NULL;
+ Bool compact = FALSE;
+ Int step = 0, lines = 0, cardWidth = 0, fullCardWidth = 0, cardHeight = 0, cardPad = 0, halfPad = 0, versusWidth = 0;
+ Int nameHeight = 0, sideHeight = 0, numberHeight = 0, labelHeight = 0, textHeight = 0, strip = 0;
+ Int left = 0, barWidth = 0, height = 0, rowLeft = 0, rowWidth = 0, tugTop = 0;
+};
-/** The damage a lone unit's armour is shown against, the three most of the fighting deals, each under
- * its label in the string table. */
-static const struct { DamageType type; const char *label; } SHOWN_ARMOR[] =
+/// a card's rectangle on the screen
+struct BroadcastPlace
{
- { DAMAGE_SMALL_ARMS, "TOOLTIP:StatVsGuns" },
- { DAMAGE_ARMOR_PIERCING, "TOOLTIP:StatVsShells" },
- { DAMAGE_INFANTRY_MISSILE, "TOOLTIP:StatVsRockets" },
+ Int left, top, width, height;
};
-/** Where each column of figures stands in the 108 page pixels beside the portrait. Not thirds: the
- * game's 7 pixel font writes "Damage" 37 pixels wide and "Rocket" 31, so the first column takes
- * what "Damage" needs and a gap of seven, and the last one keeps 32 for "Range", "Rocket" and "+100%". */
-static const Int FIGURE_COLUMN_X[] = { 0, 44, 76 };
-
-/** One column of the figures under a lone unit's health, {{x}} its left in page pixels, {{label}}
- * over {{value}}, and {{state}} "strong", "weak" or nothing. */
-static void putFigureColumn( std::vector< HtmlValues > &columns, Int column, const char *label, const std::string &value,
- const char *state )
-{
- HtmlValues &entry = listEntry( columns, column );
- entry[ "x" ] = std::to_string( FIGURE_COLUMN_X[ column ] );
- entry[ "label" ] = WideCharStringToMultiByte( TheGameText->fetch( label ).str() );
- entry[ "value" ] = value;
- entry[ "state" ] = state;
-}
-
-/** A lone unit's name, rank, health, main weapon and armour for the page, beside its portrait
- * `portrait` in the selection's well `well`: {{selinfo.x}} .y .w .h, {{sel.name}},
- * data-each="selstars" a star for each veterancy level it has, {{sel.health}} "820/1000" or "82%",
- * {{sel.healthw}} the bar's lit width in page pixels out of selinfo.w, {{sel.healthstate}} "green",
- * "yellow" or "red", data-each="selweapon" the main weapon's damage, damage a second and range and
- * data-each="selarmor" what its armour does to each of SHOWN_ARMOR, "-75%". Both are the object's
- * as it stands - the weapon set it carries, its veterancy, upgrades and container, the armour set
- * its upgrades put on - read through the same const calls the logic makes. */
-static void putSelectedUnit( HtmlValues &values, HtmlLists &lists, const IRegion2D &portrait, const IRegion2D &well, Bool shown )
-{
- enum { INFO_GAP = 6, INFO_TOP = 4, HEALTH_YELLOW_PERCENT = 50, HEALTH_RED_PERCENT = 25, STAR_PITCH = 11, WEAPON_FIGURES = 3 };
- const Real scale = ControlBarHudScale();
- // from just under the well's top rather than the portrait's, which stands a dozen page pixels
- // lower: a two line name and the two rows of figures need that room to keep clear of each other
- IRegion2D info = portrait;
- info.lo.x = portrait.hi.x + REAL_TO_INT( INFO_GAP * scale );
- info.hi.x = well.hi.x - REAL_TO_INT( INFO_GAP * scale );
- info.lo.y = well.lo.y + REAL_TO_INT( INFO_TOP * scale );
- // the drawable the bar's portrait is of, which is the one selected
- const Drawable *drawable = TheControlBar->getContextDrawable();
- const Object *object = drawable ? drawable->getObject() : NULL;
- shown = shown && object != NULL;
- putPageRect( values, "selinfo", info, shown, scale );
- std::vector< HtmlValues > &stars = lists[ "selstars" ];
- std::vector< HtmlValues > &weaponColumns = lists[ "selweapon" ];
- std::vector< HtmlValues > &armorColumns = lists[ "selarmor" ];
- stars.clear();
- if( !shown )
- {
- weaponColumns.clear();
- armorColumns.clear();
- return;
- }
-
- // an enemy in disguise is what he looks like, as his portrait is (ControlBar::setPortraitByObject):
- // the disguise's name, and no rank, health, weapon or armour, which are his own
- if( drawable->getStealthLook() == STEALTHLOOK_DISGUISED_ENEMY )
+//-------------------------------------------------------------------------------------------------
+/** The score bar laid out for players into l: every side in one row (two rows of one-line cards from
+ * five players), its cards sized to the largest step that fits the screen, under the clock's tab of
+ * clockBox by clockBoxHeight. Team letters come from named, everyone who played; tag keeps this
+ * layout's team totals apart from another's drawn in the same frame. */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::layOutBroadcast( const std::vector< SpectatorStats > &players, const std::vector< SpectatorStats > &named,
+ const std::string &tag, Int clockBox, Int clockBoxHeight, BroadcastLayout &l )
+{
+ const Int pad = broadcastPixels( BROADCAST_PAD );
+ const Int tug = broadcastPixels( BROADCAST_TUG );
+ l.players = players;
+ // a block is one side: a team, or a player on his own, its players' cards side by side and a "vs"
+ // between two blocks
+ for( size_t index = 0; index < l.players.size(); index++ )
{
- values[ "sel.name" ] = WideCharStringToMultiByte( drawable->getTemplate()->getDisplayName().str() );
- values[ "sel.healthshown" ] = "hidden";
- weaponColumns.clear();
- armorColumns.clear();
- return;
+ if( index == 0 || l.players[ index ].team != l.players[ index - 1 ].team )
+ {
+ l.blockFirst.push_back( (Int)index );
+ l.blockSizes.push_back( 0 );
+ l.blockArmies.push_back( 0 );
+ }
+ l.blockSizes.back()++;
+ l.blockArmies.back() += l.players[ index ].army;
}
+ const Int blocks = (Int)l.blockSizes.size();
- values[ "sel.name" ] = WideCharStringToMultiByte( object->getTemplate()->getDisplayName().str() );
- values[ "sel.healthshown" ] = "";
- for( Int level = LEVEL_VETERAN; level <= object->getVeterancyLevel(); level++ )
- {
- HtmlValues star;
- star[ "x" ] = std::to_string( ( level - LEVEL_VETERAN ) * STAR_PITCH );
- stars.push_back( star );
- }
+ // five players or more stand in two rows, whole blocks to a row, and their cards keep one line each:
+ // the name at the left, the army's value at the right, no general and no cash. One row of eight
+ // two-line cards fell to 7 point text at 720, and one line with the cash had to be cut to fit
+ l.lineOf = ObserverCamera_cardRows( l.blockSizes );
+ l.lines = l.lineOf.back() + 1;
+ l.compact = l.lines > 1;
+ std::vector< std::vector< Int > > lineSizes( l.lines );
+ for( Int block = 0; block < blocks; block++ )
+ lineSizes[ l.lineOf[ block ] ].push_back( l.blockSizes[ block ] );
- // a unit of the local player's or an ally's shows its figures as they stand; anybody else's only
- // with the veterancy his stars show already, since his upgrades, battle plans and horde are what
- // he has researched and planned. A watcher is in nobody's match and sees everything
- const Player *local = ThePlayerList->getLocalPlayer();
- const Bool ours = localPlayerWatching() || object->getControllingPlayer() == local
- || local->getRelationship( object->getTeam() ) == ALLIES;
-
- // an enemy's health as a share of his whole: the whole is research too, Composite Armor and the
- // armour upgrades raise it, and the bar over the unit only ever showed the share
- const BodyModuleInterface *body = object->getBodyModule();
- const Int health = (Int)REAL_TO_INT_CEIL( body->getHealth() );
- const Int maxHealth = max( 1, (Int)REAL_TO_INT_CEIL( body->getMaxHealth() ) );
- const Int percent = health * PERCENT / maxHealth;
- values[ "sel.health" ] = ours ? std::to_string( health ) + "/" + std::to_string( maxHealth ) : std::to_string( percent ) + "%";
- values[ "sel.healthw" ] = std::to_string( atoi( values[ "selinfo.w" ].c_str() ) * health / maxHealth );
- values[ "sel.healthstate" ] = percent <= HEALTH_RED_PERCENT ? "red" : percent <= HEALTH_YELLOW_PERCENT ? "yellow" : "green";
-
- UnitFigures figures = {};
- if( ours )
- {
- for( Int slot = PRIMARY_WEAPON; slot < WEAPONSLOT_COUNT; slot++ )
+ // every card's text at a size, and the card width it needs: the widest of the name, the general or
+ // difficulty, the money line (cash, then the army's label and value) at six digits each, and a team
+ // header spread over its block's cards. Each size keeps strings of its own, since a string keeps
+ // the font it was made with
+ l.rows.assign( l.players.size(), BroadcastRow() );
+ l.teamNames.assign( blocks, NULL );
+ l.teamTotals.assign( blocks, NULL );
+ Int widestWidth = 0;
+ auto buildCards = [ & ]( Int step ) -> Int
+ {
+ const std::string size = "card" + std::to_string( step ) + ":";
+ const Int cardPad = broadcastPixels( BROADCAST_CARD_PAD[ step ] );
+ const Int detailPoints = broadcastPoints( BROADCAST_CARD_DETAIL_POINTS[ step ] );
+ l.armyHead = broadcastText( size + "armyhead", TheGameText->fetch( "GUI:HudStatArmy" ), BROADCAST_WORDS,
+ broadcastPoints( BROADCAST_HEAD_POINTS ), FALSE );
+ l.versusText = broadcastText( size + "versus", UnicodeString( u"vs" ), BROADCAST_WORDS, detailPoints, FALSE );
+ DisplayString *widest = broadcastText( size + "widest", broadcastNumber( "$", BROADCAST_WIDEST ), BROADCAST_NUMBERS, detailPoints, TRUE );
+ Int width = 0, height = 0, labelWidth = 0;
+ l.armyHead->getSize( &labelWidth, &height );
+ widest->getSize( &widestWidth, &height );
+ Int content = l.compact ? 0 : widestWidth + cardPad + labelWidth + cardPad / 2 + widestWidth;
+ for( size_t index = 0; index < l.players.size(); index++ )
+ {
+ const SpectatorStats &stats = l.players[ index ];
+ const std::string seat = size + std::to_string( stats.player->getPlayerIndex() );
+ BroadcastRow &row = l.rows[ index ];
+ row.stats = &stats;
+ row.color = clientPlayerColor( stats.player );
+ row.name = broadcastNameText( "name" + seat, stats.player, BROADCAST_CARD_NAME_POINTS[ step ], BROADCAST_CARD_NAME_WIDEST );
+ row.side = broadcastText( "side" + seat, broadcastSide( stats.player ), BROADCAST_WORDS, detailPoints, FALSE );
+ row.cash = broadcastText( "cash" + seat, broadcastNumber( "$", stats.cash ), BROADCAST_NUMBERS, detailPoints, TRUE );
+ row.army = broadcastText( "army" + seat, broadcastNumber( "$", stats.army ), BROADCAST_NUMBERS, detailPoints, TRUE );
+ row.name->getSize( &width, &height );
+ if( l.compact )
+ {
+ content = max( content, width + cardPad + widestWidth );
+ continue;
+ }
+ // the general or difficulty stands at the right end of the name's line
+ Int sideWidth = 0;
+ row.side->getSize( &sideWidth, &height );
+ content = max( content, width + cardPad + sideWidth );
+ }
+ for( Int block = 0; block < blocks; block++ )
{
- const Weapon *weapon = object->getWeaponInWeaponSlot( (WeaponSlotType)slot );
- if( weapon == NULL )
+ if( l.blockSizes[ block ] < 2 )
continue;
- WeaponBonus bonus;
- weapon->computeBonus( object, 0, bonus );
- figures.slots[ slot ] = ControlBarWeaponFigures( object->getTemplate(), weapon->getTemplate(), bonus );
+ // keyed by the team and the layout, not the block's place: while a card closes both layouts are
+ // up, and a team's total is not the same in the two
+ const Int team = l.players[ l.blockFirst[ block ] ].team;
+ const std::string key = size + tag + std::to_string( team );
+ l.teamNames[ block ] = broadcastText( "teamname" + key, broadcastTeamName( named, team ), BROADCAST_WORDS, detailPoints, TRUE );
+ l.teamTotals[ block ] = broadcastText( "teamtotal" + key, broadcastNumber( "$", l.blockArmies[ block ] ), BROADCAST_NUMBERS, detailPoints, TRUE );
+ // the total measured as six digits, as the cards' numbers are, so the width holds still
+ Int nameWidth = 0;
+ l.teamNames[ block ]->getSize( &nameWidth, &height );
+ const Int header = nameWidth + cardPad + widestWidth;
+ const Int cards = l.blockSizes[ block ];
+ content = max( content, ( header - ( cards - 1 ) * cardPad + cards - 1 ) / cards - 2 * cardPad );
}
- }
- else
- {
- enum { VETERANCY_BONUSES = ( 1 << WEAPONBONUSCONDITION_VETERAN ) | ( 1 << WEAPONBONUSCONDITION_ELITE ) | ( 1 << WEAPONBONUSCONDITION_HERO ) };
- WeaponSetFlags setFlags = object->getWeaponSetFlags();
- setFlags.set( WEAPONSET_PLAYER_UPGRADE, 0 );
- ControlBarTemplateWeaponFigures( object->getTemplate(), setFlags, object->getWeaponBonusCondition() & VETERANCY_BONUSES, figures );
- }
- const Int main = figures.mainSlot();
- if( main == WEAPONSLOT_COUNT )
- weaponColumns.clear();
- else
- {
- const WeaponFigures &weapon = figures.slots[ main ];
- putFigureColumn( weaponColumns, 0, "TOOLTIP:StatDamage", std::to_string( REAL_TO_INT( weapon.damage ) ), "" );
- putFigureColumn( weaponColumns, 1, "TOOLTIP:StatShortDamagePerSecond", weapon.attacksPerSecond > 0.0f
- ? std::to_string( REAL_TO_INT( weapon.damage * weapon.attacksPerSecond ) ) : "-", "" );
- putFigureColumn( weaponColumns, 2, "TOOLTIP:StatRange", std::to_string( REAL_TO_INT( weapon.range ) ), "" );
- weaponColumns.resize( WEAPON_FIGURES );
- }
-
- // the armour, and for our own the body's damage scalar on top of it, which is where a battle plan
- // such as Hold the Line goes (ActiveBody::attemptDamage). Each figure is protection, the share of
- // that damage the armour stops: +50% for a unit that takes half, -25% for one that takes a quarter more
- ArmorSetFlags armorFlags;
- for( Int set = 0; set < ARMORSET_COUNT; set++ )
- if( object->testArmorSetFlag( (ArmorSetType)set ) && ( ours || set != ARMORSET_PLAYER_UPGRADE ) )
- armorFlags.set( set );
- const Armor armor( object->getTemplate()->findArmorTemplateSet( armorFlags )->getArmorTemplate() );
- const Real scalar = ours ? object->getBodyModule()->getDamageScalar() : 1.0f;
- const Int shownArmor = (Int)ARRAY_SIZE( SHOWN_ARMOR );
- for( Int each = 0; each < shownArmor; each++ )
- {
- const Int stopped = PERCENT - REAL_TO_INT_FLOOR( armor.adjustDamage( SHOWN_ARMOR[ each ].type, PERCENT ) * scalar + 0.5f );
- putFigureColumn( armorColumns, each, SHOWN_ARMOR[ each ].label,
- ( stopped > 0 ? "+" : "" ) + std::to_string( stopped ) + "%", stopped > 0 ? "strong" : stopped < 0 ? "weak" : "" );
- }
- armorColumns.resize( shownArmor );
-}
-
-static GameWindow *numberedWindow( const char *prefix, Int number )
-{
- char name[ 32 ];
- snprintf( name, sizeof( name ), "%s%02d", prefix, number );
- return controlBarWindow( name );
-}
-
-/** The screen rectangle of one of the bar's windows as it stands now. */
-static IRegion2D windowScreenRect( GameWindow *window )
-{
- IRegion2D rect;
- Int width = 0, height = 0;
- window->winGetScreenPosition( &rect.lo.x, &rect.lo.y );
- window->winGetSize( &width, &height );
- rect.hi.x = rect.lo.x + width;
- rect.hi.y = rect.lo.y + height;
- return rect;
-}
-
-/** The page's ring of steel round a picture with `gap` screen pixels to its neighbour: half of it in
- * the page's pixels, so two rings meet in the gap, and one at least, which is the bevel. */
-static Int pageRing( Int gap, Real scale )
-{
- return max( 1, (Int)REAL_TO_INT_FLOOR( gap / scale / 2 ) );
-}
-
-/** One cell of a grid for the page: the picture's hole as `cell` and the ring round it. */
-static void putCell( HtmlValues &entry, const IRegion2D &picture, Int ring, Real scale )
-{
- putPageRect( entry, "cell", picture, TRUE, scale );
- entry[ "ring" ] = std::to_string( ring );
-}
-
-/** A grid of `columns` by `rows` cells of `width` by `height` and the ring round them, standing on
- * `bottom` with its left edge on `left`, screen pixels. */
-static IRegion2D gridBox( Int left, Int bottom, Int columns, Int rows, Int width, Int height )
-{
- const Real scale = ControlBarHudScale();
- IRegion2D box;
- box.lo.x = left;
- box.hi.x = left + REAL_TO_INT( columns * ( width + CELL_GAP ) * scale );
- box.hi.y = bottom;
- box.lo.y = bottom - REAL_TO_INT( rows * ( height + CELL_GAP ) * scale );
- return box;
-}
-
-/** Cell `column`, `row` of the grid of `width` by `height` cells `box` holds, scaled by `share`: a
- * grid of smaller cells in the same room, the portrait bar's when a selection has more types than it
- * has places. */
-static IRegion2D gridCell( const IRegion2D &box, Int column, Int row, Int width, Int height, Real share = 1.0f )
-{
- const Real scale = ControlBarHudScale() * share;
- IRegion2D cell;
- cell.lo.x = box.lo.x + REAL_TO_INT( ( CELL_GAP / 2 + column * ( width + CELL_GAP ) ) * scale );
- cell.lo.y = box.lo.y + REAL_TO_INT( ( CELL_GAP / 2 + row * ( height + CELL_GAP ) ) * scale );
- cell.hi.x = cell.lo.x + REAL_TO_INT( width * scale );
- cell.hi.y = cell.lo.y + REAL_TO_INT( height * scale );
- return cell;
-}
+ return content + 2 * cardPad;
+ };
-//-------------------------------------------------------------------------------------------------
-/** Three seconds: the income beside the money changes once a second, so a figure bouncing across a
- * digit, or an income flickering between +9/s and +10/s, never holds narrower for three updates in
- * a row and the plate keeps still; a real drop, a building paid for, has settled by then and the
- * plate follows while the eye is back on the battlefield. The ease is short enough to read as a
- * settle, and every page pixel it moves lays the page out again. */
-Int InGameUI_moneyPlateWidth( MoneyPlateWidth &plate, Int needed, UnsignedInt nowMs )
-{
- if( needed >= plate.target )
+ // the largest size whose row fits the screen less the bar's padding; past the smallest the cards are
+ // cut to fit, so the bar never runs off the picture
+ Int cardWidths[ BROADCAST_CARD_STEPS ], cardGaps[ BROADCAST_CARD_STEPS ], versusWidths[ BROADCAST_CARD_STEPS ];
+ for( Int step = 0; step < BROADCAST_CARD_STEPS; step++ )
{
- plate.target = needed;
- plate.pending = FALSE;
+ cardWidths[ step ] = buildCards( step );
+ cardGaps[ step ] = broadcastPixels( BROADCAST_CARD_PAD[ step ] );
+ Int versusWidth = 0, versusHeight = 0;
+ l.versusText->getSize( &versusWidth, &versusHeight );
+ versusWidths[ step ] = versusWidth + 4 * cardGaps[ step ];
}
- else if( !plate.pending )
+ const Int room = (Int)TheDisplay->getWidth() - 4 * pad;
+ l.step = 0;
+ for( Int line = 0; line < l.lines; line++ )
+ l.step = max( l.step, ObserverCamera_cardStep( lineSizes[ line ], cardWidths, cardGaps, versusWidths, BROADCAST_CARD_STEPS, room ) );
+ buildCards( l.step );
+ l.cardPad = cardGaps[ l.step ];
+ l.versusWidth = versusWidths[ l.step ];
+ std::vector< Int > lineCards, lineBlocks;
+ l.cardWidth = cardWidths[ l.step ];
+ l.fullCardWidth = l.cardWidth;
+ std::vector< Int > lineWidths( l.lines, 0 );
+ for( Int line = 0; line < l.lines; line++ )
+ lineWidths[ line ] = ObserverCamera_cardRow( lineSizes[ line ], l.cardWidth, l.cardPad, l.versusWidth, &lineCards, &lineBlocks );
+ l.rowWidth = *std::max_element( lineWidths.begin(), lineWidths.end() );
+ if( l.rowWidth > room )
{
- plate.pending = TRUE;
- plate.pendingSinceMs = nowMs;
- plate.pendingWidth = needed;
+ for( Int line = 0; line < l.lines; line++ )
+ l.cardWidth = min( l.cardWidth, ObserverCamera_cardWidthIn( lineSizes[ line ], l.cardPad, l.versusWidth, room ) );
+ for( Int line = 0; line < l.lines; line++ )
+ lineWidths[ line ] = ObserverCamera_cardRow( lineSizes[ line ], l.cardWidth, l.cardPad, l.versusWidth, &lineCards, &lineBlocks );
+ l.rowWidth = *std::max_element( lineWidths.begin(), lineWidths.end() );
}
- else
+ // every block's and every card's left across the bar, a shorter line in the middle under the longer
+ std::vector< Int > cardLefts( l.players.size(), 0 ), blockLefts( blocks, 0 );
+ for( Int line = 0; line < l.lines; line++ )
{
- plate.pendingWidth = max( plate.pendingWidth, needed );
- if( nowMs - plate.pendingSinceMs >= MONEY_SHRINK_HOLD_MS )
+ ObserverCamera_cardRow( lineSizes[ line ], l.cardWidth, l.cardPad, l.versusWidth, &lineCards, &lineBlocks );
+ const Int shift = ( l.rowWidth - lineWidths[ line ] ) / 2;
+ Int blockInLine = 0, cardInLine = 0;
+ for( Int block = 0; block < blocks; block++ )
{
- plate.easeFrom = plate.shown;
- plate.easeStartMs = nowMs;
- plate.easing = TRUE;
- plate.target = plate.pendingWidth;
- plate.pending = FALSE;
+ if( l.lineOf[ block ] != line )
+ continue;
+ blockLefts[ block ] = shift + lineBlocks[ blockInLine++ ];
+ for( Int index = l.blockFirst[ block ]; index < l.blockFirst[ block ] + l.blockSizes[ block ]; index++ )
+ cardLefts[ index ] = shift + lineCards[ cardInLine++ ];
}
}
- plate.shown = plate.target;
- if( plate.easing )
+ // the bar's measures: the clock in a tab at the top in the middle, under it a line of team headers
+ // when there are teams, the cards, a header line and a card line again for a second row, and the
+ // armies' bar under all of it
+ Int headerHeight = 0, width = 0;
+ l.rows[ 0 ].name->getSize( &width, &l.nameHeight );
+ l.rows[ 0 ].side->getSize( &width, &l.sideHeight );
+ l.rows[ 0 ].cash->getSize( &width, &l.numberHeight );
+ l.armyHead->getSize( &width, &l.labelHeight );
+ l.numberHeight = max( l.numberHeight, l.labelHeight );
+ for( Int block = 0; block < blocks; block++ )
+ if( l.teamNames[ block ] != NULL )
+ l.teamNames[ block ]->getSize( &width, &headerHeight );
+ // half a card pad round the card's text and under the team names, and a pad's half under the
+ // armies' bar: with a pad each and the money on two lines the bar took 125 rows of 720
+ l.halfPad = max( l.cardPad / 2, 1 );
+ if( headerHeight > 0 )
+ headerHeight += l.halfPad;
+ l.barWidth = max( l.rowWidth, clockBox ) + 2 * pad;
+ l.left = ( (Int)TheDisplay->getWidth() - l.barWidth ) / 2;
+ l.rowLeft = l.left + ( l.barWidth - l.rowWidth ) / 2;
+ const Int headerTop = clockBoxHeight + l.halfPad;
+ l.strip = broadcastPixels( BROADCAST_CARD_STRIP );
+ // a card is two lines, the name with the general or difficulty at its right, then the money; the
+ // general on a line of its own made the bar 100 rows of 720 tall for a 1v1
+ l.textHeight = l.compact ? max( l.nameHeight, l.numberHeight ) : max( l.nameHeight, l.sideHeight ) + l.numberHeight;
+ l.cardHeight = l.strip + l.halfPad + l.textHeight + l.halfPad;
+ // a row's team headers take a line over it only when the row has a team
+ std::vector< Int > lineHeaders( l.lines, 0 ), lineTops( l.lines, 0 );
+ for( Int block = 0; block < blocks; block++ )
+ if( l.teamNames[ block ] != NULL )
+ lineHeaders[ l.lineOf[ block ] ] = headerHeight;
+ l.tugTop = headerTop;
+ for( Int line = 0; line < l.lines; line++ )
+ {
+ lineTops[ line ] = l.tugTop;
+ l.tugTop += lineHeaders[ line ] + l.cardHeight + l.halfPad;
+ }
+ l.height = l.tugTop + tug + l.halfPad;
+
+ // and every block and card where it stands on the screen
+ l.blockLefts.assign( blocks, 0 );
+ l.blockWidths.assign( blocks, 0 );
+ l.blockHeaderTops.assign( blocks, 0 );
+ l.blockCardsTops.assign( blocks, 0 );
+ l.cardLefts.assign( l.players.size(), 0 );
+ l.cardTops.assign( l.players.size(), 0 );
+ l.cardLines.assign( l.players.size(), 0 );
+ for( Int block = 0; block < blocks; block++ )
{
- const UnsignedInt elapsed = nowMs - plate.easeStartMs;
- if( elapsed >= MONEY_SHRINK_EASE_MS )
- plate.easing = FALSE;
- else
+ l.blockLefts[ block ] = l.rowLeft + blockLefts[ block ];
+ l.blockWidths[ block ] = l.blockSizes[ block ] * l.cardWidth + ( l.blockSizes[ block ] - 1 ) * l.cardPad;
+ l.blockHeaderTops[ block ] = lineTops[ l.lineOf[ block ] ];
+ l.blockCardsTops[ block ] = l.blockHeaderTops[ block ] + lineHeaders[ l.lineOf[ block ] ];
+ for( Int index = l.blockFirst[ block ]; index < l.blockFirst[ block ] + l.blockSizes[ block ]; index++ )
{
- // eased out: quick at first, settling onto the new width
- const Real left = 1.0f - (Real)elapsed / MONEY_SHRINK_EASE_MS;
- plate.shown = max( plate.target, plate.target + REAL_TO_INT( ( plate.easeFrom - plate.target ) * left * left ) );
+ l.cardLefts[ index ] = l.rowLeft + cardLefts[ index ];
+ l.cardTops[ index ] = l.blockCardsTops[ block ];
+ l.cardLines[ index ] = l.lineOf[ block ];
}
}
- return plate.shown;
}
//-------------------------------------------------------------------------------------------------
-/** The money, the figure in a dark well `money`, screen pixels, left of the match clock on the top
- * page. The money's window is moved into the well, cut to its line of text. Written as
- * moneyblock. */
+/** The score bar hangs from the top edge in the middle: the match clock in a tab of its own, and under
+ * it every side in one row (two rows of one-line cards from five players), "Team A vs Team B vs a player alone", a card a player with his name in
+ * his colour, his general or difficulty, his cash and the cost of everything he has standing that is
+ * not a building. A team's cards sit together under its name and its armies' total. Under the row
+ * the armies pull on one bar, each player his colour in the cards' order, gold at the middle when
+ * two sides play so the side ahead is the one past it. A special power a player used, or an upgrade
+ * he bought, drops its icon in a flag from under his card. A player who loses has his card flash red and struck through, then
+ * it closes while the others slide to where they stand without it, and his banner comes up across
+ * the lower picture; once the match is decided the winner's comes up under the last. While
+ * a split is up each pane carries a plate in the top of its circle, inside its wedge and clear of
+ * the lines and the radar, naming the fight's players.
+ * Everything is read off the players and their objects; nothing here writes the logic. */
//-------------------------------------------------------------------------------------------------
-static void putMoney( HtmlValues &values, const IRegion2D &money, Bool shown )
+void InGameUI::drawDirectorBroadcast( void )
{
- const Real scale = ControlBarHudScale();
- putPageRect( values, "moneyblock", money, shown, scale );
-
- // the font's height is the line without the drop shadow and the accents over the capitals, and a
- // window that tall had the figure standing out over its block; half as much again holds it
- GameWindow *moneyWindow = controlBarWindow( "MoneyDisplay" );
- if( moneyWindow->winGetFont() )
+ TheObserverCamera.clearBroadcast();
+ // everyone who played, the ones who lost included, so a team keeps its letter after a player of it is
+ // gone; the bar holds the ones still in, and a defeated player's card until it has closed
+ std::vector< SpectatorStats > named = gatherSpectatorStats( SPECTATOR_STATS[ 0 ], NULL, TheObserverCamera.getPlayedMask() );
+ std::stable_sort( named.begin(), named.end(), []( const SpectatorStats &a, const SpectatorStats &b )
+ { return a.team != b.team ? a.team < b.team : a.player->getPlayerIndex() < b.player->getPlayerIndex(); } );
+ const UnsignedInt frame = TheGameLogic->getFrame();
+ std::vector< SpectatorStats > shown, settled;
+ std::vector< Real > flashes, strikes;
+ Real slide = 0.0f;
+ for( size_t index = 0; index < named.size(); index++ )
{
- enum { MONEY_LINE_HALVES = 3 };
- const Int height = moneyWindow->winGetFont()->height * MONEY_LINE_HALVES / 2;
- IRegion2D line = money;
- line.lo.y = ( money.lo.y + money.hi.y - height ) / 2;
- line.hi.y = line.lo.y + height;
- TheControlBar->placeWindowAt( moneyWindow, line );
+ const Int seat = named[ index ].player->getPlayerIndex();
+ Real flash = 0.0f, struck = 0.0f, collapse = 0.0f;
+ if( TheObserverCamera.getDefeatFrame( seat ) != 0 )
+ ObserverCamera_cardExit( GameEngine_pictureFrame(), TheObserverCamera.getDefeatFrame( seat ), TheObserverCamera.getCollapseFrame( seat ),
+ &flash, &struck, &collapse );
+ if( collapse >= 1.0f )
+ continue;
+ shown.push_back( named[ index ] );
+ flashes.push_back( flash );
+ strikes.push_back( struck );
+ if( collapse > 0.0f )
+ slide = collapse;
+ else
+ settled.push_back( named[ index ] );
}
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The power bar lying in its groove at `groove`, screen pixels, with the power window moved under it
- * so its tooltip stands on the bar. The page lays boxes out content-box whatever box-sizing says,
- * so the groove's border goes on top of its width and height: it is handed the content, and the
- * height inside its lip for the cells. Written as powerframe. */
-//-------------------------------------------------------------------------------------------------
-static void putPowerGroove( HtmlValues &values, const IRegion2D &groove, Bool shown )
-{
- putPageRect( values, "powerframe", groove, shown, ControlBarHudScale() );
- TheControlBar->placeWindowAt( controlBarWindow( "PowerWindow" ), groove );
-
- enum { FRAME_BORDER = 2, FRAME_LIP = 1 };
- const Int width = atoi( values[ "powerframe.w" ].c_str() ) - 2 * FRAME_BORDER;
- const Int height = atoi( values[ "powerframe.h" ].c_str() ) - 2 * FRAME_BORDER;
- values[ "powerframe.w" ] = std::to_string( width > 0 ? width : 0 );
- values[ "powerframe.h" ] = std::to_string( height > 0 ? height : 0 );
- values[ "powerframe.inner" ] = std::to_string( height > 2 * FRAME_LIP ? height - 2 * FRAME_LIP : 0 );
-}
-
-/** `name`.x, .y, .w and .h in the page's pixels, `scale` screen pixels to one, and `name`.shown
- * "shown" or "hidden". */
-static void putPageRect( HtmlValues &values, const std::string &name, const IRegion2D &rect, Bool shown, Real scale )
-{
- // every edge is rounded once, on its own, so two boxes that share an edge on screen share it on
- // the page too: rounding a width and a height separately left the stacked blocks a pixel or two
- // apart
- const Int left = REAL_TO_INT_FLOOR( rect.lo.x / scale + 0.5f );
- const Int top = REAL_TO_INT_FLOOR( rect.lo.y / scale + 0.5f );
- const Int right = REAL_TO_INT_FLOOR( rect.hi.x / scale + 0.5f );
- const Int bottom = REAL_TO_INT_FLOOR( rect.hi.y / scale + 0.5f );
- HtmlValueKey key( values, name );
- key.at( ".x" ) = std::to_string( left );
- key.at( ".y" ) = std::to_string( top );
- key.at( ".w" ) = std::to_string( shown ? right - left : 0 );
- key.at( ".h" ) = std::to_string( shown ? bottom - top : 0 );
- key.at( ".shown" ) = shown ? "shown" : "hidden";
-}
-
-static void drawCommandGridFront( GameWindow *window, WinInstanceData *instData )
-{
- TheInGameUI->drawCellGridFront( InGameUI::CELL_GRID_COMMAND );
-}
+ // the match is over: nobody is left to score
+ if( shown.empty() )
+ return;
+ // cards close one at a time, so the bar is between two layouts at most: with that card and without it
+ const Bool sliding = slide > 0.0f && !settled.empty();
-static void drawQueueGridFront( GameWindow *window, WinInstanceData *instData )
-{
- TheInGameUI->drawCellGridFront( InGameUI::CELL_GRID_QUEUE );
-}
+ const Int pad = broadcastPixels( BROADCAST_PAD );
+ const Int rule = broadcastPixels( BROADCAST_RULE );
+ const Int tug = broadcastPixels( BROADCAST_TUG );
+ UnicodeString clockText;
+ clockText.translate( AsciiString( spectatorClock( frame ).c_str() ) );
+ DisplayString *clock = broadcastText( "clock", clockText, BROADCAST_NUMBERS, broadcastPoints( BROADCAST_CLOCK_POINTS ), TRUE );
+ Int clockWidth = 0, clockHeight = 0;
+ clock->getSize( &clockWidth, &clockHeight );
+ const Int clockBox = clockWidth + 2 * broadcastPixels( BROADCAST_GAP );
+ const Int clockBoxHeight = clockHeight + rule;
-static void drawPowersGridFront( GameWindow *window, WinInstanceData *instData )
-{
- TheInGameUI->drawCellGridFront( InGameUI::CELL_GRID_POWERS );
-}
+ BroadcastLayout from, to;
+ layOutBroadcast( shown, named, "", clockBox, clockBoxHeight, from );
+ if( sliding )
+ layOutBroadcast( settled, named, "to", clockBox, clockBoxHeight, to );
-/** A window of no size and no input at the head of `parent`'s children, which draw from the tail,
- * so `draw` runs after every one of them; made the first time and kept at the head. */
-static void putFrontWindow( GameWindow *parent, GameWinDrawFunc draw )
-{
- GameWindow *front = parent->winGetChild();
- while( front && front->winGetDrawFunc() != draw )
- front = front->winGetNext();
- if( front == NULL )
+ // the frame round the bar, the corner radar's own sizes
+ const Int screenRows = TheDisplay->getHeight();
+ const Int lineGold = ObserverCamera_paneLineWidth( screenRows );
+ const Int frameGold = max( lineGold / 2, 1 );
+ const Int frameEdge = frameGold + max( REAL_TO_INT( screenRows / BROADCAST_FRAME_EDGE_ROWS_A_PIXEL ), 1 );
+ const Int frameHalo = max( ( ObserverCamera_paneBandWidth( screenRows ) - lineGold ) / 2 - OBSERVER_PANE_LINE_EDGE, 0 ) / 2;
+ const Int frameReach = frameEdge + frameHalo;
+ // while the screen is split the bar goes up off the top, frame and all, as the radar slides down
+ // off the bottom, and comes back down as the radar comes back: the panes have the screen to
+ // themselves. Everything the bar draws hangs from its layouts' rows, so lifting those lifts it
+ const Int lift = REAL_TO_INT( TheObserverCamera.getCornerRadarSlide() * ( max( from.height, to.height ) + frameReach ) );
+ auto liftLayout = [ lift ]( BroadcastLayout &l )
{
- front = TheWindowManager->winCreate( parent, WIN_STATUS_NO_INPUT, 0, 0, 0, 0, NULL );
- front->winSetDrawFunc( draw );
- }
- if( parent->winGetChild() != front )
- front->winBringToTop();
-}
-
-static const char *const NET_PAGE = "Window\\Html\\Net.html";
-
-/** The network box in the screen's top right corner, drawHudOverlay's readings on a page of their
- * own: they change several times a second, and each change lays its page out again. */
-void InGameUI::drawNetPage( void )
-{
- // ShowNetBox: the player switched the corner box off
- if( !TheGlobalData->m_showNetBox )
- return;
-
- if( !m_netPageLoaded )
+ for( size_t index = 0; index < l.cardTops.size(); index++ )
+ l.cardTops[ index ] -= lift;
+ for( size_t block = 0; block < l.blockHeaderTops.size(); block++ )
+ {
+ l.blockHeaderTops[ block ] -= lift;
+ l.blockCardsTops[ block ] -= lift;
+ }
+ l.tugTop -= lift;
+ l.height -= lift;
+ };
+ liftLayout( from );
+ if( sliding )
+ liftLayout( to );
+ // a card is drawn with the first layout's strings and measures over the first half of a slide and the
+ // second's after: the same strings unless the size or the rows change
+ const BroadcastLayout &face = sliding && slide >= 0.5f ? to : from;
+ auto mix = [ & ]( Int first, Int second ) { return sliding ? first + REAL_TO_INT( ( second - first ) * slide ) : first; };
+ auto seatIn = []( const BroadcastLayout &l, const Player *player ) -> Int
{
- m_netPageLoaded = TRUE;
- readHtmlPage( NET_PAGE, m_netPage );
- }
- if( m_netPage.empty() )
- return;
- if( m_netOverlay == NULL )
+ for( size_t index = 0; index < l.players.size(); index++ )
+ if( l.players[ index ].player == player )
+ return (Int)index;
+ return -1;
+ };
+ auto teamIn = []( const BroadcastLayout &l, Int team ) -> Int
+ {
+ for( size_t block = 0; block < l.blockFirst.size(); block++ )
+ if( l.players[ l.blockFirst[ block ] ].team == team )
+ return (Int)block;
+ return -1;
+ };
+ // a card in both layouts moves from its first place to its second; the closing one narrows on its own
+ // middle and the others slide over it
+ auto cardPlace = [ & ]( Int index ) -> BroadcastPlace
+ {
+ BroadcastPlace place = { from.cardLefts[ index ], from.cardTops[ index ], from.cardWidth, from.cardHeight };
+ if( !sliding )
+ return place;
+ const Int other = seatIn( to, from.players[ index ].player );
+ if( other < 0 )
+ {
+ const Int open = REAL_TO_INT( from.cardWidth * ( 1.0f - slide ) );
+ place.left += ( from.cardWidth - open ) / 2;
+ place.width = open;
+ return place;
+ }
+ place.left = mix( from.cardLefts[ index ], to.cardLefts[ other ] );
+ place.top = mix( from.cardTops[ index ], to.cardTops[ other ] );
+ place.width = mix( from.cardWidth, to.cardWidth );
+ place.height = mix( from.cardHeight, to.cardHeight );
+ return place;
+ };
+ const Int left = mix( from.left, to.left );
+ const Int barWidth = mix( from.barWidth, to.barWidth );
+ const Int height = mix( from.height, to.height );
+ const Int rowLeft = mix( from.rowLeft, to.rowLeft );
+ const Int rowWidth = mix( from.rowWidth, to.rowWidth );
+ const Int tugTop = mix( from.tugTop, to.tugTop );
+ const Int clockLeft = left + ( barWidth - clockBox ) / 2;
+
+ // a special power's flag, its button's icon on the panel, drops from the bar's foot under its
+ // player's card; a superweapon's is edged in gold. Drawn before the bar, which covers it until it is
+ // clear. In two rows the top row's flags hang a quarter card left and the bottom's a quarter right,
+ // so a card and the one under it do not hang theirs on top of each other
+ std::vector< IRegion2D > flagsDrawn;
+ for( size_t index = 0; index < from.players.size(); index++ )
{
- m_netOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_netOverlay->setHudPage( TRUE );
+ Real drop = 0.0f;
+ const DirectorShowing *flag = TheObserverCamera.getPowerFlag( from.players[ index ].player->getPlayerIndex(), &drop );
+ if( flag == NULL || drop <= 0.0f )
+ continue;
+ const Image *icon = flag->upgrade != NULL ? flag->upgrade->getButtonImage() : superweaponCameo( flag->power );
+ if( icon == NULL && flag->sourceThing != NULL )
+ icon = flag->sourceThing->getButtonImage();
+ if( icon == NULL || icon->getImageHeight() <= 0 )
+ continue;
+ const BroadcastPlace place = cardPlace( (Int)index );
+ const Int faceIndex = &face == &from ? (Int)index : seatIn( to, from.players[ index ].player );
+ const Int quarter = face.lines > 1 ? ( face.cardLines[ faceIndex ] == 0 ? -place.width / 4 : place.width / 4 ) : 0;
+ const Int iconHeight = broadcastPixels( BROADCAST_FLAG_ICON );
+ const Int iconWidth = iconHeight * icon->getImageWidth() / icon->getImageHeight();
+ const Int inset = broadcastPixels( BROADCAST_FLAG_INSET );
+ const Int edge = flag->superweapon ? max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 ) : 0;
+ const Int accent = from.strip;
+ const Int flagWidth = iconWidth + 2 * inset + 2 * edge;
+ const Int flagHeight = iconHeight + 2 * inset + accent;
+ const Int flagLeft = place.left + place.width / 2 + quarter - flagWidth / 2;
+ // a flag goes up with the bar, its own height further so it leaves the screen too
+ const Int flagTop = height + frameReach - flagHeight + REAL_TO_INT( flagHeight * ( drop - TheObserverCamera.getCornerRadarSlide() ) );
+ if( edge > 0 )
+ TheDisplay->drawFillRect( flagLeft, flagTop, flagWidth, flagHeight, BROADCAST_GOLD );
+ TheDisplay->drawFillRect( flagLeft + edge, flagTop, flagWidth - 2 * edge, flagHeight - accent, BROADCAST_PANEL );
+ TheDisplay->drawImage( icon, flagLeft + edge + inset, flagTop + inset, flagLeft + edge + inset + iconWidth, flagTop + inset + iconHeight );
+ if( edge == 0 )
+ drawBroadcastSwatch( flagLeft, flagTop + flagHeight - accent, flagWidth, accent, from.rows[ index ].color );
+ IRegion2D drawn;
+ drawn.lo.x = flagLeft - max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 );
+ drawn.lo.y = height;
+ drawn.hi.x = flagLeft + flagWidth + max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 );
+ drawn.hi.y = flagTop + flagHeight + max( broadcastPixels( BROADCAST_GOLD_EDGE ), 2 );
+ flagsDrawn.push_back( drawn );
}
- // into the readings themselves rather than a copy of them made every frame; nothing else reads
- // them, and the next sample clears them
- m_hudValues[ "side" ] = spectatorSide();
- m_netOverlay->setPage( m_netPage, m_hudValues, HtmlLists(), lookupGameText );
- m_netOverlay->draw();
-}
+ // the frame under the bar, squares one inside the other from the top edge down: the halo's two
+ // strengths of blue, the ground's edge, then the gold up to the bar, so the bar sits on the gold.
+ // Its top runs off the screen, which leaves the sides and the foot. Over the flags, which drop
+ // from under it
+ auto frameRect = [ & ]( Int outside, Color color )
+ {
+ if( height + outside > 0 )
+ TheDisplay->drawFillRect( left - outside, 0, barWidth + 2 * outside, height + outside, color );
+ };
+ frameRect( frameReach, GameMakeColor( BROADCAST_BAND_RGB[ 0 ], BROADCAST_BAND_RGB[ 1 ], BROADCAST_BAND_RGB[ 2 ],
+ (UnsignedByte)REAL_TO_INT( 255.0f * BROADCAST_BAND_OUTER_ALPHA ) ) );
+ frameRect( frameEdge + frameHalo / 2, GameMakeColor( BROADCAST_BAND_RGB[ 0 ], BROADCAST_BAND_RGB[ 1 ], BROADCAST_BAND_RGB[ 2 ],
+ (UnsignedByte)REAL_TO_INT( 255.0f * BROADCAST_BAND_INNER_ALPHA ) ) );
+ frameRect( frameEdge, BROADCAST_GROUND );
+ frameRect( frameGold, BROADCAST_GOLD );
-static const char *const READOUT_PAGE = "Window\\Html\\Readout.html";
+ if( height > 0 )
+ TheDisplay->drawFillRect( left, 0, barWidth, height, BROADCAST_GROUND );
+ TheDisplay->drawFillRect( clockLeft, -lift, clockBox, clockBoxHeight, BROADCAST_PANEL );
+ TheDisplay->drawFillRect( clockLeft, clockBoxHeight - rule - lift, clockBox, rule, BROADCAST_GOLD );
+ clock->draw( clockLeft + ( clockBox - clockWidth ) / 2, -lift, BROADCAST_INK, BROADCAST_GROUND );
-/** The match clock and a lone unit's health over the bar's page, with that page's `values`: the clock
- * turns every second and the health with every hit, and each change lays its page out again. */
-void InGameUI::drawReadoutPage( const HtmlValues &values )
-{
- if( !m_readoutPageLoaded )
+ // block by block: a "vs" before every block but the first of its row, and a team's name and its
+ // armies' total over its cards. A block in both layouts moves with its cards; one in the first alone,
+ // the closing player's own, or a team header gone with him, fades out where it stood
+ auto drawMoving = [ & ]( DisplayString *text, Color color, Bool first, Int firstX, Int firstY, Bool second, Int secondX, Int secondY )
{
- m_readoutPageLoaded = TRUE;
- readHtmlPage( READOUT_PAGE, m_readoutPage );
- }
- if( m_readoutPage.empty() )
- return;
- if( m_readoutOverlay == NULL )
+ if( first && second )
+ text->draw( mix( firstX, secondX ), mix( firstY, secondY ), color, BROADCAST_GROUND );
+ else if( first )
+ text->draw( firstX, firstY, broadcastFade( color, 1.0f - slide ), broadcastFade( BROADCAST_GROUND, 1.0f - slide ) );
+ else if( second )
+ text->draw( secondX, secondY, broadcastFade( color, slide ), broadcastFade( BROADCAST_GROUND, slide ) );
+ };
+ auto versusAt = []( const BroadcastLayout &l, Int block, Int *x, Int *y ) -> Bool
+ {
+ if( block <= 0 || l.lineOf[ block ] != l.lineOf[ block - 1 ] )
+ return FALSE;
+ Int width = 0, tall = 0;
+ l.versusText->getSize( &width, &tall );
+ *x = l.blockLefts[ block ] - ( l.versusWidth + width ) / 2;
+ *y = l.blockCardsTops[ block ] + ( l.cardHeight - tall ) / 2;
+ return TRUE;
+ };
+ for( size_t block = 0; block < from.blockFirst.size(); block++ )
{
- m_readoutOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_readoutOverlay->setHud( TRUE );
- }
-
- m_readoutOverlay->setPage( m_readoutPage, values, HtmlLists(), lookupGameText );
- m_readoutOverlay->draw();
-}
+ const Int other = sliding ? teamIn( to, from.players[ from.blockFirst[ block ] ].team ) : -1;
+ Int firstX = 0, firstY = 0, secondX = 0, secondY = 0;
+ const Bool versusFirst = versusAt( from, (Int)block, &firstX, &firstY );
+ const Bool versusSecond = other >= 0 && versusAt( to, other, &secondX, &secondY );
+ drawMoving( versusFirst && versusSecond ? face.versusText : versusFirst ? from.versusText : to.versusText, BROADCAST_MUTED,
+ versusFirst, firstX, firstY, versusSecond, secondX, secondY );
-void InGameUI::drawCellGridFront( Int grid )
-{
- HtmlOverlay *&overlay = m_cellFrontOverlay[ grid ];
- if( overlay == NULL )
- {
- overlay = new HtmlOverlay( m_superweaponNormalFont );
- overlay->setHud( TRUE );
+ const Bool headerFirst = from.teamNames[ block ] != NULL;
+ const Bool headerSecond = other >= 0 && to.teamNames[ other ] != NULL;
+ if( !headerFirst && !headerSecond )
+ continue;
+ const BroadcastLayout &look = headerFirst && headerSecond ? face : headerFirst ? from : to;
+ const Int lookBlock = &look == &from ? (Int)block : other;
+ Int totalWidth = 0, totalHeight = 0;
+ look.teamTotals[ lookBlock ]->getSize( &totalWidth, &totalHeight );
+ const Int secondLeft = other >= 0 ? to.blockLefts[ other ] : 0;
+ const Int secondRight = other >= 0 ? to.blockLefts[ other ] + to.blockWidths[ other ] : 0;
+ const Int secondTop = other >= 0 ? to.blockHeaderTops[ other ] : 0;
+ drawMoving( look.teamNames[ lookBlock ], BROADCAST_GOLD, headerFirst, from.blockLefts[ block ], from.blockHeaderTops[ block ],
+ headerSecond, secondLeft, secondTop );
+ drawMoving( look.teamTotals[ lookBlock ], BROADCAST_INK, headerFirst, from.blockLefts[ block ] + from.blockWidths[ block ] - totalWidth,
+ from.blockHeaderTops[ block ], headerSecond, secondRight - totalWidth, secondTop );
}
- //
- // The page's attack, hold position and move keys wear their letter the way the command buttons
- // beside them do: the buttons' font and size, on the readouts' plate. The page wrote it itself
- // once, in a box with no width of its own, which this layout engine gives no background: the
- // letter stood bare on the picture in a lighter face than its neighbours'.
- //
- if( grid == CELL_GRID_COMMAND )
+ // a card a player, the house colour along its top, the name, the general or the difficulty, then one
+ // money line: the cash at the left, the army's label and value at the right. A defeated player's card
+ // flashes red, takes a red veil and has a line drawn through his name; closing, its words go first
+ auto drawCard = [ & ]( const BroadcastLayout &l, Int index, const BroadcastPlace &place, Real faded, Real words, Real flash, Real struck )
{
- enum { ORDER_KEY_POINTS = 7 }; // W3DPushButton.cpp's BADGE_DESIGN_POINTS, the buttons' corner markings
- const AsciiString fontName = numberedWindow( "ButtonCommand", 1 )->winGetFont()->nameString;
- const Int points = max( (Int)HUD_READOUT_POINTS_LEAST, (Int)REAL_TO_INT_FLOOR( ORDER_KEY_POINTS * ControlBarHudScale() ) );
- for( Int key = 0; key < ORDER_KEYS; key++ )
+ const BroadcastRow &row = l.rows[ index ];
+ const Int textLeft = place.left + l.cardPad;
+ const Int numberEnd = place.left + place.width - l.cardPad;
+ TheDisplay->drawFillRect( place.left, place.top, place.width, place.height, broadcastFade( BROADCAST_PANEL, faded ) );
+ if( struck > 0.0f )
+ TheDisplay->drawFillRect( place.left, place.top, place.width, place.height, broadcastFade( BROADCAST_DEFEAT, 0.2f * struck * faded ) );
+ drawBroadcastSwatch( place.left, place.top, place.width, l.strip, broadcastFade( row.color, faded ) );
+ if( words > 0.0f )
+ {
+ const Color ground = broadcastFade( BROADCAST_GROUND, words );
+ Int top = place.top + l.strip + l.halfPad;
+ Int numberWidth = 0, numberTall = 0;
+ row.name->getSize( &numberWidth, &numberTall );
+ const Int nameTop = l.compact ? top + l.textHeight - numberTall : top;
+ const Int nameTall = numberTall;
+ row.name->draw( textLeft, nameTop, broadcastFade( ObserverCamera_readableColor( row.color ), words * ( 1.0f - 0.4f * struck ) ), ground );
+ if( !l.compact )
+ {
+ // the general or difficulty at the right of the name's line, on the name's foot
+ const Int lineHeight = max( l.nameHeight, l.sideHeight );
+ Int sideWidth = 0, sideTall = 0;
+ row.side->getSize( &sideWidth, &sideTall );
+ row.side->draw( numberEnd - sideWidth, top + lineHeight - sideTall, broadcastFade( BROADCAST_MUTED, words ), ground );
+ top += lineHeight;
+ }
+ const Int moneyBottom = l.compact ? top + l.textHeight : top + l.numberHeight;
+ row.army->getSize( &numberWidth, &numberTall );
+ row.army->draw( numberEnd - numberWidth, moneyBottom - numberTall, broadcastFade( BROADCAST_INK, words ), ground );
+ if( !l.compact )
+ {
+ Int armyLabelWidth = 0, armyLabelTall = 0;
+ l.armyHead->getSize( &armyLabelWidth, &armyLabelTall );
+ l.armyHead->draw( numberEnd - numberWidth - l.halfPad - armyLabelWidth, moneyBottom - l.labelHeight, broadcastFade( BROADCAST_MUTED, words ), ground );
+ row.cash->getSize( &numberWidth, &numberTall );
+ row.cash->draw( textLeft, moneyBottom - numberTall, broadcastFade( BROADCAST_INK, words ), ground );
+ }
+ // the line runs left to right across the card through the name, edged in the ground so it reads
+ // over a red player's name as well
+ if( struck > 0.0f )
+ {
+ const Int thick = max( broadcastPixels( BROADCAST_STRIKE ), 2 );
+ const Int lineTop = nameTop + ( nameTall - thick ) / 2;
+ const Int length = REAL_TO_INT( ( place.width - 2 * l.cardPad ) * struck );
+ TheDisplay->drawFillRect( textLeft, lineTop - 1, length, thick + 2, ground );
+ TheDisplay->drawFillRect( textLeft, lineTop, length, thick, broadcastFade( BROADCAST_DEFEAT, words ) );
+ }
+ }
+ if( flash > 0.0f )
+ TheDisplay->drawFillRect( place.left, place.top, place.width, place.height, broadcastFade( BROADCAST_DEFEAT, 0.85f * flash * faded ) );
+ };
+ // the closing card first, so the others slide over it
+ for( Int pass = 0; pass < 2; pass++ )
+ for( size_t index = 0; index < from.players.size(); index++ )
{
- if( m_orderKeyPlace[ key ] < 0 )
+ const Int other = sliding ? seatIn( to, from.players[ index ].player ) : (Int)index;
+ const Bool closing = sliding && other < 0;
+ if( closing != ( pass == 0 ) )
continue;
-
- // a letter never changes by itself, so a new HUD Size is what letters it again
- if( points != m_orderKeyPoints && m_orderKeyString[ key ] != NULL )
- m_orderKeyString[ key ]->setText( UnicodeString::TheEmptyString );
-
- UnicodeString letter;
- letter.translate( AsciiString( commandSlotKey( m_orderKeyPlace[ key ] ).c_str() ) );
- HudReadout_draw( fitReadoutString( m_orderKeyString[ key ], letter, fontName, points, m_orderKeyCell[ key ] ),
- m_orderKeyCell[ key ], HUD_READOUT_TOP_LEFT, GameMakeColor( 255, 255, 255, 255 ) );
+ const BroadcastLayout &look = closing ? from : face;
+ drawCard( look, &look == &from ? (Int)index : other, cardPlace( (Int)index ), closing ? 1.0f - slide : 1.0f,
+ closing ? max( 1.0f - slide * 4.0f, 0.0f ) : 1.0f, flashes[ index ], strikes[ index ] );
}
- m_orderKeyPoints = points;
- }
-
- HtmlValues values;
- HtmlLists lists;
- values[ "layer" ] = "front";
- values[ "side" ] = spectatorSide();
- // lent to the page and taken back, rather than copied every frame
- std::vector< HtmlValues > &frontCells = lists[ "frontcells" ];
- frontCells.swap( m_cellFrontCells[ grid ] );
- overlay->setPage( m_controlBarPage, values, lists, lookupGameText );
- frontCells.swap( m_cellFrontCells[ grid ] );
- overlay->draw();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The command bar's frame, drawn from Window/Html/ControlBar.html in the place of its three plates.
- * The buttons, the radar and the portrait are still the bar's own windows and paint over it; the
- * page only draws what sits round and under them, so it is told where they are: panel0 to panel2
- * are the plates' rectangles, sliding and minimising with the bar, and every name in
- * CONTROL_BAR_WINDOWS is its window's rectangle. All of them in the page's 800x600 pixels. */
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::drawControlBarPage( const IRegion2D *panels, const Bool *shown, Int panelCount )
-{
- m_controlBarPageShown = FALSE;
- // nor while the map loads: the load screen is painted by the window repaint this page rides on
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() || TheGlobalData->m_loadScreenRender )
- {
- TheControlBar->setPageSolids( NULL );
- return FALSE;
- }
- if( !m_controlBarPageLoaded )
- {
- m_controlBarPageLoaded = TRUE;
- readHtmlPage( CONTROL_BAR_PAGE, m_controlBarPage );
- }
- if( m_controlBarPage.empty() )
- {
- TheControlBar->setPageSolids( NULL );
- return FALSE;
- }
- if( m_controlBarOverlay == NULL )
- m_controlBarOverlay = new HtmlOverlay( m_superweaponNormalFont );
-
- // kept from the last frame: every key below is written on every frame, so a value is only ever
- // written over, and a key written on some frames and not others would keep its old value here
- HtmlValues &values = m_controlBarValues;
- values[ "layer" ] = "back";
- values[ "side" ] = spectatorSide();
- // a watcher has no promotions of his own to spend, whatever the bar's flash says
- const Bool watching = localPlayerWatching();
- values[ "promotion" ] = !watching && TheControlBar->isGeneralStarFlashing() ? "ready" : "";
- values[ "watching" ] = watching ? "watching" : "";
- // the page's clicks are whole, down and up at once, so a key pressed in under the pointer goes by
- // the mouse's own left button. Only over the page: a changed value lays the whole page out again,
- // fifteen milliseconds, and every click on the battlefield did that twice
- values[ "held" ] = m_controlBarPageHovered && TheMouse->getMouseStatus()->leftState != MBS_Up ? "held" : "";
- values[ "blink" ] = !values[ "promotion" ].empty() && TheGameLogic->getFrame() % LOGICFRAMES_PER_SECOND > LOGICFRAMES_PER_SECOND / 2 ? "lit" : "";
- // The console: one plate of steel standing on the middle of the screen's bottom edge, its wells side
- // by side under one top line - the radar with the experience bar beside it, the selection with the
- // radar's keys and the smoke signals in its header, and the command grid with the power bar in
- // its header - and the general's powers growing out of its right hand end,
- // the owner's centred drawing of 2026-10-01 at ControlBarHudScale(), which is what the page is
- // laid out at too. Every well is a fixed size and the powers' widest is kept free beside it, so
- // the console keeps its place through the match and nothing moves under the pointer; HUD Size
- // grows it from its bottom centre
- const Real scale = ControlBarHudScale();
- m_controlBarOverlay->setHud( TRUE );
- for( Int panel = 0; panel < panelCount; panel++ )
- putPageRect( values, "panel" + std::to_string( panel ), panels[ panel ], shown[ panel ], scale );
- const Int border = REAL_TO_INT( PANEL_BORDER * scale );
- const Int ring = CELL_GAP / 2;
- const Int foot = barBottom() - REAL_TO_INT( PANEL_FOOT * scale );
- const Bool leftShown = panelCount > 0 && shown[ 0 ];
- const Bool centreShown = panelCount > 1 && shown[ 1 ];
- HtmlLists &lists = m_controlBarLists;
-
- GameWindow *radarWindow = controlBarWindow( "LeftHUD" );
- const Bool leftFound = leftShown && !radarWindow->winIsHidden();
- // not there at all where the keys would do nothing either, a game with no allies to see the smoke
- const Bool signalsShown = leftFound && signalsAllowed();
-
- // every well is the command grid's height and a header over it, but the radar's, which reaches up
- // through the header's height to the console's top line and keeps its shape in that, the
- // experience bar's groove beside it. A watcher has no grid and no powers, and his console is the
- // rest of it
- const Int wellHeight = REAL_TO_INT( COMMAND_ROWS * ( COMMAND_CELL_HEIGHT + CELL_GAP ) * scale );
- const Int consoleTopLine = foot - wellHeight - REAL_TO_INT( ( HEADER_GAP + HEADER_HEIGHT ) * scale );
- const Int radarWidth = ( foot - consoleTopLine ) * RADAR_WIDTH / RADAR_HEIGHT;
- // a watcher who has picked nobody to follow has no general's experience to show, and the groove
- // and the room for it go
- const Player *experiencePlayer = watching ? TheControlBar->getObserverLookAtPlayer() : ThePlayerList->getLocalPlayer();
- const Int radarWellWidth = radarWidth + ( experiencePlayer ? REAL_TO_INT( ( EXPERIENCE_GAP + EXPERIENCE_WIDTH ) * scale ) : 0 );
- const Int selectionWellWidth = REAL_TO_INT( PORTRAIT_PLACES * ( CELL_WIDTH + CELL_GAP ) * scale );
- const Int gridWellWidth = REAL_TO_INT( COMMAND_COLUMNS * ( COMMAND_CELL_WIDTH + CELL_GAP ) * scale );
- const ICoord2D cell = cellSize();
- const Int cellGap = REAL_TO_INT( SKILL_CELL_GAP * scale );
- // a watcher with nothing selected has no portrait to show: the selection's well beside the radar
- // goes and the console is the radar alone, until a click on a unit brings it back. Read from the
- // selection itself, not the portrait panel's state, which stayed up for an -observer start
- const Bool selectionShown = !watching || centreShown || getSelectCount() > 0;
- Int consoleWidth = radarWellWidth;
- if( selectionShown )
- consoleWidth += border + selectionWellWidth;
- if( centreShown )
- consoleWidth += border + gridWellWidth + powersTrayWidth( scale );
-
- Int wellLeft = ( (Int)TheDisplay->getWidth() - consoleWidth ) / 2;
- const IRegion2D radarWell = nextWell( wellLeft, radarWellWidth, consoleTopLine, foot, border );
- const IRegion2D selectionWell = nextWell( wellLeft, selectionWellWidth, foot - wellHeight, foot, border );
- const IRegion2D gridWell = nextWell( wellLeft, gridWellWidth, foot - wellHeight, foot, border );
-
- IRegion2D wells;
- wells.lo.x = radarWell.lo.x;
- wells.hi.x = centreShown ? gridWell.hi.x : selectionShown ? selectionWell.hi.x : radarWell.hi.x;
- wells.lo.y = consoleTopLine;
- wells.hi.y = foot;
- const IRegion2D consoleBox = framed( wells, border );
- const Bool consoleShown = leftFound || centreShown;
- putFrame( values, "console", wells, consoleBox, consoleShown );
- m_consoleTop = consoleShown ? consoleBox.lo.y : barBottom();
- // the production queue stands on the console over the selection's well
- m_queueCorner.x = selectionWell.lo.x;
- m_queueCorner.y = m_consoleTop;
-
- std::vector< HtmlValues > &wellList = lists[ "wells" ];
- size_t wellsFilled = 0;
- putWell( wellList, wellsFilled, radarWell, leftFound, FALSE, scale );
- putWell( wellList, wellsFilled, selectionWell, consoleShown && selectionShown, TRUE, scale );
- putWell( wellList, wellsFilled, gridWell, centreShown, TRUE, scale );
- wellList.resize( wellsFilled );
-
- // the radar at the HUD's scale, layoutPanels having put it at the uniform one
- IRegion2D radar = radarWell;
- radar.hi.x = radar.lo.x + radarWidth;
- TheControlBar->placeWindowAt( radarWindow, radar );
- IRegion2D experience = radarWell;
- experience.lo.x = experience.hi.x - REAL_TO_INT( EXPERIENCE_WIDTH * scale );
- putPageRect( values, "expframe", experience, leftFound && experiencePlayer != NULL, scale );
- putExperienceBar( values, experiencePlayer, lists[ "expcells" ], lists[ "rankstars" ] );
-
- // in the selection's header, on its grid of HEADER_SLOTS from its left: the idle worker's key, the
- // skills key - the rank's stars, and the button that opens the promotion screen - and in a
- // multiplayer game the three smoke signals. A key that is not there leaves no gap: a watcher, or a
- // player beaten, has no idle worker's key and no promotions to buy. Every edge is a whole slot
- // from the header's left, each rounded once, so two tabs share theirs
- const Bool idleShown = leftFound && centreShown;
- const Bool skillsShown = leftFound && ThePlayerList->getLocalPlayer()->isPlayerActive();
- const IRegion2D header = wellHeader( selectionWell, scale );
- const Real slotWidth = (Real)selectionWellWidth / HEADER_SLOTS;
- struct Slots
- {
- static IRegion2D take( const IRegion2D &header, Real slotWidth, Int &slot, Int count )
+ // the armies' bar under the whole row, every player's share in the cards' order, so with two sides
+ // each pulls from its own end and they meet at a gold mark in the middle; more sides are parted by
+ // the ground's colour
+ const Int faceBlocks = (Int)face.blockFirst.size();
+ std::vector< Int > barArmies, barBlocks;
+ for( Int block = 0; block < faceBlocks; block++ )
+ for( Int index = face.blockFirst[ block ]; index < face.blockFirst[ block ] + face.blockSizes[ block ]; index++ )
{
- IRegion2D tab = header;
- tab.lo.x = header.lo.x + REAL_TO_INT( slot * slotWidth );
- slot += count;
- tab.hi.x = header.lo.x + REAL_TO_INT( slot * slotWidth );
- return tab;
+ barArmies.push_back( face.players[ index ].army );
+ barBlocks.push_back( block );
}
- };
- Int slot = 0;
- const IRegion2D idleTab = Slots::take( header, slotWidth, slot, idleShown ? IDLE_SLOTS : 0 );
- const IRegion2D skillsTab = Slots::take( header, slotWidth, slot, skillsShown ? SKILLS_SLOTS : 0 );
- const IRegion2D signalTabs = Slots::take( header, slotWidth, slot, signalsShown ? SIGNAL_BUTTONS : 0 );
- putPageRect( values, "idletab", idleTab, idleShown, scale );
- putPageRect( values, "skillstab", skillsTab, skillsShown, scale );
- putPageRect( values, "signals", signalTabs, signalsShown, scale );
- const UnsignedInt nowMs = Clock_Milliseconds();
-
- // the idle worker's key flashes while a worker stands idle, which is when the bar enables its
- // window: lit and dark in turn, a beat the eye catches at the edge of the screen
- enum { IDLE_FLASH_PERIOD_MS = 700 };
- const Bool idleWaiting = idleShown && BitTest( controlBarWindow( "ButtonIdleWorker" )->winGetStatus(), WIN_STATUS_ENABLED );
- values[ "idleflash" ] = idleWaiting && nowMs % IDLE_FLASH_PERIOD_MS < IDLE_FLASH_PERIOD_MS / 2 ? "flash" : "";
- if( signalsShown && !m_signalsWereShown )
- m_signalsRiseStartMs = nowMs;
- m_signalsWereShown = signalsShown;
- putSignalRise( values, nowMs - m_signalsRiseStartMs );
-
- // the command grid in its well, six by three, every place its key: the orders in the owner's places
- // (ControlBar_commandPlaces), passengers in the bottom right corner and everything else in rows by
- // what it is for. With nothing selected the well keeps the whole grid's size and is bare steel,
- // the owner's call: only the cells go
- const IRegion2D commandBox = gridBox( gridWell.lo.x, foot, COMMAND_COLUMNS, COMMAND_ROWS,
- COMMAND_CELL_WIDTH, COMMAND_CELL_HEIGHT );
- Int where[ MAX_COMMANDS_PER_SET ];
- const Bool fights = TheControlBar->getCommandPlaces( where );
- TheControlBar->labelCommandPlaces( where );
- Bool taken[ COMMAND_PLACE_COUNT ] = { FALSE };
- for( Int button = 0; button < COMMAND_BUTTONS; button++ )
- if( where[ button ] >= 0 )
- taken[ where[ button ] ] = TRUE;
- // attack, hold position and move have no button in any command set: the page's keys do what A, C
- // and V do, for anything that attack moves
- taken[ COMMAND_PLACE_ATTACK ] = taken[ COMMAND_PLACE_HOLD ] = taken[ COMMAND_PLACE_MOVE ] = fights;
- // and the stance key wherever there is room for it
- Int extraKeys[ ORDER_KEY_EXTRAS ];
- TheControlBar->getOrderKeyPlaces( extraKeys );
- for( Int key = 0; key < ORDER_KEY_EXTRAS; key++ )
- if( extraKeys[ key ] >= 0 )
- taken[ extraKeys[ key ] ] = TRUE;
-
- // The power bar lies in the command grid's header strip, as long as the strip less a margin each end
- const IRegion2D gridHeader = wellHeader( gridWell, scale );
- const Int powerMargin = REAL_TO_INT( POWER_BAR_MARGIN * scale );
- IRegion2D power;
- power.lo.x = gridHeader.lo.x + powerMargin;
- power.hi.x = gridHeader.hi.x - powerMargin;
- power.lo.y = ( gridHeader.lo.y + gridHeader.hi.y - REAL_TO_INT( POWER_BAR_HEIGHT * scale ) ) / 2;
- power.hi.y = power.lo.y + REAL_TO_INT( POWER_BAR_HEIGHT * scale );
- putPowerGroove( values, power, centreShown );
- putPowerBar( values, lists[ "powercells" ] ); // after the groove, which it divides into cells
-
- // The top page, hanging from the middle of the screen's top edge: the match clock in a plate of its
- // own, and the money in another hung a little under it, each as wide as what it holds, so the
- // money's grows from its middle when the figure does. A watcher's are on the spectator page. The
- // money's well is as wide as the figure and a margin each side, following it through
- // InGameUI_moneyPlateWidth on the client's clock. A static text wraps at its window's width less
- // ten pixels, which the margin only covered from a scale of 1.0 up: at 1280x720 "$ 48500 +0/s"
- // broke onto two lines and spilled out of the plate. The window is one line, which the static
- // text draws unwrapped, so the figure is never cut and its own string measures it. It stays up
- // while the bar is put away: it is the player's, not the bar's
- const Bool topShown = !watching;
- const Int topBorder = REAL_TO_INT( TOP_BORDER * scale );
- GameWindow *moneyWindow = controlBarWindow( "MoneyDisplay" );
- DisplayString *moneyText = ( (TextData *)moneyWindow->winGetUserData() )->text;
- moneyWindow->winSetStatus( WIN_STATUS_ONE_LINE );
- moneyText->setWordWrap( 0 );
- const Int moneyNeeded = moneyText->getWidth() + 2 * REAL_TO_INT( MONEY_TEXT_MARGIN * scale );
- const Int clockWidth = REAL_TO_INT( CLOCK_WIDTH * scale );
- const Int moneyWidth = InGameUI_moneyPlateWidth( m_moneyPlate, moneyNeeded, nowMs );
- IRegion2D clock;
- clock.lo.x = ( (Int)TheDisplay->getWidth() - clockWidth ) / 2;
- clock.hi.x = clock.lo.x + clockWidth;
- clock.lo.y = topBorder;
- clock.hi.y = clock.lo.y + REAL_TO_INT( TOP_WELL_HEIGHT * scale );
- putPageRect( values, "clock", clock, topShown, scale );
- values[ "clock" ] = spectatorClock( TheGameLogic->getFrame() );
- IRegion2D clockBox = clock;
- clockBox.lo.x -= topBorder;
- clockBox.lo.y = 0;
- clockBox.hi.x += topBorder;
- clockBox.hi.y += topBorder;
- putFrame( values, "clockbar", clock, clockBox, topShown );
-
- const Bool moneyShown = topShown && !moneyWindow->winIsHidden();
- IRegion2D money;
- money.lo.x = ( (Int)TheDisplay->getWidth() - moneyWidth ) / 2;
- money.hi.x = money.lo.x + moneyWidth;
- money.lo.y = clockBox.hi.y + REAL_TO_INT( TOP_BOX_GAP * scale ) + topBorder;
- money.hi.y = money.lo.y + REAL_TO_INT( MONEY_WELL_HEIGHT * scale );
- putMoney( values, money, moneyShown );
- IRegion2D moneyBox = money;
- moneyBox.lo.x -= topBorder;
- moneyBox.lo.y -= topBorder;
- moneyBox.hi.x += topBorder;
- moneyBox.hi.y += topBorder;
- putFrame( values, "moneybar", money, moneyBox, moneyShown );
- m_topBarBottom = moneyShown ? moneyBox.hi.y : topShown ? clockBox.hi.y : 0;
-
- // the lobby's peace time in a third plate under the money, while it runs. Last, because it is
- // the one that goes: the clock and the money stay where they are when the truce ends, and what
- // hangs under the top page moves up by the plate and nothing else. Its figure is Readout.html's,
- // which is laid out again every second for the clock anyway; the last ten seconds keep the plate
- // with the word alone, and drawPeaceCountdown counts them out from under it
- const Bool peaceShown = topShown && TheGameLogic->isPeaceTime();
- IRegion2D peace;
- peace.lo.x = ( (Int)TheDisplay->getWidth() - REAL_TO_INT( PEACE_WELL_WIDTH * scale ) ) / 2;
- peace.hi.x = peace.lo.x + REAL_TO_INT( PEACE_WELL_WIDTH * scale );
- peace.lo.y = m_topBarBottom + REAL_TO_INT( TOP_BOX_GAP * scale ) + topBorder;
- peace.hi.y = peace.lo.y + REAL_TO_INT( MONEY_WELL_HEIGHT * scale );
- putPageRect( values, "peace", peace, peaceShown, scale );
- IRegion2D peaceBox = peace;
- peaceBox.lo.x -= topBorder;
- peaceBox.lo.y -= topBorder;
- peaceBox.hi.x += topBorder;
- peaceBox.hi.y += topBorder;
- putFrame( values, "peacebar", peace, peaceBox, peaceShown );
- m_peacePlateBottom = peaceShown ? peaceBox.hi.y : 0;
- if( peaceShown )
- {
- m_topBarBottom = peaceBox.hi.y;
- const UnsignedInt left = TheGameLogic->getPeaceTimeEndFrame() - TheGameLogic->getFrame();
- const UnsignedInt secs = ControlBar_secondsFromFrames( (Real)left );
- UnicodeString time;
- if( left > PEACE_COUNTDOWN_SECONDS * LOGICFRAMES_PER_SECOND )
- time.format( TheGameText->fetch( "GUI:PeaceTimeHud" ), secs / 60, secs % 60 );
- values[ "peace.label" ] = WideCharStringToMultiByte( TheGameText->fetch( "GUI:PeaceTimeHudLabel" ).str() );
- values[ "peace.time" ] = WideCharStringToMultiByte( time.str() );
- }
- // the event feed hangs in the top left corner under the menu key, and under the top page's foot
- // too, which on a 4:3 screen reaches over the feed's lines
- m_feedTop = max( (Int)REAL_TO_INT( MENU_FOOT * scale ), m_topBarBottom );
-
- // the money's window stands outside the bar's frame, where a window is never pointed at, and the
- // power's has nothing to draw, so the page puts their cards up while the pointer is over their wells
- const ICoord2D &pointer = TheMouse->getMouseStatus()->pos;
- struct Over { static Bool is( const ICoord2D &point, const IRegion2D &rect )
- { return point.x >= rect.lo.x && point.x < rect.hi.x && point.y >= rect.lo.y && point.y < rect.hi.y; } };
- if( topShown && Over::is( pointer, money ) )
- TheControlBar->showBuildTooltipLayout( moneyWindow );
- else if( centreShown && Over::is( pointer, power ) )
- TheControlBar->showBuildTooltipLayout( controlBarWindow( "PowerWindow" ) );
-
- // each command button to its place. A click only reaches a window inside every one of its parents,
- // so the buttons' two cover the whole frame; the page's solids still decide what is battlefield
- const IRegion2D frameRect = windowScreenRect( TheControlBar->getMasterParent() );
- TheControlBar->placeWindowAt( controlBarWindow( "CenterBackground" ), frameRect );
- TheControlBar->placeWindowAt( controlBarWindow( "CommandWindow" ), frameRect );
-
- // a cell only for a place a command stands in; an empty one is the panel's steel. A building
- // going up and one counting down to a unit hide the command group, and their own button takes
- // its place before the cells are drawn
- IRegion2D place[ COMMAND_PLACE_COUNT ];
- for( Int each = 0; each < COMMAND_PLACE_COUNT; each++ )
- place[ each ] = gridCell( commandBox, each % COMMAND_COLUMNS, each / COMMAND_COLUMNS,
- COMMAND_CELL_WIDTH, COMMAND_CELL_HEIGHT );
- if( centreShown )
- TheControlBar->placeContextOnGrid( frameRect, place, taken );
- std::vector< HtmlValues > &commandCells = lists[ "commandcells" ];
- size_t commandFilled = 0;
- for( Int each = 0; each < COMMAND_PLACE_COUNT; each++ )
- {
- if( !centreShown || !taken[ each ] )
- continue;
- putCell( listEntry( commandCells, commandFilled++ ), place[ each ], ring, scale );
- }
- commandCells.resize( commandFilled );
- for( Int button = 0; button < COMMAND_BUTTONS; button++ )
- if( where[ button ] >= 0 )
- TheControlBar->placeWindowAt( numberedWindow( "ButtonCommand", button + 1 ), place[ where[ button ] ] );
- // the page's own keys; their letters are drawCellGridFront's, on the command buttons' own plate
- static const char *const ORDER_KEY_NAMES[ ORDER_KEYS ] = { "attackkey", "holdkey", "movekey", "stancekey" };
- const Int orderKeyPlaces[ ORDER_KEYS ] = { fights ? COMMAND_PLACE_ATTACK : -1, fights ? COMMAND_PLACE_HOLD : -1,
- fights ? COMMAND_PLACE_MOVE : -1, extraKeys[ ORDER_KEY_STANCE ] };
- for( Int key = 0; key < ORDER_KEYS; key++ )
- {
- m_orderKeyPlace[ key ] = centreShown ? orderKeyPlaces[ key ] : -1;
- m_orderKeyCell[ key ] = place[ max( m_orderKeyPlace[ key ], 0 ) ];
- putPageRect( values, ORDER_KEY_NAMES[ key ], m_orderKeyCell[ key ], m_orderKeyPlace[ key ] >= 0, scale );
- }
- values[ "stance" ] = isSelectionAggressive() ? "aggressive" : "defensive";
-
- // the selection's well left of the grid: a lone unit's portrait and upgrades, or a group's types,
- // the owner's rule. A watcher has no command panel and keeps the portrait of what he clicked
- GameWindow *portraitWindow = controlBarWindow( "CameoWindow" );
- const Bool portraitShown = ( centreShown || ( panelCount > 2 && shown[ 2 ] ) ) &&
- !portraitWindow->winIsHidden() && !portraitWindow->winGetParent()->winIsHidden();
- std::vector< GameWindow * > upgrades;
- for( Int upgrade = 1; upgrade <= UPGRADE_CAMEOS; upgrade++ )
- {
- GameWindow *window = controlBarWindow( "UnitUpgrade" + std::to_string( upgrade ) );
- if( !window->winIsHidden() )
- upgrades.push_back( window );
- }
- std::vector< GameWindow * > tiles;
- const std::vector< GameWindow * > &allTiles = TheControlBar->getMultiSelectTiles();
- for( size_t tile = 0; tile < allTiles.size(); tile++ )
- if( allTiles[ tile ] && !allTiles[ tile ]->winIsHidden() )
- tiles.push_back( allTiles[ tile ] );
- // a group's types fill the well in rows of PORTRAIT_PLACES, three of them; more than that take
- // cells a half, then a third the size, twice and three times as many rows and columns. A
- // multi-selection shows each type once, its own tile with its count, the focused one lit: the
- // portrait of the focused type would be that type again, so the owner had it taken off and its
- // window is shrunk to nothing
- Int fold = 1;
- while( (Int)tiles.size() > fold * fold * PORTRAIT_PLACES * SELECTION_ROWS )
- fold++;
- const Bool multi = !tiles.empty();
-
- // the cells stand in the middle of the well's height
- TheControlBar->placeWindowAt( controlBarWindow( "RightHUD" ), selectionWell );
- TheControlBar->placeWindowAt( controlBarWindow( "WinUnitSelected" ), selectionWell );
- IRegion2D placesBox = selectionWell;
- placesBox.lo.y += ( wellHeight - REAL_TO_INT( SELECTION_ROWS * ( CELL_HEIGHT + CELL_GAP ) * scale ) ) / 2;
- // a lone unit's portrait two cells high in the top left corner, its name, rank and health beside
- // it, and its upgrades on the row under it
- IRegion2D portraitCell = gridCell( placesBox, 0, 0, PORTRAIT_WIDTH * PORTRAIT_SCALE, CELL_HEIGHT * PORTRAIT_SCALE + CELL_GAP );
- if( multi )
- portraitCell.hi.x = portraitCell.lo.x;
- TheControlBar->placeWindowAt( portraitWindow, portraitCell );
- putSelectedUnit( values, lists, portraitCell, selectionWell, portraitShown && !multi );
-
- std::vector< HtmlValues > &portraitCells = lists[ "portraitcells" ];
- size_t portraitFilled = 0;
- if( portraitShown && !multi )
- putCell( listEntry( portraitCells, portraitFilled++ ), portraitCell, ring, scale );
- for( size_t upgrade = 0; upgrade < upgrades.size(); upgrade++ )
- {
- const IRegion2D cell = gridCell( placesBox, (Int)upgrade, PORTRAIT_SCALE, CELL_WIDTH, CELL_HEIGHT );
- TheControlBar->placeWindowAt( upgrades[ upgrade ], cell );
- if( portraitShown && tiles.empty() )
- putCell( listEntry( portraitCells, portraitFilled++ ), cell, ring, scale );
- }
- for( size_t tile = 0; tile < tiles.size(); tile++ )
+ TheDisplay->drawFillRect( rowLeft, tugTop, rowWidth, tug, BROADCAST_LINE );
+ const std::vector< Int > shares = ObserverCamera_barShares( barArmies, rowWidth );
+ Int barAt = rowLeft;
+ for( size_t piece = 0; piece < shares.size(); piece++ )
{
- const Int across = PORTRAIT_PLACES * fold;
- const IRegion2D cell = gridCell( placesBox, (Int)tile % across, (Int)tile / across, CELL_WIDTH, CELL_HEIGHT, 1.0f / fold );
- TheControlBar->placeWindowAt( tiles[ tile ], cell );
- if( portraitShown )
- putCell( listEntry( portraitCells, portraitFilled++ ), cell, fold > 1 ? 1 : ring, scale );
- }
- portraitCells.resize( portraitFilled );
-
- // the general's powers ready to fire, growing out of the console's right hand end, a column for
- // each group a key picks: F1's against it, its powers going up from the wells' floor, F2's beside
- // it and so on, four columns for eleven. Only the powers there are have steel, a column of it
- // under each column of cells as high as its own, so the plate steps down to the right and there
- // is never an empty place
- ICoord2D corner;
- corner.x = consoleBox.hi.x;
- corner.y = foot;
- const Int powersShown = TheControlBar->placeSpecialPowerShortcutGrid( centreShown ? &corner : NULL, cell, cellGap );
-
- std::vector< HtmlValues > &places = lists[ "skillcells" ];
- for( Int slot = 0; slot < powersShown; slot++ )
- {
- const Int column = slot / SPECIAL_POWER_SHORTCUT_COLS;
- const Int row = slot % SPECIAL_POWER_SHORTCUT_COLS;
- IRegion2D place;
- place.lo.x = corner.x + column * ( cell.x + cellGap );
- place.hi.y = corner.y - row * ( cell.y + cellGap );
- place.hi.x = place.lo.x + cell.x;
- place.lo.y = place.hi.y - cell.y;
- putCell( listEntry( places, slot ), place, pageRing( cellGap, scale ), scale );
+ drawBroadcastSwatch( barAt, tugTop, shares[ piece ], tug, face.rows[ piece ].color );
+ if( faceBlocks > 2 && piece > 0 && barBlocks[ piece ] != barBlocks[ piece - 1 ] )
+ TheDisplay->drawFillRect( barAt, tugTop - rule, rule, tug + 2 * rule, BROADCAST_GROUND );
+ barAt += shares[ piece ];
}
- places.resize( (size_t)max( 0, powersShown ) );
+ if( faceBlocks == 2 )
+ TheDisplay->drawFillRect( rowLeft + ( rowWidth - rule ) / 2, tugTop - rule, rule, tug + 2 * rule, BROADCAST_GOLD );
- const Int powerEdge = REAL_TO_INT( POWER_TRAY_EDGE * scale );
- const Int powerColumns = ( powersShown + SPECIAL_POWER_SHORTCUT_COLS - 1 ) / SPECIAL_POWER_SHORTCUT_COLS;
- std::vector< HtmlValues > &steel = lists[ "powersteel" ];
- Int columnTop[ MAX_SPECIAL_POWER_SHORTCUTS ];
- for( Int column = 0; column < powerColumns; column++ )
+ IRegion2D bar;
+ bar.lo.x = left - frameReach;
+ bar.lo.y = 0;
+ bar.hi.x = left + barWidth + frameReach;
+ bar.hi.y = max( height + frameReach, 0 );
+ TheObserverCamera.addBroadcast( bar );
+ for( size_t flag = 0; flag < flagsDrawn.size(); flag++ )
+ TheObserverCamera.addBroadcast( flagsDrawn[ flag ] );
+ const Int barFoot = max( height + frameReach + pad, 0 );
+ TheObserverCamera.setBroadcastTop( (Real)barFoot );
+ static Int loggedHeight = -1;
+ if( !sliding && lift == 0 && height != loggedHeight )
{
- const Int cells = min( powersShown - column * SPECIAL_POWER_SHORTCUT_COLS, (Int)SPECIAL_POWER_SHORTCUT_COLS );
- columnTop[ column ] = corner.y - cells * ( cell.y + cellGap ) + cellGap - powerEdge;
- }
- for( Int column = 0; column < powerColumns; column++ )
- {
- // a column takes the gap left of its cells, and the last the edge right of them too; its own
- // shade down its right hand side is the part no column beside it covers
- IRegion2D plate;
- plate.lo.x = column == 0 ? consoleBox.hi.x - 1 : corner.x + column * ( cell.x + cellGap ) - cellGap;
- plate.hi.x = corner.x + column * ( cell.x + cellGap ) + cell.x + ( column + 1 == powerColumns ? powerEdge : 0 );
- plate.lo.y = columnTop[ column ];
- plate.hi.y = consoleBox.hi.y;
- HtmlValues &entry = listEntry( steel, column );
- putPageRect( entry, "plate", plate, TRUE, scale );
- const Int shadeFoot = column + 1 == powerColumns ? plate.hi.y : columnTop[ column + 1 ];
- entry[ "shadeh" ] = std::to_string( REAL_TO_INT_FLOOR( ( shadeFoot - plate.lo.y ) / scale + 0.5f ) );
- }
- steel.resize( (size_t)max( 0, powerColumns ) );
-
- // each grid's frames again in front of its buttons, drawn by a window after them; the cells go
- // over to them once this page is expanded
- putFrontWindow( controlBarWindow( "CommandWindow" ), drawCommandGridFront );
- // the portrait bar's grid over the portrait, its upgrades and a selection's types, all RightHUD's
- putFrontWindow( controlBarWindow( "RightHUD" ), drawQueueGridFront );
- GameWindow *powersParent = TheControlBar->getSpecialPowerShortcutParent();
- if( powersParent )
- putFrontWindow( powersParent, drawPowersGridFront );
-
- for( Int each = 0; each < (Int)ARRAY_SIZE( CONTROL_BAR_WINDOWS ); each++ )
- {
- const std::string name = CONTROL_BAR_WINDOWS[ each ];
- GameWindow *window = controlBarWindow( name );
- IRegion2D rect;
- putPageRect( values, name, rect, controlBarWindowRect( window, rect ), scale );
- values[ name + ".state" ] = controlBarWindowState( window );
+ loggedHeight = height;
+ DEBUG_LOG(( "OBSCAM frame %u score bar %d x %d, %d row(s), size %d (name %d, detail %d points), card %d of %d\n", frame,
+ barWidth, height, from.lines, from.step, BROADCAST_CARD_NAME_POINTS[ from.step ], BROADCAST_CARD_DETAIL_POINTS[ from.step ],
+ from.cardWidth, from.fullCardWidth ));
}
- for( Int each = 0; each < (Int)ARRAY_SIZE( CONTROL_BAR_CUSTOM ); each++ )
+ // a split's plate a pane, faded in and out with the panes; the opening's are each pane's own. The
+ // whole screen has none: the score bar over it already names every side
+ const Real paneShown = TheObserverCamera.getPaneProgress();
+ const Int panes = TheObserverCamera.isIntro() ? 0 : TheObserverCamera.getDrawnPaneCount();
+ DisplayString *versus = broadcastText( "versus", UnicodeString( u"vs" ), BROADCAST_WORDS, broadcastPoints( BROADCAST_SIDE_POINTS ), FALSE );
+ // a team of two or more by its name once, a player alone by his own
+ auto sidesPlate = [ & ]( PlayerMaskType sides ) -> BroadcastPlate
{
- GameWindow *window = controlBarWindow( CONTROL_BAR_CUSTOM[ each ] );
- if( window )
- window->winSetDrawFunc( drawNothing );
- }
- for( Int each = 0; each < (Int)ARRAY_SIZE( CONTROL_BAR_STOOD_DOWN ); each++ )
+ BroadcastPlate plate;
+ for( size_t block = 0; block < from.blockFirst.size(); block++ )
+ {
+ for( Int index = from.blockFirst[ block ]; index < from.blockFirst[ block ] + from.blockSizes[ block ]; index++ )
+ {
+ Player *player = from.players[ index ].player;
+ if( ( player->getPlayerMask() & sides ) == 0 )
+ continue;
+ if( !plate.pieces.empty() )
+ {
+ plate.pieces.push_back( versus );
+ plate.colors.push_back( BROADCAST_MUTED );
+ }
+ const Bool team = from.teamNames[ block ] != NULL;
+ plate.pieces.push_back( team ? broadcastText( "plateteam" + std::to_string( block ), broadcastTeamName( named, from.players[ index ].team ),
+ BROADCAST_WORDS, broadcastPoints( BROADCAST_NAME_POINTS ), TRUE ) : broadcastNameText( "name" + std::to_string( player->getPlayerIndex() ),
+ player, BROADCAST_NAME_POINTS, BROADCAST_PLATE_NAME_WIDEST ) );
+ plate.colors.push_back( team ? BROADCAST_INK : ObserverCamera_readableColor( from.rows[ index ].color ) );
+ if( team )
+ break;
+ }
+ }
+ return plate;
+ };
+ // each plate's sides are logged when they change, so a film's plates can be counted
+ static PlayerMaskType loggedSides[ OBSERVER_MOST_PANES ];
+ auto placePlate = [ & ]( Int slot, PlayerMaskType sides, const BroadcastPlate &plate, Int plateLeft, Int plateTop, Int plateWidth,
+ Int plateHeight, Real shown )
{
- GameWindow *window = controlBarWindow( CONTROL_BAR_STOOD_DOWN[ each ] );
- if( window && !window->winIsHidden() )
- window->winHide( TRUE );
- }
-
- // the promotion screen is its own layout, drawn over the bar; its page goes with this one
- if( !m_promotionPageLoaded )
+ if( sides != loggedSides[ slot ] )
+ {
+ loggedSides[ slot ] = sides;
+ DEBUG_LOG(( "OBSCAM frame %u pane plate %d, %d name(s)%s\n", frame, slot, (Int)( plate.pieces.size() + 1 ) / 2,
+ plate.pieces.size() > 1 ? ", vs" : "" ));
+ }
+ drawBroadcastPlate( plate, plateLeft, plateTop, shown );
+ IRegion2D drawn;
+ drawn.lo.x = plateLeft;
+ drawn.lo.y = plateTop;
+ drawn.hi.x = plateLeft + plateWidth;
+ drawn.hi.y = plateTop + plateHeight;
+ TheObserverCamera.addBroadcast( drawn );
+ };
+ for( Int pane = 0; pane < OBSERVER_MOST_PANES; pane++ )
{
- m_promotionPageLoaded = TRUE;
- readHtmlPage( PROMOTION_PAGE, m_promotionPage );
+ const PlayerMaskType sides = pane < panes && panes >= 2 ? TheObserverCamera.getPaneSides( pane ) : 0;
+ const BroadcastPlate plate = sidesPlate( sides );
+ if( plate.pieces.empty() )
+ {
+ loggedSides[ pane ] = 0;
+ continue;
+ }
+ Int plateWidth = 0, plateHeight = 0;
+ broadcastPlateSize( plate, &plateWidth, &plateHeight );
+ Coord2D centre;
+ Real radius = 0.0f;
+ TheObserverCamera.getPaneCircle( pane, &centre, &radius );
+ const Int plateTop = REAL_TO_INT( ObserverCamera_paneLabelTop( centre, radius, (Real)plateWidth, (Real)plateHeight ) );
+ placePlate( pane, sides, plate, REAL_TO_INT( centre.x ) - plateWidth / 2, plateTop, plateWidth, plateHeight, paneShown );
}
- if( !m_promotionPage.empty() )
- standDownPromotionScreen();
-
- m_controlBarOverlay->setPage( m_controlBarPage, values, lists, lookupGameText );
- // swapped rather than copied: the front windows get this frame's cells, and the lists get the
- // front windows' old ones to write the next frame over
- m_cellFrontCells[ CELL_GRID_COMMAND ].swap( commandCells );
- m_cellFrontCells[ CELL_GRID_QUEUE ].swap( portraitCells );
- m_cellFrontCells[ CELL_GRID_POWERS ].swap( places );
- m_controlBarPageHovered = m_controlBarOverlay->hover( TheMouse->getMouseStatus()->pos );
- m_controlBarOverlay->draw();
- drawReadoutPage( values );
- drawAlertPage();
- drawNetPage();
-
- m_controlBarSolids.clear();
- m_controlBarOverlay->rectsOf( ".solid", m_controlBarSolids );
- m_controlBarKeys.clear();
- m_controlBarOverlay->rectsOf( "[data-click]", m_controlBarKeys );
- TheControlBar->setPageSolids( &m_controlBarSolids, &m_controlBarKeys );
- m_controlBarPageShown = TRUE;
- return TRUE;
-}
-
-static Bool regionsHold( const std::vector< IRegion2D > &regions, const ICoord2D &point )
-{
- for( size_t each = 0; each < regions.size(); each++ )
+ // a defeated player's banner across the lower picture, the broadcast's red in its tab, and once the
+ // match is decided the winner's under it in gold. A banner names the player in his colour, under it
+ // his general or difficulty and his team
+ auto bannerLines = [ & ]( Player *player, BroadcastPlate *title, BroadcastPlate *under )
{
- const IRegion2D &rect = regions[ each ];
- if( point.x >= rect.lo.x && point.y >= rect.lo.y && point.x < rect.hi.x && point.y < rect.hi.y )
- return TRUE;
- }
- return FALSE;
-}
-
-Bool InGameUI::isOnControlBarSteel( const ICoord2D &pointer ) const
-{
- return m_controlBarPageShown && regionsHold( m_controlBarSolids, pointer ) && !regionsHold( m_controlBarKeys, pointer );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The page's own buttons sit where the bar's frame takes no clicks, so their clicks arrive as clicks
- * on the world and are taken here. data-click="press:Name" presses the bar's window Name, the
- * message a click on it would have sent, even though the window itself is stood down. */
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::handleControlBarPageClick( const ICoord2D *mouse, Bool act )
-{
- if( !m_controlBarPageShown || m_controlBarOverlay == NULL )
- return FALSE;
- if( !m_controlBarOverlay->hover( *mouse ) )
- return FALSE;
-
- const std::string action = m_controlBarOverlay->click( *mouse );
- if( action.compare( 0, SIGNAL_ACTION.size(), SIGNAL_ACTION ) == 0 )
+ const std::string seat = std::to_string( player->getPlayerIndex() );
+ title->pieces.push_back( broadcastNameText( "bannername" + seat, player, BROADCAST_BANNER_POINTS, BROADCAST_BANNER_NAME_WIDEST ) );
+ title->colors.push_back( ObserverCamera_readableColor( clientPlayerColor( player ) ) );
+ under->pieces.push_back( broadcastText( "bannerside" + seat, broadcastSide( player ), BROADCAST_WORDS, broadcastPoints( BROADCAST_SIDE_POINTS ), FALSE ) );
+ under->colors.push_back( BROADCAST_MUTED );
+ for( size_t index = 0; index < named.size(); index++ )
+ {
+ if( named[ index ].player != player || broadcastTeamSize( named, named[ index ].team ) < 2 )
+ continue;
+ under->pieces.push_back( broadcastText( "bannerteam" + seat, broadcastTeamName( named, named[ index ].team ), BROADCAST_WORDS,
+ broadcastPoints( BROADCAST_SIDE_POINTS ), TRUE ) );
+ under->colors.push_back( BROADCAST_GOLD );
+ }
+ };
+ const Int foot = REAL_TO_INT( TheDisplay->getHeight() * BROADCAST_BANNER_FOOT );
+ Real defeatShown = 0.0f;
+ const DirectorShowing *defeat = TheObserverCamera.getDefeatBanner( &defeatShown );
+ if( defeat != NULL && defeatShown > 0.0f )
{
- if( act )
- armSignalFromPage( action.substr( SIGNAL_ACTION.size() ) );
- return TRUE;
+ BroadcastPlate title, under;
+ bannerLines( ThePlayerList->getNthPlayer( defeat->player ), &title, &under );
+ DisplayString *word = broadcastText( "bannerdefeated", UnicodeString( u"Defeated" ), BROADCAST_WORDS,
+ broadcastPoints( BROADCAST_BANNER_WORD_POINTS ), TRUE );
+ TheObserverCamera.addBroadcast( drawBroadcastBanner( word, BROADCAST_DEFEAT, BROADCAST_INK, title, under, foot, defeatShown ) );
}
- if( action.compare( 0, ORDER_ACTION.size(), ORDER_ACTION ) == 0 )
+ // a team that won is named once, its players under it
+ const Real winnerShown = TheObserverCamera.getWinnerShown();
+ std::vector< const SpectatorStats * > winners;
+ for( size_t index = 0; index < named.size(); index++ )
+ if( named[ index ].player->isPlayerActive() )
+ winners.push_back( &named[ index ] );
+ if( winnerShown > 0.0f && !winners.empty() )
{
- if( act )
- orderFromPage( action.substr( ORDER_ACTION.size() ) );
- return TRUE;
- }
- // steel outside the bar's frame, where no window of it stands - the top page, and the console's
- // top where HUD Size lifts it over the frame - takes the click here, before it becomes an order on
- // the ground under it
- if( action.compare( 0, PRESS_ACTION.size(), PRESS_ACTION ) != 0 )
- return isOnControlBarSteel( *mouse );
- if( !act )
- return TRUE;
-
- GameWindow *button = controlBarWindow( action.substr( PRESS_ACTION.size() ) );
- if( button == NULL || !BitTest( button->winGetStatus(), WIN_STATUS_ENABLED ) )
- return TRUE;
-
- TheWindowManager->winSendSystemMsg( button->winGetOwner(), GBM_SELECTED, (WindowMsgData)button, button->winGetWindowId() );
- AudioEventRTS buttonClick( "GUIClick" );
- if( TheAudio )
- TheAudio->addAudioEvent( &buttonClick );
- return TRUE;
-}
-
-static const char *const PROMOTION_PREFIX = "GeneralsExpPoints.wnd:";
-static const char *const PROMOTION_BUTTON_PREFIX = "ButtonRank";
-
-/** The promotion screen's three rows, each a run of ButtonRankNNumberM buttons under a heading. */
-static const struct PromotionRow
-{
- const char *buttons; ///< the buttons' name, before their number
- Int count;
- Int depth; ///< buttons to a column: the layout numbers the middle row's down each column
- const char *heading; ///< the string table label over the row
-} PROMOTION_ROWS[] =
-{
- { "ButtonRank1Number", 4, 1, "GUI:Rank1Required" },
- { "ButtonRank3Number", 15, 3, "GUI:Rank3Required" },
- { "ButtonRank8Number", 4, 1, "GUI:Rank8Required" }
-};
-
-/** The compact screen's measures, 800x600 pixels; a cell is a command button's size. */
-enum
-{
- PROMOTION_COLUMNS = 5, ///< the widest row, the middle one
- PROMOTION_MARGIN = 4, ///< the plate round the wells, and between one well and the next
- PROMOTION_INSET = 3, ///< a well round its heading and cells
- PROMOTION_CELL_GAP = 2,
- PROMOTION_TITLE = 14, ///< the rank's name's line, the points beside it
- PROMOTION_BAR = 7, ///< the experience bar under it
- PROMOTION_BAR_GAP = 3,
- PROMOTION_HEADING = 12, ///< a row's heading over its first button
- PROMOTION_TOP = 44 ///< clear of the players' strip, a team's name under its flags included
-};
-
-/** One place in the screen's grids, screen pixels, and the promotion's button standing in it: NULL
- * for a place no promotion fills, which shows as a hole, and the close button in its own place. */
-struct PromotionPlace
-{
- IRegion2D rect;
- GameWindow *button;
-};
-
-/** Where layoutPromotionScreen put everything the page draws round the windows. */
-struct PromotionLayout
-{
- std::vector< PromotionPlace > places;
- std::vector< IRegion2D > headings; ///< one over each row, in PROMOTION_ROWS' order
- std::vector< IRegion2D > wells; ///< one round each row and its heading, the same order
-};
-
-static GameWindow *promotionWindow( const std::string &name )
-{
- return TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( ( PROMOTION_PREFIX + name ).c_str() ) );
-}
-
-/** Puts one of the screen's windows at `x`, `y` in its parent, `width` by `height`, screen pixels. */
-static void placePromotionWindow( const std::string &name, Int x, Int y, Int width, Int height )
-{
- GameWindow *window = promotionWindow( name );
- window->winSetPosition( x, y );
- window->winSetSize( width, height );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The promotion screen laid out compact, every frame it draws, over the layout's own places: each
- * row a grid five places wide in command button cells with a hair of steel between them, the way
- * the command bar's grid is, in a well of its own with its heading, a plate's margin between one
- * well and the next; the rank's name and the points on one line with the bar under them, and the
- * close button in the last row's fifth place, which no side fills. Centred on the screen, its
- * top never over the players' strip. `layout` gets every place, filled or not, the headings and the wells,
- * in screen pixels. */
-//-------------------------------------------------------------------------------------------------
-static void layoutPromotionScreen( GameWindow *parent, PromotionLayout &layout )
-{
- const Real scale = ControlBarUniformScale();
- struct Page { static Int px( Int pagePixels, Real scale ) { return REAL_TO_INT( pagePixels * scale ); } };
- const Int cellWidth = Page::px( COMMAND_BUTTON_WIDTH, scale );
- const Int cellHeight = Page::px( COMMAND_BUTTON_HEIGHT, scale );
- const Int gap = Page::px( PROMOTION_CELL_GAP, scale );
- const Int margin = Page::px( PROMOTION_MARGIN, scale );
- const Int inset = Page::px( PROMOTION_INSET, scale );
- const Int heading = Page::px( PROMOTION_HEADING, scale );
-
- const Int gridWidth = PROMOTION_COLUMNS * cellWidth + ( PROMOTION_COLUMNS - 1 ) * gap;
- const Int width = gridWidth + 2 * ( margin + inset );
- const Int titleHeight = Page::px( PROMOTION_TITLE, scale );
- const Int pointsWidth = Page::px( PROMOTION_TITLE + PROMOTION_BAR, scale );
- placePromotionWindow( "StaticTextTitle", margin, margin, width - 2 * margin - pointsWidth, titleHeight );
- placePromotionWindow( "StaticTextRankPointsAvailable", width - margin - pointsWidth, margin, pointsWidth,
- titleHeight + Page::px( PROMOTION_BAR + PROMOTION_BAR_GAP, scale ) );
- placePromotionWindow( "ProgressBarExperience", margin, margin + titleHeight + Page::px( PROMOTION_BAR_GAP, scale ),
- width - 3 * margin - pointsWidth, Page::px( PROMOTION_BAR, scale ) );
-
- // each row's well stands a margin under the one before, the first a margin under the bar and the
- // points, and the heading and the cells an inset inside it
- Int y = margin + titleHeight + Page::px( PROMOTION_BAR_GAP + PROMOTION_BAR, scale );
- Int height = y + margin;
- for( Int row = 0; row < (Int)ARRAY_SIZE( PROMOTION_ROWS ); row++ )
- height += margin + 2 * inset + heading + PROMOTION_ROWS[ row ].depth * ( cellHeight + gap ) - gap;
-
- // the parent goes first, in the middle of the screen but never over the players hanging from its
- // top edge, so the places can be handed out in screen pixels
- const Int parentX = ( TheDisplay->getWidth() - width ) / 2;
- const Int parentY = max( Page::px( PROMOTION_TOP, scale ), ( (Int)TheDisplay->getHeight() - height ) / 2 );
- parent->winSetPosition( parentX, parentY );
-
- const Int left = margin + inset;
- layout.places.clear();
- layout.headings.clear();
- layout.wells.clear();
- for( Int row = 0; row < (Int)ARRAY_SIZE( PROMOTION_ROWS ); row++ )
- {
- y += margin;
- IRegion2D well;
- well.lo.x = parentX + margin;
- well.hi.x = parentX + width - margin;
- well.lo.y = parentY + y;
- y += inset;
- IRegion2D title;
- title.lo.x = parentX + left;
- title.hi.x = title.lo.x + gridWidth;
- title.lo.y = parentY + y;
- title.hi.y = title.lo.y + heading - gap;
- layout.headings.push_back( title );
- y += heading;
-
- const Int depth = PROMOTION_ROWS[ row ].depth;
- const Bool lastRow = row == (Int)ARRAY_SIZE( PROMOTION_ROWS ) - 1;
- for( Int column = 0; column < PROMOTION_COLUMNS; column++ )
+ BroadcastPlate title, under;
+ const Int team = winners[ 0 ]->team;
+ if( broadcastTeamSize( named, team ) >= 2 )
{
- for( Int line = 0; line < depth; line++ )
+ title.pieces.push_back( broadcastText( "bannerwinteam", broadcastTeamName( named, team ), BROADCAST_WORDS,
+ broadcastPoints( BROADCAST_BANNER_POINTS ), TRUE ) );
+ title.colors.push_back( BROADCAST_INK );
+ for( size_t index = 0; index < winners.size(); index++ )
{
- const Int x = left + column * ( cellWidth + gap );
- const Int top = y + line * ( cellHeight + gap );
- const Int number = column * depth + line;
- PromotionPlace place;
- place.rect.lo.x = parentX + x;
- place.rect.lo.y = parentY + top;
- place.rect.hi.x = place.rect.lo.x + cellWidth;
- place.rect.hi.y = place.rect.lo.y + cellHeight;
- place.button = NULL;
- if( lastRow && column == PROMOTION_COLUMNS - 1 )
- {
- placePromotionWindow( "ButtonExit", x, top, cellWidth, cellHeight );
- place.button = promotionWindow( "ButtonExit" );
- }
- else if( number < PROMOTION_ROWS[ row ].count )
- {
- const std::string name = PROMOTION_ROWS[ row ].buttons + std::to_string( number );
- placePromotionWindow( name, x, top, cellWidth, cellHeight );
- place.button = promotionWindow( name );
- }
- layout.places.push_back( place );
+ Player *player = winners[ index ]->player;
+ under.pieces.push_back( broadcastNameText( "bannerwinner" + std::to_string( player->getPlayerIndex() ), player,
+ BROADCAST_SIDE_POINTS, BROADCAST_BANNER_NAME_WIDEST ) );
+ under.colors.push_back( ObserverCamera_readableColor( clientPlayerColor( player ) ) );
}
}
- y += depth * ( cellHeight + gap ) - gap + inset;
- well.hi.y = parentY + y;
- layout.wells.push_back( well );
+ else
+ bannerLines( winners[ 0 ]->player, &title, &under );
+ DisplayString *word = broadcastText( "bannervictory", UnicodeString( u"Victory" ), BROADCAST_WORDS,
+ broadcastPoints( BROADCAST_BANNER_WORD_POINTS ), TRUE );
+ const Int winnerFoot = foot + broadcastPixels( BROADCAST_GAP ) + broadcastBannerHeight( title, under );
+ TheObserverCamera.addBroadcast( drawBroadcastBanner( word, BROADCAST_GOLD, BROADCAST_GROUND, title, under, winnerFoot, winnerShown ) );
}
-
- parent->winSetSize( width, height );
-}
-
-/** The screen's picture, drawn by the page while it is there. */
-static void drawPromotionScreen( GameWindow *window, WinInstanceData *instData )
-{
- TheInGameUI->drawPromotionPage( window, FALSE );
}
-/** The grid's frames over the promotions, drawn by the child that draws last. */
-static void drawPromotionScreenFront( GameWindow *window, WinInstanceData *instData )
-{
- TheInGameUI->drawPromotionPage( window->winGetParent(), TRUE );
-}
-
-/** The promotion screen hands its look to the page: the parent draws the page, and every child but
- * the promotions' own buttons draws nothing - the side's painting, the titles, the bar and its frame
- * and the close button are the page's. They all keep their clicks. The title is moved to the head
- * of the children, which draw from the tail, so it draws after the promotions and puts the grid's
- * frames over their edges; it stands clear of every button, so it takes no click from one. */
-static void standDownPromotionScreen( void )
+//-------------------------------------------------------------------------------------------------
+/** The opening's plate for the pane being drawn, the player's name with a player's side and team under
+ * it, hung just over his command centre and kept inside the pane's circle through the camera drawing that pane, so it stays on the
+ * building as the camera moves, zooms and slides. Drawn in the pane's own draw it lies on that
+ * pane's picture, and the recording takes it with the pane; held on the screen when the building
+ * goes off it, and faded with the panes. */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::drawDirectorIntroPlate( void )
{
- GameWindow *parent = promotionWindow( "GenExpParent" );
- if( parent == NULL )
+ const Real shown = TheObserverCamera.getPaneProgress();
+ if( !TheObserverCamera.isIntro() || shown <= 0.0f )
+ return;
+ const Int pane = TheObserverCamera.getDrawingPane();
+ ICoord2D over;
+ if( TheTacticalView->worldToScreenTriReturn( &TheObserverCamera.getIntroMark( pane ), &over ) == View::WTS_INVALID )
return;
- parent->winSetDrawFunc( drawPromotionScreen );
- const std::string buttonName = std::string( PROMOTION_PREFIX ) + PROMOTION_BUTTON_PREFIX;
- for( GameWindow *child = parent->winGetChild(); child; child = child->winGetNext() )
+ Player *player = ThePlayerList->getNthPlayer( TheObserverCamera.getIntroPlayerIndex( pane ) );
+ const std::string seat = std::to_string( player->getPlayerIndex() );
+ const std::vector< SpectatorStats > players = gatherSpectatorStats( SPECTATOR_STATS[ 0 ], NULL );
+ Coord2D centre;
+ Real radius = 0.0f;
+ TheObserverCamera.getPaneCircle( pane, &centre, &radius );
+
+ // the name on top, and under it, smaller, a player's side and the team he is on: side by side on
+ // one plate they ran past the rays of an eight-pane opening. A block wider than the pane's circle
+ // steps down through smaller sizes until it fits, or takes the smallest; each size has keys of its
+ // own since a string keeps the font it was made with
+ BroadcastPlate name;
+ BroadcastPlate under;
+ Int nameWidth = 0, nameHeight = 0, underWidth = 0, underHeight = 0;
+ const Int nameSizes[] = { BROADCAST_NAME_POINTS, BROADCAST_SIDE_POINTS, BROADCAST_HEAD_POINTS };
+ const Int underSizes[] = { BROADCAST_SIDE_POINTS, BROADCAST_COMPACT_POINTS, BROADCAST_HEAD_POINTS };
+ const Int sizeCount = ARRAY_SIZE( nameSizes );
+ for( Int step = 0; step < sizeCount; step++ )
{
- if( !child->winGetInstanceData()->m_decoratedNameString.startsWith( buttonName.c_str() ) )
- child->winSetDrawFunc( drawNothing );
+ const std::string size = std::to_string( step ) + ":";
+ const Int underPoints = broadcastPoints( underSizes[ step ] );
+ name = BroadcastPlate();
+ under = BroadcastPlate();
+ name.pieces.push_back( broadcastNameText( "name" + size + seat, player, nameSizes[ step ], BROADCAST_INTRO_NAME_WIDEST ) );
+ name.colors.push_back( ObserverCamera_readableColor( clientPlayerColor( player ) ) );
+ // an AI called by its general has it on top already; one with a name of its own gets it here
+ if( !broadcastByDifficulty( player ) )
+ {
+ under.pieces.push_back( broadcastText( "side" + size + seat, broadcastSide( player ), BROADCAST_WORDS, underPoints, FALSE ) );
+ under.colors.push_back( BROADCAST_MUTED );
+ }
+ for( size_t index = 0; index < players.size(); index++ )
+ {
+ if( players[ index ].player != player || broadcastTeamSize( players, players[ index ].team ) < 2 )
+ continue;
+ under.pieces.push_back( broadcastText( "introteam" + size + seat, broadcastTeamName( players, players[ index ].team ), BROADCAST_WORDS,
+ underPoints, TRUE ) );
+ under.colors.push_back( BROADCAST_GOLD );
+ }
+ broadcastPlateSize( name, &nameWidth, &nameHeight );
+ underWidth = underHeight = 0;
+ if( !under.pieces.empty() )
+ broadcastPlateSize( under, &underWidth, &underHeight );
+ const Real across = (Real)max( nameWidth, underWidth );
+ const Real down = (Real)( nameHeight + underHeight );
+ if( across * across + down * down <= 4.0f * radius * radius )
+ break;
}
+ const Real width = (Real)max( nameWidth, underWidth );
+ const Real height = (Real)( nameHeight + underHeight );
- GameWindow *front = promotionWindow( "StaticTextTitle" );
- if( parent->winGetChild() != front )
- front->winBringToTop();
- front->winSetDrawFunc( drawPromotionScreenFront );
-}
-
-/** "owned", "ready" or "locked" for one promotion's button, by the state the bar left it in: enabled
- * when it can be bought, disabled in colour when it was, disabled in grey otherwise. */
-static const char *promotionState( GameWindow *button )
-{
- if( BitTest( button->winGetStatus(), WIN_STATUS_ENABLED ) )
- return "ready";
- return BitTest( button->winGetStatus(), WIN_STATUS_ALWAYS_COLOR ) ? "owned" : "locked";
+ // hung over the command centre, then pulled in until all of it is inside the pane's circle, so no
+ // ray cuts it and the score bar does not cover it
+ Coord2D middle;
+ middle.x = (Real)over.x;
+ middle.y = over.y - broadcastPixels( BROADCAST_PAD ) - height * 0.5f;
+ const Real room = max( radius - sqrtf( width * width + height * height ) * 0.5f, 0.0f );
+ const Real dx = middle.x - centre.x;
+ const Real dy = middle.y - centre.y;
+ const Real away = sqrtf( dx * dx + dy * dy );
+ if( away > room )
+ {
+ middle.x = centre.x + ( away > 0.0f ? dx / away * room : 0.0f );
+ middle.y = centre.y + ( away > 0.0f ? dy / away * room : 0.0f );
+ }
+ const Int top = min( max( REAL_TO_INT( middle.y - height * 0.5f ), 0 ), (Int)( TheDisplay->getHeight() - height ) );
+ const Int nameLeft = min( max( REAL_TO_INT( middle.x ) - nameWidth / 2, 0 ), (Int)TheDisplay->getWidth() - nameWidth );
+ drawBroadcastPlate( name, nameLeft, top, shown );
+ if( under.pieces.empty() )
+ return;
+ const Int underLeft = min( max( REAL_TO_INT( middle.x ) - underWidth / 2, 0 ), (Int)TheDisplay->getWidth() - underWidth );
+ drawBroadcastPlate( under, underLeft, top + nameHeight, shown );
}
//-------------------------------------------------------------------------------------------------
-/** The general's promotion screen from Window/Html/Promotion.html, in the place of the side's
- * painting. Everything is placed from the screen's own windows, so it goes where the layout and
- * the scheme put them; the promotions are the bar's buttons and paint over the back of the page,
- * and the `front` of it, the grid's frames, paints over them. */
-//-------------------------------------------------------------------------------------------------
-/** The promotion screen coming up the way the Esc menu does: the screen dims and the page fades in
- * over PROMOTION_FADE_MS of the wall clock from its first picture, never more than
- * PROMOTION_MOST_MS_A_PICTURE a picture, so a slow first picture does not skip the fade. */
-static const Int PROMOTION_FADE_MS = 120;
-static const Int PROMOTION_MOST_MS_A_PICTURE = 25;
-static const Int PROMOTION_NOT_DRAWN = -1;
-
-void InGameUI::openPromotionPage( void )
-{
- // opened again while it was still going, it comes back up from where the going had got to
- if( m_promotionClosing )
- m_promotionClosing = FALSE;
- else
- m_promotionShownMs = TheGlobalData->m_animateWindows ? PROMOTION_NOT_DRAWN : PROMOTION_FADE_MS;
-}
-
-void InGameUI::drawPromotionPage( GameWindow *parent, Bool front )
+void InGameUI::drawHudOverlay( void )
{
- enum
- {
- EXPERIENCE_RUNGS = 20,
- FULL = 100
- };
+ if( !TheGlobalData->m_showHudOverlay || !TheGlobalData->m_showNetBox )
+ return;
- HtmlOverlay *&overlay = front ? m_promotionFrontOverlay : m_promotionOverlay;
- if( overlay == NULL )
- overlay = new HtmlOverlay( m_superweaponNormalFont );
-
- // laid out in the parent's own draw, the back, so every child is in its place before it draws
- PromotionLayout layout;
- layoutPromotionScreen( parent, layout );
-
- HtmlValues values;
- HtmlLists lists;
- values[ "layer" ] = front ? "front" : "back";
- values[ "side" ] = spectatorSide();
- values[ "held" ] = TheMouse->getMouseStatus()->leftState != MBS_Up ? "held" : "";
-
- IRegion2D panel;
- controlBarWindowRect( parent, panel );
- putPageRect( values, "panel", panel, TRUE );
- IRegion2D screen;
- screen.lo.x = screen.lo.y = 0;
- screen.hi.x = TheDisplay->getWidth();
- screen.hi.y = TheDisplay->getHeight();
- putPageRect( values, "screen", screen, TRUE );
-
- // the back draws first each picture and moves the coming up, or the going, on for both layers;
- // gone, the screen is hidden and draws no more
- if( !front )
- {
- const UnsignedInt now = Clock_Milliseconds();
- const Int step = min( (Int)( now - m_promotionDrawnAt ), PROMOTION_MOST_MS_A_PICTURE );
- if( m_promotionClosing )
- m_promotionShownMs = max( 0, m_promotionShownMs ) - step;
- else if( m_promotionShownMs == PROMOTION_NOT_DRAWN )
- m_promotionShownMs = 0;
- else
- m_promotionShownMs = min( m_promotionShownMs + step, PROMOTION_FADE_MS );
- m_promotionDrawnAt = now;
- if( m_promotionClosing && m_promotionShownMs <= 0 )
- {
- m_promotionClosing = FALSE;
- m_promotionShownMs = 0;
- parent->winHide( TRUE );
- return;
- }
- }
- overlay->setAlpha( max( 0, m_promotionShownMs ) * OPAQUE_PAGE / PROMOTION_FADE_MS );
+ // only once a real game is under way - not in the shell, and not on the menu's background map
+ if( !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
+ return;
- static const char *const PLACED[] = { "StaticTextTitle", "ProgressBarExperience", "StaticTextRankPointsAvailable", "ButtonExit" };
- for( Int each = 0; each < (Int)ARRAY_SIZE( PLACED ); each++ )
- {
- GameWindow *window = promotionWindow( PLACED[ each ] );
- IRegion2D rect;
- putPageRect( values, PLACED[ each ], rect, controlBarWindowRect( window, rect ) );
- values[ std::string( PLACED[ each ] ) + ".state" ] = controlBarWindowState( window );
- }
- values[ "title" ] = WideCharStringToMultiByte( GadgetStaticTextGetText( promotionWindow( "StaticTextTitle" ) ).str() );
- values[ "points" ] = WideCharStringToMultiByte( GadgetStaticTextGetText( promotionWindow( "StaticTextRankPointsAvailable" ) ).str() );
-
- // the bar goes by the player the screen was opened for, the watched one while watching
- const Player *player = TheControlBar->isObserverControlBarOn() ? TheControlBar->getObserverLookAtPlayer()
- : ThePlayerList->getLocalPlayer();
- // its rungs cut from the bar's width in page pixels so they add up to it exactly, as the power
- // bar's cells are
- const Int lit = player ? player->getRankProgressPercent() * EXPERIENCE_RUNGS / FULL : 0;
- const Int barWidth = atoi( values[ "ProgressBarExperience.w" ].c_str() );
- std::vector< HtmlValues > &rungs = lists[ "exprungs" ];
- for( Int rung = 0; rung < EXPERIENCE_RUNGS && barWidth > 0; rung++ )
- {
- const Int left = rung * barWidth / EXPERIENCE_RUNGS;
- HtmlValues entry;
- entry[ "lit" ] = rung < lit ? "lit" : "";
- entry[ "x" ] = std::to_string( left );
- entry[ "w" ] = std::to_string( ( rung + 1 ) * barWidth / EXPERIENCE_RUNGS - left );
- rungs.push_back( entry );
- }
+ if( TheGameLogic->getFrame() == 0 )
+ return;
- // each row of promotions stands in a well of steel, a dark cell for every place, filled or not,
- // as the command grid's are, its heading over it
- std::vector< HtmlValues > &wells = lists[ "wells" ];
- for( size_t row = 0; row < layout.wells.size(); row++ )
- {
- HtmlValues entry;
- putPageRect( entry, "well", layout.wells[ row ], TRUE );
- wells.push_back( entry );
- }
- GameWindow *exit = promotionWindow( "ButtonExit" );
- std::vector< HtmlValues > &cells = lists[ "cells" ];
- for( size_t each = 0; each < layout.places.size(); each++ )
+ //
+ // Two rates, both sampled over half a second of wall clock so the numbers are readable, and
+ // they are not the same thing. Client frames are the render rate. Logic frames are the
+ // simulation, which is *supposed* to run at LOGICFRAMES_PER_SECOND and drops below it exactly
+ // when a frame overruns its budget - so a reading under the nominal rate is the stutter,
+ // measured, rather than something the render rate can be blamed for.
+ //
+ // NOT GameClient::getFrame() - that is the simulation frame number from the server, so the
+ // "fps" reading was a second copy of the logic rate and moved with it. postDraw runs once per
+ // rendered frame, so count the draws here instead.
+ ++m_hudDrawCount;
+ const UnsignedInt clientFrame = m_hudDrawCount;
+ const UnsignedInt logicFrame = TheGameLogic->getFrame();
+ UnsignedInt nowMs = Clock_Milliseconds();
+ // a replay wound back runs the frame number backwards, and the unsigned difference read as tens
+ // of millions of logic frames a second; the reading starts over from there instead
+ if( m_hudLastSampleFrame == 0 || logicFrame < m_hudLastSampleLogicFrame )
{
- const PromotionPlace &place = layout.places[ each ];
- if( place.button == exit )
- continue;
-
- HtmlValues entry;
- putCell( entry, place.rect, pageRing( REAL_TO_INT( PROMOTION_CELL_GAP * ControlBarUniformScale() ), ControlBarUniformScale() ),
- ControlBarUniformScale() );
- entry[ "state" ] = place.button && !place.button->winIsHidden() ? promotionState( place.button ) : "empty";
- cells.push_back( entry );
+ m_hudLastSampleMs = nowMs;
+ m_hudLastSampleFrame = clientFrame;
+ m_hudLastSampleLogicFrame = logicFrame;
}
- std::vector< HtmlValues > &headings = lists[ "headings" ];
- for( size_t row = 0; row < layout.headings.size(); row++ )
+ else if( nowMs - m_hudLastSampleMs >= 500 )
{
- HtmlValues entry;
- putPageRect( entry, "heading", layout.headings[ row ], TRUE );
- entry[ "label" ] = WideCharStringToMultiByte( TheGameText->fetch( PROMOTION_ROWS[ row ].heading ).str() );
- headings.push_back( entry );
+ const Real elapsed = (Real)(nowMs - m_hudLastSampleMs);
+ m_hudFps.add( (clientFrame - m_hudLastSampleFrame) * 1000.0f / elapsed );
+ m_hudLogicHz.add( (logicFrame - m_hudLastSampleLogicFrame) * 1000.0f / elapsed );
+ m_hudLastSampleMs = nowMs;
+ m_hudLastSampleFrame = clientFrame;
+ m_hudLastSampleLogicFrame = logicFrame;
}
- overlay->setPage( m_promotionPage, values, lists, lookupGameText );
- overlay->hover( TheMouse->getMouseStatus()->pos );
- overlay->draw();
-}
-
-static const char *const QUIT_MENU_PAGE = "Window\\Html\\QuitMenu.html";
-
-/** The Esc menu's keys top to bottom. QuitMenu.wnd has them all, QuitNoSave.wnd, for network games
- * and replays, all but the first. */
-static const char *const QUIT_MENU_KEYS[] = { "ButtonSaveLoad", "ButtonOptions", "ButtonRestart", "ButtonExit", "ButtonReturn" };
-
-/** The game's logo over the keys, one name in each layout; the page stands it down. */
-static const char *const QUIT_MENU_LOGOS[] = { "WinLoad", "WinLogo" };
-
-/** The menu's measures, 800x600 pixels. */
-enum
-{
- QUIT_MENU_KEY_WIDTH = 176,
- QUIT_MENU_KEY_HEIGHT = 24,
- QUIT_MENU_KEY_GAP = 6,
- QUIT_MENU_MARGIN = 12 ///< the plate round the keys' well
-};
+ //
+ // Game time is logic frames; real time is the wall clock. They start together and drift apart
+ // by however much the simulation has fallen behind - which is the same stutter the two rates
+ // above show, totalled. The base is set the first time the overlay draws rather than at frame
+ // zero, so switching it on mid-game does not invent an hour of lag.
+ //
+ // A pause stops the logic clock and not the wall clock, and the gap between the two readings
+ // is meant to be simulation lag - time spent in the menu is not lag. So the base is walked
+ // forward by every paused frame's worth of wall clock and both readouts stand still.
+ //
+ UnsignedInt gameSecs = logicFrame / LOGICFRAMES_PER_SECOND;
+ if( m_hudRealClockBaseMs == 0 )
+ m_hudRealClockBaseMs = nowMs - gameSecs * 1000;
+ else if( TheGameLogic->isGamePaused() )
+ m_hudRealClockBaseMs += nowMs - m_hudLastDrawMs;
+ m_hudLastDrawMs = nowMs;
+ UnsignedInt realSecs = (nowMs - m_hudRealClockBaseMs) / 1000;
-/** The menu coming up, in milliseconds of the wall clock: the dimmed screen and the plate fade in,
- * then the keys come in top to bottom, each fading in from nothing lit bright in the side's steel,
- * the way EA's keys flashed. */
-enum
-{
- QUIT_MENU_FADE_MS = 120,
- QUIT_MENU_KEY_FIRST_MS = 80, ///< the first key, after the plate is mostly there
- QUIT_MENU_KEY_STEP_MS = 45, ///< each key after the one over it
- QUIT_MENU_KEY_FADE_MS = 150, ///< a key from nothing to whole
- QUIT_MENU_KEY_FLASH_MS = 220 ///< how long a key stays lit when it comes in, its fade included
-};
+ // the machine's own clock first, for a player who wants to know when to stop
+ WallClockTime wallClock;
+ getLocalWallClock( &wallClock );
-/** The most one picture moves the menu's coming up on. A single-player game pausing under the menu
- * draws at ten frames a second for the first half second or so, and on the wall clock alone the
- * keys had all come in within four pictures: they seemed to pop up with no fade at all. */
-static const Int QUIT_MENU_MOST_MS_A_PICTURE = 25;
-static const Int QUIT_MENU_NOT_DRAWN = -1; ///< m_quitMenuShownMs until the menu's first picture
-static const Int QUIT_MENU_NOT_CLOSING = -1; ///< m_quitMenuClosingMs while the menu is not going
-/** Far enough into the coming up that every one of the five keys is in and done flashing. */
-static const Int QUIT_MENU_WHOLE_MS = QUIT_MENU_KEY_FIRST_MS + 4 * QUIT_MENU_KEY_STEP_MS + QUIT_MENU_KEY_FLASH_MS;
-
-/** A window of the same layout as `parent`, by its name there. */
-static GameWindow *quitMenuWindow( GameWindow *parent, const char *name )
-{
- const AsciiString &parentName = parent->winGetInstanceData()->m_decoratedNameString;
- const std::string layout( parentName.str(), strchr( parentName.str(), ':' ) + 1 );
- return TheWindowManager->winGetWindowFromId( parent, NAMEKEY( ( layout + name ).c_str() ) );
-}
+ UnicodeString text;
+ text.format( u"%02d:%02d %02d:%02d:%02d(%02d:%02d:%02d) %dhz(%dfps) %s",
+ wallClock.wHour, wallClock.wMinute,
+ gameSecs / 3600, (gameSecs / 60) % 60, gameSecs % 60,
+ realSecs / 3600, (realSecs / 60) % 60, realSecs % 60,
+ m_hudLogicHz.shown, m_hudFps.shown,
+ TheDisplay->getRendererName() );
-static void drawQuitMenu( GameWindow *window, WinInstanceData *instData )
-{
- TheInGameUI->drawQuitMenuPage( window );
-}
+ UnicodeString frameText;
+ frameText.format( u" frame %d", (Int)logicFrame );
+ text.concat( frameText );
-void InGameUI::themeQuitMenu( GameWindow *parent )
-{
- if( !m_quitMenuPageLoaded )
+ // in a network game, how far ahead the room can play without waiting on anybody, out of the
+ // input delay it is running with, and the frame rate the slowest machine has set for everyone:
+ // ready falling to 0 is the stall, seen before it is felt
+ if( TheNetwork != NULL )
{
- m_quitMenuPageLoaded = TRUE;
- readHtmlPage( QUIT_MENU_PAGE, m_quitMenuPage );
+ UnicodeString netText;
+ netText.format( u" ready %d/%d room %dfps", (Int)TheNetwork->getFramesReady(),
+ (Int)TheNetwork->getRunAhead(), (Int)TheNetwork->getFrameRate() );
+ text.concat( netText );
}
- if( m_quitMenuPage.empty() )
- return;
- // with window animation off the menu is simply there, every key already in
- m_quitMenuShownMs = TheGlobalData->m_animateWindows ? QUIT_MENU_NOT_DRAWN : QUIT_MENU_WHOLE_MS;
- m_quitMenuClosingMs = QUIT_MENU_NOT_CLOSING;
- parent->winSetDrawFunc( drawQuitMenu );
- for( Int key = 0; key < (Int)ARRAY_SIZE( QUIT_MENU_KEYS ); key++ )
+ // the lobby's unit limit, as this player's own share and not the match total: what stands and
+ // what is queued, against the number the production queue refuses at
+ const UnsignedInt unitCap = TheGameLogic->getUnitCap();
+ const Player *localPlayer = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
+ if( unitCap > 0 && localPlayer && !localPlayer->isPlayerObserver() )
{
- GameWindow *button = quitMenuWindow( parent, QUIT_MENU_KEYS[ key ] );
- if( button )
- button->winSetDrawFunc( drawNothing );
+ UnicodeString units;
+ units.format( u" %d/%d units", localPlayer->countUnitsTowardCap(), unitCap );
+ text.concat( units );
}
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The Esc menu laid out compact every frame it draws, before its keys draw: the logo stood down,
- * the keys the layout shows stacked in a well a plate's margin in from the edge, the plate only as
- * big as that and in the middle of the screen. `well` gets the well, in screen pixels. */
-//-------------------------------------------------------------------------------------------------
-static void layoutQuitMenu( GameWindow *parent, IRegion2D &well )
-{
- const Real scale = ControlBarUniformScale();
- const Int keyWidth = REAL_TO_INT( QUIT_MENU_KEY_WIDTH * scale );
- const Int keyHeight = REAL_TO_INT( QUIT_MENU_KEY_HEIGHT * scale );
- const Int gap = REAL_TO_INT( QUIT_MENU_KEY_GAP * scale );
- const Int margin = REAL_TO_INT( QUIT_MENU_MARGIN * scale );
- for( Int logo = 0; logo < (Int)ARRAY_SIZE( QUIT_MENU_LOGOS ); logo++ )
+ if( m_hudDisplayString == NULL )
{
- GameWindow *window = quitMenuWindow( parent, QUIT_MENU_LOGOS[ logo ] );
- if( window && !window->winIsHidden() )
- window->winHide( TRUE );
+ // bold at a small point size, because this plate is read at a glance rather than read
+ m_hudDisplayString = TheDisplayStringManager->newDisplayString();
+ m_hudDisplayString->setFont( TheFontLibrary->getFont( m_superweaponNormalFont,
+ TheGlobalLanguageData->adjustFontSize( HUD_CLOCK_POINT_SIZE ),
+ TRUE ) );
}
+ m_hudDisplayString->setText( text );
- std::vector< GameWindow * > shown;
- for( Int key = 0; key < (Int)ARRAY_SIZE( QUIT_MENU_KEYS ); key++ )
- {
- GameWindow *button = quitMenuWindow( parent, QUIT_MENU_KEYS[ key ] );
- if( button && !button->winIsHidden() )
- shown.push_back( button );
- }
+ Int textWidth = 0, textHeight = 0;
+ m_hudDisplayString->getSize( &textWidth, &textHeight );
- const Int keysHeight = (Int)shown.size() * ( keyHeight + gap ) - gap;
- const Int width = keyWidth + 4 * margin;
- const Int height = keysHeight + 4 * margin;
- const Int parentX = ( TheDisplay->getWidth() - width ) / 2;
- const Int parentY = ( TheDisplay->getHeight() - height ) / 2;
- parent->winSetPosition( parentX, parentY );
- parent->winSetSize( width, height );
- for( size_t key = 0; key < shown.size(); key++ )
- {
- shown[ key ]->winSetPosition( 2 * margin, 2 * margin + (Int)key * ( keyHeight + gap ) );
- shown[ key ]->winSetSize( keyWidth, keyHeight );
- }
+ // top right, clear of the radar and the superweapon timers, and first in that corner: the peace
+ // time clock is drawn across the top middle of the screen and takes no room here.
+ //
+ // The three gaps are 800x600 numbers put through the command bar's own scale, like everything
+ // else on this overlay. Held at a flat pixel count the plate crept into the corner as the
+ // screen grew: the lettering inside it scales and the margin around it did not, so a 1440-tall
+ // shot and a 1080-tall one did not overlay however the text was sized.
+ const Int pad = stripPixels( 2 );
+ const UIRect box = TheUIRect();
+ Int x = box.x + box.w - textWidth - pad - stripPixels( 4 );
+ Int y = box.y + stripPixels( 2 );
+
+ // a plate behind it, so it stays legible over bright terrain
+ TheDisplay->drawFillRect( x - pad, y - 1, textWidth + pad*2, textHeight + 2,
+ GameMakeColor( 0, 0, 0, 140 ) );
- well.lo.x = parentX + margin;
- well.lo.y = parentY + margin;
- well.hi.x = parentX + width - margin;
- well.hi.y = parentY + height - margin;
+ m_hudDisplayString->draw( x, y, GameMakeColor( 235, 235, 235, 255 ), GameMakeColor( 0, 0, 0, 255 ) );
}
//-------------------------------------------------------------------------------------------------
-/** The Esc menu from Window/Html/QuitMenu.html, drawn as the menu's plate: every key where its
- * button stands, with the button's own label, so the restart key reads Surrender or Restart Mission
- * as the menu relabelled it, and its state. */
-//-------------------------------------------------------------------------------------------------
-void InGameUI::drawQuitMenuPage( GameWindow *parent )
-{
- if( m_quitMenuOverlay == NULL )
- m_quitMenuOverlay = new HtmlOverlay( m_superweaponNormalFont );
-
- IRegion2D well;
- layoutQuitMenu( parent, well );
-
- HtmlValues values;
- HtmlLists lists;
- values[ "side" ] = spectatorSide();
- IRegion2D screen;
- screen.lo.x = screen.lo.y = 0;
- screen.hi.x = TheDisplay->getWidth();
- screen.hi.y = TheDisplay->getHeight();
- putPageRect( values, "screen", screen, TRUE );
- IRegion2D panel;
- putPageRect( values, "panel", panel, controlBarWindowRect( parent, panel ) );
- putPageRect( values, "well", well, TRUE );
-
- // the coming up starts on the menu's first picture and moves on with the wall clock, but never
- // by more than QUIT_MENU_MOST_MS_A_PICTURE a picture
- // The going is the page fading out over QUIT_MENU_FADE_MS from wherever the coming up had got
- // to, and the menu hidden at the end of it
- const UnsignedInt now = Clock_Milliseconds();
- const Int step = min( (Int)( now - m_quitMenuDrawnAt ), QUIT_MENU_MOST_MS_A_PICTURE );
- if( m_quitMenuClosingMs != QUIT_MENU_NOT_CLOSING )
- m_quitMenuClosingMs += step;
- else if( m_quitMenuShownMs == QUIT_MENU_NOT_DRAWN )
- m_quitMenuShownMs = 0;
- else
- m_quitMenuShownMs += step;
- m_quitMenuDrawnAt = now;
- if( m_quitMenuClosingMs >= QUIT_MENU_FADE_MS )
- {
- m_quitMenuClosingMs = QUIT_MENU_NOT_CLOSING;
- parent->winHide( TRUE );
- return;
- }
- const Int openMs = max( 0, m_quitMenuShownMs );
- Int pageAlpha = min( 255, openMs * 255 / QUIT_MENU_FADE_MS );
- if( m_quitMenuClosingMs != QUIT_MENU_NOT_CLOSING )
- pageAlpha = pageAlpha * ( QUIT_MENU_FADE_MS - m_quitMenuClosingMs ) / QUIT_MENU_FADE_MS;
-
- // a key still fading in is drawn alone on the same page with the rest of it bare, the page having
- // no opacity of its own for one element; the keys already whole are on the menu's page
- struct FadingKey { HtmlValues entry; Int alpha; };
- std::vector< FadingKey > fading;
- std::vector< HtmlValues > &keys = lists[ "keys" ];
- Int shown = 0;
- for( Int key = 0; key < (Int)ARRAY_SIZE( QUIT_MENU_KEYS ); key++ )
- {
- GameWindow *button = quitMenuWindow( parent, QUIT_MENU_KEYS[ key ] );
- IRegion2D rect;
- if( !controlBarWindowRect( button, rect ) )
- continue;
-
- const Int keyMs = openMs - QUIT_MENU_KEY_FIRST_MS - shown * QUIT_MENU_KEY_STEP_MS;
- shown++;
- if( keyMs < 0 )
- continue;
-
- HtmlValues entry;
- putPageRect( entry, "key", rect, TRUE );
- entry[ "state" ] = keyMs < QUIT_MENU_KEY_FLASH_MS ? "flash" : controlBarWindowState( button );
- entry[ "label" ] = WideCharStringToMultiByte( button->winGetInstanceData()->getText().str() );
- if( keyMs < QUIT_MENU_KEY_FADE_MS )
- {
- FadingKey fade;
- fade.entry = entry;
- fade.alpha = keyMs * pageAlpha / QUIT_MENU_KEY_FADE_MS;
- fading.push_back( fade );
- }
- else
- keys.push_back( entry );
- }
-
- m_quitMenuOverlay->setPage( m_quitMenuPage, values, lists, lookupGameText );
- m_quitMenuOverlay->setAlpha( pageAlpha );
- m_quitMenuOverlay->draw();
-
- values[ "frame" ] = "bare";
- for( size_t each = 0; each < fading.size(); each++ )
- {
- if( m_quitMenuKeyOverlays.size() <= each )
- m_quitMenuKeyOverlays.push_back( new HtmlOverlay( m_superweaponNormalFont ) );
- keys.assign( 1, fading[ each ].entry );
- m_quitMenuKeyOverlays[ each ]->setPage( m_quitMenuPage, values, lists, lookupGameText );
- m_quitMenuKeyOverlays[ each ]->setAlpha( fading[ each ].alpha );
- m_quitMenuKeyOverlays[ each ]->draw();
- }
+/** Where an item goes in the list: the soonest to finish first, ties keeping the order they were
+ * met in so a base of identical barracks does not shuffle frame to frame. */
+//-------------------------------------------------------------------------------------------------
+static Int productionListPlace( const InGameUI::ProductionListSlot *slots, Int count, Int remaining )
+{
+ Int at = count;
+ while( at > 0 && slots[ at - 1 ].remaining > remaining )
+ at--;
+ return at;
}
//-------------------------------------------------------------------------------------------------
-/** Lay out and draw one run of cells, its left edge at left and the first cameo's top edge at
- * bottomY.
+/** Append everything this object has queued, units and upgrades alike, into a list kept sorted by
+ * how long each item still has to wait - soonest first. Everything is counted in *total; only
+ * the PRODUCTION_LIST_LINES items that finish first get a line, whatever order they were met in.
*
- * Playing, the run is rows of QUEUE_TRAY_COLUMNS growing upward out of the corner, the next row over
- * the last. The soonest thing to arrive is the bottom left cell - the one nearest the command bar
- * and nearest the eye. PRODUCTION_STRIP_ROW_MAX cells, and whatever is left over closes the run
- * as one more wearing a "+N". */
+ * The wait is cumulative down a producer's queue: an entry only starts once everything ahead of
+ * it has popped, so its remaining time is the time left on the entry in front plus its own build
+ * time. Only the head of a queue carries progress, so this is what separates "arrives next" from
+ * "arrives eventually" across a whole base's worth of buildings. A quantity modifier (the China
+ * barracks' Red Guard pairs) does not multiply the wait - the entry overbuilds in place and all
+ * of its units pop in the same handful of frames. */
//-------------------------------------------------------------------------------------------------
-void InGameUI::drawProductionStripColumn( Int left, Int bottomY )
+static void appendProducerQueue( Object *obj, InGameUI::ProductionListSlot *slots, Int *count, Int *total )
{
- const Int count = m_productionStripCount;
- if( count < 1 )
+ ProductionUpdateInterface *pu = obj->getProductionUpdateInterface();
+ if( pu == NULL )
return;
- //
- // Every cameo stands in its own tray - the one the general's powers stand in, in the bottom
- // corner, and this side's own copy of it, read straight off that bar. Every measurement comes
- // off that bar too, at the size the loader gave it: a tray here is the size of a tray there at
- // any resolution, and it is never squeezed to fit anything - squeezed, its rail and its inner
- // frame collapse into a coloured smudge and none of it reads as that bar any more.
- //
- // A cell steps a whole tray whichever way the strip runs, so no cameo has the tray beside it or
- // above it lying over its edge.
- //
- ICoord2D traySize, cameoSize, trayHole;
- Int trayStep = 0;
- stripTrayMetrics( &traySize, &cameoSize, &trayHole, &trayStep );
-
- const Int trayW = traySize.x;
- const Int trayH = traySize.y;
- // under the bar's page the cameos stand in Queue.html's cells instead, in a row: `left` and
- // `bottomY` are then the first cameo's own corner
- const Int cameoW = m_productionStripThemed ? m_productionStripCameoW : cameoSize.x;
- const Int cameoH = m_productionStripThemed ? m_productionStripCameoH : cameoSize.y;
- // the tray is drawn mirrored, so its hole is mirrored with it: what that bar measures in from
- // the left is the same distance in from the right here
- const Int trayInsetX = trayW - trayHole.x - cameoW;
- const Int trayInsetY = trayHole.y;
- const Int trayX = left;
- const Int x = m_productionStripThemed ? left : left + trayInsetX; ///< where the first cameo starts
-
- //
- // The cells run in rows of QUEUE_TRAY_COLUMNS, the next row over the last: in the page's cells,
- // or without the page in trays each stepping a whole tray so no cameo has a neighbouring tray
- // lying over its edge. Cell n stands `n % columns` steps right and `n / columns` up.
- //
- const Int columns = QUEUE_TRAY_COLUMNS;
- const Int cellStepX = m_productionStripThemed ? m_productionStripStep : trayW;
- const Int cellStepY = m_productionStripThemed ? m_productionStripCameoH + m_productionStripStep - m_productionStripCameoW : trayH;
-
- const Image *tray = productionStripTray();
-
- //
- // what the "+N" stands for is everything the column does not already show - and a cameo wearing
- // an "x5" shows five of them, so the run counts as five here or the same items are reported twice
- //
- Int shown = 0;
- for( Int shownSlot = 0; shownSlot < count; shownSlot++ )
- shown += m_productionStrip[ shownSlot ].quantity;
-
- const Int hidden = m_productionStripTotal - shown;
- const Int cells = count + ( hidden > 0 ? 1 : 0 );
-
- //
- // The trays go down first, all of them, and from the far end back: the near one carries the item
- // that arrives next, so it is the one drawn last and the one whose frame is whole.
- //
- // Without the art - a mod that ships no shortcut bar - a slot keeps the flat plate it used to
- // have rather than losing its backing.
- //
- for( Int back = cells - 1; back >= 0 && !m_productionStripThemed; back-- )
- {
- const Int backX = trayX + back % columns * cellStepX;
- const Int backY = bottomY - back / columns * cellStepY - trayInsetY;
- if( tray )
- TheDisplay->drawImage( tray, backX, backY, backX + trayW, backY + trayH );
- else
- TheDisplay->drawFillRect( backX, backY, trayW, trayH, GameMakeColor( 0, 0, 0, 130 ) );
- }
-
- //
- // What every cameo in the column is to be drawn with, worked out before any of it is drawn. The
- // column then goes down a piece at a time - every picture, then every scrim, then every border -
- // rather than a cameo at a time, because a run of pieces that ask the renderer for the same
- // thing is one draw call and the same pieces shuffled together are one draw call each. The
- // cameos do not overlap, so what lands on the screen is exactly what always did.
- //
- struct StripSlotDraw
- {
- Int x; ///< left edge of this cameo
- Int y; ///< top edge of this cameo
- const Image *cameo; ///< its picture, NULL when the template carries none
- Int percent; ///< how much of the scrim has been swept off, -1 for no scrim
- Int seconds; ///< the countdown written across it, -1 for none
- Int quantity; ///< how many of the same item it stands for, 1 for a lone one
- Color border;
- Bool cancelHover; ///< the cursor is on it with ctrl held: this is the one a click cancels
- };
- StripSlotDraw slots[ PRODUCTION_STRIP_ROW_MAX ];
+ Player *owner = obj->getControllingPlayer();
+ Int ahead = 0; ///< frames the queue in front of the current entry still needs
+ Int runAt = -1; ///< where this producer's last item went, so a run of the same thing folds into it
- for( Int i = 0; i < count; i++ )
+ for( const ProductionEntry *p = pu->firstProduction(); p; p = pu->nextProduction( p ) )
{
- ProductionStripSlot *slot = &m_productionStrip[ i ];
- StripSlotDraw *draw = &slots[ i ];
-
- // the soonest is the near cell: the bottom of a column, the left hand end of a row
- const Int slotX = x + i % columns * cellStepX;
- const Int y = bottomY - i / columns * cellStepY;
- slot->pos.x = slotX;
- slot->pos.y = y;
-
- draw->x = slotX;
- draw->y = y;
- draw->percent = -1;
- draw->seconds = -1;
- draw->quantity = slot->quantity;
- draw->cancelHover = FALSE;
-
- Object *producer = TheGameLogic->findObjectByID( slot->producer );
- ProductionUpdateInterface *pu = producer ? producer->getProductionUpdateInterface() : NULL;
- const ProductionEntry *entry = slot->isStructure ? NULL : findStripEntry( pu, slot );
- draw->cameo = stripSlotCameo( producer, entry, slot );
+ Int typeKey = 0;
+ Bool isUpgrade = FALSE;
+ Int buildFrames = 0;
+ UnicodeString name;
- if( slot->isStructure && producer )
+ if( p->getProductionType() == PRODUCTION_UNIT && p->getProductionObject() )
{
- //
- // A building going up carries its own progress rather than a queue entry's: the same
- // sweep and the same countdown, read off the construction percentage on the object.
- //
- const Real done = producer->getConstructionPercent();
- draw->percent = REAL_TO_INT( done );
-
- const Int totalFrames =
- producer->getTemplate()->calcTimeToBuild( producer->getControllingPlayer() );
- if( totalFrames > 0 )
- {
- const Real left = totalFrames * ( 1.0f - done / 100.0f );
- draw->seconds = ControlBar_secondsFromFrames( left > 0.0f ? left : 0.0f );
- }
+ buildFrames = p->getProductionObject()->calcTimeToBuild( owner );
+ typeKey = (Int)p->getProductionObject()->getTemplateID();
+ name = p->getProductionObject()->getDisplayName();
}
- else if( entry )
+ else if( p->getProductionType() == PRODUCTION_UPGRADE && p->getProductionUpgrade() )
{
- //
- // The scrim starts covering the cameo and is swept off as the item is built, the same
- // way round as the command bar's own clock. Going the other way - filling up with black
- // as progress runs - meant a cameo that had just appeared was drawn clean, and
- // `drawRectClock` refuses to draw at all below one percent, so a fresh order and a
- // nearly finished one looked alike. Only the head of a building's queue has progress;
- // everything behind it is waiting and wears the full scrim.
- //
- const Bool building = ( pu->firstProduction() == entry );
- draw->percent = building ? REAL_TO_INT( entry->getPercentComplete() ) : 0;
+ isUpgrade = TRUE;
+ typeKey = (Int)p->getProductionUpgrade()->getUpgradeNameKey();
+ buildFrames = p->getProductionUpgrade()->calcTimeToBuild( owner );
+ name = TheGameText->fetch( p->getProductionUpgrade()->getDisplayNameLabel().str() );
+ }
+ else
+ continue;
- //
- // How long this one still has, written in the middle of it - but only for the item
- // actually being built. The ones behind it in the queue have no clock running: their
- // wait depends on everything in front of them, so a number there would be a guess.
- //
- if( building )
- {
- Player *player = producer->getControllingPlayer();
- Int totalFrames = 0;
- if( slot->isUpgrade )
- {
- if( entry->getProductionUpgrade() )
- totalFrames = entry->getProductionUpgrade()->calcTimeToBuild( player );
- }
- else if( entry->getProductionObject() )
- totalFrames = entry->getProductionObject()->calcTimeToBuild( player );
+ Int left = buildFrames - REAL_TO_INT( buildFrames * p->getPercentComplete() / 100.0f );
+ if( left < 0 )
+ left = 0; // an item that is overbuilding while it waits for a door
+ const Int remaining = ahead + left;
+ ahead = remaining;
- if( totalFrames > 0 )
- {
- const Real left = totalFrames * ( 1.0f - entry->getPercentComplete() / 100.0f );
- draw->seconds = ControlBar_secondsFromFrames( left > 0.0f ? left : 0.0f );
- }
- }
- }
+ // one item per queue entry, not per unit that entry will deliver: the China barracks' Red
+ // Guard pair is one order, paid for once and cancelled once
+ (*total)++;
- //
- // ctrl is the strip's cancel modifier, so while it is held the cameo under the cursor says
- // so: it goes red and wears a minus. Without it a ctrl-click is a guess about which cameo
- // the cursor is really on, and an accidental cancel costs the whole item.
- //
- // a building already standing on the map is not cancelled from here - it is sold or blown up,
- // and an ally's item is not yours to cancel, so it does not offer to
- if( !slot->isStructure && producer && producer->isLocallyControlled() &&
- TheKeyboard && TheKeyboard->isCtrl() && TheMouse )
+ // a run of the same thing queued back to back in one producer folds into the line the run
+ // started, which wears an "xN" and the time the next of them arrives
+ if( runAt >= 0 && runAt < *count && slots[ runAt ].typeKey == typeKey
+ && slots[ runAt ].isUpgrade == isUpgrade && slots[ runAt ].producer == obj->getID() )
{
- const MouseIO *io = TheMouse->getMouseStatus();
- draw->cancelHover = io && io->pos.x >= draw->x && io->pos.x < draw->x + cameoW &&
- io->pos.y >= draw->y && io->pos.y < draw->y + cameoH;
+ slots[ runAt ].quantity++;
+ continue;
}
- // same border colours the command bar puts on its build and upgrade buttons
- draw->border = GameMakeColor( 160, 160, 160, 160 );
- if( draw->cancelHover )
- draw->border = GameMakeColor( 255, 80, 80, 255 );
- else if( TheControlBar )
- draw->border = slot->isUpgrade ? TheControlBar->getUpgradeBorderColor()
- : TheControlBar->getBuildBorderColor();
- }
-
- // the pictures
- for( Int cameoSlot = 0; cameoSlot < count; cameoSlot++ )
- {
- const StripSlotDraw *draw = &slots[ cameoSlot ];
- if( draw->cameo )
- TheDisplay->drawImage( draw->cameo, draw->x, draw->y,
- draw->x + cameoW, draw->y + cameoH );
- }
-
- // the sweeps over them
- for( Int clockSlot = 0; clockSlot < count; clockSlot++ )
- {
- const StripSlotDraw *draw = &slots[ clockSlot ];
- if( draw->percent >= 0 )
- TheDisplay->drawRemainingRectClock( draw->x, draw->y, cameoW, cameoH,
- draw->percent, GameMakeColor( 0, 0, 0, 100 ) );
- }
-
- // the countdowns written on them
- for( Int secondsSlot = 0; secondsSlot < count; secondsSlot++ )
- {
- const StripSlotDraw *draw = &slots[ secondsSlot ];
- if( draw->seconds >= 0 )
- drawStripSeconds( secondsSlot,
- draw->x, draw->y, cameoW, cameoH, draw->seconds );
- }
+ const Int at = productionListPlace( slots, *count, remaining );
- // how many of the same thing each one stands for, in the corner the countdown leaves free
- for( Int quantitySlot = 0; quantitySlot < count; quantitySlot++ )
- {
- const StripSlotDraw *draw = &slots[ quantitySlot ];
- if( draw->quantity > 1 )
- drawStripQuantity( quantitySlot,
- draw->x, draw->y, cameoW, cameoH, draw->quantity );
- }
+ // something else has come between: whatever this producer queues next starts a new run
+ runAt = -1;
- // and the borders round them; the themed row's frames are Queue.html's
- for( Int borderSlot = 0; borderSlot < count && !m_productionStripThemed; borderSlot++ )
- {
- const StripSlotDraw *draw = &slots[ borderSlot ];
- TheDisplay->drawOpenRect( draw->x, draw->y, cameoW, cameoH, 1.0f, draw->border );
- }
+ if( at >= InGameUI::PRODUCTION_LIST_LINES )
+ continue; // everything already kept finishes sooner: counted, but not drawn
- for( Int hoverSlot = 0; hoverSlot < count; hoverSlot++ )
- {
- const StripSlotDraw *draw = &slots[ hoverSlot ];
- if( draw->cancelHover )
- {
- const Int barInset = cameoW / 4;
- const Int barHeight = stripPixels( 4 );
-
- TheDisplay->drawFillRect( draw->x, draw->y, cameoW, cameoH,
- GameMakeColor( 190, 0, 0, 120 ) );
- TheDisplay->drawFillRect( draw->x + barInset, draw->y + ( cameoH - barHeight ) / 2,
- cameoW - 2 * barInset, barHeight,
- GameMakeColor( 255, 255, 255, 255 ) );
- }
- }
+ if( *count < InGameUI::PRODUCTION_LIST_LINES )
+ (*count)++;
- //
- // whatever did not fit closes the run with a "+N" at its far end - the top of a column, the
- // right hand end of a row, which is the end each is read towards. It is not clickable -
- // there is no one item behind it, and what it stands for is already reachable by selecting the
- // building.
- //
- if( hidden > 0 )
- {
- const Int moreX = x + count % columns * cellStepX;
- const Int moreY = bottomY - count / columns * cellStepY;
- const IRegion2D cell = { { moreX, moreY }, { moreX + cameoW, moreY + cameoH } };
+ for( Int j = *count - 1; j > at; j-- )
+ slots[ j ] = slots[ j - 1 ];
- UnicodeString text;
- text.format( u"+%d", hidden );
+ runAt = at;
- // the column's own "+N" - see m_stripSecondsString
- DisplayString *overflow = fitStripString( m_productionStripOverflow[ STRIP_OVERFLOW_PRODUCTION ], text,
- HUD_OVERLAY_POINT_SIZE, cell );
- HudReadout_draw( overflow, cell, HUD_READOUT_CENTRE, GameMakeColor( 235, 235, 235, 255 ) );
+ InGameUI::ProductionListSlot *slot = &slots[ at ];
+ slot->producer = obj->getID();
+ slot->typeKey = typeKey;
+ slot->isUpgrade = isUpgrade;
+ slot->remaining = remaining;
+ slot->quantity = 1;
+ slot->name = name;
}
}
//-------------------------------------------------------------------------------------------------
-/** Playing under the bar's page, the strip is a tray in the page's steel, Window/Html/Queue.html,
- * standing on the console's top edge over the selection's well, its first cell at the well's left
- * edge: rows of QUEUE_TRAY_COLUMNS growing right, the next row over the last. Each cell is a
- * power's size, the soonest first, the "+N" in a cell of its own at the end, and the page's frames
- * are drawn again over the cameos' edges the way the command grid's are. */
+/** A building going up on the map, for the same list the queues go in. What a dozer or a worker is
+ * putting up is nowhere in a queue, it is an object on the ground with a construction percentage on
+ * it, sorted in among the queued items on the one thing they share - how long it still has. */
//-------------------------------------------------------------------------------------------------
-void InGameUI::drawQueueTray( void )
+static void appendStructureUnderConstruction( Object *obj, InGameUI::ProductionListSlot *slots, Int *count, Int *total )
{
- const Real scale = ControlBarHudScale();
- const ICoord2D cell = cellSize();
- const Int gap = REAL_TO_INT( SKILL_CELL_GAP * scale );
- const Int trayBorder = REAL_TO_INT( QUEUE_TRAY_BORDER * scale );
-
- // a cameo wearing an "x5" stands for five, and the "+N" is what none of them shows
- Int shown = 0;
- for( Int slot = 0; slot < m_productionStripCount; slot++ )
- shown += m_productionStrip[ slot ].quantity;
- const Int cells = m_productionStripCount + ( m_productionStripTotal > shown ? 1 : 0 );
- const Int columns = min( cells, (Int)QUEUE_TRAY_COLUMNS );
- const Int fullRows = cells / QUEUE_TRAY_COLUMNS;
- const Int lastRow = cells % QUEUE_TRAY_COLUMNS;
-
- m_productionStripCameoW = cell.x;
- m_productionStripCameoH = cell.y;
- m_productionStripStep = cell.x + gap;
- const Int rowStep = cell.y + gap;
-
- // the tray stands on the console's top line with nothing between, its left edge the selection
- // well's: the full rows in one plate, and a shorter last row on top of it only as wide as its own
- // cells, the two one stepped plate as the powers' columns are
- IRegion2D cellsBox;
- cellsBox.lo.x = m_queueCorner.x + trayBorder;
- cellsBox.hi.y = m_queueCorner.y - trayBorder;
- cellsBox.lo.y = cellsBox.hi.y - ( fullRows > 0 ? fullRows : 1 ) * rowStep + gap;
- cellsBox.hi.x = cellsBox.lo.x + columns * m_productionStripStep - gap;
-
- HtmlValues values;
- HtmlLists lists;
- values[ "side" ] = spectatorSide();
- values[ "line" ] = std::to_string( QUEUE_TRAY_LINE );
- values[ "well" ] = std::to_string( QUEUE_TRAY_WELL );
- std::vector< HtmlValues > &trays = lists[ "trays" ];
- IRegion2D tray = cellsBox;
- tray.lo.x -= trayBorder;
- tray.lo.y -= trayBorder;
- tray.hi.x += trayBorder;
- tray.hi.y += trayBorder + 1; // over the console's light top line, so the two plates are one
- trays.resize( 1 );
- putFrame( trays[ 0 ], "tray", cellsBox, tray, TRUE );
- trays[ 0 ][ "tray.step" ] = "standing";
- if( fullRows > 0 && lastRow > 0 )
- {
- IRegion2D rise = cellsBox;
- rise.hi.y = cellsBox.lo.y - gap;
- rise.lo.y = rise.hi.y - cell.y;
- rise.hi.x = rise.lo.x + lastRow * m_productionStripStep - gap;
- IRegion2D riseTray = rise;
- riseTray.lo.x -= trayBorder;
- riseTray.lo.y -= trayBorder;
- riseTray.hi.x += trayBorder;
- riseTray.hi.y = cellsBox.lo.y;
- trays.resize( 2 );
- putFrame( trays[ 1 ], "tray", rise, riseTray, TRUE );
- trays[ 1 ][ "tray.step" ] = "rise";
- }
- std::vector< HtmlValues > &cellList = lists[ "cells" ];
- for( Int each = 0; each < cells; each++ )
- {
- IRegion2D place;
- place.lo.x = cellsBox.lo.x + each % QUEUE_TRAY_COLUMNS * m_productionStripStep;
- place.hi.y = cellsBox.hi.y - each / QUEUE_TRAY_COLUMNS * rowStep;
- place.hi.x = place.lo.x + cell.x;
- place.lo.y = place.hi.y - cell.y;
- HtmlValues entry;
- putCell( entry, place, pageRing( gap, scale ), scale );
- cellList.push_back( entry );
- }
+ // a rebuild hole wears the same status while it puts a GLA structure back up
+ if( !obj->testStatus( OBJECT_STATUS_UNDER_CONSTRUCTION ) || obj->isKindOf( KINDOF_REBUILD_HOLE ) )
+ return;
- if( m_queueOverlay == NULL )
- {
- m_queueOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_queueFrontOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_queueOverlay->setHud( TRUE );
- m_queueFrontOverlay->setHud( TRUE );
- }
- values[ "layer" ] = "back";
- m_queueOverlay->setPage( m_queuePage, values, lists, lookupGameText );
- m_queueOverlay->draw();
+ const Real percent = obj->getConstructionPercent();
+ const Int buildFrames = obj->getTemplate()->calcTimeToBuild( obj->getControllingPlayer() );
- TheDisplay->beginBatch2D();
- drawProductionStripColumn( cellsBox.lo.x, cellsBox.hi.y - cell.y );
- TheDisplay->endBatch2D();
+ Int remaining = REAL_TO_INT( buildFrames * ( 1.0f - percent / 100.0f ) );
+ if( remaining < 0 )
+ remaining = 0;
- values[ "layer" ] = "front";
- m_queueFrontOverlay->setPage( m_queuePage, values, lists, lookupGameText );
- m_queueFrontOverlay->draw();
-}
+ (*total)++;
-//-------------------------------------------------------------------------------------------------
-/** The superweapon strip: the cameos gathered this frame, top right, under the network box.
- *
- * Rows fill from the right, because the right hand end is where the strip is anchored and the
- * one countdown that matters is the next one to land - it is always in the same place, however
- * many are behind it. Six to a row and a row for every six: every superweapon has a cell of its
- * own, and nothing stands for the rest.
- *
- * The frames are the page's, Window/Html/Queue.html with the production queue's tray turned
- * round: the tray against the screen's right edge and under every cameo a box in the colour the
- * timer was registered with, whose weapon it is. The cameo stands in the box the frame's
- * thickness in from each side, so the frame is what is left of the box: one piece, the same on all
- * four sides at any HUD Size, with the tray's steel between two of them. A charged one's frame
- * breathes toward white while the wash over its picture breathes in the owner's colour. */
-//-------------------------------------------------------------------------------------------------
-static const UnsignedInt SUPERWEAPON_BREATH_MS = 2400; ///< a charged superweapon's breath, out and back in
-static const Int SUPERWEAPON_BREATH_STEPS = 12; ///< shades its frame takes on the way: each is a page laid out again
-static const Real SUPERWEAPON_BREATH_LIFT = 0.6f; ///< how far toward white the frame goes at the top of it
-static const Int SUPERWEAPON_CELL_FRAME = 2; ///< a cell's frame in its owner's colour, page pixels
-
-void InGameUI::drawSuperweaponStrip( void )
-{
- // a player gets the strip, top right; an observer or a replay does not - the spectator page
- // and the Tab scoreboard carry the countdowns for them
- if( m_superweaponIconCount < 1 || m_spectatorPageShown || localPlayerWatching() ||
- ( TheRecorder && TheRecorder->getMode() == RECORDERMODETYPE_PLAYBACK ) )
+ const Int at = productionListPlace( slots, *count, remaining );
+ if( at >= InGameUI::PRODUCTION_LIST_LINES )
return;
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return;
+ if( *count < InGameUI::PRODUCTION_LIST_LINES )
+ (*count)++;
- //
- // The strip is laid out in the screen's pixels, and its page with it: every length of the steel
- // is turned into a whole number of screen pixels here, once, and everything after is sums of
- // those. Laid out in the page's pixels, each edge was rounded onto the screen by itself, and at
- // HUD Size 130% a two pixel gap is 2.6: three screen pixels between the first two rows and two
- // between the next, the tray's rim a pixel up into the last row, its dark line one pixel wide
- // under a tray of six cells and two under a tray of one.
- //
- const Real scale = ControlBarHudScale();
- struct Whole
- {
- static Int of( Real length, Real scale )
- {
- const Int pixels = REAL_TO_INT_FLOOR( length * scale + 0.5f );
- return pixels > 1 ? pixels : 1;
- }
- };
- // a cameo is the size of a general's power's cell in the console, so a countdown up here reads
- // the way the powers' own do
- const ICoord2D cameo = cellSize();
- const Int cameoW = cameo.x;
- const Int cameoH = cameo.y;
-
- // the production queue's steel: the gap between two of its cells, which here is the steel between
- // two owners' frames, and its tray's border, which is the well and the line along its outer edge
- const Int gap = Whole::of( SKILL_CELL_GAP, scale );
- const Int line = Whole::of( QUEUE_TRAY_LINE, scale );
- const Int well = Whole::of( QUEUE_TRAY_WELL, scale );
- const Int trayBorder = well + line;
-
- // a cell is the cameo and its frame round it, and the cameo is drawn that far inside the cell's box
- const Int frame = Whole::of( SUPERWEAPON_CELL_FRAME, scale );
- const Int cellW = cameoW + 2 * frame;
- const Int cellH = cameoH + 2 * frame;
+ for( Int j = *count - 1; j > at; j-- )
+ slots[ j ] = slots[ j - 1 ];
- //
- // The corner readout owns the top right - the clock plate, or with the bar's page up the network
- // box, which is a page of its own - so the strip starts under whichever is up. A countdown
- // drawn behind the readout is one nobody can read. With neither up the tray stands in the
- // corner itself, against the screen's top edge as it is against the right.
- //
- Int cornerBottom = m_hudOverlayBottom;
- if( m_controlBarPageShown && m_netOverlay != NULL && TheGlobalData->m_showNetBox )
- {
- const Int netBottom = m_netOverlay->bottomOf( "#net" );
- if( netBottom > cornerBottom )
- cornerBottom = netBottom;
- }
- const Int top = cornerBottom > 0 ? cornerBottom + stripPixels( 3 ) : 0;
+ // each site is its own place on the map, so two of the same building stay two lines
+ InGameUI::ProductionListSlot *slot = &slots[ at ];
+ slot->producer = obj->getID();
+ slot->typeKey = 0;
+ slot->isUpgrade = FALSE;
+ slot->remaining = remaining;
+ slot->quantity = 1;
+ slot->name = obj->getTemplate()->getDisplayName();
+}
- //
- // one breath for the whole strip rather than one per icon, so every charged superweapon breathes
- // together instead of each on its own clock: nothing to full and back along a cosine, which
- // slows at both ends where a blink would snap. It runs off the wall clock. It is a picture,
- // and the match's frames are not its to read: it breathes the same paused or fast-forwarded.
- //
- const Real breath = (Real)( Clock_Milliseconds() % SUPERWEAPON_BREATH_MS ) / SUPERWEAPON_BREATH_MS;
- const Real pulse = 0.5f - 0.5f * (Real)cos( 2.0 * PI * breath );
+//-------------------------------------------------------------------------------------------------
+/** What one Player::iterateObjects sweep fills in. */
+//-------------------------------------------------------------------------------------------------
+struct ProductionListGather
+{
+ InGameUI::ProductionListSlot *slot;
+ Int *count;
+ Int *total;
+};
- //
- // The cells, from the screen's right edge leftwards and a row under a row, six to a row and as
- // many rows as there are cells for. Only the last row can be short, and the tray is only as wide
- // as each row's own cells: the full rows stand in one tray, and a short last row in a second one
- // hung under it as a step, whose top is where the full rows' cells end, so the steel between the
- // two is the gap between any two rows and the first tray's bottom rim runs on only past the step.
- //
- const Int shown = m_superweaponIconCount;
- const Int rows = ( shown + SUPERWEAPON_STRIP_COLS - 1 ) / SUPERWEAPON_STRIP_COLS;
- const Int lastColumns = shown - ( rows - 1 ) * SUPERWEAPON_STRIP_COLS;
- const Int fullRows = lastColumns < SUPERWEAPON_STRIP_COLS ? rows - 1 : rows;
- const Int stepX = cellW + gap;
- const Int stepY = cellH + gap;
-
- // the cells' box inside the tray's border
- const Int cellsRight = TheDisplay->getWidth() - trayBorder;
- const Int cellsTop = top + trayBorder;
- static const Real SCREEN_PIXELS = 1.0f; ///< the page's scale: a pixel of it is one of the screen's
-
- HtmlValues values;
- HtmlLists lists;
- values[ "side" ] = spectatorSide();
- values[ "mirrored" ] = "mirrored";
- values[ "layer" ] = "back";
- values[ "line" ] = std::to_string( line );
- values[ "well" ] = std::to_string( well );
-
- // a tray is its cells and the border round them; its bottom is its last row's cells' bottom and
- // the border, the same sum the cells are placed by
- struct Tray
- {
- static void put( std::vector< HtmlValues > &trays, const IRegion2D &cells, Int top, Int border, const char *step )
- {
- IRegion2D box;
- box.lo.x = cells.lo.x - border;
- box.lo.y = top;
- box.hi.x = cells.hi.x + border;
- box.hi.y = cells.hi.y + border;
- trays.push_back( HtmlValues() );
- putFrame( trays.back(), "tray", cells, box, TRUE, SCREEN_PIXELS );
- trays.back()[ "tray.step" ] = step;
- }
- };
- std::vector< HtmlValues > &trayList = lists[ "trays" ];
- if( fullRows > 0 )
- {
- IRegion2D cells;
- cells.lo.x = cellsRight - ( SUPERWEAPON_STRIP_COLS * stepX - gap );
- cells.lo.y = cellsTop;
- cells.hi.x = cellsRight;
- cells.hi.y = cellsTop + fullRows * stepY - gap;
- Tray::put( trayList, cells, top, trayBorder, "" );
- }
- if( fullRows < rows )
- {
- IRegion2D cells;
- cells.lo.x = cellsRight - ( lastColumns * stepX - gap );
- cells.lo.y = cellsTop + fullRows * stepY;
- cells.hi.x = cellsRight;
- cells.hi.y = cells.lo.y + cellH;
+/** What drawProductionList's last sweep was of. */
+static struct
+{
+ Bool valid;
+ UnsignedInt frame;
+ const Player *player;
+} s_listGather;
+
+//-------------------------------------------------------------------------------------------------
+/** Player::iterateObjects callback: everything one player has coming, queued in a factory or going
+ * up on the ground, sorted against each other in the one list. Nothing is counted twice: a
+ * building under construction produces nothing until it is finished. */
+//-------------------------------------------------------------------------------------------------
+static void gatherProductionList( Object *obj, void *userData )
+{
+ ProductionListGather *g = (ProductionListGather *)userData;
+ appendProducerQueue( obj, g->slot, g->count, g->total );
+ appendStructureUnderConstruction( obj, g->slot, g->count, g->total );
+}
- // a step starts where the rows over it end, so its well's top edge is the gap between two rows
- if( fullRows > 0 )
- Tray::put( trayList, cells, cells.lo.y - well, trayBorder, "step" );
- else
- Tray::put( trayList, cells, top, trayBorder, "" );
- }
+//-------------------------------------------------------------------------------------------------
+/** A frame drawn over a cell's edge, in screen pixels: one 800x600 pixel at the HUD's scale. */
+//-------------------------------------------------------------------------------------------------
+static Int hudReadoutFrame( void )
+{
+ const Int frame = REAL_TO_INT_FLOOR( ControlBarHudScale() + 0.5f );
+ return frame > 1 ? frame : 1;
+}
- //
- // A charged cell's box is its owner's colour lifted toward white, in whole steps so the page is
- // laid out a dozen times a breath and not every frame.
- //
- const Real lift = SUPERWEAPON_BREATH_LIFT * REAL_TO_INT( pulse * SUPERWEAPON_BREATH_STEPS + 0.5f ) / SUPERWEAPON_BREATH_STEPS;
-
- IRegion2D place[ SUPERWEAPON_STRIP_MAX ]; ///< where each cameo is drawn: its cell's box less the frame
- std::vector< HtmlValues > &ownedList = lists[ "owned" ];
- for( Int each = 0; each < shown; each++ )
- {
- HtmlValues entry;
- IRegion2D box;
- box.lo.x = cellsRight - ( each % SUPERWEAPON_STRIP_COLS ) * stepX - cellW;
- box.lo.y = cellsTop + ( each / SUPERWEAPON_STRIP_COLS ) * stepY;
- box.hi.x = box.lo.x + cellW;
- box.hi.y = box.lo.y + cellH;
- place[ each ].lo.x = box.lo.x + frame;
- place[ each ].lo.y = box.lo.y + frame;
- place[ each ].hi.x = box.hi.x - frame;
- place[ each ].hi.y = box.hi.y - frame;
+enum
+{
+ HUD_READOUT_PAD = 2 ///< the plate's margin each side of its text, screen pixels
+};
- UnsignedByte r, g, b, a;
- GameGetColorComponents( m_superweaponIcons[ each ].color, &r, &g, &b, &a );
- const Real lifted = m_superweaponIcons[ each ].ready ? lift : 0.0f;
- putPageRect( entry, "cell", box, TRUE, SCREEN_PIXELS );
- entry[ "cell.color" ] = cssColor( GameMakeColor( r + REAL_TO_INT( ( 255 - r ) * lifted ),
- g + REAL_TO_INT( ( 255 - g ) * lifted ),
- b + REAL_TO_INT( ( 255 - b ) * lifted ), 255 ) );
- ownedList.push_back( entry );
- }
+//-------------------------------------------------------------------------------------------------
+/** How wide a readout's text may be on `cell`: the cell less its frame and the plate's margins. */
+static Int readoutRoom( const IRegion2D &cell )
+{
+ return cell.hi.x - cell.lo.x - 2 * hudReadoutFrame() - 2 * HUD_READOUT_PAD;
+}
- if( !m_queuePageLoaded )
- {
- m_queuePageLoaded = TRUE;
- readHtmlPage( QUEUE_PAGE, m_queuePage );
- }
- if( m_superweaponOverlay == NULL )
- {
- m_superweaponOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_superweaponOverlay->setScreenPixels( TRUE );
- }
- m_superweaponOverlay->setPage( m_queuePage, values, lists, lookupGameText );
- m_superweaponOverlay->draw();
+//-------------------------------------------------------------------------------------------------
+/** Measured the way the plate is: by the string's drawn size. getWidth() adds up the letters'
+ * advances, which leaves out the last letter's overhang, so a "103s" that fitted by that sum had a
+ * plate one pixel wider than its room and stood on the first column of the frame. */
+Bool HudReadout_fits( DisplayString *text, const IRegion2D &cell )
+{
+ Int textWidth = 0;
+ text->getSize( &textWidth, NULL );
+ return textWidth <= readoutRoom( cell );
+}
- // a cameo has no frame drawn over its edge, so a readout's plate stands in its very corner: the
- // cell handed to the readout is the cameo's and the inset the readout takes off again
- const Int readoutInset = hudReadoutFrame();
+//-------------------------------------------------------------------------------------------------
+void HudReadout_draw( DisplayString *text, const IRegion2D &cell, HudReadoutCorner corner, Color textColor )
+{
+ Int textWidth = 0, textHeight = 0;
+ text->getSize( &textWidth, &textHeight );
+ if( textWidth <= 0 || textHeight <= 0 )
+ return;
- // drawn as a batch, for the reason drawProductionStrip() gives - see Display::beginBatch2D
- TheDisplay->beginBatch2D();
+ // text still too wide at the smallest size loses its end to the plate's edge: the plate is never
+ // wider than the cell inside its frame
+ const Int frame = hudReadoutFrame();
+ const Int plateWidth = min( textWidth, readoutRoom( cell ) ) + 2 * HUD_READOUT_PAD;
+ const Bool atLeft = corner == HUD_READOUT_TOP_LEFT || corner == HUD_READOUT_BOTTOM_LEFT;
+ const Bool atTop = corner == HUD_READOUT_TOP_LEFT || corner == HUD_READOUT_TOP_RIGHT;
- //
- // The strip goes down a piece at a time - every picture, then every sweep, then every number -
- // rather than an icon at a time, for the reason drawProductionStripRow() gives: pieces that
- // want the same thing of the renderer are one draw call when they follow each other and one
- // draw call each when they do not. The icons do not overlap, so nothing changes on screen.
- //
- for( Int cameoSlot = 0; cameoSlot < shown; cameoSlot++ )
+ Int left = atLeft ? cell.lo.x + frame : cell.hi.x - frame - plateWidth;
+ Int top = atTop ? cell.lo.y + frame : cell.hi.y - frame - textHeight;
+ if( corner == HUD_READOUT_CENTRE )
{
- const SuperweaponIconSlot *slot = &m_superweaponIcons[ cameoSlot ];
- const IRegion2D &cell = place[ cameoSlot ];
-
- if( slot->image )
- TheDisplay->drawImage( slot->image, cell.lo.x, cell.lo.y, cell.hi.x, cell.hi.y );
+ left = ( cell.lo.x + cell.hi.x - plateWidth ) / 2;
+ top = ( cell.lo.y + cell.hi.y - textHeight ) / 2;
}
- //
- // the same sweep the production cameos wear, and the same way round as the command bar's own
- // clock: the scrim covers what is still to be charged and is swept off as the charge runs
- //
- for( Int clockSlot = 0; clockSlot < shown; clockSlot++ )
- {
- const SuperweaponIconSlot *slot = &m_superweaponIcons[ clockSlot ];
- const IRegion2D &cell = place[ clockSlot ];
+ // solid, the colour of a cell's own hole: the text is read against the plate at every HUD Size,
+ // whatever picture is under it
+ TheDisplay->drawFillRect( left, top, plateWidth, textHeight, GameMakeColor( 2, 4, 5, 255 ) );
+ IRegion2D plate = { { left, top }, { left + plateWidth, top + textHeight } };
+ text->setClipRegion( &plate );
+ text->draw( left + HUD_READOUT_PAD, top, textColor, GameMakeColor( 0, 0, 0, 255 ) );
+}
- if( !slot->ready )
- TheDisplay->drawRemainingRectClock( cell.lo.x, cell.lo.y, cell.hi.x - cell.lo.x, cell.hi.y - cell.lo.y,
- slot->percent, GameMakeColor( 0, 0, 0, 130 ) );
- else
- {
- //
- // Charged: no number at all - zero seconds is not information - and the cameo itself
- // breathes in the owning player's colour instead. A ready superweapon is the one
- // thing on this strip that wants to be noticed rather than looked up, and a
- // translucent wash over the picture says whose it is in the same stroke.
- //
- UnsignedByte r, g, b, a;
- GameGetColorComponents( slot->color, &r, &g, &b, &a );
- const UnsignedByte washAlpha = (UnsignedByte)( 30.0f + 90.0f * pulse );
- TheDisplay->drawFillRect( cell.lo.x, cell.lo.y, cell.hi.x - cell.lo.x, cell.hi.y - cell.lo.y,
- GameMakeColor( r, g, b, washAlpha ) );
- }
- }
+static bool buildPlanComesFirst( const BuildPlanNumber& a, const BuildPlanNumber& b )
+{
+ if( a.builder != b.builder )
+ return a.builder < b.builder;
+ if( a.current != b.current )
+ return a.current != FALSE;
+ return a.plan < b.plan;
+}
- //
- // bare seconds, however many there are: this strip is read against the other countdowns on
- // the screen, and m:ss is a number you have to convert first
- //
- for( Int secondsSlot = 0; secondsSlot < shown; secondsSlot++ )
+void InGameUI_numberBuildPlans( std::vector<BuildPlanNumber>& plans )
+{
+ std::sort( plans.begin(), plans.end(), buildPlanComesFirst );
+
+ size_t first = 0;
+ while( first < plans.size() )
{
- const SuperweaponIconSlot *slot = &m_superweaponIcons[ secondsSlot ];
- const IRegion2D &cell = place[ secondsSlot ];
+ size_t end = first + 1;
+ while( end < plans.size() && plans[ end ].builder == plans[ first ].builder )
+ ++end;
- if( !slot->ready )
- drawStripSeconds( PRODUCTION_STRIP_ROW_MAX + secondsSlot,
- cell.lo.x - readoutInset, cell.lo.y - readoutInset,
- cell.hi.x - cell.lo.x + 2 * readoutInset, cell.hi.y - cell.lo.y + 2 * readoutInset,
- slot->seconds );
+ // a lone "1" says nothing, as on a unit's order markers
+ for( size_t i = first; i < end; ++i )
+ plans[ i ].step = end - first > 1 ? (Int)( i - first ) + 1 : 0;
+ first = end;
}
-
- TheDisplay->endBatch2D();
}
-#ifdef DEBUG_LOGGING
-extern Real TheStripGatherMS;
-extern Real TheStripDrawMS;
-
-static Real stripElapsedMS( const Int64 &from, const Int64 &to )
+//-------------------------------------------------------------------------------------------------
+/** The scoreboard key is EA's diplomacy key, and gives the diplomacy screen as EA's did. */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::openScoreboard( void )
{
- Int64 freq;
- freq = Clock_Ticks_Per_Second();
- if( freq == 0 )
- return 0.0f;
- return (Real)((double)( to - from ) * 1000.0 / (double)freq );
+ ToggleDiplomacy( FALSE );
}
-#endif
//-------------------------------------------------------------------------------------------------
-void InGameUI::drawProductionStrip( void )
+/** Everything the local player has coming, as lines of text down the left side over the control
+ * bar: every producer's queue and every building a dozer or a worker has going up, soonest to
+ * finish first, in the superweapon countdown's font and the player's colour. PRODUCTION_LIST_LINES
+ * of them, and one more saying how many did not fit. The sweep reads the logic, which only moves
+ * on a logic frame, so it is taken once a frame and the render passes between two frames draw what
+ * it found; a script can change a queue while time is frozen, so a frozen pass sweeps every time. */
+//-------------------------------------------------------------------------------------------------
+void InGameUI::drawProductionList( void )
{
-#ifdef DEBUG_LOGGING
- Int64 tGatherStart, tGatherEnd, tDrawEnd;
- tGatherStart = Clock_Ticks();
- tGatherEnd = tGatherStart;
- tDrawEnd = tGatherStart;
- TheStripGatherMS = 0.0f;
- TheStripDrawMS = 0.0f;
-#endif
-
- m_productionStripCount = 0;
- m_productionStripTotal = 0;
-
- // EA's HUD has no strip: the queue is read off the building's own command bar
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() || TheGlobalData->isClassicUI() )
- return;
-
- Player *player = ThePlayerList ? ThePlayerList->getLocalPlayer() : NULL;
- if( player == NULL )
+ if( !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
return;
- // watching, everybody's queue is on his row of the Tab scoreboard, not down the left edge
+ // a watcher has no queue of his own
+ Player *player = ThePlayerList->getLocalPlayer();
if( !player->isPlayerActive() )
return;
- //
- // A single selected producer leads the column rather than getting one of its own: what the
- // building you are looking at is making is the front of the strip, and the rest of the base
- // follows it. It goes in before the sweep over everything else, and the sweep skips it, so
- // nothing is drawn or counted twice.
- //
- // A mutual ally's building leads it the same way: click his War Factory and what it is turning
- // out stands ahead of your own queue, to read and nothing else. The cancel is refused twice
- // over for a cameo that is not yours, in handleProductionStripClick and again in the logic.
- // An enemy's or a neutral's never gets here, and a watcher left above.
- //
- ObjectID selected = INVALID_ID;
- Object *leader = NULL;
- if( getSelectCount() == 1 && !m_selectedDrawables.empty() )
- {
- Object *sel = m_selectedDrawables.front()->getObject();
- if( sel && ( sel->getControllingPlayer() == player ||
- isAllyOfLocalPlayer( sel->getControllingPlayer()->getPlayerIndex() ) ) )
- {
- selected = sel->getID();
- leader = sel;
- }
- }
-
- //
- // What the sweep finds is the logic's - queues, building sites, build times - and the logic only
- // changes inside a logic frame, each of which moves getFrame() on; the new match or loaded save
- // that starts it over comes through reset(). So within one frame, for the same player and the
- // same building leading, the sweep finds what it found last pass, and with five or six passes
- // drawn to a frame, walking every object the player owns for it each time was a share of its own.
- // Only the slots' places are the drawing's, and they go back to the sweep's zero.
- //
- // Except while time is frozen: GameLogic::update still runs the scripts on every frozen pass and
- // returns before the frame moves, so a cinematic can change a queue with the frame standing still.
- // The same test as the update's own freeze return.
const Bool timeFrozen = ( !TheGameEngine->isMultiplayerSession() && TheTacticalView->isTimeFrozen()
&& !TheTacticalView->isCameraMovementFinished() )
|| TheScriptEngine->isTimeFrozenDebug() || TheScriptEngine->isTimeFrozenScript();
const UnsignedInt frame = TheGameLogic->getFrame();
- if( !timeFrozen && s_stripGather.valid && s_stripGather.frame == frame && s_stripGather.player == player
- && s_stripGather.selected == selected )
- {
- m_productionStripCount = s_stripGather.count;
- m_productionStripTotal = s_stripGather.total;
- for( Int i = 0; i < m_productionStripCount; i++ )
- m_productionStrip[ i ].pos.x = m_productionStrip[ i ].pos.y = 0;
- }
- else
+ if( timeFrozen || !s_listGather.valid || s_listGather.frame != frame || s_listGather.player != player )
{
- if( leader )
- appendProducerQueue( leader, m_productionStrip, &m_productionStripCount, PRODUCTION_STRIP_ROW_MAX,
- &m_productionStripTotal, TRUE );
-
- //
- // One sweep, one column: the queues and the buildings going up are gathered into the same
- // cells and sorted against each other, so the strip is a single run of what the base has
- // coming. A dozer raising a war factory now sits in the queue where its finishing time puts
- // it instead of standing in a column of its own beside it.
- //
- ProductionStripGather gather;
- gather.slot = m_productionStrip;
- gather.count = &m_productionStripCount;
- gather.total = &m_productionStripTotal;
- gather.max = PRODUCTION_STRIP_ROW_MAX;
- gather.skip = selected;
- player->iterateObjects( gatherStripEverything, &gather );
-
- s_stripGather.valid = TRUE;
- s_stripGather.frame = frame;
- s_stripGather.player = player;
- s_stripGather.selected = selected;
- s_stripGather.count = m_productionStripCount;
- s_stripGather.total = m_productionStripTotal;
+ m_productionListCount = 0;
+ m_productionListTotal = 0;
+ ProductionListGather gather = { m_productionList, &m_productionListCount, &m_productionListTotal };
+ player->iterateObjects( gatherProductionList, &gather );
+ s_listGather.valid = TRUE;
+ s_listGather.frame = frame;
+ s_listGather.player = player;
}
-
-#ifdef DEBUG_LOGGING
- tGatherEnd = Clock_Ticks();
- TheStripGatherMS = stripElapsedMS( tGatherStart, tGatherEnd );
-#endif
-
- if( m_productionStripCount == 0 )
+ if( m_productionListCount == 0 )
return;
- //
- // sit on top of the control bar. If the bar is not up (it is hidden while the game is loading,
- // and in the observer views) fall back to the bottom of the screen.
- //
- const Int barTop = controlBarTop();
-
- //
- // A queue cameo is one cameo of the general's power bar, to the pixel: the row is built out of
- // that bar's own trays, so the pictures standing in them are the size of the pictures standing
- // in it.
- //
- ICoord2D traySize, cameoSize, trayHole;
- Int trayStep = 0;
- stripTrayMetrics( &traySize, &cameoSize, &trayHole, &trayStep );
-
- m_productionStripCameoW = cameoSize.x;
- m_productionStripCameoH = cameoSize.y;
-
- //
- // Playing, the queue stands on the corner just above the control bar in rows growing upward: the
- // next thing to arrive is the bottom left cell, always in the same place, and the rest of the
- // queue is stacked over it. Ten cells is the whole of it, two rows however deep the base's
- // queue goes. Cells step a whole tray, so none of them is clipped by its neighbour.
- //
- const Int trayBelow = traySize.y - trayHole.y;
- const Int lowerY = barTop - trayBelow - stripPixels( PRODUCTION_STRIP_LIFT );
-
- // playing under the bar's page, the one run is a row in the page's steel instead
- if( !m_queuePageLoaded )
- {
- m_queuePageLoaded = TRUE;
- readHtmlPage( QUEUE_PAGE, m_queuePage );
- }
- m_productionStripThemed = m_controlBarPageShown && !m_queuePage.empty();
- if( m_productionStripThemed )
- drawQueueTray();
- else
- {
- //
- // The strip is the busiest thing on the screen that is drawn a quad at a time, so it is drawn
- // as a batch: the column hands the display its pieces in an order that lets it gather the
- // ones asking for the same state into single draw calls. See Display::beginBatch2D.
- //
- TheDisplay->beginBatch2D();
- drawProductionStripColumn( 0, lowerY );
- TheDisplay->endBatch2D();
- }
-
-#ifdef DEBUG_LOGGING
- tDrawEnd = Clock_Ticks();
- TheStripDrawMS = stripElapsedMS( tGatherEnd, tDrawEnd );
-#endif
-}
-
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::handleProductionStripClick( const ICoord2D *mouse, Bool cancel )
-{
- if( mouse == NULL )
- return FALSE;
-
- // the command bar's own buttons and the strip drop-down lie over the world the same way the strip
- // does, so their clicks come here too
- if( handleControlBarPageClick( mouse, !cancel ) )
- return TRUE;
- if( handleSpectatorPageClick( mouse, !cancel ) )
- return TRUE;
-
- for( Int i = 0; i < m_productionStripCount; i++ )
+ // a line wearing an "x5" stands for five, and the last line counts what no line shows
+ Int shown = 0;
+ for( Int each = 0; each < m_productionListCount; each++ )
+ shown += m_productionList[ each ].quantity;
+ const Int hidden = m_productionListTotal - shown;
+ const Int lines = m_productionListCount + ( hidden > 0 ? 1 : 0 );
+
+ // left-aligned under the messages' column, the last line standing just clear of the control bar
+ GameFont *font = TheFontLibrary->getFont( m_superweaponNormalFont,
+ TheGlobalLanguageData->adjustFontSize( m_superweaponNormalPointSize ), m_superweaponNormalBold );
+ const Int x = m_messagePosition.x;
+ Int y = controlBarTop() - stripPixels( PRODUCTION_LIST_LIFT ) - lines * font->height;
+ const Color color = clientPlayerColor( player );
+ const Color drop = GameMakeColor( 0, 0, 0, 255 );
+ for( Int line = 0; line < lines; line++ )
{
- const ProductionStripSlot *slot = &m_productionStrip[ i ];
-
- if( mouse->x < slot->pos.x || mouse->x >= slot->pos.x + m_productionStripCameoW ||
- mouse->y < slot->pos.y || mouse->y >= slot->pos.y + m_productionStripCameoH )
- continue;
-
- Object *producer = TheGameLogic->findObjectByID( slot->producer );
- if( producer == NULL )
- return TRUE; // the building died under the cursor - the click is still ours
-
- if( cancel && !slot->isStructure && producer->isLocallyControlled() )
+ UnicodeString text;
+ if( line < m_productionListCount )
{
- //
- // the producer travels with the message: the strip cancels on buildings that are not
- // selected, so the logic cannot work out whose queue this is otherwise
- //
- GameMessage *msg = TheMessageStream->appendMessage( slot->isUpgrade
- ? GameMessage::MSG_CANCEL_UPGRADE
- : GameMessage::MSG_CANCEL_UNIT_CREATE );
- msg->appendIntegerArgument( slot->id );
- msg->appendObjectIDArgument( slot->producer );
+ const ProductionListSlot &slot = m_productionList[ line ];
+ const Int seconds = ControlBar_secondsFromFrames( (Real)slot.remaining );
+ if( slot.quantity > 1 )
+ text.format( u"%ls x%d: %d:%2.2d", slot.name.str(), slot.quantity, seconds / 60, seconds % 60 );
+ else
+ text.format( u"%ls: %d:%2.2d", slot.name.str(), seconds / 60, seconds % 60 );
}
else
+ text.format( TheGameText->fetch( "GUI:ListMore" ), hidden );
+
+ DisplayString *&string = m_productionListText[ line ];
+ if( string == NULL )
{
- TheTacticalView->lookAt( producer->getPosition() );
+ string = TheDisplayStringManager->newDisplayString();
+ string->setFont( font );
}
-
- return TRUE;
+ if( string->getText().compare( text ) != 0 )
+ string->setText( text );
+ string->draw( x, y, color, drop );
+ y += font->height;
}
-
- return FALSE;
}
void InGameUI::drawFloatingText( void )
@@ -16729,261 +10428,6 @@ void InGameUI::notifyResolutionChange( void )
RecreateQuitMenu();
}
-static const char *const TOOLTIP_PAGE = "Window\\Html\\Tooltip.html";
-
-enum
-{
- TOOLTIP_ANCHOR_GAP = 6, ///< page pixels between the build tooltip and the button it describes
- TOOLTIP_LABEL_LIMIT = 28, ///< a description line "Label: value" is a row when its label is no longer
- TOOLTIP_LAYOUT_PASSES = 2, ///< laid out again once when the box came out another size than it was placed by
-};
-
-//-------------------------------------------------------------------------------------------------
-/** A tooltip text as data-each="lines": {{kind}} "row" with {{label}} and {{value}} for a line that
- * reads "Label: value" - the string table's "Strong: infantry", "Energy Provided: 5" - and "text"
- * with {{text}} for any other. A run of blank lines is one entry of kind "gap", and none opens or
- * closes the list. */
-//-------------------------------------------------------------------------------------------------
-static void putTooltipLines( const UnicodeString &text, std::vector< HtmlValues > &lines )
-{
- const WideCharString whitespace = u" \t\r";
- const WideCharString whole = text.str();
- Bool gapOwed = FALSE;
- for( size_t start = 0; start <= whole.size(); )
- {
- size_t end = whole.find( u'\n', start );
- if( end == WideCharString::npos )
- end = whole.size();
- WideCharString line = whole.substr( start, end - start );
- start = end + 1;
-
- const size_t first = line.find_first_not_of( whitespace );
- if( first == WideCharString::npos )
- {
- gapOwed = !lines.empty();
- continue;
- }
- line = line.substr( first, line.find_last_not_of( whitespace ) - first + 1 );
-
- if( gapOwed )
- {
- HtmlValues gap;
- gap[ "kind" ] = "gap";
- lines.push_back( gap );
- gapOwed = FALSE;
- }
-
- HtmlValues entry;
- const size_t colon = line.find( u':' );
- const size_t valueStart = colon == WideCharString::npos ? colon : line.find_first_not_of( whitespace, colon + 1 );
- if( colon != WideCharString::npos && colon <= TOOLTIP_LABEL_LIMIT && valueStart != WideCharString::npos )
- {
- entry[ "kind" ] = "row";
- entry[ "label" ] = WideCharStringToMultiByte( line.substr( 0, colon ).c_str() );
- entry[ "value" ] = WideCharStringToMultiByte( line.substr( valueStart ).c_str() );
- }
- else
- {
- entry[ "kind" ] = "text";
- entry[ "text" ] = WideCharStringToMultiByte( line.c_str() );
- }
- lines.push_back( entry );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A button label as a name: the '&' that marks its hotkey letter taken out. */
-//-------------------------------------------------------------------------------------------------
-static std::string tooltipName( const UnicodeString &label )
-{
- WideCharString name = label.str();
- const size_t marker = name.find( u'&' );
- if( marker != WideCharString::npos )
- name.erase( marker, 1 );
- return WideCharStringToMultiByte( name.c_str() );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The build tooltip's values: {{name}}, {{cost}} with {{costkind}} "money" or "science" and
- * {{cost.shown}}, data-each="lines" out of the description, {{warning}} and {{requires}} each with
- * its .shown, the figures {{time}} {{health}} {{damage}} {{speed}} {{dps}} {{range}} with
- * {{stats.shown}}, {{health.shown}} and {{weapon.shown}}, and data-each="upgrades". */
-//-------------------------------------------------------------------------------------------------
-static void putBuildTooltipCard( const BuildTooltipCard &card, HtmlValues &values, HtmlLists &lists )
-{
- values[ "kind" ] = "card";
- values[ "name" ] = tooltipName( card.name );
- values[ "cost" ] = std::to_string( card.cost );
- values[ "costkind" ] = card.costsScience ? "science" : "money";
- values[ "cost.shown" ] = card.cost > 0 ? "shown" : "hidden";
- putTooltipLines( card.description, lists[ "lines" ] );
- values[ "warning" ] = WideCharStringToMultiByte( card.warning.str() );
- values[ "warning.shown" ] = card.warning.isEmpty() ? "hidden" : "shown";
- values[ "requires" ] = WideCharStringToMultiByte( card.requires.str() );
- values[ "requires.shown" ] = card.requires.isEmpty() ? "hidden" : "shown";
-
- UnicodeString seconds;
- seconds.format( TheGameText->fetch( "TOOLTIP:StatSeconds" ), card.buildSeconds );
- values[ "time" ] = WideCharStringToMultiByte( seconds.str() );
- values[ "health" ] = std::to_string( card.health );
- values[ "damage" ] = std::to_string( card.damage );
- values[ "range" ] = std::to_string( card.range );
- char speed[ 32 ];
- snprintf( speed, sizeof( speed ), "%.2f", card.attacksPerSecond );
- values[ "speed" ] = speed + WideCharStringToMultiByte( TheGameText->fetch( "TOOLTIP:StatPerSecond" ).str() );
- values[ "dps" ] = std::to_string( card.damagePerSecond );
- if( card.attacksPerSecond <= 0.0f ) // a bomb that kills its carrier goes off once
- values[ "speed" ] = values[ "dps" ] = "-";
- values[ "stats.shown" ] = card.hasStats ? "shown" : "hidden";
- values[ "health.shown" ] = card.hasStats && card.health > 0 ? "shown" : "hidden";
- values[ "weapon.shown" ] = card.hasStats && card.damage > 0 ? "shown" : "hidden";
-
- // a unit's card lists its upgrades; an upgrade's card lists the units it changes
- values[ "upgrades.shown" ] = card.upgrades.empty() ? "hidden" : "shown";
- values[ "upgradeskind" ] = card.hasStats ? "unit" : "upgrade";
- std::vector< HtmlValues > &upgrades = lists[ "upgrades" ];
- for( size_t each = 0; each < card.upgrades.size(); ++each )
- {
- const BuildTooltipUpgrade &upgrade = card.upgrades[ each ];
- HtmlValues head;
- head[ "kind" ] = "upgrade";
- head[ "name" ] = tooltipName( upgrade.name );
- head[ "owned" ] = upgrade.owned ? "owned" : "";
- upgrades.push_back( head );
- for( size_t change = 0; change < upgrade.changes.size(); ++change )
- {
- HtmlValues line;
- line[ "kind" ] = upgrade.changes[ change ].from.empty() ? "remark" : "change";
- line[ "owned" ] = head[ "owned" ];
- line[ "label" ] = WideCharStringToMultiByte( TheGameText->fetch( upgrade.changes[ change ].label ).str() );
- line[ "from" ] = upgrade.changes[ change ].from;
- line[ "to" ] = upgrade.changes[ change ].to;
- upgrades.push_back( line );
- }
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::isTooltipPageReady( void )
-{
- if( TheGameLogic == NULL || !TheGameLogic->isInGame() || TheGameLogic->isInShellGame() )
- return FALSE;
-
- if( !m_tooltipPageLoaded )
- {
- m_tooltipPageLoaded = TRUE;
- readHtmlPage( TOOLTIP_PAGE, m_tooltipPage );
- }
- return !m_tooltipPage.empty();
-}
-
-//-------------------------------------------------------------------------------------------------
-/** Both tooltips out of Window/Html/Tooltip.html, in the side's steel. The box is placed by the
- * size it came out last time; when this one comes out another size it is placed and laid out once
- * more, so a new tooltip is never drawn a frame in the wrong place. */
-//-------------------------------------------------------------------------------------------------
-Bool InGameUI::drawTooltipPage( const UnicodeString &cursorText, const RGBColor *accent )
-{
- if( !isTooltipPageReady() )
- return FALSE;
-
- const ICoord2D &mouse = TheMouse->getMouseStatus()->pos;
- const BuildTooltipCard *card = TheControlBar->getBuildTooltipCard();
-
- // the attack, hold position and move keys and the stance key after them are the page's own, with no
- // window behind them for the bar's tooltip to find, so their cards are made here and stand on the
- // console as a button's does. The stance key's card names the stance the selection is on
- static const char *const ORDER_KEY_LABELS[ ORDER_KEYS ] = { "GUI:OrderForceAttack", "GUI:OrderHoldPosition", "GUI:OrderMove",
- "GUI:OrderStanceDefensive" };
- BuildTooltipCard orderCard = BuildTooltipCard();
- if( m_controlBarPageShown && !areTooltipsDisabled() && !isQuitMenuVisible() )
- {
- for( Int key = 0; key < ORDER_KEYS; key++ )
- {
- const IRegion2D &cell = m_orderKeyCell[ key ];
- if( m_orderKeyPlace[ key ] < 0 || mouse.x < cell.lo.x || mouse.x >= cell.hi.x || mouse.y < cell.lo.y || mouse.y >= cell.hi.y )
- continue;
- AsciiString label = ( key == ORDER_KEYS - 1 && isSelectionAggressive() ) ? "GUI:OrderStanceAggressive" : ORDER_KEY_LABELS[ key ];
- orderCard.name = TheGameText->fetch( label );
- label.concat( "Description" );
- orderCard.description = TheGameText->fetch( label );
- orderCard.anchor = cell;
- card = &orderCard;
- }
- }
- if( card == NULL && cursorText.isEmpty() )
- return TRUE;
-
- if( m_tooltipOverlay == NULL )
- {
- m_tooltipOverlay = new HtmlOverlay( m_superweaponNormalFont );
- m_tooltipOverlay->setHudPage( TRUE );
- }
-
- HtmlValues values;
- HtmlLists lists;
- values[ "side" ] = spectatorSide();
- if( card )
- {
- putBuildTooltipCard( *card, values, lists );
- }
- else
- {
- // the first line names what is under the pointer, the rest are its owner and the like
- std::vector< HtmlValues > &lines = lists[ "lines" ];
- putTooltipLines( cursorText, lines );
- values[ "kind" ] = "tip";
- if( !lines.empty() )
- {
- values[ "title" ] = lines.front()[ "kind" ] == "text" ? lines.front()[ "text" ]
- : lines.front()[ "label" ] + ": " + lines.front()[ "value" ];
- lines.erase( lines.begin() );
- }
- values[ "accent" ] = accent ? cssColor( GameMakeColor( REAL_TO_INT( accent->red * 255.0f ), REAL_TO_INT( accent->green * 255.0f ),
- REAL_TO_INT( accent->blue * 255.0f ), 255 ) )
- : "transparent";
- }
-
- const Int screenWidth = TheDisplay->getWidth();
- const Int screenHeight = TheDisplay->getHeight();
- const Int gap = REAL_TO_INT( TOOLTIP_ANCHOR_GAP * ControlBarHudPageScale() );
- for( Int pass = 0; pass < TOOLTIP_LAYOUT_PASSES; pass++ )
- {
- IRegion2D box;
- if( card )
- {
- // over the button, centred on it, and under it when there is no room above; a button on
- // the console has its card standing on the console's top line, clear of the wells' headers,
- // as the production queue stands there
- box.lo.x = ( card->anchor.lo.x + card->anchor.hi.x - m_tooltipSize.x ) / 2;
- const Bool onConsole = m_controlBarPageShown && card->anchor.hi.y > m_consoleTop;
- box.lo.y = onConsole ? m_consoleTop - m_tooltipSize.y : card->anchor.lo.y - gap - m_tooltipSize.y;
- if( box.lo.y < 0 )
- box.lo.y = card->anchor.hi.y + gap;
- box.lo.x = max( 0, min( box.lo.x, screenWidth - m_tooltipSize.x ) );
- }
- else
- {
- Mouse::placeTooltip( mouse.x, mouse.y, m_tooltipSize.x, m_tooltipSize.y, 0, 0, screenWidth, screenHeight,
- &box.lo.x, &box.lo.y );
- }
- box.hi.x = box.lo.x + m_tooltipSize.x;
- box.hi.y = box.lo.y + m_tooltipSize.y;
- putPageRect( values, "box", box, TRUE, ControlBarHudPageScale() );
- m_tooltipOverlay->setPage( m_tooltipPage, values, lists, lookupGameText );
-
- std::vector< IRegion2D > laidOut;
- m_tooltipOverlay->rectsOf( "#box", laidOut );
- DEBUG_ASSERTCRASH( laidOut.size() == 1, ( "%s has %d #box elements, wants one\n", TOOLTIP_PAGE, (Int)laidOut.size() ) );
- const ICoord2D size = { laidOut.front().hi.x - laidOut.front().lo.x, laidOut.front().hi.y - laidOut.front().lo.y };
- if( size.x == m_tooltipSize.x && size.y == m_tooltipSize.y )
- break;
- m_tooltipSize = size;
- }
- m_tooltipOverlay->draw();
- return TRUE;
-}
-
void InGameUI::disableTooltipsUntil(UnsignedInt frameNum)
{
if (frameNum > m_tooltipsDisabledUntil)
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/Input/Mouse.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/Input/Mouse.cpp
index aae10519f..23e7ed417 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/Input/Mouse.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/Input/Mouse.cpp
@@ -543,7 +543,6 @@ Mouse::Mouse( void )
m_tooltipBackColor.green = 0;
m_tooltipBackColor.blue = 0;
m_tooltipBackColor.alpha = 255;
- m_tooltipHasAccent = FALSE;
} // end Mouse
@@ -878,10 +877,8 @@ void Mouse::setCursorTooltip( UnicodeString tooltip, Int delay, const RGBColor *
m_tooltipDisplayString->setText(tooltip);
//DEBUG_LOG(("Tooltip: %ls\n", tooltip.str()));
}
- m_tooltipHasAccent = color != NULL;
if (color)
{
- m_tooltipAccent = *color;
if (m_useTooltipAltTextColor)
{
if (m_adjustTooltipAltColor)
@@ -1045,15 +1042,7 @@ void Mouse::drawTooltip( void )
return;
}
- const Bool cursorTip = m_displayTooltip && TheDisplay && m_tooltipDisplayString && (m_tooltipDisplayString->getTextLength() > 0) && !m_isTooltipEmpty;
-
- // in a match the tooltip page draws both kinds, this one and the command bar's build tooltip;
- // TheInGameUI is not made yet while the first screens load
- const UnicodeString pageText = cursorTip ? m_tooltipDisplayString->getText() : UnicodeString::TheEmptyString;
- if( TheInGameUI && TheInGameUI->drawTooltipPage( pageText, m_tooltipHasAccent ? &m_tooltipAccent : NULL ) )
- return;
-
- if( cursorTip )
+ if( m_displayTooltip && TheDisplay && m_tooltipDisplayString && (m_tooltipDisplayString->getTextLength() > 0) && !m_isTooltipEmpty )
{
Int width, xPos;
Int height, yPos;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp
index e9955776d..0f9ae914f 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp
@@ -177,8 +177,8 @@ SignalKind Command_signalKindForMeta( GameMessage::Type meta )
static Bool isFormationDragArmed( void )
{
- // Classic's left drag is the selection box it always was
- if( TheGlobalData->isClassicUI() )
+ // the Classic mouse's left drag is the selection box it always was
+ if( TheGlobalData->isClassicMouse() )
return FALSE;
return Command_formationDragArmed( TheGlobalData->m_formationDrag,
@@ -981,14 +981,9 @@ GameMessage::Type CommandTranslator::issueMoveToLocationCommand( const Coord3D *
{
Bool forceAttackHere = isForceAttackTargeting() && isForceAttackable;
- // the guard key posts the selection where it is pointed. Under shift it joins the list as its
- // last order: clear this, then sit there. Classic's waypoint key is the game's own: Alt held
- // adds a point to the path instead of queueing an order
- if( TheGlobalData->isClassicUI() && TheInGameUI->isInWaypointMode() )
- {
- msgType = GameMessage::MSG_ADD_WAYPOINT;
- }
- else if( TheInGameUI->isGuardArmed() )
+ // the guard key posts the selection where it is pointed. Under the waypoint key it joins the
+ // list as its last order: clear this, then sit there
+ if( TheInGameUI->isGuardArmed() )
{
msgType = GameMessage::MSG_DO_GUARD_POSITION;
}
@@ -1021,9 +1016,7 @@ GameMessage::Type CommandTranslator::issueMoveToLocationCommand( const Coord3D *
if (msgType == GameMessage::MSG_DO_GUARD_POSITION)
{
movemsg->appendIntegerArgument( GUARDMODE_GUARD_WITHOUT_PURSUIT );
- // Classic sends the game's own two arguments and the logic guards its standard range
- if( !TheGlobalData->isClassicUI() )
- movemsg->appendRealArgument( TheInGameUI->getAreaPickRadius() );
+ movemsg->appendRealArgument( TheInGameUI->getAreaPickRadius() );
}
} // end if
@@ -1681,24 +1674,7 @@ GameMessage::Type CommandTranslator::evaluateContextCommand( Drawable *draw,
{
GameMessage *hintMessage;
- // Classic keeps the game's waypoint mode: with Alt held every click is a point on the path
- if( TheGlobalData->isClassicUI() && TheInGameUI->isInWaypointMode() )
- {
- if( type == DO_COMMAND || type == EVALUATE_ONLY )
- {
- if( TheTerrainLogic )
- msgType = issueMoveToLocationCommand( pos, draw, type );
- }
- else
- {
- msgType = GameMessage::MSG_ADD_WAYPOINT_HINT;
- hintMessage = TheMessageStream->appendMessage( msgType );
- hintMessage->appendLocationArgument( *pos );
- }
- return msgType;
- }
-
- // shift used to turn every click into a point on the path. Now whatever the click orders - an
+ // the waypoint key used to turn every click into a point on the path. Now whatever the click orders - an
// attack, a capture, a ride in a transport - goes on the end of the units' list, and the logic
// keeps it there (OrderQueue.h). A click that orders nothing is dropped by the logic with it
if( TheInGameUI->isInWaypointMode() && type == DO_COMMAND )
@@ -2415,8 +2391,8 @@ GameMessage::Type CommandTranslator::evaluateContextCommand( Drawable *draw,
// A right click on a selected building takes the rally point away from everything selected.
// Only the click is answered: the hover and SelectionXlat's EVALUATE_ONLY fall through as
// they always did, so the building keeps its selection cursor. The game as shipped had no
- // such order, and Classic sends none.
- else if( type == DO_COMMAND && draw && draw->isSelected() && !TheGlobalData->isClassicUI()
+ // such order, and the Classic mouse sends none.
+ else if( type == DO_COMMAND && draw && draw->isSelected() && !TheGlobalData->isClassicMouse()
&& TheInGameUI->canSelectedObjectsDoAction( InGameUI::ACTIONTYPE_SET_RALLY_POINT, NULL, InGameUI::SELECTION_ALL, FALSE ) )
{
msgType = GameMessage::MSG_CLEAR_RALLY_POINT;
@@ -2609,11 +2585,6 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
GameMessage::Type t = msg->getType();
GameMessageDisposition disp = KEEP_MESSAGE;
- // letting go of Tab puts the scoreboard away, input or no input; the press is the command map's
- // DIPLOMACY
- if (t == GameMessage::MSG_RAW_KEY_UP && msg->getArgument( 0 )->integer == KEY_TAB)
- TheInGameUI->closeScoreboard();
-
// We want to always be able to get to the options menu even during no input times and a clear game data message should always go through
if (t != GameMessage::MSG_META_OPTIONS && t != GameMessage::MSG_CLEAR_GAME_DATA &&
!TheInGameUI->getInputEnabled() && !isSystemMessage(msg))
@@ -2921,11 +2892,7 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
case GameMessage::MSG_META_COMMAND_SLOT17:
case GameMessage::MSG_META_COMMAND_SLOT18:
{
- // a watcher has no commands to press, and the top row picks the spectator's stat instead,
- // the keys Dota's spectator uses for the same list
- const Int slot = t - GameMessage::MSG_META_COMMAND_SLOT01;
- if( !TheInGameUI->pickSpectatorStat( slot ) )
- TheControlBar->pressCommandButton( slot );
+ TheControlBar->pressCommandButton( t - GameMessage::MSG_META_COMMAND_SLOT01 );
disp = DESTROY_MESSAGE;
break;
} // end command bar grid slots
@@ -4165,9 +4132,9 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
m_mouseRightUp = (UnsignedInt) msg->getArgument( 2 )->integer;
// a structure waiting to be placed is dropped by the same release, over in
- // SelectionXlat, unless the release ended a pan. Classic drops it here on a click, as 1.04
- // did, which is also what takes a shortcut bar's sneak attack off the cursor.
- if( TheGlobalData->isClassicUI()
+ // SelectionXlat, unless the release ended a pan. The Classic mouse drops it here on a click,
+ // as 1.04 did, which is also what takes a shortcut bar's sneak attack off the cursor.
+ if( TheGlobalData->isClassicMouse()
&& TheMouse->isClick( &m_mouseRightDragAnchor, &m_mouseRightDragLift, NULL, NULL, m_mouseRightDown, m_mouseRightUp ) )
TheInGameUI->placeBuildAvailable( NULL, NULL );
@@ -4201,7 +4168,7 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
// which LookAtXlat and SelectionXlat do, as the game shipped.
if( !TheGlobalData->rightButtonOrders() )
break;
- const Bool classic = TheGlobalData->isClassicUI();
+ const Bool classic = TheGlobalData->isClassicMouse();
// A right click is an order. A right drag pans the camera (LookAtXlat), so a release that
// travelled past the drag tolerance, or was held too long, gives no order at all.
@@ -4312,7 +4279,7 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
// them are aimed with the left button, because the right one cancels them. In Classic the
// left button is the order button as well, as it was in the game as shipped, unless EA's
// Alternate Mouse Setup is on: then only a GUI command waiting for a target fires here.
- const Bool classic = TheGlobalData->isClassicUI();
+ const Bool classic = TheGlobalData->isClassicMouse();
const Bool isOrderKey = TheInGameUI->isOrderKeyArmed();
if( classic ? !TheGlobalData->leftButtonOrders() && !isFiringGUICommand
: !isFiringGUICommand && !isOrderKey )
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/GUICommandTranslator.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/GUICommandTranslator.cpp
index 3028576e8..08aca5b0e 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/GUICommandTranslator.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/GUICommandTranslator.cpp
@@ -230,9 +230,7 @@ static CommandStatus doGuardCommand( const CommandButton *command, GuardMode gua
msg = TheMessageStream->appendMessage( GameMessage::MSG_DO_GUARD_OBJECT );
msg->appendObjectIDArgument( target->getID() );
msg->appendIntegerArgument(guardMode);
- // Classic sends the game's own guard and the logic guards its standard range
- if( !TheGlobalData->isClassicUI() )
- msg->appendRealArgument( TheInGameUI->getAreaPickRadius() );
+ msg->appendRealArgument( TheInGameUI->getAreaPickRadius() );
pickAndPlayUnitVoiceResponse(TheInGameUI->getAllSelectedDrawables(), GameMessage::MSG_DO_GUARD_OBJECT);
}
}
@@ -257,8 +255,7 @@ static CommandStatus doGuardCommand( const CommandButton *command, GuardMode gua
msg = TheMessageStream->appendMessage( GameMessage::MSG_DO_GUARD_POSITION );
msg->appendLocationArgument(world);
msg->appendIntegerArgument(guardMode);
- if( !TheGlobalData->isClassicUI() )
- msg->appendRealArgument( TheInGameUI->getAreaPickRadius() );
+ msg->appendRealArgument( TheInGameUI->getAreaPickRadius() );
pickAndPlayUnitVoiceResponse(TheInGameUI->getAllSelectedDrawables(), GameMessage::MSG_DO_GUARD_POSITION);
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HintSpy.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HintSpy.cpp
index 5049ba0a0..c49e24951 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HintSpy.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HintSpy.cpp
@@ -131,13 +131,12 @@ GameMessageDisposition HintSpyTranslator::translateGameMessage(const GameMessage
break;
//-----------------------------------------------------------------------------
- // Classic's ring where a move lands, EA's own; Reforged draws its order markers instead
+ // EA's own ring where a move lands
case GameMessage::MSG_DO_MOVETO:
case GameMessage::MSG_DO_ATTACKMOVETO:
case GameMessage::MSG_DO_FORCEMOVETO:
case GameMessage::MSG_ADD_WAYPOINT:
- if( TheGlobalData->isClassicUI() )
- TheInGameUI->createMoveHint( msg );
+ TheInGameUI->createMoveHint( msg );
break;
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HotKey.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HotKey.cpp
index 214001bb0..6f3cf7032 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HotKey.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/HotKey.cpp
@@ -100,8 +100,7 @@ GameMessageDisposition HotKeyTranslator::translateGameMessage(const GameMessage
}
// shift is allowed through: a shift-click on a build button queues a batch of units, and
// the label hotkey is meant to be that click's equal. Ctrl and alt still block the hotkey.
- // Classic blocks every modifier, as the game shipped
- if( TheGlobalData->isClassicUI() ? newModState != 0 : ( newModState & ~SHIFT ) != 0 )
+ if( ( newModState & ~SHIFT ) != 0 )
return disp;
// Ctrl+F let go of Ctrl first ends on a bare F release; it is still Ctrl+F
if( keyState & KEY_STATE_PRESSED_WITH_CTRL_ALT )
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp
index 65893dfd8..0c6f1516b 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/LookAtXlat.cpp
@@ -123,8 +123,8 @@ static Coord2D edgeScrollPull( const ICoord2D& pos )
{
const Int width = (Int)TheDisplay->getWidth();
const Int height = (Int)TheDisplay->getHeight();
- // Classic is the game as shipped: the last three pixels, at full speed, and nothing deeper
- const Int band = ( TheGlobalData->isClassicUI() || isOverWindow( pos ) ) ? edgeScrollSize : EdgeScroll_bandForHeight( height );
+ // the Classic mouse is the game as shipped: the last three pixels, at full speed, and nothing deeper
+ const Int band = ( TheGlobalData->isClassicMouse() || isOverWindow( pos ) ) ? edgeScrollSize : EdgeScroll_bandForHeight( height );
Coord2D pull;
pull.x = EdgeScroll_strength( width - 1 - pos.x, band ) - EdgeScroll_strength( pos.x, band );
@@ -152,7 +152,7 @@ void LookAtTranslator::setScrolling(Int x)
TheTacticalView->setMouseLock( TRUE );
m_scrollType = x;
// A manual pan restores map constraints widened by scripted camera paths.
- if ((TheGlobalData->m_useCameraConstraints || TheGlobalData->isClassicUI()) && TheGlobalData->m_cameraBoundaryMargin > 0)
+ if (TheGlobalData->m_useCameraConstraints && TheGlobalData->m_cameraBoundaryMargin > 0)
TheTacticalView->forceCameraConstraintRecalc();
if(TheStatsCollector)
TheStatsCollector->startScrollTime();
@@ -239,8 +239,7 @@ static const UnsignedInt CAMERA_NETWORK_FRAMES = LOGICFRAMES_PER_SECOND / 5;
* machines, only from somebody still playing, and only when it moved since the last one went. */
Bool LookAtTranslator::networkCameraDue( const ViewLocation &view )
{
- // Classic sends what the game as shipped sent, and that was no camera in a network game
- if( TheGlobalData->isClassicUI() || !TheGameLogic->isInMultiplayerGame() || !ThePlayerList->getLocalPlayer()->isPlayerActive() )
+ if( !TheGameLogic->isInMultiplayerGame() || !ThePlayerList->getLocalPlayer()->isPlayerActive() )
return FALSE;
const UnsignedInt frame = TheGameLogic->getFrame();
@@ -329,9 +328,9 @@ GameMessageDisposition LookAtTranslator::translateGameMessage(const GameMessage
m_lastMouseMoveFrame = TheGameLogic->getFrame();
m_anchor = msg->getArgument( 0 )->pixel;
- // Classic is 1.04's scroll, which starts on the press itself, so a click that wobbles
- // nudges the camera. Its second press of a quick pair started nothing, as there.
- if (TheGlobalData->isClassicUI())
+ // the Classic mouse is 1.04's scroll, which starts on the press itself, so a click that
+ // wobbles nudges the camera. Its second press of a quick pair started nothing, as there.
+ if (TheGlobalData->isClassicMouse())
{
if (msg->getType() == GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN)
{
@@ -433,8 +432,8 @@ GameMessageDisposition LookAtTranslator::translateGameMessage(const GameMessage
// edge, so believing it would scroll the map for as long as the mouse sat on the desktop.
// Nor while a watcher's director or player camera drives: the spectator page stands on the
// top and right edges, and the pointer on its way to it took the camera away (ObserverCamera.h).
- // Classic keeps retail's rule whatever Options.ini says.
- const Bool edgeScrollAllowed = (!TheGlobalData->m_windowed || (TheGlobalData->m_edgeScrollInWindowedMode && !TheGlobalData->isClassicUI()))
+ // The Classic mouse keeps retail's rule whatever Options.ini says.
+ const Bool edgeScrollAllowed = (!TheGlobalData->m_windowed || (TheGlobalData->m_edgeScrollInWindowedMode && !TheGlobalData->isClassicMouse()))
&& TheMouse->isCursorInWindow() && !TheObserverCamera.isDriving();
if (m_isScrolling)
@@ -511,8 +510,8 @@ GameMessageDisposition LookAtTranslator::translateGameMessage(const GameMessage
// cannot hit an exact eighth of a turn. Eaten so the same notch does not also zoom.
//
// Whole notches only: half a touchpad swipe is not a 45 degree turn.
- // Classic's wheel only ever zooms, as the game shipped, so none of the Ctrl uses below.
- const Bool classic = TheGlobalData->isClassicUI();
+ // The Classic mouse's wheel only ever zooms, as the game shipped, so none of the Ctrl uses below.
+ const Bool classic = TheGlobalData->isClassicMouse();
const Int rotateSteps = (Int)spin;
if (!classic && TheKeyboard->isCtrl() && rotateSteps != 0 &&
TheInGameUI->rotatePendingPlacement( rotateSteps ))
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp
index be36f749c..4d2e7a6fc 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp
@@ -456,8 +456,7 @@ static const char * findGameMessageNameByType(GameMessage::Type type)
//-------------------------------------------------------------------------------------------------
static Bool metaIgnoresShift(const MetaMapRec *map)
{
- return !TheGlobalData->isClassicUI() &&
- map->m_meta >= GameMessage::MSG_META_COMMAND_SLOT01 &&
+ return map->m_meta >=GameMessage::MSG_META_COMMAND_SLOT01 &&
map->m_meta <= GameMessage::MSG_META_COMMAND_SLOT18 &&
(map->m_modState & SHIFT) == 0;
}
@@ -495,11 +494,9 @@ GameMessageDisposition MetaEventTranslator::translateGameMessage(const GameMessa
//
// Tab / Shift-Tab walks the focus through a multi-selection's units on the control bar.
// Handled here rather than through the MetaMap because CommandMap.ini lives in the
- // shipped game data and has no slot for it. The game as it shipped did nothing with Tab,
- // and neither does Classic.
+ // shipped game data and has no slot for it. The game as it shipped did nothing with Tab.
//
- if( !TheGlobalData->isClassicUI() &&
- t == GameMessage::MSG_RAW_KEY_DOWN && key == MK_TAB &&
+ if( t == GameMessage::MSG_RAW_KEY_DOWN && key == MK_TAB &&
( newModState & ( CTRL | ALT ) ) == 0 &&
!( keyState & KEY_STATE_AUTOREPEAT ) &&
TheGameClient->getFrame() >= 1 &&
@@ -517,14 +514,13 @@ GameMessageDisposition MetaEventTranslator::translateGameMessage(const GameMessa
// the key came up while the modifier was still held. Letting go of Ctrl first meant the
// key's own release carried no Ctrl, the record no longer matched, and whatever the DOWN
// had switched on stayed on. Every key remembers the combinations it was pressed with, so
- // a modifier release can finish them off in whatever order the player let go. Classic keeps
- // the game's own rule, where the order of letting go mattered.
+ // a modifier release can finish them off in whatever order the player let go.
//
const Bool isModifierKey = ( key == KEY_LCTRL || key == KEY_RCTRL ||
key == KEY_LSHIFT || key == KEY_RSHIFT ||
key == KEY_LALT || key == KEY_RALT );
- if( isModifierKey && ( keyState & KEY_STATE_UP ) && !TheGlobalData->isClassicUI() )
+ if( isModifierKey && ( keyState & KEY_STATE_UP ) )
{
for( Int keyIndex = 0; keyIndex < NUM_MAPPABLE_KEYS; ++keyIndex )
{
@@ -601,10 +597,7 @@ GameMessageDisposition MetaEventTranslator::translateGameMessage(const GameMessa
disp = DESTROY_MESSAGE;
// every record on this modifier fires, not the first one found: shift is both "add to
// the selection" on the left button and "queue the order" on the right, and the two
- // are separate records that have to come on and go off together. Classic stops at the
- // first, as the game did.
- if( TheGlobalData->isClassicUI() )
- break;
+ // are separate records that have to come on and go off together.
continue;
}
@@ -795,45 +788,21 @@ GameMessageDisposition MetaEventTranslator::translateGameMessage(const GameMessa
//-------------------------------------------------------------------------------------------------
MetaMap::MetaMap() :
- m_metaMaps(NULL),
- m_classicMaps(NULL),
- m_parsingClassic(FALSE)
+ m_metaMaps(NULL)
{
}
//-------------------------------------------------------------------------------------------------
-void MetaMap::freeList( MetaMapRec *&list )
+MetaMap::~MetaMap()
{
- while (list)
+ while (m_metaMaps)
{
- MetaMapRec *next = list->m_next;
- list->deleteInstance();
- list = next;
+ MetaMapRec *next = m_metaMaps->m_next;
+ m_metaMaps->deleteInstance();
+ m_metaMaps = next;
}
}
-//-------------------------------------------------------------------------------------------------
-MetaMap::~MetaMap()
-{
- freeList( m_metaMaps );
- freeList( m_classicMaps );
-}
-
-//-------------------------------------------------------------------------------------------------
-const MetaMapRec *MetaMap::getFirstMetaMapRec() const
-{
- return getFirstMetaMapRec( TheGlobalData->isClassicUI() );
-}
-
-//-------------------------------------------------------------------------------------------------
-void MetaMap::loadClassicBindings( const AsciiString& languageMapFile )
-{
- m_parsingClassic = TRUE;
- INI ini;
- ini.load( languageMapFile, INI_LOAD_OVERWRITE, NULL );
- m_parsingClassic = FALSE;
-}
-
//-------------------------------------------------------------------------------------------------
GameMessage::Type MetaMap::findGameMessageMetaType(const char* name)
{
@@ -848,8 +817,7 @@ GameMessage::Type MetaMap::findGameMessageMetaType(const char* name)
//-------------------------------------------------------------------------------------------------
MetaMapRec *MetaMap::getMetaMapRec(GameMessage::Type t)
{
- MetaMapRec *&list = m_parsingClassic ? m_classicMaps : m_metaMaps;
- for (MetaMapRec *map = list; map; map = map->m_next)
+ for (MetaMapRec *map = m_metaMaps; map; map = map->m_next)
{
if (map->m_meta == t)
return map;
@@ -865,8 +833,8 @@ MetaMapRec *MetaMap::getMetaMapRec(GameMessage::Type t)
m->m_category = CATEGORY_MISC;
m->m_description.clear();
m->m_displayName.clear();
- m->m_next = list;
- list = m;
+ m->m_next = m_metaMaps;
+ m_metaMaps = m;
return m;
}
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/PlaceEventTranslator.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/PlaceEventTranslator.cpp
index 344bcbad2..f22be2bb0 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/PlaceEventTranslator.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/PlaceEventTranslator.cpp
@@ -90,25 +90,17 @@ static Bool getPlacementDrag( ICoord2D *start, ICoord2D *end )
} // end getPlacementDrag
//-------------------------------------------------------------------------------------------------
-/** The object that is to do the building. Normally the one the placement was started from, but
- * with nothing selected the command bar is being driven by a stand-in builder that is not part of
- * any selection - and that one is free to die between two clicks of a shift-held run of
- * structures. When it is gone, ask the command bar for the current stand-in rather than dropping
- * out of placement mode: the logic picks the idle builder nearest the site anyway
- * (MSG_DOZER_CONSTRUCT), so any builder will do to keep the ghost on the cursor. */
+/** The object that is to do the building, the one the placement was started from; NULL once it is
+ * dead, which ends the placement. */
//-------------------------------------------------------------------------------------------------
static Object *resolvePlacementBuilder( void )
{
Object *builder = TheGameLogic->findObjectByID( TheInGameUI->getPendingPlaceSourceObjectID() );
- if( builder != NULL && !builder->isEffectivelyDead() )
- return builder;
-
- Drawable *standIn = TheControlBar ? TheControlBar->findStandInBuilder( FALSE ) : NULL;
- return standIn ? standIn->getObject() : NULL;
+ return ( builder != NULL && !builder->isEffectivelyDead() ) ? builder : NULL;
}
//-------------------------------------------------------------------------------------------------
-PlaceEventTranslator::PlaceEventTranslator() : m_frameOfUpButton(-1), m_stripClickTaken(FALSE), m_stripRightClickTaken(FALSE)
+PlaceEventTranslator::PlaceEventTranslator() : m_frameOfUpButton(-1)
{
}
@@ -124,30 +116,6 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
{
GameMessageDisposition disp = KEEP_MESSAGE;
- // MetaEvent runs before us and inserts a logical click after the raw release.
- // Consume both: otherwise cancelling on the strip can also issue a world order.
- if( m_stripClickTaken && (msg->getType() == GameMessage::MSG_MOUSE_LEFT_CLICK ||
- msg->getType() == GameMessage::MSG_MOUSE_LEFT_DOUBLE_CLICK) )
- {
- m_stripClickTaken = FALSE;
- return DESTROY_MESSAGE;
- }
- if( m_stripClickTaken && (msg->getType() == GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_UP ||
- msg->getType() == GameMessage::MSG_RAW_MOUSE_LEFT_DRAG) )
- return DESTROY_MESSAGE;
- if( m_stripRightClickTaken )
- {
- if( msg->getType() == GameMessage::MSG_MOUSE_RIGHT_CLICK ||
- msg->getType() == GameMessage::MSG_MOUSE_RIGHT_DOUBLE_CLICK )
- {
- m_stripRightClickTaken = FALSE;
- return DESTROY_MESSAGE;
- }
- if( msg->getType() == GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP ||
- msg->getType() == GameMessage::MSG_RAW_MOUSE_RIGHT_DRAG )
- return DESTROY_MESSAGE;
- }
-
switch(msg->getType())
{
//---------------------------------------------------------------------------------------------
@@ -174,18 +142,6 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
break;
}
- case GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN:
- case GameMessage::MSG_RAW_MOUSE_RIGHT_DOUBLE_CLICK:
- {
- m_stripRightClickTaken = FALSE;
- if( TheInGameUI->handleProductionStripClick( &msg->getArgument(0)->pixel, TRUE ) )
- {
- m_stripRightClickTaken = TRUE;
- return DESTROY_MESSAGE;
- }
- break;
- }
-
//---------------------------------------------------------------------------------------------
//
// Windows sends the second press of a quick pair as WM_LBUTTONDBLCLK, not WM_LBUTTONDOWN,
@@ -198,20 +154,6 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
case GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN:
case GameMessage::MSG_RAW_MOUSE_LEFT_DOUBLE_CLICK:
{
- m_stripClickTaken = FALSE;
- //
- // The global production strip lies over the world rather than inside a window, so
- // nothing above us has claimed a click on it. Take it here, before placement and long
- // before selection turns it into a move order. Right-click (or Ctrl-click) cancels one, a plain click
- // takes the camera to the building it is queued on.
- //
- if( TheInGameUI->handleProductionStripClick( &msg->getArgument(0)->pixel,
- TheKeyboard && TheKeyboard->isCtrl() ) )
- {
- m_stripClickTaken = TRUE;
- return DESTROY_MESSAGE;
- }
-
// if we're in a building placement mode, do the place and send to all players
const ThingTemplate *build = TheInGameUI->getPendingPlaceType();
if( build && TheInGameUI->isPlacementAnchored() == FALSE )
@@ -534,7 +476,7 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
Drawable *nextBuilder = builderObj ? builderObj->getDrawable() : NULL;
if( row )
TheInGameUI->placeBuildAvailable( NULL, NULL );
- else if( TheKeyboard && TheKeyboard->isShift() && nextBuilder && !TheGlobalData->isClassicUI() )
+ else if( TheKeyboard && TheKeyboard->isShift() && nextBuilder )
TheInGameUI->placeBuildAvailable( build, nextBuilder );
else
TheInGameUI->placeBuildAvailable( NULL, NULL );
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
index 30715e455..e166031af 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
@@ -435,7 +435,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
// with attack move or guard armed a left drag draws the order line over in CommandXlat, so
// no selection box grows under it. Classic draws no lines: its left drag is always the box
- const Bool leftDragIsOrder = !TheGlobalData->isClassicUI()
+ const Bool leftDragIsOrder = !TheGlobalData->isClassicMouse()
&& TheInGameUI->isLineOrderArmed()
&& TheInGameUI->getSelectCount() > 0;
if (m_leftMouseButtonIsDown && !leftDragIsOrder)
@@ -581,7 +581,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
// gathers everything of a kind may only gather what a box would - things
// you can click one at a time but never sweep up used to come along. Classic keeps
// 1.04's rule, which put back everything that was selected
- const Bool keep = TheGlobalData->isClassicUI() ? (draw && draw->isSelectable())
+ const Bool keep = TheGlobalData->isClassicMouse() ? (draw && draw->isSelectable())
: (draw && draw->isMassSelectable() && draw->isKindOf( KINDOF_STRUCTURE ) == picked->isKindOf( KINDOF_STRUCTURE ));
if (keep) {
TheInGameUI->selectDrawable(draw);
@@ -721,7 +721,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
only what can shoot, Ctrl removes the box from the selection instead of replacing it.
Both are drag-only. A point click has to stay exactly what it was - a filter that eats
single clicks reads as a broken mouse. Classic has neither: its Ctrl is force fire. */
- if (!isPoint && !TheGlobalData->isClassicUI())
+ if (!isPoint && !TheGlobalData->isClassicMouse())
{
if (TheKeyboard->isAlt())
{
@@ -782,7 +782,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
// A box with an army in it takes the army and leaves the dozers and trucks standing among
// it; a box of workers alone still takes the workers. Drag-only, like the filters above,
// and not in Classic, which is the 2003 box.
- if (!isPoint && !TheGlobalData->isClassicUI())
+ if (!isPoint && !TheGlobalData->isClassicMouse())
prioritizeMilitaryBoxSelection(drawablesThatWillSelect, isSelectableMilitaryInBox);
SelectionInfo si;
@@ -819,7 +819,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
Bool addToGroup = TheInGameUI->isInPreferSelectionMode();
- const Bool classic = TheGlobalData->isClassicUI();
+ const Bool classic = TheGlobalData->isClassicMouse();
if (si.currentCountEnemies > 0 ||
si.currentCountCivilians > 0 ||
si.currentCountFriends > 0 ||
@@ -1231,7 +1231,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
// instead, so that click gives no order either. Otherwise it deselects everyone: always in
// the default mouse, where it is the cancel button, and under the Alternate Mouse Setup only
// with a dozer's structure on the cursor. The structure itself comes off in CommandXlat.
- if( TheGlobalData->isClassicUI() )
+ if( TheGlobalData->isClassicMouse() )
{
Coord3D cameraAtRelease;
TheTacticalView->getPosition( &cameraAtRelease );
@@ -1354,7 +1354,7 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
// A screen that fills the middle of the display and answers nothing on the keyboard is
// the thing being fixed, so group selection gives way for as long as it is up.
//
- if( TheControlBar && TheControlBar->isPurchaseScienceVisible() && !TheGlobalData->isClassicUI()
+ if( TheControlBar && TheControlBar->isPurchaseScienceVisible()
&& group >= 1 && group <= PURCHASE_SCIENCE_COLUMNS )
{
TheControlBar->pressPurchaseScienceColumn( group - 1 );
@@ -1428,49 +1428,6 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
// members as the logic will hold them when this lands, then the selection after them.
Int group = t - GameMessage::MSG_META_ADD_TEAM0;
- // Classic keeps the key the way the game shipped it: the squad joins the selection, and a
- // second press jumps the camera to it
- if ( TheGlobalData->isClassicUI() )
- {
- if ( isValidHotkeySquadIndex( group ) )
- {
- UnsignedInt now = TheGameLogic->getFrame();
- if ( m_lastGroupSelTime == 0 )
- m_lastGroupSelTime = now;
-
- if ( now - m_lastGroupSelTime < 20 && group == m_lastGroupSelGroup )
- {
- Player *player = ThePlayerList->getLocalPlayer();
- Squad *selectedSquad = player ? player->getHotkeySquad(group) : NULL;
- if (selectedSquad != NULL)
- {
- VecObjectPtr objlist = selectedSquad->getLiveObjects();
- Int numObjs = objlist.size();
- if (numObjs > 0)
- TheTacticalView->lookAt( objlist[numObjs-1]->getDrawable()->getPosition() );
- }
- }
- else
- {
- //Kris: Jan 12, 2005
- //Can't select other units if you have a structure selected. So deselect the structure to prevent
- //group force attack exploit.
- Drawable *draw = TheInGameUI->getFirstSelectedDrawable();
- if( draw && draw->isKindOf( KINDOF_STRUCTURE ) )
- TheInGameUI->deselectAllDrawables();
-
- TheMessageStream->appendMessage((GameMessage::Type)(GameMessage::MSG_ADD_TEAM0 + group));
- Player *player = ThePlayerList->getLocalPlayer();
- if (player)
- selectHotkeySquad( player, group, FALSE );
- }
- m_lastGroupSelTime = now;
- m_lastGroupSelGroup = group;
- }
- disp = DESTROY_MESSAGE;
- break;
- }
-
if ( isValidHotkeySquadIndex( group ) )
{
std::vector<ObjectID> members;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/WindowXlat.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/WindowXlat.cpp
index fc0c87d2a..9b19cb60e 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/WindowXlat.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/WindowXlat.cpp
@@ -330,14 +330,6 @@ GameMessageDisposition WindowTranslator::translateGameMessage(const GameMessage
TheMousePos.y = mousePos.y;
#endif
- // a press off the spectator's page closes its drop-downs, before a window can take it
- if( TheInGameUI && ( msg->getType() == GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN
- || msg->getType() == GameMessage::MSG_RAW_MOUSE_LEFT_DOUBLE_CLICK
- || msg->getType() == GameMessage::MSG_RAW_MOUSE_MIDDLE_BUTTON_DOWN
- || msg->getType() == GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN
- || msg->getType() == GameMessage::MSG_RAW_MOUSE_RIGHT_DOUBLE_CLICK ) )
- TheInGameUI->foldSpectatorDropDowns( mousePos );
-
// process the mouse event position
GameWindowMessage gwm = rawMouseToWindowMessage( msg );
if( TheWindowManager )
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/System/Image.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/System/Image.cpp
index 9d80b0c18..11f4abf94 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/System/Image.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/System/Image.cpp
@@ -193,36 +193,6 @@ UnsignedInt Image::clearStatus( UnsignedInt bit )
} // end clearStatus
-//-------------------------------------------------------------------------------------------------
-/** The same piece of texture, drawn back to front. Only the run of the UV rect is reversed - the
- * page underneath is untouched and shared - so a mirrored copy costs one small object and the
- * original goes on being drawn by whoever owns it. */
-//-------------------------------------------------------------------------------------------------
-Image *newMirroredImage( const Image *source )
-{
- Image *copy = newInstance( Image );
-
- copy->setName( source->getName() );
- copy->setFilename( source->getFilename() );
- copy->setTextureWidth( source->getTextureSize()->x );
- copy->setTextureHeight( source->getTextureSize()->y );
-
- ICoord2D size = *source->getImageSize();
- copy->setImageSize( &size );
-
- copy->setRawTextureData( (void *)source->getRawTextureData() );
- copy->setStatus( source->getStatus() );
-
- Region2D uv = *source->getUV();
- const Real left = uv.lo.x;
- uv.lo.x = uv.hi.x;
- uv.hi.x = left;
- copy->setUV( &uv );
-
- return copy;
-
-} // end newMirroredImage
-
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp
index d01b9f2b3..38ce1cb62 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SpecialPowerModule.cpp
@@ -685,8 +685,6 @@ void SpecialPowerModule::aboutToDoSpecialPower( const Coord3D *location )
// the same place so the two can never end up describing different events.
// It stamps a frame on the client side and returns; nothing here changes.
chromaSuperweaponLaunched( type );
- // and the event feed, which writes a line for a superweapon and a general's power, not a unit's
- TheInGameUI->feedSpecialPower( getObject(), getPowerName(), getSpecialPowerModuleData()->m_specialPowerTemplate );
}
// get module data
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp
index 4c3d40a34..0baddd37d 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp
@@ -555,11 +555,6 @@ Bool ConnectionManager::processNetCommand(NetCommandRef *ref) {
return FALSE;
}
- if (msg->getNetCommandType() == NETCOMMANDTYPE_ALLYCURSOR) {
- processAllyCursor((NetAllyCursorCommandMsg *)msg);
- return FALSE;
- }
-
if (msg->getNetCommandType() == NETCOMMANDTYPE_CHAT) {
processChat((NetChatCommandMsg *)msg);
return FALSE;
@@ -2249,45 +2244,6 @@ void ConnectionManager::sendChat(UnicodeString text, Int playerMask, UnsignedInt
msg->detach();
}
-/**
- * Tell the players in the mask where the local mouse is pointing. Nothing acks this and nothing
- * resends it: a lost one is replaced by the next, a tenth of a second later. The mask is built by
- * the caller from the local player's own alliances, so an enemy is never sent one at all.
- */
-void ConnectionManager::sendAllyCursor(Real x, Real y, Int playerMask)
-{
- NetAllyCursorCommandMsg *msg = newInstance(NetAllyCursorCommandMsg);
- msg->setPosition(x, y);
- msg->setPlayerID(m_localSlot);
- msg->setID(0);
- msg->setExecutionFrame(0);
-
- sendLocalCommand(msg, (UnsignedByte)(playerMask & (0xff ^ (1 << m_localSlot))));
-
- msg->detach();
-}
-
-/**
- * Remember where an ally says their cursor is. The height is not on the wire - the terrain both
- * machines loaded answers that - and the name and colour come from the player the slot belongs to.
- */
-void ConnectionManager::processAllyCursor(NetAllyCursorCommandMsg *msg)
-{
- const UnsignedByte playerID = msg->getPlayerID();
- if (playerID >= MAX_SLOTS) {
- return;
- }
-
- AsciiString playerName;
- playerName.format("player%d", playerID);
- const Player *player = ThePlayerList->findPlayerWithNameKey( TheNameKeyGenerator->nameToKey( playerName ) );
- if (player == NULL) {
- return;
- }
-
- TheInGameUI->noteAllyCursor( player->getPlayerIndex(), msg->getX(), msg->getY() );
-}
-
void ConnectionManager::sendDisconnectChat(UnicodeString text) {
NetDisconnectChatCommandMsg *msg = newInstance(NetDisconnectChatCommandMsg);
msg->setPlayerID(m_localSlot);
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetCommandMsg.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetCommandMsg.cpp
index 985e353d7..7856e0ef8 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetCommandMsg.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetCommandMsg.cpp
@@ -763,36 +763,6 @@ void NetChatCommandMsg::setPlayerMask( Int playerMask )
m_playerMask = playerMask;
}
-//-------------------------
-// NetAllyCursorCommandMsg
-//-------------------------
-NetAllyCursorCommandMsg::NetAllyCursorCommandMsg() : NetCommandMsg()
-{
- m_commandType = NETCOMMANDTYPE_ALLYCURSOR;
- m_x = 0.0f;
- m_y = 0.0f;
-}
-
-NetAllyCursorCommandMsg::~NetAllyCursorCommandMsg()
-{
-}
-
-Real NetAllyCursorCommandMsg::getX()
-{
- return m_x;
-}
-
-Real NetAllyCursorCommandMsg::getY()
-{
- return m_y;
-}
-
-void NetAllyCursorCommandMsg::setPosition( Real x, Real y )
-{
- m_x = x;
- m_y = y;
-}
-
//-------------------------
// NetDisconnectVoteCommandMsg
//-------------------------
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetPacket.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetPacket.cpp
index 3d06fc503..eb0b1786d 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetPacket.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetPacket.cpp
@@ -162,8 +162,6 @@ NetCommandRef * NetPacket::ConstructNetCommandMsgFromRawData(UnsignedByte *data,
msg = readDisconnectScreenOffMessage(data, offset);
} else if (commandType == NETCOMMANDTYPE_FRAMERESENDREQUEST) {
msg = readFrameResendRequestMessage(data, offset);
- } else if (commandType == NETCOMMANDTYPE_ALLYCURSOR) {
- msg = readAllyCursorMessage(data, offset);
}
msg->setExecutionFrame(frame);
@@ -328,8 +326,6 @@ UnsignedInt NetPacket::GetBufferSizeNeededForCommand(NetCommandMsg *msg) {
return GetDisconnectScreenOffCommandSize(msg);
case NETCOMMANDTYPE_FRAMERESENDREQUEST:
return GetFrameResendRequestCommandSize(msg);
- case NETCOMMANDTYPE_ALLYCURSOR:
- return GetAllyCursorCommandSize(msg);
default:
DEBUG_CRASH(("Unknown NETCOMMANDTYPE %d", msg->getNetCommandType()));
break;
@@ -780,19 +776,6 @@ UnsignedInt NetPacket::GetFrameResendRequestCommandSize(NetCommandMsg *msg) {
return msglen;
}
-UnsignedInt NetPacket::GetAllyCursorCommandSize(NetCommandMsg *msg) {
- UnsignedInt msglen = 0;
- msglen += sizeof(UnsignedByte) + sizeof(UnsignedByte); // 'T' and command type
- msglen += sizeof(UnsignedByte) + sizeof(UnsignedByte); // 'P' and player ID
- msglen += sizeof(UnsignedByte) + sizeof(UnsignedShort); // 'C' and command ID
- msglen += sizeof(UnsignedByte) + sizeof(UnsignedByte); // 'R' and relay
-
- ++msglen; // 'D'
- msglen += sizeof(Real) + sizeof(Real); // where on the map the cursor is
-
- return msglen;
-}
-
// this function assumes that buffer is already the correct size.
void NetPacket::FillBufferWithCommand(UnsignedByte *buffer, NetCommandRef *ref) {
NetCommandMsg *msg = ref->getCommand();
@@ -873,9 +856,6 @@ void NetPacket::FillBufferWithCommand(UnsignedByte *buffer, NetCommandRef *ref)
case NETCOMMANDTYPE_FRAMERESENDREQUEST:
FillBufferWithFrameResendRequestMessage(buffer, ref);
break;
- case NETCOMMANDTYPE_ALLYCURSOR:
- FillBufferWithAllyCursorMessage(buffer, ref);
- break;
default:
DEBUG_CRASH(("Unknown NETCOMMANDTYPE %d", msg->getNetCommandType()));
break;
@@ -1957,48 +1937,6 @@ void NetPacket::FillBufferWithFrameResendRequestMessage(UnsignedByte *buffer, Ne
offset += sizeof(frameToResend);
}
-void NetPacket::FillBufferWithAllyCursorMessage(UnsignedByte *buffer, NetCommandRef *msg) {
- NetAllyCursorCommandMsg *cmdMsg = (NetAllyCursorCommandMsg *)(msg->getCommand());
- UnsignedInt offset = 0;
-
- // command type
- buffer[offset] = 'T';
- ++offset;
- buffer[offset] = cmdMsg->getNetCommandType();
- offset += sizeof(UnsignedByte);
-
- // relay
- buffer[offset] = 'R';
- ++offset;
- buffer[offset] = msg->getRelay();
- offset += sizeof(UnsignedByte);
-
- // player ID
- buffer[offset] = 'P';
- ++offset;
- buffer[offset] = cmdMsg->getPlayerID();
- offset += sizeof(UnsignedByte);
-
- // command ID
- buffer[offset] = 'C';
- ++offset;
- UnsignedShort newID = cmdMsg->getID();
- memcpy(buffer + offset, &newID, sizeof(newID));
- offset += sizeof(newID);
-
- // data
- buffer[offset] = 'D';
- ++offset;
-
- Real x = cmdMsg->getX();
- memcpy(buffer + offset, &x, sizeof(x));
- offset += sizeof(x);
-
- Real y = cmdMsg->getY();
- memcpy(buffer + offset, &y, sizeof(y));
- offset += sizeof(y);
-}
-
/**
* Constructor
@@ -2135,8 +2073,6 @@ Bool NetPacket::addCommand(NetCommandRef *msg) {
return addDisconnectScreenOffCommand(msg);
case NETCOMMANDTYPE_FRAMERESENDREQUEST:
return addFrameResendRequestCommand(msg);
- case NETCOMMANDTYPE_ALLYCURSOR:
- return addAllyCursorCommand(msg);
default:
DEBUG_CRASH(("Unknown NETCOMMANDTYPE %d", cmdMsg->getNetCommandType()));
break;
@@ -2265,109 +2201,6 @@ Bool NetPacket::isRoomForFrameResendRequestMessage(NetCommandRef *msg) {
return TRUE;
}
-/**
- * Add an ally cursor position to the packet. No execution frame goes with it: nothing waits for
- * this command, it is drawn the moment it lands and replaced by the next one.
- */
-Bool NetPacket::addAllyCursorCommand(NetCommandRef *msg) {
- Bool needNewCommandID = FALSE;
- if (isRoomForAllyCursorMessage(msg)) {
- NetAllyCursorCommandMsg *cmdMsg = (NetAllyCursorCommandMsg *)(msg->getCommand());
-
- // If necessary, put the NetCommandType into the packet.
- if (m_lastCommandType != cmdMsg->getNetCommandType()) {
- m_packet[m_packetLen] = 'T';
- ++m_packetLen;
- m_packet[m_packetLen] = cmdMsg->getNetCommandType();
- m_packetLen += sizeof(UnsignedByte);
-
- m_lastCommandType = cmdMsg->getNetCommandType();
- }
-
- // If necessary, put the relay into the packet.
- if (m_lastRelay != msg->getRelay()) {
- m_packet[m_packetLen] = 'R';
- ++m_packetLen;
- UnsignedByte newRelay = msg->getRelay();
- memcpy(m_packet + m_packetLen, &newRelay, sizeof(UnsignedByte));
- m_packetLen += sizeof(UnsignedByte);
-
- m_lastRelay = newRelay;
- }
-
- // If necessary put the player ID into the packet.
- if (m_lastPlayerID != cmdMsg->getPlayerID()) {
- m_packet[m_packetLen] = 'P';
- ++m_packetLen;
- m_packet[m_packetLen] = cmdMsg->getPlayerID();
- m_packetLen += sizeof(UnsignedByte);
-
- m_lastPlayerID = cmdMsg->getPlayerID();
- needNewCommandID = TRUE;
- }
-
- // If necessary, specify the command ID of this command.
- if (((m_lastCommandID + 1) != (UnsignedShort)(cmdMsg->getID())) || (needNewCommandID == TRUE)) {
- m_packet[m_packetLen] = 'C';
- ++m_packetLen;
- UnsignedShort newID = cmdMsg->getID();
- memcpy(m_packet + m_packetLen, &newID, sizeof(UnsignedShort));
- m_packetLen += sizeof(UnsignedShort);
- }
- m_lastCommandID = cmdMsg->getID();
-
- m_packet[m_packetLen] = 'D';
- ++m_packetLen;
-
- Real x = cmdMsg->getX();
- memcpy(m_packet + m_packetLen, &x, sizeof(x));
- m_packetLen += sizeof(x);
-
- Real y = cmdMsg->getY();
- memcpy(m_packet + m_packetLen, &y, sizeof(y));
- m_packetLen += sizeof(y);
-
- ++m_numCommands;
- if (m_lastCommand != NULL) {
- m_lastCommand->deleteInstance();
- m_lastCommand = NULL;
- }
- m_lastCommand = NEW_NETCOMMANDREF(msg->getCommand());
- m_lastCommand->setRelay(msg->getRelay());
-
- return TRUE;
- }
- return FALSE;
-}
-
-Bool NetPacket::isRoomForAllyCursorMessage(NetCommandRef *msg) {
- Int len = 0;
- Bool needNewCommandID = FALSE;
- NetAllyCursorCommandMsg *cmdMsg = (NetAllyCursorCommandMsg *)(msg->getCommand());
- if (m_lastCommandType != cmdMsg->getNetCommandType()) {
- ++len;
- len += sizeof(UnsignedByte);
- }
- if (m_lastRelay != msg->getRelay()) {
- len += sizeof(UnsignedByte) + sizeof(UnsignedByte);
- }
- if (m_lastPlayerID != cmdMsg->getPlayerID()) {
- ++len;
- len += sizeof(UnsignedByte);
- needNewCommandID = TRUE;
- }
- if (((m_lastCommandID + 1) != (UnsignedShort)(cmdMsg->getID())) || (needNewCommandID == TRUE)) {
- len += sizeof(UnsignedShort) + sizeof(UnsignedByte);
- }
-
- ++len; // for 'D'
- len += sizeof(Real) + sizeof(Real); // for the position
- if ((len + m_packetLen) > MAX_PACKET_SIZE) {
- return FALSE;
- }
- return TRUE;
-}
-
Bool NetPacket::addDisconnectScreenOffCommand(NetCommandRef *msg) {
Bool needNewCommandID = FALSE;
if (isRoomForDisconnectScreenOffMessage(msg)) {
@@ -5293,9 +5126,6 @@ NetCommandList * NetPacket::getCommandList() {
DEBUG_LOG(("read frame resend request message from player %d\n", playerID));
msg = readFrameResendRequestMessage(m_packet, i);
break;
- case NETCOMMANDTYPE_ALLYCURSOR:
- msg = readAllyCursorMessage(m_packet, i);
- break;
}
if (msg == NULL) {
@@ -6024,25 +5854,6 @@ NetCommandMsg * NetPacket::readFrameResendRequestMessage(UnsignedByte *data, Int
return msg;
}
-/**
- * Reads the ally cursor message at this position in the packet.
- */
-NetCommandMsg * NetPacket::readAllyCursorMessage(UnsignedByte *data, Int &i) {
- NetAllyCursorCommandMsg *msg = newInstance(NetAllyCursorCommandMsg);
-
- Real x = 0.0f;
- memcpy(&x, data + i, sizeof(x));
- i += sizeof(x);
-
- Real y = 0.0f;
- memcpy(&y, data + i, sizeof(y));
- i += sizeof(y);
-
- msg->setPosition(x, y);
-
- return msg;
-}
-
/**
* Returns the number of commands in this packet. Only valid if the packet is locally constructed.
*/
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/Network.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/Network.cpp
index 67a89388b..1412344c1 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/Network.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/Network.cpp
@@ -132,7 +132,6 @@ public:
void sendChat(UnicodeString text, Int playerMask);
void sendDisconnectChat(UnicodeString text);
- void sendAllyCursor(Real x, Real y, Int playerMask);
void sendFile(AsciiString path, UnsignedByte playerMask, UnsignedShort commandID);
UnsignedShort sendFileAnnounce(AsciiString path, UnsignedByte playerMask);
@@ -965,13 +964,6 @@ void Network::sendDisconnectChat(UnicodeString text) {
m_conMgr->sendDisconnectChat(text);
}
-/**
- * Tells the players in the mask where the local mouse is pointing.
- */
-void Network::sendAllyCursor(Real x, Real y, Int playerMask) {
- m_conMgr->sendAllyCursor(x, y, playerMask);
-}
-
// send a file. woohoo.
void Network::sendFile(AsciiString path, UnsignedByte playerMask, UnsignedShort commandID)
{
diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetworkUtil.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetworkUtil.cpp
index 296810950..d2b61ce46 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetworkUtil.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/NetworkUtil.cpp
@@ -296,8 +296,6 @@ AsciiString GetAsciiNetCommandType(NetCommandType type) {
s.set("NETCOMMANDTYPE_DISCONNECTSCREENOFF");
} else if (type == NETCOMMANDTYPE_FRAMERESENDREQUEST) {
s.set("NETCOMMANDTYPE_FRAMERESENDREQUEST");
- } else if (type == NETCOMMANDTYPE_ALLYCURSOR) {
- s.set("NETCOMMANDTYPE_ALLYCURSOR");
} else {
s.set("UNKNOWN");
}
diff --git a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/Common/W3DRadar.h b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/Common/W3DRadar.h
index 4ba98262a..1ec769f0d 100644
--- a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/Common/W3DRadar.h
+++ b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/Common/W3DRadar.h
@@ -76,15 +76,6 @@ public:
protected:
- /** One map landmark for the icon pass. Held by value for the same reason the hero positions
- * are: the list is rebuilt every OVERLAY_REFRESH_RATE frames and read on every one of them,
- * so a pointer into an object destroyed in between is a pointer into freed memory. */
- struct RadarLandmark
- {
- Coord3D position; ///< where it stands in the world
- RadarLandmarkType type; ///< which of the preview's two icons to draw
- };
-
void drawSingleBeaconEvent( Int pixelX, Int pixelY, Int width, Int height, Int index );
void drawSingleGenericEvent( Int pixelX, Int pixelY, Int width, Int height, Int index );
@@ -92,10 +83,6 @@ protected:
void deleteResources( void ); ///< delete resources used
void drawEvents( Int pixelX, Int pixelY, Int width, Int height); ///< draw all of the radar events
void drawHeroIcon( Int pixelX, Int pixelY, Int width, Int height, const Coord3D *pos ); //< draw a hero icon
- void drawLandmarkIcon( Int pixelX, Int pixelY, Int width, Int height,
- const RadarLandmark& landmark ); ///< draw one landmark marker
- void cacheLandmarks( void ); ///< rebuild the landmark list from both object lists
- void collectLandmarks( const RadarObject *listHead ); ///< add the landmarks of one list to the cache
void drawViewBox( Int pixelX, Int pixelY, Int width, Int height ); ///< draw view box
void drawBoxLines( const ICoord2D *corners ); ///< a view box's lines through its four corners in pixels
void buildTerrainTexture( TerrainLogic *terrain ); ///< create the terrain texture of the radar
@@ -141,10 +128,6 @@ protected:
// frames and read on every one of them, so a hero killed in between left a pointer into a
// deleted Object for the icon pass to read.
std::list<Coord3D> m_cachedHeroPosList; //< cache of hero positions for drawing icons in radar overlay
-
- // the supply sources and neutral tech buildings, rebuilt on the same beat as the overlay and
- // drawn after the shroud image so a pile nobody has scouted is still on the map
- std::list<RadarLandmark> m_cachedLandmarkList;
};
diff --git a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DInGameUI.h b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DInGameUI.h
index 6e9cb2491..070290cb6 100644
--- a/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DInGameUI.h
+++ b/GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DInGameUI.h
@@ -82,27 +82,12 @@ protected:
virtual void drawBuildGrid( void ); ///< the pathfinder's build grid under a pending structure
virtual void drawAttackCircleFill( void ); ///< the wash on the ground inside an attack circle
virtual void drawFormationLine( void ); ///< the line an armed left drag is spreading the selection along
- virtual void drawOrderHints( void ); ///< a line from each selected unit to where its order sends it
virtual void drawAttackCircle( void ); ///< the circle a left drag is sweeping targets out of
- virtual void drawAllyCursorLights( void ); ///< the patch of an ally's colour lying under their cursor
- void drawAllyCursors( void ); ///< each ally's pointer and name, over the world
- void drawOrderStep( const OrderHint& hint, const ICoord2D& tip, UnsignedInt color ); ///< a shift list step's number and what it is
- void drawBuildPlanNumbers( void ); ///< each waiting plan's turn in its builder's queue
- void drawGuardMarkers( void ); ///< the guard badge over each of the local player's guarding units
RenderObjClass *m_buildingPlacementAnchor;
RenderObjClass *m_buildingPlacementArrow;
- /// One name plate per player, built the first time that ally's cursor is drawn and kept, because
- /// laying out the same string every frame for every ally is work nobody sees.
- DisplayString *m_allyCursorNames[ MAX_PLAYER_COUNT ];
-
- /// The numbers on the steps of a shift list, each laid out once. A step past the last one has no
- /// number, which on a list that long is no loss.
- enum { MAX_ORDER_STEP_NUMBERS = 30 };
- DisplayString *m_orderStepNumbers[ MAX_ORDER_STEP_NUMBERS ];
-
- // Classic's move rings, EA's own
+ // the move rings, EA's own
void drawMoveHints( View *view );
RenderObjClass *m_moveHintRenderObj[ MAX_MOVE_HINTS ];
HAnimClass *m_moveHintAnim[ MAX_MOVE_HINTS ];
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp
index 6a702c9d6..9af1455a4 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp
@@ -68,29 +68,6 @@
// PRIVATE DATA ///////////////////////////////////////////////////////////////////////////////////
enum { OVERLAY_REFRESH_RATE = 6 }; ///< over updates once this many frames
-//
-// The lobby map preview has marked the money with a dollar coin and the tech buildings with a star
-// since 2003 (`W3DControlBar.cpp`, "Cash" and "TecBuilding"), so the radar marks them with the same
-// two images and a player who has read the preview needs to learn nothing.
-//
-static const char *const LANDMARK_SUPPLY_IMAGE_NAME = "Cash";
-static const char *const LANDMARK_CAPTURE_IMAGE_NAME = "TecBuilding";
-
-//
-// The preview draws them at SUPPLY_TECH_SIZE, in a window several times the size of the radar.
-// Scaled to the radar, the same icon covers a fifth of the map, so it is sized against the radar
-// and clamped: below the minimum a dollar sign is a smudge, above the preview's own size there is
-// no more detail in the image to show.
-//
-enum { LANDMARK_ICON_RADAR_DIVISOR = 20 };
-enum { LANDMARK_ICON_MIN_SIZE = 9 };
-
-//
-// A supply dock is eight piles standing together and an icon is about six radar cells across, so
-// landmarks of one kind within this many cells of each other are drawn as the one place they are.
-//
-enum { LANDMARK_MERGE_CELLS = 6 };
-
//-------------------------------------------------------------------------------------------------
/** Is the point legal, that is, inside the resolution of the radar cells */
//-------------------------------------------------------------------------------------------------
@@ -297,125 +274,6 @@ void W3DRadar::drawHeroIcon( Int pixelX, Int pixelY, Int width, Int height, cons
}
}
-//-------------------------------------------------------------------------------------------------
-/** Draw one landmark marker with the lobby preview's own icon: the dollar over the money, the star
- * over a building somebody can walk into and take. This runs after the shroud image, so the
- * marker stays readable over ground the player has never been to. */
-//-------------------------------------------------------------------------------------------------
-void W3DRadar::drawLandmarkIcon( Int pixelX, Int pixelY, Int width, Int height,
- const RadarLandmark& landmark )
-{
- static const Image *supplyImage =
- TheMappedImageCollection->findImageByName( LANDMARK_SUPPLY_IMAGE_NAME );
- static const Image *captureImage =
- TheMappedImageCollection->findImageByName( LANDMARK_CAPTURE_IMAGE_NAME );
-
- const Image *image = (landmark.type == RADAR_LANDMARK_SUPPLY) ? supplyImage : captureImage;
- if( image == NULL )
- return;
-
- Int iconSize = width / LANDMARK_ICON_RADAR_DIVISOR;
- if( iconSize < LANDMARK_ICON_MIN_SIZE )
- iconSize = LANDMARK_ICON_MIN_SIZE;
- if( iconSize > SUPPLY_TECH_SIZE )
- iconSize = SUPPLY_TECH_SIZE;
-
- // convert world to radar coords, then radar coords to the screen
- ICoord2D radarPoint;
- radarPoint.x = landmark.position.x / (m_mapExtent.width() / RADAR_CELL_WIDTH);
- radarPoint.y = landmark.position.y / (m_mapExtent.height() / RADAR_CELL_HEIGHT);
-
- ICoord2D screenPoint;
- radarToPixel( &radarPoint, &screenPoint, pixelX, pixelY, width, height );
-
- //
- // centre the icon on the blip and keep the whole of it inside the radar image, so one standing
- // at the edge of the map does not spill onto the HUD frame around it
- //
- Int left = screenPoint.x - (iconSize / 2);
- Int top = screenPoint.y - (iconSize / 2);
- const Int rightLimit = pixelX + width - iconSize;
- const Int bottomLimit = pixelY + height - iconSize;
-
- if( left < pixelX )
- left = pixelX;
- if( left > rightLimit )
- left = rightLimit;
- if( top < pixelY )
- top = pixelY;
- if( top > bottomLimit )
- top = bottomLimit;
-
- TheDisplay->drawImage( image, left, top, left + iconSize, top + iconSize );
-
-} // end drawLandmarkIcon
-
-//-------------------------------------------------------------------------------------------------
-/** Collect the landmarks out of one radar object list. Ground the player has never been to keeps
- * its markers to itself: a dollar sign over unexplored country is a scouting report nobody paid
- * for. Once a place has been seen, its marker stays through the fog, because a supply pile and
- * an oil derrick do not walk away. */
-//-------------------------------------------------------------------------------------------------
-void W3DRadar::collectLandmarks( const RadarObject *listHead )
-{
- const Int localPlayerIndex = TheObserverCamera.getShroudPlayerIndex();
-
- for( const RadarObject *rObj = listHead; rObj; rObj = rObj->friend_getNext() )
- {
-
- const Object *obj = rObj->friend_getObject();
- const RadarLandmarkType type = Radar::landmarkTypeOf( obj );
- if( type == RADAR_LANDMARK_NONE )
- continue;
-
- if( obj->getShroudedStatus( localPlayerIndex ) >= OBJECTSHROUD_SHROUDED )
- continue;
-
- RadarLandmark landmark;
- landmark.position = *obj->getPosition();
- landmark.type = type;
-
- //
- // A supply dock is eight piles standing together, and eight dollar signs on top of each
- // other is a smear rather than a place. One marker per spot: anything of the same kind
- // this close is the same spot, and the radar has no room to say otherwise.
- //
- const Real mergeX = m_xSample * LANDMARK_MERGE_CELLS;
- const Real mergeY = m_ySample * LANDMARK_MERGE_CELLS;
- Bool alreadyMarked = FALSE;
- for( std::list<RadarLandmark>::const_iterator marked = m_cachedLandmarkList.begin();
- marked != m_cachedLandmarkList.end(); ++marked )
- {
-
- if( marked->type == landmark.type &&
- fabs( marked->position.x - landmark.position.x ) < mergeX &&
- fabs( marked->position.y - landmark.position.y ) < mergeY )
- {
- alreadyMarked = TRUE;
- break;
- }
-
- } // end for
-
- if( alreadyMarked == FALSE )
- m_cachedLandmarkList.push_back( landmark );
-
- } // end for
-
-} // end collectLandmarks
-
-//-------------------------------------------------------------------------------------------------
-/** Rebuild the landmark cache from both object lists */
-//-------------------------------------------------------------------------------------------------
-void W3DRadar::cacheLandmarks( void )
-{
-
- m_cachedLandmarkList.clear();
- collectLandmarks( getObjectList() );
- collectLandmarks( getLocalObjectList() );
-
-} // end cacheLandmarks
-
//-------------------------------------------------------------------------------------------------
/** Draw a "box" into the texture passed in that represents the viewable area for
* the tactical display into the game world */
@@ -734,14 +592,6 @@ void W3DRadar::drawEvents( Int pixelX, Int pixelY, Int width, Int height )
//-------------------------------------------------------------------------------------------------
void W3DRadar::drawIcons( Int pixelX, Int pixelY, Int width, Int height )
{
- // draw the money and the buildings worth capturing, under the heroes and over the shroud
- std::list<RadarLandmark>::const_iterator landmark = m_cachedLandmarkList.begin();
- while (landmark != m_cachedLandmarkList.end())
- {
- drawLandmarkIcon( pixelX, pixelY, width, height, *landmark );
- ++landmark;
- }
-
// draw the hero icons
std::list<Coord3D>::const_iterator iter = m_cachedHeroPosList.begin();
while (iter != m_cachedHeroPosList.end())
@@ -1122,7 +972,6 @@ void W3DRadar::reset( void )
}
// the objects those positions belonged to are gone with the match that had them
- m_cachedLandmarkList.clear();
m_cachedHeroPosList.clear();
// don't call Clear(); that wips to transparent. do this instead.
@@ -1550,9 +1399,6 @@ void W3DRadar::draw( Int pixelX, Int pixelY, Int width, Int height )
renderObjectList( getObjectList(), m_overlayTexture );
renderObjectList( getLocalObjectList(), m_overlayTexture, TRUE );
- // and the landmarks the icon pass draws on top of the shroud
- cacheLandmarks();
-
} // end if
// draw the overlay image
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/GUI/GUICallbacks/W3DControlBar.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/GUI/GUICallbacks/W3DControlBar.cpp
index a5b2df3bc..df48f33bf 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/GUI/GUICallbacks/W3DControlBar.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/GUI/GUICallbacks/W3DControlBar.cpp
@@ -718,19 +718,8 @@ void W3DCommandBarBackgroundDraw( GameWindow *window, WinInstanceData *instData
return;
}
- IRegion2D panels[ ControlBar::CB_PANEL_COUNT ];
- Bool shown[ ControlBar::CB_PANEL_COUNT ];
- const Image *images[ ControlBar::CB_PANEL_COUNT ];
for( Int p = 0; p < ControlBar::CB_PANEL_COUNT; p++ )
{
- shown[ p ] = FALSE;
- images[ p ] = NULL;
- panels[ p ].lo.x = panels[ p ].lo.y = panels[ p ].hi.x = panels[ p ].hi.y = 0;
-
- // a panel the minimised bar has stood down paints nothing at all
- if( TheControlBar->isPanelHidden( p ) )
- continue;
-
const ControlBarPlate *plate = ControlBarPlateForSide( man->getCurrentSide(), p );
if( plate == NULL )
plate = ControlBarPlateForSide( man->getCurrentArtTwinSide(), p );
@@ -742,23 +731,10 @@ void W3DCommandBarBackgroundDraw( GameWindow *window, WinInstanceData *instData
TheDisplay->getHeight(), &rect ) == FALSE )
continue;
- // ... and a panel on its way off the bottom takes its painting down with it
- const Int slide = TheControlBar->getPanelSlideOffset( p );
- panels[ p ].lo.x = rect.lo.x + offset.x;
- panels[ p ].lo.y = rect.lo.y + offset.y + slide;
- panels[ p ].hi.x = rect.hi.x + offset.x;
- panels[ p ].hi.y = rect.hi.y + offset.y + slide;
- shown[ p ] = TRUE;
- images[ p ] = plateImage( plate );
+ const Image *image = plateImage( plate );
+ if( image )
+ TheDisplay->drawImage( image, rect.lo.x + offset.x, rect.lo.y + offset.y, rect.hi.x + offset.x, rect.hi.y + offset.y );
}
-
- // the bar's own page, Window/Html/ControlBar.html, is drawn in the plates' place when it is there
- if( TheInGameUI && TheInGameUI->drawControlBarPage( panels, shown, ControlBar::CB_PANEL_COUNT ) )
- return;
-
- for( Int p = 0; p < ControlBar::CB_PANEL_COUNT; p++ )
- if( shown[ p ] && images[ p ] )
- TheDisplay->drawImage( images[ p ], panels[ p ].lo.x, panels[ p ].lo.y, panels[ p ].hi.x, panels[ p ].hi.y );
}
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/GUI/Gadget/W3DPushButton.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/GUI/Gadget/W3DPushButton.cpp
index baa2ed915..b6d93e956 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/GUI/Gadget/W3DPushButton.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/GUI/Gadget/W3DPushButton.cpp
@@ -97,10 +97,7 @@ extern Real ControlBarHudScale( void );
* bar itself is laid out at. */
static const Real BADGE_DESIGN_POINTS = 7.0f;
-/** The smallest a marking is set. At 1280x720 the HUD's 0.84 makes seven points 5, and at 5 this
- * font's figures run together: $600 read $800 and 2500 read 2600, and a misread price is worse
- * than none. So the marking stays at 6, and one still too wide sheds its unit - "$2000" is
- * "2000", "24s" is "24" - before it is clipped. */
+/** The smallest a marking is set: at 5 this font's figures run together. */
static const Int BADGE_LEAST_POINTS = 6;
/** The queue count is the one marking a player reads at a glance in the middle of a fight - how
@@ -108,7 +105,7 @@ static const Int BADGE_LEAST_POINTS = 6;
* nobody found without looking for it. It gets its own size, and an opaque plate under it. */
static const Real COUNT_BADGE_DESIGN_POINTS = 11.0f;
-/** Classic's key letter, the only place its keys are shown. */
+/** The key letter, the only place the keys are shown. */
static const Real CLASSIC_KEY_BADGE_DESIGN_POINTS = 12.0f;
// getBadgeFont ===============================================================
@@ -145,7 +142,7 @@ static GameFont *getBadgeFont( GameWindow *window, Real designPoints = BADGE_DES
} // end getBadgeFont
static void drawBadge( GameWindow *window, const UnicodeString &text, Real designPoints,
- HudReadoutCorner corner, Color color, const UnicodeString &bare = UnicodeString::TheEmptyString );
+ HudReadoutCorner corner, Color color );
static void drawClassicKeyBadge( GameWindow *window, const UnicodeString &text, Color color );
// drawButtonText =============================================================
@@ -186,19 +183,13 @@ static void drawButtonText( GameWindow *window, WinInstanceData *instData )
dropColor = window->winGetEnabledTextBorderColor();
} // end enabled only
- // the shortcut letter is a corner marking: the marking font, on the markings' plate in the top
- // left corner, which the button's own art could be any colour under
+ // the shortcut letter is a corner marking in the top left corner. There are no grid places to
+ // learn the keys from, so the letter is the one way in: set larger, and in gold while the button
+ // can be pressed
if( BitTest( window->winGetStatus(), WIN_STATUS_SHORTCUT_BUTTON ) )
{
- // Classic has no grid places to learn the keys from, so the letter is the one way in: set
- // larger, and in gold while the button can be pressed
- if( TheGlobalData->isClassicUI() )
- {
- const Bool enabled = BitTest( window->winGetStatus(), WIN_STATUS_ENABLED );
- drawClassicKeyBadge( window, text->getText(), enabled ? GameMakeColor( 255, 210, 60, 255 ) : textColor );
- return;
- }
- drawBadge( window, text->getText(), BADGE_DESIGN_POINTS, HUD_READOUT_TOP_LEFT, textColor );
+ const Bool enabled = BitTest( window->winGetStatus(), WIN_STATUS_ENABLED );
+ drawClassicKeyBadge( window, text->getText(), enabled ? GameMakeColor( 255, 210, 60, 255 ) : textColor );
return;
}
@@ -271,18 +262,11 @@ static void drawCountBadge( GameWindow *window, Int count )
// drawBadge ==================================================================
/** One corner marking: `text` on its plate in `corner` of the button's inner
- * rectangle, inside the frame the command bar's page draws over the button's
- * edge. Text too wide for the button is set a point smaller until it fits, so
- * a four figure price or a three figure countdown shrinks instead of running
- * out over the frame or into the next button, down to BADGE_LEAST_POINTS. A
- * marking with a unit is drawn as `bare`, its figures alone, where the HUD's
- * scale would set it under BADGE_LEAST_POINTS: held up at that size it shares
- * its row with the corner beside it, and "$2000" ran under the hotkey's plate
- * while "6s" lost its "s" to a block - and as `bare` too when it still does not
- * fit at that size. */
+ * rectangle. Text too wide for the button is set a point smaller until it
+ * fits, down to BADGE_LEAST_POINTS. */
//=============================================================================
static void drawBadge( GameWindow *window, const UnicodeString &text, Real designPoints,
- HudReadoutCorner corner, Color color, const UnicodeString &bare )
+ HudReadoutCorner corner, Color color )
{
IRegion2D cell;
ICoord2D size;
@@ -292,8 +276,7 @@ static void drawBadge( GameWindow *window, const UnicodeString &text, Real desig
cell.hi.y = cell.lo.y + size.y;
GameFont *font = getBadgeFont( window, designPoints );
- const Bool cramped = REAL_TO_INT_FLOOR( designPoints * ControlBarHudScale() ) < BADGE_LEAST_POINTS;
- DisplayString *badge = badgeString( cramped && !bare.isEmpty() ? bare : text, font );
+ DisplayString *badge = badgeString( text, font );
if( badge == NULL )
return;
@@ -304,8 +287,6 @@ static void drawBadge( GameWindow *window, const UnicodeString &text, Real desig
font = TheFontLibrary->getFont( font->nameString, font->pointSize - 1, TRUE );
badge = badgeString( text, font );
}
- if( !bare.isEmpty() && !HudReadout_fits( badge, cell ) )
- badge = badgeString( bare, font );
HudReadout_draw( badge, cell, corner, color );
@@ -344,79 +325,6 @@ static void drawClassicKeyBadge( GameWindow *window, const UnicodeString &text,
} // end drawClassicKeyBadge
-// drawSecondsBadge ===========================================================
-/** Draw a small "12s" label in the button's bottom left corner - how long the
- * thing on this button takes to build, or how long is left on it. */
-//=============================================================================
-static void drawSecondsBadge( GameWindow *window, Int seconds )
-{
- UnicodeString text, bare;
- text.format( u"%ds", seconds );
- bare.format( u"%d", seconds );
- drawBadge( window, text, BADGE_DESIGN_POINTS, HUD_READOUT_BOTTOM_LEFT, GameMakeColor( 255, 255, 255, 255 ), bare );
-
-} // end drawSecondsBadge
-
-// drawCostBadge ==============================================================
-/** Draw a "$1200" price in the button's top right corner - what one of these
- * costs. The opposite corner from the seconds, and the two together are the
- * whole of what a build decision asks: how much, and how long. */
-//=============================================================================
-static void drawCostBadge( GameWindow *window, Int cost )
-{
- UnicodeString text, bare;
- text.format( u"$%d", cost );
- bare.format( u"%d", cost );
- drawBadge( window, text, BADGE_DESIGN_POINTS, HUD_READOUT_TOP_RIGHT, GameMakeColor( 235, 210, 120, 255 ), bare );
-
-} // end drawCostBadge
-
-// drawPowerBadge =============================================================
-/** Draw what this structure does to the power grid in the button's bottom right
- * corner: "-5" for what it draws, "+10" for what a plant puts back. Money and
- * build time are already in the other corners; power is the third thing a base
- * spends, and it was the one figure you had to hover a button to find - which
- * is exactly the wrong way round for the building you put up to fix a brownout. */
-//=============================================================================
-static void drawPowerBadge( GameWindow *window, Int power )
-{
- // the game's own sign: a template's EnergyProduction is negative when it consumes
- const Int draws = -power;
-
- UnicodeString text;
- text.format( draws > 0 ? u"-%d" : u"+%d", draws > 0 ? draws : -draws );
- drawBadge( window, text, BADGE_DESIGN_POINTS, HUD_READOUT_BOTTOM_RIGHT,
- draws > 0 ? GameMakeColor( 255, 170, 90, 255 ) // spends it
- : GameMakeColor( 130, 220, 255, 255 ) ); // supplies it
-
-} // end drawPowerBadge
-
-// drawButtonBar ==============================================================
-/** Draw a thin progress bar along the button's bottom edge (experience) */
-//=============================================================================
-static void drawButtonBar( GameWindow *window, Int percent, Color color )
-{
- ICoord2D origin, size;
-
- window->winGetScreenPosition( &origin.x, &origin.y );
- window->winGetSize( &size.x, &size.y );
-
- if( percent > 100 )
- percent = 100;
-
- const Int barHeight = 4;
- Int x = origin.x + 2;
- Int y = origin.y + size.y - barHeight - 2;
- Int w = size.x - 4;
- if( w <= 0 )
- return;
-
- TheDisplay->drawFillRect( x, y, w, barHeight, GameMakeColor( 0, 0, 0, 180 ) );
- TheDisplay->drawFillRect( x, y, w * percent / 100, barHeight, color );
- TheDisplay->drawOpenRect( x, y, w, barHeight, 1.0f, GameMakeColor( 0, 0, 0, 255 ) );
-
-} // end drawButtonBar
-
///////////////////////////////////////////////////////////////////////////////
// PUBLIC FUNCTIONS ///////////////////////////////////////////////////////////
@@ -547,20 +455,8 @@ void W3DGadgetPushButtonDraw( GameWindow *window, WinInstanceData *instData )
TheDisplay->drawOpenRect(origin.x -1, origin.y - 1, size.x + 2, size.y + 2,1 , pData->colorBorder);
}
- // both live in the bottom right corner; a queue count is about this one order and wins
if( pData->drawCount > 0 )
drawCountBadge( window, pData->drawCount );
- else if( pData->drawPower != 0 )
- drawPowerBadge( window, pData->drawPower );
-
- if( pData->drawSeconds > 0 )
- drawSecondsBadge( window, pData->drawSeconds );
-
- if( pData->drawCost > 0 )
- drawCostBadge( window, pData->drawCost );
-
- if( pData->barPercent >= 0 )
- drawButtonBar( window, pData->barPercent, pData->barColor );
}
// the text goes on last: the cooldown clock sweeps across the whole button and used to
@@ -735,20 +631,8 @@ void W3DGadgetPushButtonImageDrawOne( GameWindow *window,
}
- // both live in the bottom right corner; a queue count is about this one order and wins
if( pData->drawCount > 0 )
drawCountBadge( window, pData->drawCount );
- else if( pData->drawPower != 0 )
- drawPowerBadge( window, pData->drawPower );
-
- if( pData->drawSeconds > 0 )
- drawSecondsBadge( window, pData->drawSeconds );
-
- if( pData->drawCost > 0 )
- drawCostBadge( window, pData->drawCost );
-
- if( pData->barPercent >= 0 )
- drawButtonBar( window, pData->barPercent, pData->barColor );
}
//Now render overlays that pertain to the correct state.
@@ -1010,20 +894,8 @@ void W3DGadgetPushButtonImageDrawThree(GameWindow *window, WinInstanceData *inst
TheDisplay->drawOpenRect(start.x - 1, start.y - 1, size.x + 2, size.y + 2, 1, pData->colorBorder);
}
- // both live in the bottom right corner; a queue count is about this one order and wins
if( pData->drawCount > 0 )
drawCountBadge( window, pData->drawCount );
- else if( pData->drawPower != 0 )
- drawPowerBadge( window, pData->drawPower );
-
- if( pData->drawSeconds > 0 )
- drawSecondsBadge( window, pData->drawSeconds );
-
- if( pData->drawCost > 0 )
- drawCostBadge( window, pData->drawCost );
-
- if( pData->barPercent >= 0 )
- drawButtonBar( window, pData->barPercent, pData->barColor );
}
// the text goes on last: the cooldown clock sweeps across the whole button and used to
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/HeightMap.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/HeightMap.cpp
index 9722e34fb..a00cebabf 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/HeightMap.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/HeightMap.cpp
@@ -2272,9 +2272,6 @@ void HeightMapRenderObjClass::Render(RenderInfoClass & rinfo)
// and the wash inside an attack circle, for the same reason: the units it is sweeping up
// have to stand on top of it
TheInGameUI->drawAttackCircleFill();
-
- // and the patch of colour under each ally's cursor, which is light falling on the map
- TheInGameUI->drawAllyCursorLights();
}
// We do some custom blending, so tell the shader class to reset everything.
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp
index b40e570bf..f562d4aaa 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DDisplay.cpp
@@ -2186,10 +2186,9 @@ static Bool s_smoothApplied = FALSE;
static void smoothMotionBegin()
{
- // -recordfps's pictures between two logic frames are nothing but the blend, so it is on for them
- // whatever the option and the interface say, from the frame before the first so that one is captured
- TheSmoothMotionActive = !TheGlobalData->m_headless
- && ((TheGlobalData->m_smoothMotion && !TheGlobalData->isClassicUI()) || GameEngine_videoBlends());
+ // only -recordfps's pictures between two logic frames blend, from the frame before the first so
+ // that one is captured
+ TheSmoothMotionActive = !TheGlobalData->m_headless && GameEngine_videoBlends();
TheSmoothMotionAlpha = TheSmoothMotionActive ? GameEngine_logicTickFraction() : 1.0f;
if (!TheSmoothMotionActive)
return;
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
index 2b4e18207..a95c7f015 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DInGameUI.cpp
@@ -297,12 +297,6 @@ W3DInGameUI::W3DInGameUI()
m_buildingPlacementAnchor = NULL;
m_buildingPlacementArrow = NULL;
- for( Int i = 0; i < MAX_PLAYER_COUNT; ++i )
- m_allyCursorNames[ i ] = NULL;
-
- for( Int i = 0; i < MAX_ORDER_STEP_NUMBERS; ++i )
- m_orderStepNumbers[ i ] = NULL;
-
for( Int i = 0; i < MAX_MOVE_HINTS; i++ )
{
m_moveHintRenderObj[ i ] = NULL;
@@ -318,20 +312,6 @@ W3DInGameUI::~W3DInGameUI()
REF_PTR_RELEASE( m_buildingPlacementAnchor );
REF_PTR_RELEASE( m_buildingPlacementArrow );
- for( Int i = 0; i < MAX_PLAYER_COUNT; ++i )
- if( m_allyCursorNames[ i ] )
- {
- TheDisplayStringManager->freeDisplayString( m_allyCursorNames[ i ] );
- m_allyCursorNames[ i ] = NULL;
- }
-
- for( Int i = 0; i < MAX_ORDER_STEP_NUMBERS; ++i )
- if( m_orderStepNumbers[ i ] )
- {
- TheDisplayStringManager->freeDisplayString( m_orderStepNumbers[ i ] );
- m_orderStepNumbers[ i ] = NULL;
- }
-
for( Int i = 0; i < MAX_MOVE_HINTS; i++ )
{
REF_PTR_RELEASE( m_moveHintRenderObj[ i ] );
@@ -617,32 +597,10 @@ void W3DInGameUI::draw( void )
if( m_isFormationDragging )
drawFormationLine();
- // Classic draws what the game as shipped drew: none of the threads, plan numbers, ally pointers
- // or guard shields below, and its waypoint path is W3DWaypointBuffer's. A move order gets
- // EA's animated ground ring (drawMoveHints) in place of the order markers
- const Bool classic = TheGlobalData->isClassicUI();
-
- // and where everything selected is headed, drag or no drag. Classic has EA's ring instead,
- // drawMoveHints below
- if( !classic )
- drawOrderHints();
-
- // and which of the plans each builder puts up next
- if( !classic )
- drawBuildPlanNumbers();
-
- // where the allies are pointing, which is the one thing on this screen somebody else is doing
- if( !classic )
- drawAllyCursors();
-
// the attack circle, while the left button is still sweeping it out
if( isAttackCircling() )
drawAttackCircle();
- // which of the local player's units are holding a guard
- if( !classic )
- drawGuardMarkers();
-
// the circle an armed guard will hold, under the cursor, at the size the wheel left it. A drag
// is drawing a guard line instead, where every unit holds its own station
if( isAreaPicking() && !m_isFormationDragging )
@@ -701,7 +659,7 @@ void W3DInGameUI::draw( void )
// While the map loads the display calls this every pass to paint the load screen's windows, and
// the match is already "in game" with its peace time set: the truce plate, the corner readout and
- // the strips drew over the load screen. Only the windows belong there.
+ // the lists drew over the load screen. Only the windows belong there.
const Bool matchOnScreen = !TheGlobalData->m_loadScreenRender;
if( matchOnScreen )
postDraw();
@@ -723,19 +681,14 @@ void W3DInGameUI::draw( void )
#endif
//
- // The clock/rate plate goes on last, after every window has painted. In postDraw with the rest
- // of the world overlays it was drawn before the window manager, so anything the manager put on
- // top of it - a dialog, the menu, the control bar's own art at the top of the screen - covered
- // the one reading you want visible exactly when something is going wrong.
+ // The peace time clock across the top middle and the clock plate in the corner go on last, after
+ // every window has painted: drawn before the window manager, a dialog, the menu or the control
+ // bar's own art covered them.
//
- // the peace time clock across the top middle, and the clock plate in the corner beside it
- // Classic's screen is EA's, which had neither plate
- if( matchOnScreen && !TheGlobalData->isClassicUI() )
+ if( matchOnScreen )
{
drawPeaceTimer();
drawHudOverlay();
- drawWireframeNotice();
- drawScoreboard();
}
#ifdef EXTENDED_STATS
@@ -1127,10 +1080,6 @@ void W3DInGameUI::drawFormationLine( void )
TheDisplay->drawLine( curve[ i - 1 ].x, curve[ i - 1 ].y, curve[ i ].x, curve[ i ].y,
width, color );
- // no ticks along it any more. Every station already carries the marker of the order it is about
- // to receive, drawn by drawOrderHints off the same hints, and a tick beside a marker was the
- // same fact said twice
-
} // end drawFormationLine
//-------------------------------------------------------------------------------------------------
@@ -1188,612 +1137,16 @@ void W3DInGameUI::drawAttackCircle( void )
} // end drawAttackCircle
//-------------------------------------------------------------------------------------------------
-/** An order's colour: anything that ends in a shot is red, an attack move is pink, a post to be
- * held is blue, a building to be taken is gold, everything else is green. The line itself is
- * EA's rally line now; the colour is left on the guard circle and the step numbers. */
-//-------------------------------------------------------------------------------------------------
-static UnsignedInt orderHintLineColor( InGameUI::OrderHintKind kind )
-{
- switch( kind )
- {
- case InGameUI::ORDER_HINT_ATTACK_MOVE:
- return 0x66FF66CC;
- case InGameUI::ORDER_HINT_ATTACK:
- case InGameUI::ORDER_HINT_FORCE_ATTACK:
- case InGameUI::ORDER_HINT_ATTACK_GROUND:
- return 0x66FF5555;
- case InGameUI::ORDER_HINT_GUARD:
- return 0x6655CCFF;
- case InGameUI::ORDER_HINT_CAPTURE:
- return 0x66FFCC33;
- default:
- return 0x6655FF55;
- }
-}
-
-static UnsignedInt orderHintMarkerColor( InGameUI::OrderHintKind kind )
-{
- return orderHintLineColor( kind ) | 0xFF000000;
-}
-
-struct OrderCursorArt
-{
- const Image *image;
- ICoord2D hotSpot;
- Bool tried;
-};
-static OrderCursorArt s_orderCursorArt[ Mouse::NUM_MOUSE_CURSORS ];
-
-//-------------------------------------------------------------------------------------------------
-/** Turn one Windows cursor into something the 2D renderer can draw. Mouse.ini's Image entries
- * name mapped images that do not exist in the shipped data, and the Texture entries name .ANI
- * files rather than textures - so the art the player is actually holding only exists as an HCURSOR.
- * Pull the first frame's bits out of it and keep them as a texture. */
-//-------------------------------------------------------------------------------------------------
-static const Image *loadOrderCursorImage( Mouse::MouseCursor cursor, ICoord2D *hotSpot )
-{
-#if defined(_WIN32) // the .ANI cursor through Win32's cursor API; off Windows the cursor is C3's
- const AsciiString& name = TheMouse->m_cursorInfo[ cursor ].textureName;
- if( name.isEmpty() )
- return NULL;
-
- char path[ 256 ];
- snprintf( path, ARRAY_SIZE(path), "data\\cursors\\%s.ANI", name.str() );
-
- HCURSOR hcursor = LoadCursorFromFile( path );
- if( hcursor == NULL )
- return NULL;
-
- ICONINFO info;
- if( GetIconInfo( hcursor, &info ) == FALSE )
- return NULL;
-
- const Image *result = NULL;
-
- BITMAP bm;
- if( info.hbmColor && GetObject( info.hbmColor, sizeof( BITMAP ), &bm ) )
- {
- const Int w = bm.bmWidth;
- const Int h = bm.bmHeight;
-
- BITMAPINFO bi;
- memset( &bi, 0, sizeof( bi ) );
- bi.bmiHeader.biSize = sizeof( BITMAPINFOHEADER );
- bi.bmiHeader.biWidth = w;
- bi.bmiHeader.biHeight = -h; // negative means top down, which is the order a texture wants
- bi.bmiHeader.biPlanes = 1;
- bi.bmiHeader.biBitCount = 32;
- bi.bmiHeader.biCompression = BI_RGB;
-
- UnsignedInt *color = NEW UnsignedInt[ w * h ];
- UnsignedInt *mask = NEW UnsignedInt[ w * h ];
-
- HDC dc = GetDC( NULL );
- GetDIBits( dc, info.hbmColor, 0, h, color, &bi, DIB_RGB_COLORS );
- GetDIBits( dc, info.hbmMask, 0, h, mask, &bi, DIB_RGB_COLORS );
- ReleaseDC( NULL, dc );
-
- //
- // a 32-bit cursor carries its own alpha; an older one leaves it zero and says what is
- // transparent in the AND mask instead, where a white pixel is a hole
- //
- Bool hasAlpha = FALSE;
- for( Int i = 0; i < w * h; ++i )
- if( color[ i ] & 0xFF000000 )
- {
- hasAlpha = TRUE;
- break;
- }
-
- if( hasAlpha == FALSE )
- for( Int i = 0; i < w * h; ++i )
- color[ i ] |= (mask[ i ] & 0x00FFFFFF) ? 0x00000000 : 0xFF000000;
-
- TextureClass *texture = MSGNEW("TextureClass") TextureClass( w, h, WW3D_FORMAT_A8R8G8B8, MIP_LEVELS_1 );
- SurfaceClass *surface = texture->Get_Surface_Level();
- Int pitch;
- UnsignedByte *bits = (UnsignedByte *)surface->Lock( &pitch );
- for( Int row = 0; row < h; ++row )
- memcpy( bits + row * pitch, color + row * w, w * sizeof( UnsignedInt ) );
- surface->Unlock();
- REF_PTR_RELEASE( surface );
-
- delete [] color;
- delete [] mask;
-
- Image *image = newInstance(Image);
- Region2D uv;
- uv.lo.x = 0.0f;
- uv.lo.y = 0.0f;
- uv.hi.x = 1.0f;
- uv.hi.y = 1.0f;
- image->setStatus( IMAGE_STATUS_RAW_TEXTURE );
- image->setRawTextureData( texture );
- image->setUV( &uv );
- image->setTextureWidth( w );
- image->setTextureHeight( h );
- ICoord2D size;
- size.x = w;
- size.y = h;
- image->setImageSize( &size );
-
- hotSpot->x = info.xHotspot;
- hotSpot->y = info.yHotspot;
- result = image;
- }
-
- if( info.hbmColor )
- DeleteObject( info.hbmColor );
- if( info.hbmMask )
- DeleteObject( info.hbmMask );
-
- return result;
-#else
- (void)cursor;
- (void)hotSpot;
- return NULL;
-#endif
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The marker on a destination is the cursor the player would be holding if they were pointing at
- * it. Built once. */
-//-------------------------------------------------------------------------------------------------
-static const Image *orderCursorImage( Mouse::MouseCursor cursor, ICoord2D *hotSpot )
-{
- OrderCursorArt& art = s_orderCursorArt[ cursor ];
- if( art.tried == FALSE )
- {
- art.image = loadOrderCursorImage( cursor, &art.hotSpot );
- art.tried = TRUE;
- }
-
- *hotSpot = art.hotSpot;
- return art.image;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The cursor a kind of order is given with, for the kinds whose colour is the plain green and so
- * says nothing on its own, and for a capture, whose gold is new enough to want saying twice.
- * Mouse::NONE for the rest. */
-//-------------------------------------------------------------------------------------------------
-static Mouse::MouseCursor orderHintCursor( InGameUI::OrderHintKind kind )
-{
- switch( kind )
- {
- case InGameUI::ORDER_HINT_ENTER: return Mouse::ENTER_FRIENDLY;
- case InGameUI::ORDER_HINT_DOCK: return Mouse::DOCK;
- case InGameUI::ORDER_HINT_GET_REPAIRED: return Mouse::GET_REPAIRED;
- case InGameUI::ORDER_HINT_GET_HEALED: return Mouse::GET_HEALED;
- case InGameUI::ORDER_HINT_DO_REPAIR: return Mouse::DO_REPAIR;
- case InGameUI::ORDER_HINT_CAPTURE: return Mouse::CAPTUREBUILDING;
- case InGameUI::ORDER_HINT_HACK: return Mouse::HACK;
- default: return Mouse::NONE;
- }
-}
-
-static const Int ORDER_STEP_POINT_SIZE = 11;
-
-//-------------------------------------------------------------------------------------------------
-/** How much bigger the step numbers are drawn than at 800x600. Their font grows with the screen,
- * so everything laid out round them grows by the same factor or the number runs into the pointer
- * at 1440p and into the marker beside it at 4K. */
-//-------------------------------------------------------------------------------------------------
-static Real orderStepScale( void )
-{
- return (Real)TheGlobalLanguageData->adjustFontSize( ORDER_STEP_POINT_SIZE ) / (Real)ORDER_STEP_POINT_SIZE;
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A step of a shift list carries its number, and beside it what the step is: the upgrade's own
- * button art, or the cursor of an order the colour cannot tell apart from a move. The row sits
- * above and to the right of the pointer's tip, clear of the pointer itself, which hangs below it. */
-//-------------------------------------------------------------------------------------------------
-void W3DInGameUI::drawOrderStep( const OrderHint& hint, const ICoord2D& tip, UnsignedInt color )
-{
- const Real NUMBER_OFFSET_X = 10.0f;
- const Real ROW_HEIGHT = 22.0f;
- const Real ICON_GAP = 2.0f;
-
- const Real scale = orderStepScale();
- const Int rowHeight = REAL_TO_INT( ROW_HEIGHT * scale );
- const UnsignedInt alpha = color & 0xFF000000;
- Int x = tip.x + REAL_TO_INT( NUMBER_OFFSET_X * scale );
- const Int top = tip.y - rowHeight;
-
- if( hint.step > 0 && hint.step <= MAX_ORDER_STEP_NUMBERS )
- {
- DisplayString *&number = m_orderStepNumbers[ hint.step - 1 ];
- if( number == NULL )
- {
- number = TheDisplayStringManager->newDisplayString();
- number->setFont( TheWindowManager->winFindFont( AsciiString( "Arial" ),
- TheGlobalLanguageData->adjustFontSize( ORDER_STEP_POINT_SIZE ), TRUE ) );
- UnicodeString text;
- text.format( u"%d", hint.step );
- number->setText( text );
- }
-
- Int width = 0, height = 0;
- number->getSize( &width, &height );
- number->draw( x, top + ( rowHeight - height ) / 2, (Color)color, (Color)alpha );
- x += width + REAL_TO_INT( ICON_GAP * scale );
- }
-
- const Image *icon = hint.icon;
- if( icon == NULL )
- {
- ICoord2D hotSpot;
- icon = orderCursorImage( orderHintCursor( hint.kind ), &hotSpot );
- }
- if( icon == NULL )
- return;
-
- // the row's height, and the width the art's own proportions give it: a button cameo is wider
- // than it is tall, and squeezed into a square it reads as a different picture
- const Int iconWidth = rowHeight * icon->getImageWidth() / max( icon->getImageHeight(), 1 );
- TheDisplay->drawImage( icon, x, top, x + iconWidth, top + rowHeight, alpha | 0x00FFFFFF );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** The screen-space part of the order hints: a guard's circle and the numbers of a shift list. The
- * goals are read off the units every frame, so both last as long as the orders do. */
-//-------------------------------------------------------------------------------------------------
-void W3DInGameUI::drawOrderHints( void )
-{
- const std::vector<OrderHint>& hints = getOrderHints();
- if( hints.empty() )
- return;
-
- const Real width = 1.0f;
-
- // how far right of the spot an upgrade or an ability stands: past the number of the step that
- // ends there, which grows with the screen
- const Real IN_PLACE_MARKER_OFFSET = 44.0f;
- const Int inPlaceOffset = REAL_TO_INT( IN_PLACE_MARKER_OFFSET * orderStepScale() );
-
- // a group on one guard order is one circle, not one per unit stacked into an opaque band
- std::vector<const OrderHint *> ringsDrawn;
-
- for( std::vector<OrderHint>::const_iterator it = hints.begin(); it != hints.end(); ++it )
- {
- const UnsignedInt lineColor = orderHintLineColor( it->kind );
-
- if( it->radius > 0.0f )
- {
- Bool drawn = FALSE;
- for( size_t r = 0; r < ringsDrawn.size() && !drawn; ++r )
- drawn = ringsDrawn[ r ]->radius == it->radius && ringsDrawn[ r ]->to.x == it->to.x && ringsDrawn[ r ]->to.y == it->to.y;
- if( !drawn )
- {
- drawGroundRing( it->to, it->radius, lineColor, width );
- ringsDrawn.push_back( &(*it) );
- }
- }
-
- // The line, the joint and the flag are EA's rally point art in the 3D scene
- // (W3DWaypointBuffer::drawWaypoints and InGameUI::updateOrderFlags). What is left here is
- // the step number and the art of a step whose kind the line cannot tell apart from a move.
- // WTS_OUTSIDE_FRUSTUM still gives usable pixels, so only points behind the camera are dropped
- ICoord2D to;
- if( TheTacticalView->worldToScreenTriReturn( &it->to, &to ) == View::WTS_INVALID )
- continue;
-
- // an upgrade or an ability is used on the spot the step before it ends on, whose number is
- // already there, so this one stands beside it rather than on top of it
- if( it->kind == ORDER_HINT_UPGRADE || it->kind == ORDER_HINT_ABILITY )
- to.x += inPlaceOffset;
-
- // a capture carries its cursor even alone: a lone one is the case that looked like a walk
- if( it->step > 0 || it->icon || it->kind == ORDER_HINT_CAPTURE )
- drawOrderStep( *it, to, orderHintMarkerColor( it->kind ) );
- }
-
-} // end drawOrderHints
-
-//-------------------------------------------------------------------------------------------------
-/** The local player's plans still waiting for a builder carry the number of their turn, so a
- * string of shift-placed buildings reads in the order its dozer will put them up. Read off the
- * objects every frame; nothing here goes back to the logic. */
-//-------------------------------------------------------------------------------------------------
-void W3DInGameUI::drawBuildPlanNumbers( void )
-{
- // ponytail: walks every object each frame; keep a list of plans if a big map shows it in a profile
- std::vector<BuildPlanNumber> plans;
- for( Object *obj = TheGameLogic->getFirstObject(); obj; obj = obj->getNextObject() )
- {
- if( !obj->isLocallyControlled() || obj->testStatus( OBJECT_STATUS_SOLD ) || obj->isEffectivelyDead() ||
- !Object_isAwaitingBuilder( obj->testStatus( OBJECT_STATUS_UNDER_CONSTRUCTION ), obj->getConstructionPercent() ) )
- continue;
-
- // a plan whose builder is gone is nobody's queue
- Object *builder = TheGameLogic->findObjectByID( obj->getBuilderID() );
- if( builder == NULL || builder->isEffectivelyDead() || builder->getAIUpdateInterface() == NULL )
- continue;
- DozerAIInterface *dozerAI = builder->getAIUpdateInterface()->getDozerAIInterface();
- if( dozerAI == NULL )
- continue;
-
- BuildPlanNumber plan;
- plan.plan = obj->getID();
- plan.builder = builder->getID();
- plan.current = dozerAI->isTaskPending( DOZER_TASK_BUILD ) && dozerAI->getTaskTarget( DOZER_TASK_BUILD ) == obj->getID();
- plan.spot = *obj->getPosition();
- plan.spot.z += obj->getGeometryInfo().getMaxHeightAbovePosition();
- plan.step = 0;
- plans.push_back( plan );
- }
-
- InGameUI_numberBuildPlans( plans );
-
- for( std::vector<BuildPlanNumber>::const_iterator it = plans.begin(); it != plans.end(); ++it )
- {
- ICoord2D tip;
- if( it->step == 0 || !TheTacticalView->worldToScreen( &it->spot, &tip ) )
- continue;
-
- OrderHint hint;
- hint.step = it->step;
- drawOrderStep( hint, tip, orderHintMarkerColor( ORDER_HINT_MOVE ) );
- }
-
-} // end drawBuildPlanNumbers
-
-//-------------------------------------------------------------------------------------------------
-/** One screen row from `left` to `right`, the two end pixels at the share of them the span covers,
- * so a slanted edge fades across a pixel instead of stepping. */
-//-------------------------------------------------------------------------------------------------
-static void drawCoveredSpan( Real left, Real right, Int y, UnsignedInt color )
-{
- if( right <= left )
- return;
- const UnsignedInt rgb = color & 0x00FFFFFF;
- const Real alpha = (Real)( color >> 24 );
- const Int first = (Int)floorf( left );
- const Int last = (Int)floorf( right );
- if( first == last )
- {
- TheDisplay->drawFillRect( first, y, 1, 1, rgb | ( REAL_TO_INT( alpha * ( right - left ) ) << 24 ) );
- return;
- }
- TheDisplay->drawFillRect( first, y, 1, 1, rgb | ( REAL_TO_INT( alpha * ( first + 1 - left ) ) << 24 ) );
- if( last > first + 1 )
- TheDisplay->drawFillRect( first + 1, y, last - first - 1, 1, color );
- if( right > last )
- TheDisplay->drawFillRect( last, y, 1, 1, rgb | ( REAL_TO_INT( alpha * ( right - last ) ) << 24 ) );
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A heater shield centred on `centreX`, filled one screen row at a time: straight sides for the
- * upper part, then a curve closing to the point at the bottom. The left half takes `leftColor`
- * and the right half `rightColor`, which with a light and a darker steel reads as a raised
- * centre ridge with the light from the left. */
-//-------------------------------------------------------------------------------------------------
-static void drawShieldShape( Real centreX, Int top, Real width, Int height, UnsignedInt leftColor, UnsignedInt rightColor )
-{
- const Real SHOULDER = 0.4f; // share of the height above the taper
- for( Int row = 0; row < height; ++row )
- {
- const Real t = ( row + 0.5f ) / height;
- Real half = width * 0.5f;
- if( t > SHOULDER )
- half *= sqrtf( ( 1.0f - t ) / ( 1.0f - SHOULDER ) );
- drawCoveredSpan( centreX - half, centreX, top + row, leftColor );
- drawCoveredSpan( centreX, centreX + half, top + row, rightColor );
- }
-}
-
-//-------------------------------------------------------------------------------------------------
-/** A guarding unit looks like an idle one until something walks into its circle, so each of the
- * local player's guards wears a small shield over its head, selected or not. Two groups on
- * overlapping posts can then be told apart from the ones simply standing about.
- *
- * It follows the zoom like the health bar does, so it stays in proportion to the unit, between a
- * floor that still reads as a shield and a ceiling that does not cover a close-up infantryman. */
-//-------------------------------------------------------------------------------------------------
-void W3DInGameUI::drawGuardMarkers( void )
-{
- const Real MARKER_HEIGHT = 10.0f; // at 800x600 and zoom 1, a little closer than the opening camera
- const Real MARKER_MIN_HEIGHT = 6.0f;
- const Real MARKER_MAX_HEIGHT = 10.0f;
- const UnsignedInt SHADOW_COLOR = 0x60000000; // lifts it off snow and sand alike
- const UnsignedInt EDGE_COLOR = 0xE00C1014;
- const UnsignedInt LIT_COLOR = 0xF0E8EEF4; // the command bar's steel, the side facing the light
- const UnsignedInt SHADED_COLOR = 0xF0939FAC;
-
- const Real uiScale = TheUIScale();
- const Real size = MARKER_HEIGHT * uiScale / TheTacticalView->getZoom();
- const Int height = REAL_TO_INT( max( MARKER_MIN_HEIGHT * uiScale, min( MARKER_MAX_HEIGHT * uiScale, size ) ) );
- const Real width = height * 0.8f;
- const Int lift = height / 2; // clear of the health bar's line over the model's top
- const Real rim = max( 1.0f, height / 10.0f );
-
- // ponytail: walks every object each frame, like drawBuildPlanNumbers; share one walk if it shows
- for( Object *obj = TheGameLogic->getFirstObject(); obj; obj = obj->getNextObject() )
- {
- if( !obj->isLocallyControlled() || obj->isEffectivelyDead() || obj->getContainedBy() )
- continue;
- const AIUpdateInterface *ai = obj->getAI();
- if( ai == NULL || ai->getCurrentStateID() != AI_GUARD )
- continue;
- const Drawable *draw = obj->getDrawable();
- if( draw == NULL || draw->isDrawableEffectivelyHidden() )
- continue;
-
- Coord3D top = *obj->getPosition();
- top.z += obj->getGeometryInfo().getMaxHeightAbovePosition();
- ICoord2D spot;
- if( !TheTacticalView->worldToScreen( &top, &spot ) )
- continue;
-
- const Real centreX = spot.x + 0.5f;
- const Int y = spot.y - lift - height;
- const Int inset = REAL_TO_INT( rim );
- drawShieldShape( centreX + rim, y + inset, width, height, SHADOW_COLOR, SHADOW_COLOR );
- drawShieldShape( centreX, y, width, height, EDGE_COLOR, EDGE_COLOR );
- drawShieldShape( centreX, y + inset, width - 2.0f * rim, height - 3 * inset, LIT_COLOR, SHADED_COLOR );
- }
-
-} // end drawGuardMarkers
-
-//-------------------------------------------------------------------------------------------------
-/** A patch of the ally's own colour on the ground under their cursor. It is a fan of rings whose
- * alpha falls to nothing at the rim, drawn in the terrain pass like the attack circle's wash, so
- * units and buildings stand on top of it and it reads as light on the map rather than as a disc
- * hanging over it.
- *
- * Faint on purpose: seven of these at full strength would be seven holes in the map. */
-//-------------------------------------------------------------------------------------------------
-void W3DInGameUI::drawAllyCursorLights( void )
-{
- if( !TheGlobalData->m_showAllyCursors || TheGlobalData->isClassicUI() )
- return;
-
- enum { LIGHT_SEGMENTS = 20, LIGHT_RINGS = 5 };
- const Real LIGHT_RADIUS = 55.0f; // about three tanks across, so it reads at the zoom people play at
- const Real LIGHT_LIFT = 0.35f; // the same hair off the dirt the attack circle's wash takes
- const Real LIGHT_CENTRE_ALPHA = 0x78;
-
- Bool stateSet = FALSE;
-
- for( Int playerIndex = 0; playerIndex < MAX_PLAYER_COUNT; ++playerIndex )
- {
- const Real fade = getAllyCursorFade( playerIndex );
- if( fade <= 0.0f )
- continue;
-
- // a cursor is only ever known for a player who was found and vouched for on the way in
- Player *player = ThePlayerList->getNthPlayer( playerIndex );
-
- const Coord3D& centre = getAllyCursor( playerIndex ).shown;
- const UnsignedInt rgb = (UnsignedInt)clientPlayerColor( player ) & 0x00FFFFFF;
-
- Vector3 ring[ LIGHT_RINGS + 1 ][ LIGHT_SEGMENTS + 1 ];
- Int r, s;
- for( r = 0; r <= LIGHT_RINGS; ++r )
- {
- const Real ringRadius = LIGHT_RADIUS * (Real)r / (Real)LIGHT_RINGS;
- for( s = 0; s <= LIGHT_SEGMENTS; ++s )
- {
- const Real angle = 2.0f * PI * (Real)s / (Real)LIGHT_SEGMENTS;
- const Real x = centre.x + ringRadius * (Real)cos( angle );
- const Real y = centre.y + ringRadius * (Real)sin( angle );
- ring[ r ][ s ].Set( x, y, TheTerrainLogic->getGroundHeight( x, y ) + LIGHT_LIFT );
- }
- }
-
- // the alpha of ring r, so the patch is brightest under the pointer and gone at the rim. The
- // falloff holds its strength through the middle and then drops, which is what a pool of light
- // looks like; a straight ramp reads as a flat disc with a hard edge
- UnsignedInt ringColor[ LIGHT_RINGS + 1 ];
- for( r = 0; r <= LIGHT_RINGS; ++r )
- {
- const Real across = (Real)r / (Real)LIGHT_RINGS;
- const Real remaining = 1.0f - across;
- ringColor[ r ] = overlayColor( rgb, LIGHT_CENTRE_ALPHA * fade * remaining * remaining * ( 3.0f - 2.0f * remaining ) );
- }
-
- // one render state for all of them, and only if there turned out to be something to draw
- if( stateSet == FALSE )
- {
- setGroundOverlayState();
- stateSet = TRUE;
- }
-
- GroundOverlayQuads &quads = theGroundOverlayQuads;
-
- // the innermost band is a fan around the centre point, two segments to a quad - running it
- // through the ring loop below would give every second triangle no area at all
- for( s = 0; s < LIGHT_SEGMENTS; s += 2 )
- {
- quads.add( ring[ 0 ][ 0 ], ring[ 1 ][ s ], ring[ 1 ][ s + 1 ], ring[ 1 ][ s + 2 ],
- ringColor[ 0 ], ringColor[ 1 ], ringColor[ 1 ], ringColor[ 1 ] );
- }
-
- for( r = 1; r < LIGHT_RINGS; ++r )
- {
- for( s = 0; s < LIGHT_SEGMENTS; ++s )
- {
- quads.add( ring[ r ][ s ], ring[ r + 1 ][ s ], ring[ r + 1 ][ s + 1 ], ring[ r ][ s + 1 ],
- ringColor[ r ], ringColor[ r + 1 ], ringColor[ r + 1 ], ringColor[ r ] );
- }
- }
- }
-
- if( stateSet )
- theGroundOverlayQuads.flush();
-
-} // end drawAllyCursorLights
-
-//-------------------------------------------------------------------------------------------------
-/** Each ally's mouse, drawn as their name in their own colour sitting in the middle of the pool of
- * light on the ground under it. No pointer: a second arrow on screen is read as your own for the
- * half second it takes to notice it is not, and the name is the part that says whose it is.
- *
- * An ally who stops sending - alt-tabbed, or dropped - fades out rather than vanishing, which is
- * the difference between "they went away" and "the network hiccuped". */
-//-------------------------------------------------------------------------------------------------
-void W3DInGameUI::drawAllyCursors( void )
-{
- if( !TheGlobalData->m_showAllyCursors )
- return;
-
- const Int NAME_POINT_SIZE = 10;
-
- for( Int playerIndex = 0; playerIndex < MAX_PLAYER_COUNT; ++playerIndex )
- {
- const Real fade = getAllyCursorFade( playerIndex );
- if( fade <= 0.0f )
- continue;
-
- // a cursor is only ever known for a player who was found and vouched for on the way in
- Player *player = ThePlayerList->getNthPlayer( playerIndex );
-
- // a cursor off the side of the screen still has a usable pixel; only one behind the camera
- // has not, which is the one case worldToScreenTriReturn calls invalid
- ICoord2D screen;
- if( TheTacticalView->worldToScreenTriReturn( &getAllyCursor( playerIndex ).shown, &screen ) == View::WTS_INVALID )
- continue;
-
- const UnsignedInt alpha = (UnsignedInt)REAL_TO_INT( 255.0f * fade );
- const UnsignedInt rgb = (UnsignedInt)clientPlayerColor( player ) & 0x00FFFFFF;
- const Color tint = (Color)( rgb | ( alpha << 24 ) );
- const Color dropColor = GameMakeColor( 0, 0, 0, (UnsignedByte)alpha );
-
- if( m_allyCursorNames[ playerIndex ] == NULL )
- {
- m_allyCursorNames[ playerIndex ] = TheDisplayStringManager->newDisplayString();
- m_allyCursorNames[ playerIndex ]->setFont( TheWindowManager->winFindFont(
- AsciiString( "Arial" ),
- TheGlobalLanguageData->adjustFontSize( NAME_POINT_SIZE ), TRUE ) );
- }
-
- // set every frame: a player who is destroyed or renamed mid-match should not keep a stale plate
- m_allyCursorNames[ playerIndex ]->setText( player->getPlayerDisplayName() );
-
- // centred on the reported spot in both directions, so the name sits in the middle of its own
- // pool of light and the two together are the marker
- Int nameWidth = 0, nameHeight = 0;
- m_allyCursorNames[ playerIndex ]->getSize( &nameWidth, &nameHeight );
- m_allyCursorNames[ playerIndex ]->draw( screen.x - nameWidth / 2,
- screen.y - nameHeight / 2,
- tint, dropColor );
- }
-
-} // end drawAllyCursors
-
-//-------------------------------------------------------------------------------------------------
-/** Classic: EA's animated ring on the ground where a move order landed, 40 client frames each.
- * EA's own code, deleted by fec052cc, back for Classic only (InGameUI::createMoveHint fills it). */
+/** EA's animated ring on the ground where a move order landed, 40 client frames each. EA's own
+ * code, deleted by fec052cc and brought back (InGameUI::createMoveHint fills it). */
//-------------------------------------------------------------------------------------------------
void W3DInGameUI::drawMoveHints( View *view )
{
- const Bool classic = TheGlobalData->isClassicUI();
for( Int i = 0; i < MAX_MOVE_HINTS; i++ )
{
Int elapsed = TheGameClient->getFrame() - m_moveHint[i].frame;
- if( classic && m_moveHint[ i ].frame != 0 && elapsed <= 40 )
+ if( m_moveHint[ i ].frame != 0 && elapsed <= 40 )
{
// create render object and add to scene of needed
if( m_moveHintRenderObj[ i ] == NULL )
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
index 8a7900cc2..a1e453c27 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp
@@ -364,7 +364,7 @@ void W3DView::setOrigin( Int x, Int y)
// only the manual zoom limit is stretched - the default/scripted views still use
// m_maxHeightAboveGround, so a map still opens framed the way its author meant it to.
// 2.9 puts the ceiling at 899 over GameData.ini's MaxCameraHeight of 310; it was 3.2 (992).
-// Classic shares the reach and keeps EA's 10 unit wheel step (View.cpp).
+// The wheel keeps EA's 10 unit step (View.cpp).
#define ZOOM_OUT_LIMIT_FACTOR (2.9f)
void W3DView::buildCameraTransform( Matrix3D *transform )
{
@@ -381,8 +381,7 @@ void W3DView::buildCameraTransform( Matrix3D *transform )
pos.x += m_shakeOffset.x;
pos.y += m_shakeOffset.y;
- // Classic keeps the game's own constraint whatever Options.ini says
- if ((TheGlobalData->m_useCameraConstraints || TheGlobalData->isClassicUI()) && m_cameraConstraintValid)
+ if (TheGlobalData->m_useCameraConstraints && m_cameraConstraintValid)
{
pos = constrainCameraPosition(pos, m_cameraConstraint);
}
@@ -608,7 +607,7 @@ void W3DView::buildCameraTransform( Matrix3D *transform )
void W3DView::applyCameraConstraint( void )
{
// the freecam owns the camera and is held to no constraint, as in setCameraTransform
- if (m_freeCamera || !(TheGlobalData->m_useCameraConstraints || TheGlobalData->isClassicUI()))
+ if (m_freeCamera || !TheGlobalData->m_useCameraConstraints)
return;
if (!m_cameraConstraintValid)
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3dWaypointBuffer.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3dWaypointBuffer.cpp
index 6a3fe52be..4d82b92d5 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3dWaypointBuffer.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3dWaypointBuffer.cpp
@@ -193,67 +193,17 @@ void W3DWaypointBuffer::drawWaypoints(RenderInfoClass &rinfo)
// Retail drew its own white nodes-and-lines here for every selected unit's goal path while
- // isInWaypointMode() (shift held) was true. The shift queue now has its own colored, per-order
- // hint threads (InGameUI::updateOrderHints / W3DInGameUI::drawOrderHints), which cover the same
- // ground and stay up after the key is let go, so the white duplicate is gone rather than merely
- // hidden - its only firing condition was this same isInWaypointMode() check. Classic has no
- // threads and its waypoint key is Alt, so it draws the white path the game shipped with.
- if( TheGlobalData->isClassicUI() && TheInGameUI->isInWaypointMode() )
- {
- //Create a default light environment with no lights and only full ambient.
- //@todo: Fix later by copying default scene light environement from W3DScene.cpp.
- LightEnvironmentClass lightEnv;
- lightEnv.Reset(Vector3(0,0,0), Vector3(1.0f,1.0f,1.0f));
- lightEnv.Pre_Render_Update(rinfo.Camera.Get_Transform());
- RenderInfoClass localRinfo(rinfo.Camera);
- localRinfo.light_environment=&lightEnv;
- Vector3 points[ MAX_DISPLAY_NODES + 1 ]; //Lines have nodes + 1 points.
-
- const DrawableList *selected = TheInGameUI->getAllSelectedDrawables();
- for( DrawableListCIt it = selected->begin(); it != selected->end(); ++it )
- {
- Object *obj = (*it)->getObject();
- Int numPoints = 1;
- if( obj && ! obj->isKindOf( KINDOF_IGNORED_IN_GUI ))//so mobs and stuff sont make a gazillion lines
- {
- AIUpdateInterface *ai = obj->getAI();
- Int goalSize = ai ? ai->friend_getWaypointGoalPathSize() : 0;
- Int gpIdx = ai ? ai->friend_getCurrentGoalPathIndex() : 0;
-
- if( ai && gpIdx >= 0 && gpIdx < goalSize )
- {
- const Coord3D *pos = obj->getPosition();
- points[ 0 ].Set( Vector3( pos->x, pos->y, pos->z ) );
-
- for( int i = gpIdx; i < goalSize; i++ )
- {
- const Coord3D *waypoint = ai->friend_getGoalPathPosition( i );
- if( waypoint )
- {
- if( numPoints < MAX_DISPLAY_NODES + 1 )
- {
- points[ numPoints ].Set( Vector3( waypoint->x, waypoint->y, waypoint->z ) );
- numPoints++;
- }
-
- m_waypointNodeRobj->Set_Position(Vector3(waypoint->x,waypoint->y,waypoint->z));
- WW3D::Render(*m_waypointNodeRobj,localRinfo);
- }
- }
- //Now render the lines in one pass!
- queueLine( numPoints, points );
- }
- }
- }
- }
-
- // Reforged draws every order the selection is on the way a building's rally point is drawn: this
+ // isInWaypointMode() (shift held) was true. The shift queue now has its own per-order hint
+ // threads (InGameUI::updateOrderHints), which cover the same ground and stay up after the key is
+ // let go, so the white duplicate is gone.
+ //
+ // Every order the selection is on is drawn the way a building's rally point is drawn: this
// line, the puck on each point short of the end and on any unit or building it is aimed at, and
// the rally flag on the last bit of ground (a drawable of its own, InGameUI::updateOrderFlags).
// The hints are rebuilt off the units every frame, so a puck on a target follows it.
// not in the water's mirror pass: the ground is left out of the reflection, and a PASS_ALWAYS
// line would lie on top of the water
- if( !TheGlobalData->isClassicUI() && !TheInGameUI->getOrderHints().empty() && !ShaderClass::Is_Backface_Culling_Inverted() )
+ if( !TheInGameUI->getOrderHints().empty() && !ShaderClass::Is_Backface_Culling_Inverted() )
{
LightEnvironmentClass lightEnv;
lightEnv.Reset(Vector3(0,0,0), Vector3(1.0f,1.0f,1.0f));
diff --git a/GeneralsMD/Code/Libraries/Source/litehtml-parsed-css.patch b/GeneralsMD/Code/Libraries/Source/litehtml-parsed-css.patch
deleted file mode 100644
index dc2280f59..000000000
--- a/GeneralsMD/Code/Libraries/Source/litehtml-parsed-css.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-diff --git a/include/litehtml/document.h b/include/litehtml/document.h
-index e01f5b4..ba7353e 100644
---- a/include/litehtml/document.h
-+++ b/include/litehtml/document.h
-@@ -113,7 +113,9 @@ namespace litehtml
- const estring& str,
- document_container* container,
- const string& master_styles = litehtml::master_css,
-- const string& user_styles = "");
-+ const string& user_styles = "",
-+ const css* master_parsed = nullptr, // ZHR: parsed once by the caller, used in place of master_styles
-+ const css* user_parsed = nullptr); // ZHR: and of user_styles
-
- private:
- uint_ptr add_font(const font_description& descr, font_metrics* fm);
-diff --git a/src/document.cpp b/src/document.cpp
-index abf3987..6a41cf4 100644
---- a/src/document.cpp
-+++ b/src/document.cpp
-@@ -52,7 +52,9 @@ document::ptr document::createFromString(
- const estring& str,
- document_container* container,
- const string& master_styles,
-- const string& user_styles )
-+ const string& user_styles,
-+ const css* master_parsed,
-+ const css* user_parsed )
- {
- // Create litehtml::document
- document::ptr doc = make_shared<document>(container);
-@@ -79,12 +81,20 @@ document::ptr document::createFromString(
- // Destroy GumboOutput
- gumbo_destroy_output(&kGumboDefaultOptions, output);
-
-- if (master_styles != "")
-+ if (master_parsed)
-+ {
-+ doc->m_master_css = *master_parsed;
-+ }
-+ else if (master_styles != "")
- {
- doc->m_master_css.parse_css_stylesheet(master_styles, "", doc);
- doc->m_master_css.sort_selectors();
- }
-- if (user_styles != "")
-+ if (user_parsed)
-+ {
-+ doc->m_user_css = *user_parsed;
-+ }
-+ else if (user_styles != "")
- {
- doc->m_user_css.parse_css_stylesheet(user_styles, "", doc);
- doc->m_user_css.sort_selectors();
diff --git a/GeneralsMD/Code/Libraries/Source/litehtml/.gitignore b/GeneralsMD/Code/Libraries/Source/litehtml/.gitignore
deleted file mode 100644
index 5e7d2734c..000000000
--- a/GeneralsMD/Code/Libraries/Source/litehtml/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-# Ignore everything in this directory
-*
-# Except this file
-!.gitignore
diff --git a/GeneralsMD/Code/Libraries/Source/nanosvg/.gitignore b/GeneralsMD/Code/Libraries/Source/nanosvg/.gitignore
deleted file mode 100644
index 5e7d2734c..000000000
--- a/GeneralsMD/Code/Libraries/Source/nanosvg/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-# Ignore everything in this directory
-*
-# Except this file
-!.gitignore
diff --git a/GeneralsMD/Code/Tests/test_camera_behavior.inc b/GeneralsMD/Code/Tests/test_camera_behavior.inc
index 2f5ca4c35..a818a20c8 100644
--- a/GeneralsMD/Code/Tests/test_camera_behavior.inc
+++ b/GeneralsMD/Code/Tests/test_camera_behavior.inc
@@ -125,8 +125,8 @@ struct CameraInputFixture
static GameLogic *logic = NEW GameLogic;
TheGameLogic = logic;
global->m_saveCameraInReplay = FALSE;
- // the tests below are Reforged's camera unless they switch to Classic themselves
- global->m_interfaceStyle = INTERFACE_STYLE_REFORGED;
+ // the tests below are Reforged's mouse unless they switch to Classic themselves
+ global->m_mouseStyle = MOUSE_STYLE_REFORGED;
}
~CameraInputFixture()
{
@@ -186,17 +186,13 @@ TEST(camera_margin_preferences_load_and_rebuild_constraints)
CHECK(bootOnce());
CameraInputFixture f;
UserPreferences pref;
- pref[AsciiString("UseCameraConstraints")] = AsciiString("Yes");
pref[AsciiString("CameraBoundaryMargin")] = AsciiString("300");
loadOptionsFromPreferences(pref);
CHECK(f.global->m_useCameraConstraints);
CHECK_EQ(f.global->m_cameraBoundaryMargin, 300);
CHECK_EQ(f.view.constraintRecalcs, 1);
- // Classic keeps the constraint on whatever the box says, and runs past the edge as far: a pan
- // puts the margin back the way it does in Reforged
- f.global->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
- f.global->m_useCameraConstraints = FALSE;
+ // a pan puts the margin back
GameMessage *key = newInstance(GameMessage)(GameMessage::MSG_RAW_KEY_DOWN);
key->appendIntegerArgument(KEY_RIGHT);
key->appendIntegerArgument(KEY_STATE_DOWN);
@@ -241,7 +237,7 @@ TEST(camera_wheel_anchors_zoom_to_cursor_only_with_the_box_ticked)
CHECK_EQ(f.view.zoomAnchor.y, cursor.y);
// Classic honours the box too
- f.global->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ f.global->m_mouseStyle = MOUSE_STYLE_CLASSIC;
spinWheel();
CHECK_EQ(f.view.zoomAnchors, 2);
f.global->m_zoomToCursor = FALSE;
@@ -275,7 +271,7 @@ TEST(ctrl_wheel_zooms_five_notches_for_one)
CHECK_NEAR(1000.0f - heightAfterOneNotch(), plain, 0.01f);
// Classic's Ctrl is force fire, so its notch is the plain one, Ctrl or not, as fast as Reforged's
- f.global->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ f.global->m_mouseStyle = MOUSE_STYLE_CLASSIC;
f.keyboard.modifiers(KEY_STATE_LCONTROL);
CHECK_NEAR(1000.0f - heightAfterOneNotch(), plain, 0.01f);
@@ -385,7 +381,7 @@ TEST(a_match_opens_300_over_the_ground_in_both_interfaces)
CHECK(!f.global->m_startAtMaxZoom);
for (Int style = 0; style < 2; ++style)
{
- f.global->m_interfaceStyle = style ? INTERFACE_STYLE_CLASSIC : INTERFACE_STYLE_REFORGED;
+ f.global->m_mouseStyle = style ? MOUSE_STYLE_CLASSIC : MOUSE_STYLE_REFORGED;
f.global->m_startAtMaxZoom = FALSE;
f.view.setZoomToStart(FALSE);
CHECK_NEAR(f.view.getHeightAboveGround(), 300.0f, 0.001f);
@@ -421,7 +417,7 @@ TEST(scroll_speed_follows_the_zoom_in_both_interfaces)
const Real maxHeight = f.global->m_maxCameraHeight;
for (Int style = 0; style < 2; ++style)
{
- f.global->m_interfaceStyle = style ? INTERFACE_STYLE_CLASSIC : INTERFACE_STYLE_REFORGED;
+ f.global->m_mouseStyle = style ? MOUSE_STYLE_CLASSIC : MOUSE_STYLE_REFORGED;
f.global->m_keyboardScrollFactor = 0.5f;
// where a map opens, the step the arrow keys always took: SCROLL_AMT 100 times the speed
const Real opening = stepAt(maxHeight);
@@ -484,7 +480,7 @@ TEST(right_drag_pans_past_the_drag_tolerance_and_middle_drag_turns)
CHECK(!f.camera.isMovingCamera());
// Classic's right drag is the same retail scroll, started by the press itself as 1.04 started it
- f.global->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ f.global->m_mouseStyle = MOUSE_STYLE_CLASSIC;
mouse(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN, 300, 300);
CHECK(f.ui->scrolling);
CHECK(f.camera.isRightDragPanning());
diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cpp
index 9d1c7f86c..be2e2e6a3 100644
--- a/GeneralsMD/Code/Tests/test_gameengine.cpp
+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp
@@ -62,7 +62,6 @@
#include "GameClient/HotKey.h"
#include "GameClient/ClickTolerance.h"
#include "Common/version.h"
-#include "GameClient/HtmlTemplate.h"
#include "GameClient/KeyDownInfo.h"
#include "GameClient/GameWindowTransitions.h"
#include "GameLogic/ScenarioDrill.h"
@@ -1357,26 +1356,15 @@ TEST(hotkey_names_fold_turkish_letters_and_case)
CHECK( HotKeyManager::nameOf( 0x015E ) != HotKeyManager::nameOf( L'^' ) ); // not its low byte
}
-/* InGameUI.cpp: Classic is the game as shipped, where ctrl held was force fire. */
-extern Bool InGameUI_isForceFireOn( Bool forceAttackArmed, Bool ctrlHeld, Bool classicUI );
-
-TEST(ctrl_force_fires_in_classic_and_only_there)
-{
- CHECK( InGameUI_isForceFireOn( FALSE, TRUE, TRUE ) );
- CHECK( !InGameUI_isForceFireOn( FALSE, TRUE, FALSE ) );
- CHECK( InGameUI_isForceFireOn( TRUE, FALSE, FALSE ) );
- CHECK( !InGameUI_isForceFireOn( FALSE, FALSE, TRUE ) );
-}
-
-/* GlobalData.h: which button orders. Classic 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. */
+/* 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)
{
GlobalData *saved = TheWritableGlobalData;
TheWritableGlobalData = NEW GlobalData;
CHECK( !TheGlobalData->m_useAlternateMouse );
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ TheWritableGlobalData->m_mouseStyle = MOUSE_STYLE_CLASSIC;
CHECK( TheGlobalData->leftButtonOrders() );
CHECK( !TheGlobalData->rightButtonOrders() );
@@ -1384,7 +1372,7 @@ TEST(alternate_mouse_moves_the_order_button_in_classic_only)
CHECK( !TheGlobalData->leftButtonOrders() );
CHECK( TheGlobalData->rightButtonOrders() );
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_REFORGED;
+ TheWritableGlobalData->m_mouseStyle = MOUSE_STYLE_REFORGED;
CHECK( !TheGlobalData->leftButtonOrders() );
CHECK( TheGlobalData->rightButtonOrders() );
TheWritableGlobalData->m_useAlternateMouse = FALSE;
@@ -3607,7 +3595,6 @@ TEST(pathfind_zone_flatten_collapses_a_deep_chain_in_one_pass)
header carries the class, not these. */
extern Int ControlBar_secondsFromFrames( Real frames );
extern Int ControlBar_secondsFromFramesAt( Real frames, Int logicFps );
-extern Int ControlBar_experiencePercent( Int currentExp, Int levelExp, Int nextLevelExp );
extern Int ControlBar_purchaseScienceRank( Int column, Int depth, Int *indexOut );
TEST(controlbar_promotion_columns_map_to_the_screens_three_rows)
@@ -3832,65 +3819,12 @@ TEST(controlbar_stance_key_takes_what_the_buttons_leave)
CHECK_EQ( keys[ key ], -1 );
}
-/* The money plate follows its figure's width: wider at once, narrower only once the narrower figure
- has held for MONEY_SHRINK_HOLD_MS, and then eased down over MONEY_SHRINK_EASE_MS. */
-TEST(the_money_plate_grows_at_once_and_shrinks_only_after_a_hold)
-{
- const Int WIDE = 120, NARROW = 100;
- const UnsignedInt START = 100000;
-
- MoneyPlateWidth plate = MoneyPlateWidth();
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, NARROW, START ), NARROW );
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, WIDE, START + 16 ), WIDE );
-
- // narrower: held until the hold is up, then eased, never under the figure, and settled at the end
- UnsignedInt now = START + 1000;
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, NARROW, now ), WIDE );
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, NARROW, now + MONEY_SHRINK_HOLD_MS - 1 ), WIDE );
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, NARROW, now + MONEY_SHRINK_HOLD_MS ), WIDE );
- Int last = WIDE;
- for( UnsignedInt step = 16; step < MONEY_SHRINK_EASE_MS; step += 16 )
- {
- const Int width = InGameUI_moneyPlateWidth( plate, NARROW, now + MONEY_SHRINK_HOLD_MS + step );
- CHECK( width <= last && width >= NARROW );
- last = width;
- }
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, NARROW, now + MONEY_SHRINK_HOLD_MS + MONEY_SHRINK_EASE_MS ), NARROW );
-
- // a wider figure in the wait calls the shrink off, and the next narrower one starts the wait again
- now += 10000;
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, WIDE, now ), WIDE );
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, NARROW, now + 1000 ), WIDE );
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, WIDE, now + 2500 ), WIDE );
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, NARROW, now + 3000 ), WIDE );
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, NARROW, now + 3000 + MONEY_SHRINK_HOLD_MS - 1 ), WIDE );
-
- // 9990 and 10010 in turn every second while building: the plate never moves
- now += 20000;
- for( Int second = 0; second < 30; second++ )
- for( UnsignedInt frame = 0; frame < 1000; frame += 16 )
- CHECK_EQ( InGameUI_moneyPlateWidth( plate, second % 2 ? NARROW : WIDE, now + second * 1000 + frame ), WIDE );
-}
-
-/* CommandMapReforged.ini binds COMMAND_SLOTnn to the key of place nn - 1: the grid reads Q W E R T Y,
- A S D F G H, Z X C V B N, so a place's key is where the owner put it on 2026-09-28 - a unit's attack
- on A, stop on S, attack move on D, eject on Z, guard on X, hold on C, move on V; a building's sell
- on N, rally point on B and evacuate on Z; a worker's disarm on N, its fakes on H and the Demolition
- worker's charge on B. No other record may hold one of those letters bare, or it comes first in the
- list and steals the key. */
+/* The command grid reads Q W E R T Y, A S D F G H, Z X C V B N, so a place's key is where the owner
+ put it on 2026-09-28 - a unit's attack on A, stop on S, attack move on D, eject on Z, guard on X,
+ hold on C, move on V; a building's sell on N, rally point on B and evacuate on Z; a worker's disarm
+ on N, its fakes on H and the Demolition worker's charge on B. */
TEST(the_command_grid_keys_are_the_places_and_n_sells_and_b_rallies)
{
- FILE *fp = fopen( COMMAND_MAP_REFORGED_INI, "rb" );
- CHECK( fp != NULL );
- if( fp == NULL )
- return;
- std::string text;
- char chunk[ 1024 ];
- size_t got = 0;
- while( ( got = fread( chunk, 1, sizeof( chunk ), fp ) ) > 0 )
- text.append( chunk, got );
- fclose( fp );
-
static const char GRID_KEYS[] = "QWERTYASDFGHZXCVBN";
CHECK_EQ( (Int)strlen( GRID_KEYS ), (Int)COMMAND_PLACE_COUNT );
CHECK_EQ( GRID_KEYS[ COMMAND_PLACE_ATTACK ], 'A' );
@@ -3948,52 +3882,6 @@ TEST(the_command_grid_keys_are_the_places_and_n_sells_and_b_rallies)
CHECK_EQ( GRID_KEYS[ places[ 2 ] ], 'Z' );
CHECK_EQ( GRID_KEYS[ places[ 3 ] ], 'Q' );
CHECK_EQ( GRID_KEYS[ places[ 4 ] ], 'W' );
-
- // every block as name, key and modifiers
- Int slotsBound = 0;
- std::string name, key, modifiers;
- size_t at = 0;
- while( at < text.size() )
- {
- size_t end = text.find( '\n', at );
- if( end == std::string::npos )
- end = text.size();
- std::string line = text.substr( at, end - at );
- at = end + 1;
- const size_t comment = line.find( ';' );
- if( comment != std::string::npos )
- line.erase( comment );
- char word[ 64 ] = { 0 };
- char value[ 64 ] = { 0 };
- if( sscanf( line.c_str(), " CommandMap %63s", word ) == 1 )
- {
- name = word;
- key.clear();
- modifiers = "NONE";
- }
- else if( sscanf( line.c_str(), " Key = %63s", value ) == 1 )
- key = value;
- else if( sscanf( line.c_str(), " Modifiers = %63s", value ) == 1 )
- modifiers = value;
- else if( sscanf( line.c_str(), " %63s", word ) == 1 && strcmp( word, "End" ) == 0 && !name.empty() )
- {
- Int slot = 0;
- if( sscanf( name.c_str(), "COMMAND_SLOT%d", &slot ) == 1 )
- {
- CHECK( slot >= 1 && slot <= COMMAND_PLACE_COUNT );
- if( slot >= 1 && slot <= COMMAND_PLACE_COUNT )
- {
- CHECK_STR( key.c_str(), ( std::string( "KEY_" ) + GRID_KEYS[ slot - 1 ] ).c_str() );
- CHECK_STR( modifiers.c_str(), "NONE" );
- slotsBound++;
- }
- }
- else if( modifiers == "NONE" && key.size() == 5 && key.compare( 0, 4, "KEY_" ) == 0 )
- CHECK( strchr( GRID_KEYS, key[ 4 ] ) == NULL );
- name.clear();
- }
- }
- CHECK_EQ( slotsBound, (Int)COMMAND_PLACE_COUNT );
}
TEST(controlbar_seconds_round_up_and_never_reach_zero_early)
@@ -4075,28 +3963,6 @@ TEST(rate_reading_holds_through_jitter_and_follows_a_real_drop)
CHECK_EQ( rate.shown, 60 );
}
-TEST(controlbar_experience_percent_fills_the_rank_and_clamps)
-{
- /* a fresh unit at the bottom of its rank */
- CHECK_EQ( ControlBar_experiencePercent( 0, 0, 100 ), 0 );
- CHECK_EQ( ControlBar_experiencePercent( 50, 0, 100 ), 50 );
- CHECK_EQ( ControlBar_experiencePercent( 99, 0, 100 ), 99 );
-
- /* the window is between two thresholds, not from zero: half way from 100 to 300 is 50% */
- CHECK_EQ( ControlBar_experiencePercent( 200, 100, 300 ), 50 );
-
- /* experience past the next threshold (the level has not been applied yet) pins the bar full
- rather than overflowing it, and a sink that took points away pins it empty */
- CHECK_EQ( ControlBar_experiencePercent( 400, 100, 300 ), 100 );
- CHECK_EQ( ControlBar_experiencePercent( 50, 100, 300 ), 0 );
-
- /* no next rank to fill towards - top rank, or a template with no thresholds at all - is the
- "draw no bar" answer, and must not be a division by zero */
- CHECK_EQ( ControlBar_experiencePercent( 500, 300, 300 ), -1 );
- CHECK_EQ( ControlBar_experiencePercent( 0, 0, 0 ), -1 );
- CHECK_EQ( ControlBar_experiencePercent( 10, 300, 100 ), -1 );
-}
-
/* ---------------------------------------------------------------------------------------------
Multiplayer pacing.
@@ -6303,61 +6169,6 @@ TEST(an_overlong_chat_line_keeps_its_length_instead_of_wrapping_to_a_short_one)
ref->deleteInstance();
}
-/* An ally cursor is two floats on a command of its own, and the packet writer and the packet
- reader are two separate hand-written walks over the same bytes - a field added to one and not
- the other reads the next command's header as position data. So the round trip is pinned: what
- goes in comes out, on the right slot, as the right command type. */
-TEST(an_ally_cursor_survives_the_round_trip_through_a_packet)
-{
- const Real sentX = 1234.5f;
- const Real sentY = -678.25f;
-
- NetAllyCursorCommandMsg *cursor = newInstance( NetAllyCursorCommandMsg );
- cursor->setPosition( sentX, sentY );
- cursor->setPlayerID( 3 );
- cursor->setID( 0 );
- cursor->setExecutionFrame( 0 );
-
- NetCommandRef *ref = newInstance( NetCommandRef )( cursor );
- ref->setRelay( 0x0F );
- cursor->detach(); // the ref holds it now
-
- NetPacket *packet = newInstance( NetPacket );
- packet->init();
- CHECK( packet->addCommand( ref ) );
- CHECK_EQ( packet->getNumCommands(), 1 );
-
- NetCommandList *list = packet->getCommandList();
- NetCommandRef *read = list->getFirstMessage();
- CHECK( read != NULL );
- if( read )
- {
- NetCommandMsg *msg = read->getCommand();
- CHECK_EQ( (Int)msg->getNetCommandType(), (Int)NETCOMMANDTYPE_ALLYCURSOR );
- CHECK_EQ( (Int)msg->getPlayerID(), 3 );
- CHECK_EQ( ((NetAllyCursorCommandMsg *)msg)->getX(), sentX );
- CHECK_EQ( ((NetAllyCursorCommandMsg *)msg)->getY(), sentY );
- }
-
- list->deleteInstance();
- packet->deleteInstance();
- ref->deleteInstance();
-}
-
-/* Nothing about an ally cursor may reach the simulation: it is not acked, not resent, not held for
- a frame and not written to a replay. The three predicates the network layer sorts commands by
- are where that is decided, so they are the thing to pin. */
-TEST(an_ally_cursor_is_never_acked_resent_or_frame_synchronised)
-{
- NetAllyCursorCommandMsg *cursor = newInstance( NetAllyCursorCommandMsg );
-
- CHECK( !DoesCommandRequireACommandID( NETCOMMANDTYPE_ALLYCURSOR ) );
- CHECK( !IsCommandSynchronized( NETCOMMANDTYPE_ALLYCURSOR ) );
- CHECK( !CommandRequiresAck( cursor ) );
-
- cursor->detach(); // the constructor's own reference is the only one
-}
-
/* addCommand's own guard against a null reference sat below the line that followed it, so the one
call it exists to survive was the one call that crashed. */
TEST(adding_a_null_command_to_a_packet_is_refused_not_followed)
@@ -7591,32 +7402,6 @@ TEST(player_color_scheme_round_trips_through_options_ini)
TheWritableGlobalData = saved;
}
-TEST(interface_style_is_classic_unless_the_switch_says_otherwise)
-{
- /* The launcher picks the interface with -interface; Options.ini has no say, so an InterfaceStyle
- key an earlier build saved there cannot turn a run without the switch into Reforged. MenuLayout
- went with it: every menu is fitted now. */
- CHECK( findOptionDef( "InterfaceStyle" ) == NULL );
- CHECK( findOptionDef( "MenuLayout" ) == NULL );
-
- GlobalData *saved = TheWritableGlobalData;
- TheWritableGlobalData = NEW GlobalData;
-
- CHECK_EQ( TheGlobalData->m_interfaceStyle, (Int)INTERFACE_STYLE_CLASSIC );
- CHECK( TheGlobalData->isClassicUI() );
-
- UserPreferences pref;
- pref[ AsciiString( "InterfaceStyle" ) ] = AsciiString( "1" );
- loadOptionsFromPreferences( pref );
- CHECK( TheGlobalData->isClassicUI() );
-
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_REFORGED;
- CHECK( !TheGlobalData->isClassicUI() );
-
- delete TheWritableGlobalData;
- TheWritableGlobalData = saved;
-}
-
/** Every colour the scheme can hand out has to be opaque and has to be visible: an alpha of zero
draws nothing at all, and a member of an alliance past the fourth is a darkened repeat that must
not reach black. */
@@ -12247,216 +12032,6 @@ TEST(every_ai_rung_is_named_the_same_way_as_every_other)
for (Int b = a + 1; b < numRungs; ++b)
CHECK( WideCharCmp( SlotStateName( rungs[a] ).str(), SlotStateName( rungs[b] ).str() ) != 0 );
}
-/* Nine is what the strip shows before the rest of the queue folds into the "+N" that closes it as a
- tenth cell: two rows of five standing on the console over the selection. It used to be sixteen
- across the bottom of the screen, which at a busy war factory ran the cameos most of the way over
- the map. */
-TEST(the_production_strip_folds_a_long_queue_into_its_overflow)
-{
- enum { ROW = 5 };
- CHECK_EQ( 9, (Int)InGameUI::PRODUCTION_STRIP_ROW_MAX );
-
- //
- // The rows, the overflow cell included, have to fill whole rows of five and stand inside the 600
- // the layout is written in with room to spare for the console they stand on: they grow upward,
- // and a cell drawn past the top of the screen is a cell nobody can read.
- //
- const Int cells = (Int)InGameUI::PRODUCTION_STRIP_ROW_MAX + 1;
- CHECK_EQ( 0, cells % ROW );
- const Int height = cells / ROW * (Int)InGameUI::PRODUCTION_STRIP_TRAY_H;
- CHECK( height < 600 / 2 );
-}
-
-/* Every cameo in the strip stands in the tray the general's powers stand in, down in the corner,
- and it stands in it at the size that bar draws it - stretched, the tray's rail and inner frame
- collapse into a coloured smudge and it stops reading as that bar at all. So the strip does not
- get to pick its own numbers: it borrows that bar's, and these are the ones that make the borrowed
- art come out right. Sliding the cameo out of the box painted for it, or over the rail, is the
- way this goes wrong quietly - it still draws, it just looks like a mistake. */
-TEST(a_queue_cameo_sits_in_the_general_power_tray_the_way_that_bar_sits_in_it)
-{
- // the cameo is inside its tray, both ways, art and all
- CHECK( (Int)InGameUI::PRODUCTION_STRIP_TRAY_X >= 0 );
- CHECK( (Int)InGameUI::PRODUCTION_STRIP_TRAY_Y >= 0 );
- CHECK( (Int)InGameUI::PRODUCTION_STRIP_TRAY_X + (Int)InGameUI::PRODUCTION_STRIP_QUEUE_W
- <= (Int)InGameUI::PRODUCTION_STRIP_TRAY_W );
- CHECK( (Int)InGameUI::PRODUCTION_STRIP_TRAY_Y + (Int)InGameUI::PRODUCTION_STRIP_QUEUE_H
- <= (Int)InGameUI::PRODUCTION_STRIP_TRAY_H );
-
- //
- // Six whole trays side by side is what a row costs across - and that has to fit inside the 800
- // the whole layout is written in, or the strip runs off the side of the screen before its
- // overflow count is ever reached.
- //
- const Int rowWidth = (Int)InGameUI::PRODUCTION_STRIP_ROW_MAX * (Int)InGameUI::PRODUCTION_STRIP_TRAY_W;
- CHECK( rowWidth < 800 );
-}
-
-/* Both strips now ask the control bar for the tray, and the control bar works the whole geometry
- out of one number: the size the window loader gave a shortcut slot. Everything downstream - the
- hole the cameo goes in, the step a row runs at - is a fraction of the artwork, so a bar the
- loader scaled to a widescreen resolution scales the strips with it instead of leaving 800x600
- cameos rattling around inside 1600x900 trays.
-
- The numbers checked here are the ones the strip's own constants were authored against: the
- shortcut slot is 48x41 in the 800x600 the layouts are written in. */
-TEST(the_strip_tray_geometry_is_a_fraction_of_whatever_size_the_bar_was_loaded_at)
-{
- ICoord2D tray, cameo, hole;
- Int step = 0;
-
- // nothing to measure is FALSE rather than a division by zero
- CHECK( !ControlBar::trayLayoutFromSlot( 0, 41, &tray, &cameo, &hole, &step ) );
- CHECK( !ControlBar::trayLayoutFromSlot( 48, 0, &tray, &cameo, &hole, &step ) );
- CHECK( !ControlBar::trayLayoutFromSlot( -48, -41, &tray, &cameo, &hole, &step ) );
-
- // the slot the strip's own constants were written against
- CHECK( ControlBar::trayLayoutFromSlot( (Int)InGameUI::PRODUCTION_STRIP_TRAY_W,
- (Int)InGameUI::PRODUCTION_STRIP_TRAY_H,
- &tray, &cameo, &hole, &step ) );
-
- // the tray is the slot, whole: it is never squeezed to fit anything
- CHECK_EQ( (Int)InGameUI::PRODUCTION_STRIP_TRAY_W, tray.x );
- CHECK_EQ( (Int)InGameUI::PRODUCTION_STRIP_TRAY_H, tray.y );
-
- // and the cameo is inside it, art and all, both ways
- CHECK( hole.x >= 0 && hole.y >= 0 );
- CHECK( hole.x + cameo.x <= tray.x );
- CHECK( hole.y + cameo.y <= tray.y );
- CHECK( cameo.x > 0 && cameo.y > 0 );
-
- // a row steps a whole tray, so one tray never lies over the cameo in the next
- CHECK_EQ( tray.x, step );
-
- //
- // Twice the bar, twice everything: an observer borrowing another side's tray gets that side's
- // slot size, and every one of these has to follow it or the borrowed art comes out with the
- // cameo hanging over its rail.
- //
- ICoord2D bigTray, bigCameo, bigHole;
- Int bigStep = 0;
- CHECK( ControlBar::trayLayoutFromSlot( 2 * (Int)InGameUI::PRODUCTION_STRIP_TRAY_W,
- 2 * (Int)InGameUI::PRODUCTION_STRIP_TRAY_H,
- &bigTray, &bigCameo, &bigHole, &bigStep ) );
- CHECK_EQ( 2 * tray.x, bigTray.x );
- CHECK_EQ( 2 * tray.y, bigTray.y );
- CHECK_EQ( 2 * step, bigStep );
- CHECK( bigCameo.x >= 2 * cameo.x - 1 && bigCameo.x <= 2 * cameo.x + 1 );
- CHECK( bigCameo.y >= 2 * cameo.y - 1 && bigCameo.y <= 2 * cameo.y + 1 );
- CHECK( bigHole.x + bigCameo.x <= bigTray.x );
- CHECK( bigHole.y + bigCameo.y <= bigTray.y );
-
- // every out-parameter is optional: the layout pass only wants the step
- Int stepOnly = 0;
- CHECK( ControlBar::trayLayoutFromSlot( (Int)InGameUI::PRODUCTION_STRIP_TRAY_W,
- (Int)InGameUI::PRODUCTION_STRIP_TRAY_H,
- NULL, NULL, NULL, &stepOnly ) );
- CHECK_EQ( step, stepOnly );
-}
-
-/* No tray lies over another, in either direction: a cell steps a whole tray sideways as well as
- upward. A tray sliding under its neighbour cut the rail across the picture next to it, which is
- what the general's powers and the superweapon countdowns both looked like. */
-TEST(a_stacked_tray_does_not_lie_over_the_one_below_it)
-{
- // upward: nothing is taken off, so a cell has to clear the whole picture that stands in it
- CHECK( (Int)InGameUI::PRODUCTION_STRIP_TRAY_Y + (Int)InGameUI::PRODUCTION_STRIP_QUEUE_H
- <= (Int)InGameUI::PRODUCTION_STRIP_TRAY_H );
-
- //
- // the superweapon strip stands in rows of six, as many as it is allowed to grow to, and that pile has
- // to fit under the corner clock plate rather than run off the bottom of the 800x600 it is
- // written in - at the full tray now, which is the taller pile of the two
- //
- const Int rows = (Int)InGameUI::SUPERWEAPON_STRIP_ROWS;
- const Int pileHeight = rows * (Int)InGameUI::PRODUCTION_STRIP_TRAY_H;
- CHECK( pileHeight < 600 / 2 );
-
- const Int rowWidth = (Int)InGameUI::SUPERWEAPON_STRIP_COLS * (Int)InGameUI::PRODUCTION_STRIP_TRAY_W;
- CHECK( rowWidth < 800 );
-}
-
-/* Buildings going up on the map are not in anybody's queue - they are objects standing on the
- ground with a percentage on them - but they land in the same column as the queued items, sorted
- against them on the one thing the two kinds share: how long each still has. The comparison the
- column is built with is therefore blind to which kind a slot is. */
-TEST(the_buildings_going_up_stand_in_the_queue_column)
-{
- // a site three seconds out goes in front of a tank ten seconds out, and not the other way round
- CHECK( InGameUI::stripSlotGoesBefore( FALSE, 90, FALSE, 300 ) );
- CHECK( !InGameUI::stripSlotGoesBefore( FALSE, 300, FALSE, 90 ) );
-}
-
-/* The building you have selected does not get a row of its own: its items lead the queue row, so
- the front of the strip is what the thing you are looking at is making and the rest of the base
- follows it. Inside either block the soonest to finish is still first, and a tie never moves -
- an item only goes in front of one it beats, so a base full of identical barracks does not
- shuffle from frame to frame. */
-TEST(the_selected_buildings_items_lead_the_queue_row)
-{
- // a selected item passes anything that is not selected, however long it has left
- CHECK( InGameUI::stripSlotGoesBefore( TRUE, 9000, FALSE, 1 ) );
- // and nothing that is not selected ever passes one
- CHECK( !InGameUI::stripSlotGoesBefore( FALSE, 1, TRUE, 9000 ) );
-
- // inside a block, soonest first
- CHECK( InGameUI::stripSlotGoesBefore( FALSE, 100, FALSE, 200 ) );
- CHECK( !InGameUI::stripSlotGoesBefore( FALSE, 200, FALSE, 100 ) );
- CHECK( InGameUI::stripSlotGoesBefore( TRUE, 100, TRUE, 200 ) );
- CHECK( !InGameUI::stripSlotGoesBefore( TRUE, 200, TRUE, 100 ) );
-
- // a tie holds its place - in both blocks
- CHECK( !InGameUI::stripSlotGoesBefore( FALSE, 100, FALSE, 100 ) );
- CHECK( !InGameUI::stripSlotGoesBefore( TRUE, 100, TRUE, 100 ) );
-}
-
-/* That bar grows leftward out of the corner, so the heavy rail of its tray is on the right hand
- edge of the artwork. A row running rightward from the left of the screen wants that rail on the
- other side, so the strip draws the tray mirrored - and it mirrors it in the UV rect alone, over
- the same texture page, rather than shipping a second copy of the art the other way round. Every
- other field has to come across with it or the copy draws the wrong piece of the page at the wrong
- size, and the original has to be left alone, because the bar in the corner is still drawing it. */
-TEST(a_mirrored_image_is_the_same_piece_of_texture_the_other_way_round)
-{
- Image *source = newInstance( Image );
- source->setName( AsciiString( "SATraySmall" ) );
- source->setFilename( AsciiString( "SAControlBar512_001.tga" ) );
- source->setTextureWidth( 512 );
- source->setTextureHeight( 512 );
-
- ICoord2D size = { 60, 56 };
- source->setImageSize( &size );
-
- Region2D uv;
- uv.lo.x = 413.0f / 512.0f;
- uv.lo.y = 1.0f / 512.0f;
- uv.hi.x = 473.0f / 512.0f;
- uv.hi.y = 57.0f / 512.0f;
- source->setUV( &uv );
-
- Image *mirrored = newMirroredImage( source );
-
- // the whole point: the horizontal run of the UV rect is reversed
- CHECK_NEAR( 473.0f / 512.0f, mirrored->getUV()->lo.x, 0.0001f );
- CHECK_NEAR( 413.0f / 512.0f, mirrored->getUV()->hi.x, 0.0001f );
-
- // and nothing else about it moves
- CHECK_NEAR( 1.0f / 512.0f, mirrored->getUV()->lo.y, 0.0001f );
- CHECK_NEAR( 57.0f / 512.0f, mirrored->getUV()->hi.y, 0.0001f );
- CHECK_STR( "SAControlBar512_001.tga", mirrored->getFilename().str() );
- CHECK_EQ( 512, mirrored->getTextureSize()->x );
- CHECK_EQ( 512, mirrored->getTextureSize()->y );
- CHECK_EQ( 60, mirrored->getImageWidth() );
- CHECK_EQ( 56, mirrored->getImageHeight() );
-
- // the tray the control bar owns is left exactly as it was found
- CHECK_NEAR( 413.0f / 512.0f, source->getUV()->lo.x, 0.0001f );
- CHECK_NEAR( 473.0f / 512.0f, source->getUV()->hi.x, 0.0001f );
-
- mirrored->deleteInstance();
- source->deleteInstance();
-}
-
//-------------------------------------------------------------------------------------------------
// THREADING-ROADMAP.md 3.1 - the fork-join pool.
//
@@ -12916,7 +12491,6 @@ TEST(the_classic_bar_is_three_plates_on_the_screen_edges_at_one_scale)
GlobalData *saved = TheWritableGlobalData;
TheWritableGlobalData = NEW GlobalData;
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
static const Int screens[][ 2 ] =
{
@@ -13368,31 +12942,13 @@ TEST(controlbar_hud_scale_follows_the_screens_height)
struct Screen { Int w, h; };
const Screen screens[] = { { 1280, 720 }, { 1920, 1080 }, { 2560, 1440 } };
- const Real reference = ControlBarHudScaleFit( ControlBarHudScaleFor( 1920, 1080 ), 1920 ) / 1080.0f;
+ const Real reference = ControlBarHudScaleFor( 1920, 1080 ) / 1080.0f;
for( Int i = 0; i < (Int)ARRAY_SIZE( screens ); i++ )
{
- const Real covered = ControlBarHudScaleFit( ControlBarHudScaleFor( screens[ i ].w, screens[ i ].h ), screens[ i ].w ) / screens[ i ].h;
+ const Real covered = ControlBarHudScaleFor( screens[ i ].w, screens[ i ].h ) / screens[ i ].h;
CHECK_NEAR( covered, reference, 0.0001f );
}
- CHECK_NEAR( ControlBarHudScaleFit( ControlBarHudScaleFor( 2560, 1080 ), 2560 ),
- ControlBarHudScaleFit( ControlBarHudScaleFor( 1920, 1080 ), 1920 ), 0.0001f );
-}
-
-/* HUD Size grows the console until it would no longer fit the screen's width, and there it stops:
- at HUD Size 100% only a screen narrower than about 1.05:1, at 150% one narrower than about 1.57:1,
- which takes in 4:3 and 5:4. */
-TEST(controlbar_hud_size_stops_where_the_console_fills_the_width)
-{
- const Int console = InGameUI_consolePageWidth();
- CHECK( console > 800 && console < 1024 );
- CHECK_NEAR( ControlBarHudScaleFit( 1.26f, 1920 ), 1.26f, 0.001f );
- CHECK_NEAR( ControlBarHudScaleFit( 1.5f, 1280 ), 1280.0f / console, 0.001f );
- CHECK( ControlBarHudScaleFit( 1.5f, 1280 ) * console <= 1280.0f );
- CHECK_NEAR( ControlBarHudScaleFit( 1.0f, 1024 ), 1.0f, 0.001f );
- CHECK( ControlBarHudScaleFit( 1.0f, 800 ) < 1.0f );
- const Real narrow = ControlBarHudScaleFor( 1024, 768 );
- CHECK_NEAR( ControlBarHudScaleFit( narrow, 1024 ), narrow, 0.0001f );
- CHECK( ControlBarHudScaleFit( narrow * 1.5f, 1024 ) < narrow * 1.5f );
+ CHECK_NEAR( ControlBarHudScaleFor( 2560, 1080 ), ControlBarHudScaleFor( 1920, 1080 ), 0.0001f );
}
/* A health bar is drawn in raw pixels over a tank whose own size on screen is set by the camera,
@@ -13665,9 +13221,7 @@ TEST(gameplay_conveniences_are_forced_on_and_left_the_catalog)
GlobalData *scratch = NEW GlobalData;
TheWritableGlobalData = scratch;
- CHECK( scratch->m_showPlacementRangeRing );
CHECK( scratch->m_workersReturnToSupply );
- CHECK( scratch->m_detailedBuildTooltips );
CHECK( scratch->m_archiveReplays );
/* The HUD overlay is out of the catalog too, but its default is the build's: on in the developer
builds, off in Release (a project rule; GameData.ini or -showHudOverlay turns it on). */
@@ -14134,42 +13688,7 @@ TEST(console_set_parses_only_what_the_row_takes)
CHECK( formatOptionValue( *box, 0 ) == "no" );
CHECK( formatOptionValue( *drag, 12 ) == "12" );
- CHECK( findOptionDef( "showsuperweaponstrip" ) != NULL );
-}
-
-/* The income beside the money, per second as it always was until the player picks otherwise.
- Automatic is the one with a rule in it: under ten dollars a second the whole number rounds most
- of the income away, $135 a minute reading "+2/s", so that is where it goes per minute. */
-TEST(income_rate_stays_per_second_until_picked_and_automatic_turns_at_ten_a_second)
-{
- const OptionDef *def = findOptionDef( "IncomeRate" );
- CHECK( def != NULL );
- if( def == NULL )
- return;
- CHECK_EQ( (Int)def->kind, (Int)OPTION_ENUM );
- CHECK_EQ( def->hi, (Int)INCOME_RATE_MODE_COUNT - 1 );
- CHECK( strstr( def->widgetName, "ComboBoxIncomeRate" ) != NULL );
-
- GlobalData *saved = TheWritableGlobalData;
- GlobalData *scratch = NEW GlobalData;
- TheWritableGlobalData = scratch;
-
- CHECK_EQ( def->get(), (Int)INCOME_RATE_PER_SECOND );
- def->set( INCOME_RATE_AUTOMATIC );
- CHECK_EQ( scratch->m_incomeRateMode, (Int)INCOME_RATE_AUTOMATIC );
-
- TheWritableGlobalData = saved;
- delete scratch;
-
- CHECK( !InGameUI_incomePerMinute( INCOME_RATE_PER_SECOND, 0 ) );
- CHECK( !InGameUI_incomePerMinute( INCOME_RATE_PER_SECOND, 500 ) );
- CHECK( InGameUI_incomePerMinute( INCOME_RATE_PER_MINUTE, 0 ) );
- CHECK( InGameUI_incomePerMinute( INCOME_RATE_PER_MINUTE, 500 ) );
- CHECK( InGameUI_incomePerMinute( INCOME_RATE_AUTOMATIC, 0 ) );
- CHECK( InGameUI_incomePerMinute( INCOME_RATE_AUTOMATIC, 2 ) );
- CHECK( InGameUI_incomePerMinute( INCOME_RATE_AUTOMATIC, 9 ) );
- CHECK( !InGameUI_incomePerMinute( INCOME_RATE_AUTOMATIC, 10 ) );
- CHECK( !InGameUI_incomePerMinute( INCOME_RATE_AUTOMATIC, 40 ) );
+ CHECK( findOptionDef( "shownetbox" ) != NULL );
}
TEST(build_plans_are_numbered_in_the_order_their_builder_takes_them)
@@ -15455,39 +14974,6 @@ TEST(map_path_conversion_terminates_on_a_path_with_no_map_file)
CHECK_STR( trailing.str(), "Maps\\Twilight\\" );
}
-/* ControlBar.cpp: layoutPanels used to lift every window in a minimised panel by that panel's
- slide, including the ones applyPanelSlide never moved. Each rebuild of the layout lifted them
- again, placeInPanel then recorded the lifted position as the authored one, and the bar walked
- off the top of its own strip - taking the build tooltip, which is placed against
- BackgroundMarker, off the screen with it. */
-extern Int ControlBar_slideToUndo( Int slideAppliedToWindow, Int panelSlideOffsetNow );
-
-TEST(the_bar_only_lifts_a_window_the_slide_actually_pushed_down)
-{
- // a window the slide moved comes back by exactly what it was moved by
- CHECK_EQ( ControlBar_slideToUndo( 48, 48 ), 48 );
-
- //
- // and one it skipped is left alone, however far its panel says it went. A plate marker and
- // anything in a panel that was minimised immediately are both in this case.
- //
- CHECK_EQ( ControlBar_slideToUndo( 0, 48 ), 0 );
- CHECK_EQ( ControlBar_slideToUndo( 0, 121 ), 0 );
-
- // a window that went down before the panel's slide changed underneath it still comes back whole
- CHECK_EQ( ControlBar_slideToUndo( 30, 0 ), 30 );
- CHECK_EQ( ControlBar_slideToUndo( 30, 90 ), 30 );
-
- // the round trip is a round trip: pushed down by n, lifted by n, net zero
- static const Int pushes[] = { 0, 1, 17, 48, 121 };
- for( Int i = 0; i < 5; i++ )
- {
- const Int y = 400;
- const Int down = y + pushes[ i ];
- CHECK_EQ( down - ControlBar_slideToUndo( pushes[ i ], 121 ), y );
- }
-}
-
/* ControlBar.cpp: a resolution change throws every window away and builds it again, but the bar
itself has to survive - a production queue, a hunt update and the academy all hold a
const CommandButton * that would be left pointing at a freed one. So the window half of init
@@ -15545,54 +15031,6 @@ TEST(command_set_slot_naming_an_unknown_button_is_skipped)
TheControlBar = savedBar;
}
-/* ControlBarScheme.cpp: the scheme places the money readout, the two general's tabs and the toolbar
- column by reading their parent's screen position and subtracting it, and layoutPanels then runs
- over the answer. Asking for the panels back is not the same as having them back - the slide is
- wall-clocked over a fifth of a second - so a scheme rebuilt while the bar was on its way down
- read a parent that was still travelling, and every child it placed came out that far too high.
- layoutPanels lifted the parent back afterwards and dragged them up again, placeInPanel recorded
- the lifted position as the authored one, and it stuck. Measured in a match: 524 with the panels
- sent home first, 294 without. clearPanelSlide is the "first". */
-TEST(sending_the_panels_home_is_not_the_same_as_them_being_home)
-{
- ControlBar bar;
- const Int left = ControlBar::CB_PANEL_LEFT;
- const Int right = ControlBar::CB_PANEL_RIGHT;
- const Int count = ControlBar::CB_PANEL_COUNT;
-
- // away, and all the way away this instant
- bar.showPanel( left, FALSE, TRUE );
- CHECK_NEAR( bar.getPanelSlideFraction( left ), 1.0f, 0.0001f );
- CHECK( bar.isPanelHidden( left ) );
-
- //
- // what switchControlBarStage( CONTROL_BAR_STAGE_DEFAULT ) does: it asks. The panel is still down
- // there, and anything reading a window's position on this frame reads it down there.
- //
- bar.showPanel( left, TRUE );
- CHECK_NEAR( bar.getPanelSlideFraction( left ), 1.0f, 0.0001f );
-
- // clearPanelSlide does not ask, it declares
- bar.clearPanelSlide();
- CHECK_NEAR( bar.getPanelSlideFraction( left ), 0.0f, 0.0001f );
- CHECK( !bar.isPanelHidden( left ) );
-
- // and it speaks for all three, not just the one that was asked about
- Int p;
- for( p = 0; p < count; p++ )
- bar.showPanel( p, FALSE, TRUE );
- bar.clearPanelSlide();
- for( p = 0; p < count; p++ )
- {
- CHECK_NEAR( bar.getPanelSlideFraction( p ), 0.0f, 0.0001f );
- CHECK( !bar.isPanelHidden( p ) );
- }
-
- // a panel that never left is left alone
- bar.clearPanelSlide();
- CHECK_NEAR( bar.getPanelSlideFraction( right ), 0.0f, 0.0001f );
-}
-
/* Mouse.cpp: the tooltip box was placed by two flips and nothing else, under EA's own note that
the tips still had to be kept somewhere readable. A flip is the right answer at the right and
bottom edges and no answer at the left and top, and both are reachable: setCursorTooltip will
@@ -16531,13 +15969,8 @@ TEST(camera_preferences_default_to_a_finite_map_margin)
TheWritableGlobalData = scratch;
CHECK(scratch->m_useCameraConstraints);
CHECK_EQ(scratch->m_cameraBoundaryMargin, 200);
- const OptionDef *bounds = findOptionDef("UseCameraConstraints");
- CHECK(bounds != NULL);
- if (bounds)
- {
- bounds->set(0);
- CHECK(!scratch->m_useCameraConstraints);
- }
+ // -noViewLimit is the only way off, EA's switch; Options.ini has no row for it
+ CHECK(findOptionDef("UseCameraConstraints") == NULL);
delete scratch; // while it is the current one: a Debug build's ~GlobalData reads TheWritableGlobalData
TheWritableGlobalData = saved;
}
@@ -16723,210 +16156,9 @@ TEST(chroma_money_bar_is_a_thousand_credits_a_lamp)
CHECK_EQ(chromaMoneySegments(400000, 15), 15);
}
-// A page's {{names}} take the entry's value first, then the page's, then the lookup's, and nothing
-// at all when none of them knows it; comments go; a data-each element is written once per entry, nested
-// elements of the same name inside it included, and a player's name cannot open a tag.
-TEST(html_template_fills_values_and_repeats_each)
-{
- const std::string page =
- "<!-- a comment may describe {{title}} and data-each=\"players\" -->"
- "<p class=\"{{option:A}}\">{{ title }}</p>"
- "<ul><li class=\"t{{team}}\" data-each=\"players\"><li>{{name}}</li>{{missing}}</li></ul>"
- "<div data-each='nobody'>gone</div>{{text:Label}}";
-
- HtmlValues values;
- values[ "option:A" ] = "on";
- values[ "title" ] = "T";
- values[ "team" ] = "9";
-
- HtmlLists lists;
- HtmlValues first;
- first[ "name" ] = "<b>&";
- HtmlValues second;
- second[ "name" ] = "Bo";
- second[ "team" ] = "1";
- lists[ "players" ].push_back( first );
- lists[ "players" ].push_back( second );
-
- const HtmlLookup lookup = []( const std::string &name, std::string &value ) -> Bool
- {
- if( name != "text:Label" )
- return FALSE;
- value = "looked";
- return TRUE;
- };
-
- CHECK_STR( HtmlTemplate_expand( page, values, lists, lookup ).c_str(),
- "<p class=\"on\">T</p>"
- "<ul><li class=\"t9\" data-each=\"players\"><li>&lt;b&gt;&amp;</li></li>"
- "<li class=\"t1\" data-each=\"players\"><li>Bo</li></li></ul>"
- "looked" );
- CHECK_STR( HtmlTemplate_escape( "a\"b'c" ).c_str(), "a&quot;b&#39;c" );
-
- // the page is cut once and kept by its text: new values still come through on the next call,
- // and a page with other text is cut on its own rather than served the first one's blocks
- values[ "title" ] = "U";
- lists[ "players" ].pop_back();
- CHECK_STR( HtmlTemplate_expand( page, values, lists, lookup ).c_str(),
- "<p class=\"on\">U</p>"
- "<ul><li class=\"t9\" data-each=\"players\"><li>&lt;b&gt;&amp;</li></li></ul>"
- "looked" );
- CHECK_STR( HtmlTemplate_expand( page + "{{title}}", values, lists, lookup ).c_str(),
- "<p class=\"on\">U</p>"
- "<ul><li class=\"t9\" data-each=\"players\"><li>&lt;b&gt;&amp;</li></li></ul>"
- "lookedU" );
- CHECK_STR( HtmlTemplate_expand( "a {{ open", values, lists, lookup ).c_str(), "a {{ open" );
-}
-
-// HtmlOverlay skips filling a page in again when HtmlTemplate_matches says it would come out as the
-// page it already has, so matches has to say exactly what expand() == old would: a changed value,
-// list entry or lookup answer, and an old page longer or shorter than the new one, all differ.
-TEST(html_template_matches_says_what_expand_would)
-{
- const std::string page =
- "<p class=\"{{option:A}}\">{{title}}</p>"
- "<ul><li class=\"t{{team}}\" data-each=\"players\">{{name}}</li></ul>{{text:Label}}";
-
- HtmlValues values;
- values[ "option:A" ] = "on";
- values[ "title" ] = "T&";
- values[ "team" ] = "9";
- HtmlLists lists;
- HtmlValues player;
- player[ "name" ] = "<b>";
- lists[ "players" ].push_back( player );
- player[ "name" ] = "Bo";
- player[ "team" ] = "1";
- lists[ "players" ].push_back( player );
-
- std::string answer = "looked";
- const HtmlLookup lookup = [ &answer ]( const std::string &name, std::string &value ) -> Bool
- {
- if( name != "text:Label" )
- return FALSE;
- value = answer;
- return TRUE;
- };
-
- const std::string old = HtmlTemplate_expand( page, values, lists, lookup );
- CHECK( HtmlTemplate_matches( page, values, lists, lookup, old ) );
- CHECK( !HtmlTemplate_matches( page, values, lists, lookup, old + "x" ) );
- CHECK( !HtmlTemplate_matches( page, values, lists, lookup, old.substr( 0, old.size() - 1 ) ) );
- CHECK( !HtmlTemplate_matches( page, values, lists, lookup, std::string() ) );
-
- HtmlValues changedValues = values;
- changedValues[ "title" ] = "U&";
- CHECK( !HtmlTemplate_matches( page, changedValues, lists, lookup, old ) );
- // a value the page never names changes nothing
- changedValues = values;
- changedValues[ "unused" ] = "x";
- CHECK( HtmlTemplate_matches( page, changedValues, lists, lookup, old ) );
-
- HtmlLists changedLists = lists;
- changedLists[ "players" ][ 1 ][ "name" ] = "Bob";
- CHECK( !HtmlTemplate_matches( page, values, changedLists, lookup, old ) );
- changedLists = lists;
- changedLists[ "players" ].pop_back();
- CHECK( !HtmlTemplate_matches( page, values, changedLists, lookup, old ) );
-
- answer = "other";
- CHECK( !HtmlTemplate_matches( page, values, lists, lookup, old ) );
- answer = "looked";
-
- // against expand itself, over values that shift lengths and escaping from case to case
- const char *const pieces[] = { "", "a", "&", "<>", "<b>", "T&", "9", "\"'", "Bo", "on" };
- const UnsignedInt count = (UnsignedInt)( sizeof( pieces ) / sizeof( pieces[ 0 ] ) );
- UnsignedInt seed = 12345;
- Int agreed = 0;
- for( Int round = 0; round < 64; round++ )
- {
- HtmlValues tryValues = values;
- HtmlLists tryLists = lists;
- seed = seed * 1103515245u + 12345u;
- const char *const piece = pieces[ ( seed >> 8 ) % count ];
- switch( ( seed >> 16 ) % 5 )
- {
- case 0: break; // the inputs it was made from
- case 1: tryValues[ "title" ] = piece; break;
- case 2: tryValues[ "team" ] = piece; break;
- case 3: tryLists[ "players" ][ 0 ][ "name" ] = piece; break;
- case 4: tryLists[ "players" ][ 1 ][ "team" ] = piece; break;
- }
- const Bool same = HtmlTemplate_expand( page, tryValues, tryLists, lookup ) == old;
- CHECK_EQ( HtmlTemplate_matches( page, tryValues, tryLists, lookup, old ), same );
- agreed += same ? 1 : 0;
- }
- // both answers came up, so the loop is not checking one side only
- CHECK( agreed > 0 && agreed < 64 );
-}
-
-// litehtml builds an element for every word and every white space character, so the page it is
-// handed has its stylesheet taken out for the CSS parser and each run of white space between tags
-// cut to one; a tag's attribute values keep theirs, a '>' inside quotes included.
-TEST(a_page_goes_to_litehtml_with_its_style_apart_and_its_spaces_folded)
-{
- std::string body;
- std::string styles;
- HtmlTemplate_compact( "<!DOCTYPE html>\r\n<html>\n <head><style>\n .a b { top: 1px; }\n</style></head>\n"
- " <body>\n\t<div class=\"x y\" data-click='a > b'>one two</div>\n <span>3</span> <span>4</span>\n</body></html>",
- body, styles );
- CHECK_STR( styles.c_str(), "\n .a b { top: 1px; }\n" );
- CHECK_STR( body.c_str(), "<!DOCTYPE html> <html> <head></head> <body> <div class=\"x y\" data-click='a > b'>one two</div> "
- "<span>3</span> <span>4</span> </body></html>" );
-
- HtmlTemplate_compact( "<p>no end<style>.a{}", body, styles );
- CHECK_STR( body.c_str(), "<p>no end<style>.a{}" );
- CHECK_STR( styles.c_str(), "" );
-}
-
-// The spectator's page is the shipped one. It switches no options any more - the strips drop-down
-// that did went with the shelves it switched - so an option: click is a box that does nothing, and
-// only a watched match would show it.
-TEST(the_spectator_page_has_its_pieces_and_no_option_clicks)
-{
- FILE *fp = fopen( SPECTATOR_HTML, "rb" );
- CHECK( fp != NULL );
- if( fp == NULL )
- return;
-
- std::string page;
- char chunk[ 1024 ];
- size_t got = 0;
- while( ( got = fread( chunk, 1, sizeof( chunk ), fp ) ) > 0 )
- page.append( chunk, got );
- fclose( fp );
-
- CHECK( page.find( "data-click=\"option:" ) == std::string::npos );
- // the superweapons coming ready are lines of the feed over the radar, Feed.html, for everybody
- CHECK( page.find( "data-each=\"toasts\"" ) == std::string::npos );
- CHECK( page.find( "data-each=\"players\"" ) != std::string::npos );
- // the players are on the Tab scoreboard, not in a strip across the top
- CHECK( page.find( "data-each=\"seats\"" ) == std::string::npos );
- // a replay's timeline: InGameUI reads the pointer's place along the element with id track
- CHECK( page.find( "id=\"track\" class=\"sunk\" data-click=\"replay:seek\"" ) != std::string::npos );
- CHECK( page.find( "data-click=\"replay:pause\"" ) != std::string::npos );
- CHECK( page.find( "data-click=\"replay:speed:100\"" ) != std::string::npos );
-}
-
#include "test_camera_behavior.inc"
#include "test_observer_camera.inc"
#include "test_production_input.inc"
-// A defence's blind-spot grid is cut into rings half a pathfind cell wide. A range longer than the map
-// asks for no more rings than the map is long corner to corner: a mod's AttackRange of 1e6 held hundreds of
-// megabytes and froze every platform, and inf gave ARM64 2^31 rings, whose 180-a-ring grid overflowed Int.
-TEST(blind_spot_rings_never_outgrow_the_map)
-{
- const Real ring = PATHFIND_CELL_SIZE_F * 0.5f;
- const Real span = 2.0f * 4000.0f; // a 4,000-unit square map: width plus height
- CHECK_EQ(blindSpotRingCount(0.0f, span), 0);
- CHECK_EQ(blindSpotRingCount(ring, span), 1);
- CHECK_EQ(blindSpotRingCount(300.0f, span), (Int)ceil(300.0f / ring)); // every real reach: as before
- CHECK_EQ(blindSpotRingCount(1.0e6f, span), (Int)ceil(span / ring) + 1); // capped by the map
- CHECK_EQ(blindSpotRingCount(std::numeric_limits<float>::infinity(), span), 0); // Windows' INT_MIN, floored
- CHECK_EQ(blindSpotRingCount(std::numeric_limits<float>::quiet_NaN(), span), 0);
- // no extent known: never a grid whose ring count times 180 rays overflows Int
- CHECK((long long)blindSpotRingCount(1.0e9f, 0.0f) * 180 <= INT_MAX);
-}
// The two cursor indexes a float decides. Mouse.ini's FPS or GameData.ini's scroll speed of inf or NaN
// made them INT_MIN on Windows and indexed a table with that; a negative FPS made a negative frame on
@@ -17166,7 +16398,7 @@ TEST(every_shipped_master_is_fork_owned_and_retail_files_are_not)
}
CHECK(masters > 20);
- CHECK(FileSystem::isForkOwnedPath(AsciiString("Art\\Textures\\ClassicWideBarGLA.tga")));
+ CHECK(FileSystem::isForkOwnedPath(AsciiString("Art\\Textures\\ReforgedBarGLALeft.tga")));
CHECK(!FileSystem::isForkOwnedPath(AsciiString("Data\\Scripts\\MultiplayerScripts.scb")));
CHECK(!FileSystem::isForkOwnedPath(AsciiString("Data\\Scripts\\SkirmishScripts.scb")));
CHECK(!FileSystem::isForkOwnedPath(AsciiString("Data\\Scripts\\Scripts.ini")));
diff --git a/GeneralsMD/Code/Tests/test_minimap_input.inc b/GeneralsMD/Code/Tests/test_minimap_input.inc
index 29c132fbb..cb7afdc36 100644
--- a/GeneralsMD/Code/Tests/test_minimap_input.inc
+++ b/GeneralsMD/Code/Tests/test_minimap_input.inc
@@ -252,16 +252,16 @@ struct MinimapInputFixture
ui->enabled = TRUE;
TheInGameUI = ui;
// Reforged's radar: left looks, right orders. Classic swaps them, and says so in its own test
- savedStyle = TheGlobalData->m_interfaceStyle;
+ savedStyle = TheGlobalData->m_mouseStyle;
savedAlternateMouse = TheGlobalData->m_useAlternateMouse;
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_REFORGED;
+ TheWritableGlobalData->m_mouseStyle = MOUSE_STYLE_REFORGED;
TheWritableGlobalData->m_useAlternateMouse = FALSE;
}
Int savedStyle;
Bool savedAlternateMouse;
~MinimapInputFixture()
{
- TheWritableGlobalData->m_interfaceStyle = savedStyle;
+ TheWritableGlobalData->m_mouseStyle = savedStyle;
TheWritableGlobalData->m_useAlternateMouse = savedAlternateMouse;
windows.winDestroyAll();
TheRadar = savedRadar;
@@ -315,7 +315,7 @@ TEST(minimap_classic_right_button_looks_with_units_selected)
MinimapInputFixture f;
MinimapMessages messages;
messages.stream.attachTranslator(NEW WindowTranslator, 10);
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ TheWritableGlobalData->m_mouseStyle = MOUSE_STYLE_CLASSIC;
((MinimapTestUI*)TheInGameUI)->selected.push_back(NULL);
f.event(messages, GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN, 120, 220);
CHECK(f.engine.view.lookAtCalls == 1);
@@ -328,13 +328,13 @@ TEST(minimap_classic_right_button_looks_with_units_selected)
TEST(minimap_alternate_mouse_looks_on_the_left_in_classic_and_reforged_ignores_it)
{
CHECK(bootOnce());
- const Int styles[2] = { INTERFACE_STYLE_CLASSIC, INTERFACE_STYLE_REFORGED };
+ const Int styles[2] = { MOUSE_STYLE_CLASSIC, MOUSE_STYLE_REFORGED };
for (Int i = 0; i < 2; ++i)
{
MinimapInputFixture f;
MinimapMessages messages;
messages.stream.attachTranslator(NEW WindowTranslator, 10);
- TheWritableGlobalData->m_interfaceStyle = styles[i];
+ TheWritableGlobalData->m_mouseStyle = styles[i];
TheWritableGlobalData->m_useAlternateMouse = TRUE;
((MinimapTestUI*)TheInGameUI)->selected.push_back(NULL);
f.event(messages, GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN, 120, 220);
@@ -392,28 +392,22 @@ TEST(minimap_drag_works_during_keyboard_scroll_and_pins_to_a_letterboxed_picture
}
/* 1.04's radar in both of its mouse setups: the look button moves the camera on the press and a drag
- after it leaves the camera alone, and the other button with units selected gives 1.04's orders - the
- attack move command when it is waiting, a plain move otherwise. */
-TEST(minimap_classic_looks_on_the_press_and_orders_attack_move_in_both_mouse_setups)
+ after it leaves the camera alone. */
+TEST(minimap_classic_looks_on_the_press_in_both_mouse_setups)
{
CHECK(bootOnce());
- CommandButton *attackMove = newInstance(CommandButton);
- attackMove->friend_setCommandType(GUI_COMMAND_ATTACK_MOVE);
for (Int alternate = 0; alternate < 2; ++alternate)
{
MinimapInputFixture f;
MinimapMessages messages;
messages.stream.attachTranslator(NEW WindowTranslator, 10);
- TheWritableGlobalData->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ TheWritableGlobalData->m_mouseStyle = MOUSE_STYLE_CLASSIC;
TheWritableGlobalData->m_useAlternateMouse = alternate ? TRUE : FALSE;
- MinimapTestUI *ui = (MinimapTestUI*)TheInGameUI;
- ui->selected.push_back(NULL);
+ ((MinimapTestUI*)TheInGameUI)->selected.push_back(NULL);
const GameMessage::Type lookDown = alternate ? GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN : GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN;
const GameMessage::Type lookDrag = alternate ? GameMessage::MSG_RAW_MOUSE_LEFT_DRAG : GameMessage::MSG_RAW_MOUSE_RIGHT_DRAG;
const GameMessage::Type lookUp = alternate ? GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_UP : GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP;
- const GameMessage::Type orderDown = alternate ? GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN : GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN;
- const GameMessage::Type orderUp = alternate ? GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP : GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_UP;
f.event(messages, lookDown, 120, 220);
CHECK(f.engine.view.lookAtCalls == 1);
@@ -421,15 +415,7 @@ TEST(minimap_classic_looks_on_the_press_and_orders_attack_move_in_both_mouse_set
CHECK(f.engine.view.lookAtCalls == 1);
f.event(messages, lookUp, 150, 250);
CHECK(messages.commands.getFirstMessage() == NULL);
-
- ui->command = attackMove;
- f.event(messages, orderDown, 120, 220);
- f.event(messages, orderUp, 120, 220);
- CHECK(f.engine.view.lookAtCalls == 1);
- const GameMessage *order = messages.commands.getFirstMessage();
- CHECK(order != NULL && order->getType() == GameMessage::MSG_DO_ATTACKMOVETO);
}
- attackMove->deleteInstance();
}
namespace
@@ -461,7 +447,7 @@ TEST(classic_right_click_deselects_or_takes_back_a_command_as_1_04_did)
f.mouse.m_dragTolerance = 25;
f.mouse.m_dragTolerance3D = 25;
f.mouse.m_dragToleranceMS = 250;
- f.global->m_interfaceStyle = INTERFACE_STYLE_CLASSIC;
+ f.global->m_mouseStyle = MOUSE_STYLE_CLASSIC;
CommandButton *guard = newInstance(CommandButton);
guard->friend_setCommandType(GUI_COMMAND_GUARD);
{
diff --git a/GeneralsMD/Code/Tests/test_production_input.inc b/GeneralsMD/Code/Tests/test_production_input.inc
index 3de3cecd9..8e7691431 100644
--- a/GeneralsMD/Code/Tests/test_production_input.inc
+++ b/GeneralsMD/Code/Tests/test_production_input.inc
@@ -82,40 +82,6 @@ struct ProductionButtonFixture
WinInputReturnCode click(GameWindowMessage msg) { return windows.winProcessMouseEvent(msg, &pixel, NULL); }
};
-class ProductionStripTestUI : public CameraTestUI
-{
-public:
- void staleCameo()
- {
- m_productionStripCameoW = m_productionStripCameoH = 40;
- m_productionStripCount = 1;
- ProductionStripSlot &slot = m_productionStrip[0];
- slot.producer = INVALID_ID; // producer died after the last draw; the strip still owns the click
- slot.pos.x = slot.pos.y = 20;
- }
-};
-
-struct ProductionStripFixture
-{
- CameraInputFixture engine;
- PlaceEventTranslator strip;
- ProductionStripFixture()
- {
- static ProductionStripTestUI *ui = NEW ProductionStripTestUI;
- ui->staleCameo();
- TheInGameUI = ui;
- }
- GameMessageDisposition event(GameMessage::Type type, Int x = 30, Int y = 30)
- {
- GameMessage *message = newInstance(GameMessage)(type);
- ICoord2D pixel = {x, y};
- message->appendPixelArgument(pixel);
- GameMessageDisposition result = strip.translateGameMessage(message);
- message->deleteInstance();
- return result;
- }
-};
-
struct ProductionMessageFixture
{
MessageStream stream;
@@ -215,70 +181,6 @@ TEST(production_cancel_reusing_a_button_clears_disabled_cancellation)
CHECK(f.count.right == 0);
}
-TEST(production_cancel_strip_consumes_press_drag_release_and_double_click)
-{
- CHECK(bootOnce());
- ProductionStripFixture f;
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_DRAG, 100, 100) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP, 100, 100) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_MOUSE_RIGHT_CLICK) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP, 100, 100) == KEEP_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_DOUBLE_CLICK) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_MOUSE_RIGHT_DOUBLE_CLICK) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_MOUSE_RIGHT_CLICK) == KEEP_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN, 60, 30) == KEEP_MESSAGE);
- CHECK(!TheInGameUI->handleProductionStripClick(NULL, TRUE));
-}
-
-TEST(production_cancel_strip_preserves_left_click_and_independent_button_releases)
-{
- CHECK(bootOnce());
- ProductionStripFixture f;
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_DOWN) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_UP, 100, 100) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_MOUSE_LEFT_CLICK) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP, 100, 100) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_MOUSE_RIGHT_CLICK) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_UP) == KEEP_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_LEFT_DOUBLE_CLICK) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_LEFT_BUTTON_UP) == DESTROY_MESSAGE);
- CHECK(f.event(GameMessage::MSG_MOUSE_LEFT_DOUBLE_CLICK) == DESTROY_MESSAGE);
-}
-
-TEST(production_cancel_strip_new_press_recovers_when_gui_consumed_the_previous_release)
-{
- CHECK(bootOnce());
- ProductionStripFixture f;
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN) == DESTROY_MESSAGE);
- // The player released over a window, so WindowTranslator consumed the release before us.
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN, 100, 100) == KEEP_MESSAGE);
- CHECK(f.event(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP, 100, 100) == KEEP_MESSAGE);
- CHECK(f.event(GameMessage::MSG_MOUSE_RIGHT_CLICK) == KEEP_MESSAGE);
-}
-
-TEST(production_cancel_strip_filters_real_meta_clicks_without_blocking_world_clicks)
-{
- CHECK(bootOnce());
- ProductionStripFixture engine;
- ProductionMessageFixture f;
- f.append(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN, 30, 30);
- f.append(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP, 30, 30);
- f.append(GameMessage::MSG_RAW_MOUSE_RIGHT_DOUBLE_CLICK, 30, 30);
- f.append(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP, 30, 30);
- f.stream.propagateMessages();
- CHECK(f.commands.getFirstMessage() == NULL);
- f.append(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_DOWN, 100, 100);
- f.append(GameMessage::MSG_RAW_MOUSE_RIGHT_BUTTON_UP, 100, 100);
- f.stream.propagateMessages();
- Int worldClicks = 0;
- for(GameMessage *m = f.commands.getFirstMessage(); m; m = m->next())
- if(m->getType() == GameMessage::MSG_MOUSE_RIGHT_CLICK) ++worldClicks;
- CHECK(worldClicks == 1);
-}
-
TEST(production_cancel_disabled_button_release_outside_does_not_create_world_click)
{
CHECK(bootOnce());
diff --git a/GeneralsMD/Code/Tools/linux-packages/CMakeLists.txt b/GeneralsMD/Code/Tools/linux-packages/CMakeLists.txt
index 9441030bb..ee9a34f96 100644
--- a/GeneralsMD/Code/Tools/linux-packages/CMakeLists.txt
+++ b/GeneralsMD/Code/Tools/linux-packages/CMakeLists.txt
@@ -66,8 +66,8 @@ Source: https://github.com/olcayseygan/CnCGeneralsZH-Reforged
The game: GPL-3.0-or-later, with additional terms under its section 7 (Zero-Hour-Reforged-LICENSE.md).
Built into it, each under its own licence: FFmpeg (LGPL-2.1-or-later, an LGPL-only build), SDL3, FreeType
-(its GPL-2.0-or-later option), glslang, SPIRV-Cross, SDL_shadercross, litehtml and gumbo, miniaudio, zlib,
-LZH-Light, nanosvg and the GameSpy SDK. The full texts are in
+(its GPL-2.0-or-later option), glslang, SPIRV-Cross, SDL_shadercross, miniaudio, zlib,
+LZH-Light and the GameSpy SDK. The full texts are in
/usr/lib/zero-hour-reforged/share/zero-hour-reforged/licenses/ and /usr/share/licenses/zero-hour-reforged/:
${_zh_license_list}
diff --git a/GeneralsMD/Code/Tools/macos-app-licenses.txt b/GeneralsMD/Code/Tools/macos-app-licenses.txt
index 8d074f4ca..d63847077 100644
--- a/GeneralsMD/Code/Tools/macos-app-licenses.txt
+++ b/GeneralsMD/Code/Tools/macos-app-licenses.txt
@@ -48,12 +48,9 @@ spirv-cross-c spirv-cross
spirv-cross-core spirv-cross
spirv-cross-glsl spirv-cross
spirv-cross-msl spirv-cross
-litehtml litehtml
-gumbo gumbo
miniaudio miniaudio
gamespy gamespy
# compiled into another library
+ zlib # Compression/ZLib, inside libcompression
+ lzhl # Compression/LZHCompress (LZH-Light, Sergey Ignatchenko), inside libcompression
-+ nanosvg # compiled into HtmlOverlay.cpp, inside libgameengine
diff --git a/GeneralsMD/Code/Tools/optionsmenu_layout.py b/GeneralsMD/Code/Tools/optionsmenu_layout.py
index 207f4ec44..fc0509593 100644
--- a/GeneralsMD/Code/Tools/optionsmenu_layout.py
+++ b/GeneralsMD/Code/Tools/optionsmenu_layout.py
@@ -15,27 +15,24 @@ beside it. Nothing is redrawn: the controls keep the images and tooltips they s
or a check box takes the lettering of the one next to it, and what is new is cloned from a control
that is already there.
-Two layouts come out of one run. OptionsMenu.wnd is the Reforged interface's; OptionsMenuClassic.wnd
-leaves out every control the Classic interface overrules (REFORGED_ONLY) and flows what is left again,
-so no page shows a hole where a setting would have been. Shell.cpp opens whichever one the run's
-interface wants.
+The result is OptionsMenuClassic.wnd, which Shell.cpp opens.
- python optionsmenu_layout.py <shipped OptionsMenu.wnd> <Reforged .wnd> <Classic .wnd>
+ python optionsmenu_layout.py <shipped OptionsMenu.wnd> <output .wnd>
The input is the file out of WindowZH.big:
python bigfile.py extract ../../Run/WindowZH.big "*/OptionsMenu.wnd" -o wnd
- python optionsmenu_layout.py wnd/Window/Menus/OptionsMenu.wnd ../Data/Window/Menus/OptionsMenu.wnd ../Data/Window/Menus/OptionsMenuClassic.wnd
+ python optionsmenu_layout.py wnd/Window/Menus/OptionsMenu.wnd ../Data/Window/Menus/OptionsMenuClassic.wnd
-The outputs are the tracked masters under Code/Data; the build copies them to Run/Window/Menus/, where
-a loose file beats the archive. Layouts are not in the multiplayer INI checksum, so these do not have
-to match across a network game.
+The output is the tracked master under Code/Data; the build copies it to Run/Window/Menus/, where a
+loose file beats the archive. Layouts are not in the multiplayer INI checksum, so it does not have to
+match across a network game.
python optionsmenu_layout.py selfcheck
reads the tracked files back and checks they still agree: every widget TheOptionCatalog names exists
-in the Reforged layout and, unless the Classic interface overrules it, in the Classic one, and every
-label, tooltip and combo box entry it needs is in Patch.str. Run by CTest as optionsmenu_selfcheck.
+in the layout, and every label, tooltip and combo box entry it needs is in Patch.str. Run by CTest as
+optionsmenu_selfcheck.
"""
import os
@@ -124,11 +121,6 @@ NAME_THE_UNNAMED = [
("GUI:Options", "LabelTitle"),
]
-# EA's controls that only the Classic page keeps. CheckAlternateMouse is EA's Alternate Mouse Setup:
-# Classic plays 1.04's mouse and offers its alternate one too, Reforged has one mouse and ignores the
-# setting, so its page drops the box. OptionsMenu.cpp finds it by name and does without it.
-CLASSIC_ONLY = ["CheckAlternateMouse"]
-
# The templates new controls are cloned from, and whose lettering the moved ones take.
CHECK, LABEL, COMBO, SLIDER = "Retaliation", "DetailLabel", "ComboBoxDetail", "SliderGamma"
@@ -155,18 +147,13 @@ NEW_CONTROLS = [
(COMBO, "ComboBoxHealthBars", None),
(LABEL, "LabelPlayerColors", "GUI:PlayerColors"),
(COMBO, "ComboBoxPlayerColors", None),
- (LABEL, "LabelHudScale", "GUI:HudScale"),
- (COMBO, "ComboBoxHudScale", None),
(LABEL, "LabelLanguage", "GUI:Language"),
(COMBO, "ComboBoxLanguage", None),
(CHECK, "CheckOrderLines", "GUI:OrderLines"),
(CHECK, "CheckNetBox", "GUI:NetBox"),
- (LABEL, "LabelIncomeRate", "GUI:IncomeRate"),
- (COMBO, "ComboBoxIncomeRate", None),
(CHECK, "CheckEmptyBuildingPips", "GUI:EmptyBuildingPips"),
(CHECK, "CheckZoomToCursor", "GUI:ZoomToCursor"),
(CHECK, "CheckIsometricCamera", "GUI:IsometricCamera"),
- (CHECK, "CheckSmoothMotion", "GUI:SmoothMotion"),
(CHECK, "CheckStartAtMaxZoom", "GUI:StartAtMaxZoom"),
(CHECK, "CheckSnapCamera45", "GUI:SnapCamera45"),
(CHECK, "CheckGridBuild", "GUI:GridBuild"),
@@ -275,8 +262,7 @@ GROUP_LAYOUT = [
setting("LabelFullscreenScaling", "ComboBoxFullscreenScaling"),
("check", "CheckVSync")]),
("GUI:OptionsGroupPicture", [
- setting("GammaLabel", "SliderGamma", "ValueGamma"),
- ("check", "CheckSmoothMotion")])]),
+ setting("GammaLabel", "SliderGamma", "ValueGamma")])]),
("PageGraphics", [
("GUI:OptionsGroupDetail", [
@@ -337,8 +323,6 @@ GROUP_LAYOUT = [
("PageInterface", [
("GUI:OptionsGroupHud", [
- setting("LabelHudScale", "ComboBoxHudScale"),
- setting("LabelIncomeRate", "ComboBoxIncomeRate"),
("check", "CheckNetBox")]),
("GUI:OptionsGroupBattlefield", [
setting("LabelHealthBars", "ComboBoxHealthBars"),
@@ -360,19 +344,6 @@ GROUP_LAYOUT = [
setting("StaticTextHTTPProxy", "TextEntryHTTPProxy")])]),
]
-# Settings the Classic interface overrules whatever Options.ini says, each behind an isClassicUI()
-# gate where the value is read: smooth motion (W3DDisplay.cpp), the HUD scale (ControlBar.cpp), the
-# corner net box (InGameUI.cpp, no HTML pages in Classic), the income beside the money (InGameUI.cpp),
-# health bar mode and empty garrison pips (Drawable.cpp) and order lines (W3DInGameUI.cpp). Every one
-# is a catalog row, whose menu passes skip a control the layout does not carry, so the Classic layout
-# leaves them out and keeps the value. Zoom to cursor, the opening zoom, the camera's 45 degree steps
-# the three placement snaps and the nudge are not here: they start off, which is how 1.04 played, and Classic
-# honours them once ticked.
-REFORGED_ONLY = [
- "CheckSmoothMotion", "ComboBoxHudScale", "CheckNetBox", "ComboBoxIncomeRate", "CheckOrderLines",
-]
-
-
def item_height(item):
if item[0] == "note":
return note_height(item[1]) + 4
@@ -399,17 +370,6 @@ def flow(groups):
return best[1]
-def without(groups, names):
- """A page with these controls out, and a group left with nothing in it out too. The Classic page
- leaves out REFORGED_ONLY, the Reforged page CLASSIC_ONLY."""
- kept = []
- for heading, items in groups:
- items = [item for item in items if (item[2] if item[0] == "setting" else item[1])
- not in names]
- if items:
- kept.append((heading, items))
- return kept
-
# EA controls that ship hidden and stay hidden, parked on a page rather than off the panel
# (page, name, column, top)
HIDDEN_PARKED = [
@@ -541,14 +501,6 @@ def drawn_text(window):
return match.group(1) if match else None
-def drop_by_name(root, names):
- """Delete every window with one of these names, wherever it sits."""
- wanted = set(names)
- for node in list(root.walk()):
- node.children = [child for child in node.children
- if (child.name or "").split(":")[-1] not in wanted]
-
-
def drop_by_text(root, texts):
"""Delete every window drawing one of these strings, wherever it sits."""
wanted = set(texts)
@@ -557,7 +509,7 @@ def drop_by_text(root, texts):
if drawn_text(child) not in wanted]
-def build(layout, classic=False):
+def build(layout):
old = layout.find("OptionsMenuParentOld")
templates = dict((name, layout.find(name))
for name in (CHECK, LABEL, COMBO, SLIDER, "VideoParent", "ButtonDefaults"))
@@ -569,8 +521,6 @@ def build(layout, classic=False):
node.name = _named(name)
drop_by_text(layout.root, HEADINGS)
- if not classic:
- drop_by_name(layout.root, CLASSIC_ONLY)
for name in RULES + DROP:
detach(old, name)
@@ -609,23 +559,8 @@ def build(layout, classic=False):
control.put_prop("STATICTEXTDATA", "CENTERED: 0")
pages[page_name].children.append(control)
- if classic:
- # the control and the label or readout that go with it
- for _page, groups in GROUP_LAYOUT:
- for _heading, items in groups:
- for item in items:
- if item[0] == "setting" and item[2] in REFORGED_ONLY:
- for name in item[1:]:
- if name:
- waiting.pop(name)
- elif item[0] != "setting" and item[1] in REFORGED_ONLY:
- waiting.pop(item[1])
-
page_bottom = PAGE[1] + PAGE[3]
for page_name, groups in GROUP_LAYOUT:
- groups = without(groups, REFORGED_ONLY if classic else CLASSIC_ONLY)
- if not groups:
- raise ValueError("%s has nothing left on it" % page_name)
index = 0
for column, stack in enumerate(flow(groups)):
left = COLUMNS[column]
@@ -705,8 +640,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", "OptionsMenu.wnd")
-LAYOUT_CLASSIC = os.path.join(_CODE, "Data", "Window", "Menus", "OptionsMenuClassic.wnd")
+LAYOUT = os.path.join(_CODE, "Data", "Window", "Menus", "OptionsMenuClassic.wnd")
INCLUDE = os.path.join(_CODE, "GameEngine", "Include")
_ROW = re.compile(
@@ -771,31 +705,8 @@ def selfcheck():
keys = read_strings()
layout = wndlayout.load(LAYOUT)
controls = set((node.name or "").split(":")[-1] for node in layout.root.walk())
- classic = wndlayout.load(LAYOUT_CLASSIC)
- classic_controls = set((node.name or "").split(":")[-1] for node in classic.root.walk())
problems = []
-
- # the Classic layout is the Reforged one less REFORGED_ONLY, and only catalog controls may be
- # left out: the menu's catalog passes skip a missing control, the hand-written code does not
- widgets = set(row["widget"] for row in rows if row["widget"])
- for name in REFORGED_ONLY:
- if name not in widgets:
- problems.append("%s is in REFORGED_ONLY and is no catalog row's widget" % name)
- if name in classic_controls:
- problems.append("OptionsMenuClassic.wnd still carries %s" % name)
- for name in sorted(widgets - set(REFORGED_ONLY)):
- if name not in classic_controls:
- problems.append("OptionsMenuClassic.wnd has no %s" % name)
- for name in CLASSIC_ONLY:
- if name in controls:
- problems.append("OptionsMenu.wnd still carries %s, which only Classic has" % name)
- if name not in classic_controls:
- problems.append("OptionsMenuClassic.wnd has no %s" % name)
- for page_name, _tab, _text in TABS:
- if classic.find(page_name) is None:
- problems.append("OptionsMenuClassic.wnd has no %s" % page_name)
-
if len(rows) < 9:
problems.append("only %d catalog rows parsed, the regex has stopped matching" % len(rows))
@@ -812,7 +723,7 @@ def selfcheck():
continue
if widget not in controls:
- problems.append("%s names %s, which is not in OptionsMenu.wnd" % (row["ini"], widget))
+ problems.append("%s names %s, which is not in %s" % (row["ini"], widget, os.path.basename(LAYOUT)))
if not label:
problems.append("%s has a widget and no label key" % row["ini"])
continue
@@ -846,9 +757,7 @@ def selfcheck():
for name in READOUTS + GRAPHICS_CHECKS + MENU_CHECKS + MENU_COMBOS + [n for n, _k, _c in NOTES]:
if name not in controls:
- problems.append("OptionsMenu.wnd has no %s, which OptionsMenu.cpp fills in" % name)
- if name not in classic_controls:
- problems.append("OptionsMenuClassic.wnd has no %s, which OptionsMenu.cpp fills in" % name)
+ problems.append("%s has no %s, which OptionsMenu.cpp fills in" % (os.path.basename(LAYOUT), name))
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])
@@ -861,19 +770,17 @@ def selfcheck():
if key not in keys:
problems.append("%s needs %s in Patch.str" % (name, key))
if ADVANCED in controls:
- problems.append("OptionsMenu.wnd still carries %s; its controls are on the Graphics page"
- % ADVANCED)
+ problems.append("%s still carries %s; its controls are on the Graphics page"
+ % (os.path.basename(LAYOUT), ADVANCED))
problems.extend(overlaps(layout))
- problems.extend("Classic: " + found for found in overlaps(classic))
for problem in problems:
print("optionsmenu: %s" % problem)
if problems:
return 1
- print("optionsmenu: %d catalog rows agree with %s, %s and %s"
- % (len(rows), os.path.basename(LAYOUT), os.path.basename(LAYOUT_CLASSIC),
- os.path.basename(STRINGS)))
+ print("optionsmenu: %d catalog rows agree with %s and %s"
+ % (len(rows), os.path.basename(LAYOUT), os.path.basename(STRINGS)))
return 0
@@ -881,14 +788,13 @@ def main(argv):
if len(argv) == 2 and argv[1] == "selfcheck":
return selfcheck()
- if len(argv) != 4:
+ if len(argv) != 3:
print(__doc__)
return 2
- for output, classic in ((argv[2], False), (argv[3], True)):
- layout = wndlayout.load(argv[1])
- wndlayout.save(build(layout, classic), output)
- print("%s: %d windows" % (output, sum(1 for _ in layout.root.walk())))
+ layout = wndlayout.load(argv[1])
+ wndlayout.save(build(layout), argv[2])
+ print("%s: %d windows" % (argv[2], sum(1 for _ in layout.root.walk())))
return 0
diff --git a/GeneralsMD/Code/Tools/order_cameos.py b/GeneralsMD/Code/Tools/order_cameos.py
deleted file mode 100644
index 3ff14dc97..000000000
--- a/GeneralsMD/Code/Tools/order_cameos.py
+++ /dev/null
@@ -1,276 +0,0 @@
-"""The command bar's attack, hold position, move and stance cameos,
-painted in the manner of EA's command cameos (SSStop, SSGuard): a sign with a bevelled steel rim and
-four bolts standing over a painted backdrop. No command set has a button for any of these orders,
-so the game has no picture for them.
-
-Attack is a red plate with a white crosshair over a burning sky, hold position a blue plate with a
-raised palm over a blue one, move a green diamond with a white arrow over an overcast field. The
-aggressive stance is a red pennant of two chevrons pointing ahead and the defensive one a steel blue
-shield. Each is painted at four times its size and brought down,
-which is
-what softens the edges into the look of the shipped art. The noise is seeded, so the file comes
-out the same every time.
-
- python Tools/order_cameos.py # writes Data/Art/Textures/ReforgedOrders.tga
- python Tools/order_cameos.py selfcheck
-
-The mapped images are Data/INI/MappedImages/HandCreated/ReforgedOrders.ini, whose coordinates are
-CAMEO_PLACES below."""
-import math
-import os
-import sys
-
-import numpy as np
-from PIL import Image, ImageDraw, ImageFilter
-
-CAMEO_W, CAMEO_H = 60, 48 # every command cameo in the shipped mapped images
-SUPER = 4 # painted at this many times the size
-TEXTURE_W, TEXTURE_H = 256, 128
-CAMEO_PLACES = {"attack": (0, 0), "hold": (64, 0), "move": (0, 64),
- "aggressive": (192, 0), "defensive": (128, 64)}
-SEED = 20260928
-OUT_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "Data", "Art", "Textures", "ReforgedOrders.tga")
-
-W, H = CAMEO_W * SUPER, CAMEO_H * SUPER
-
-
-def value_noise(rng, octaves):
- """Clouds: random grids of growing size, each blown up smooth and added at half the last's weight."""
- field = np.zeros((H, W))
- weight, total = 1.0, 0.0
- for octave in range(octaves):
- cells = 3 * 2 ** octave
- grid = rng.random((cells, cells + cells // 2))
- layer = np.asarray(Image.fromarray((grid * 255).astype(np.uint8)).resize((W, H), Image.BICUBIC), dtype=float) / 255
- field += layer * weight
- total += weight
- weight /= 2
- return field / total
-
-
-def backdrop(rng, top, bottom, cloud, ground, glow=None):
- """A sky from `top` to `bottom` with clouds of `cloud`, a ragged dark ground along the foot and,
- if given, a fire's glow rising off it."""
- rows = np.linspace(0, 1, H)[:, None, None]
- sky = np.asarray(top, float) * (1 - rows) + np.asarray(bottom, float) * rows
- sky = np.broadcast_to(sky, (H, W, 3)).copy()
- clouds = np.clip((value_noise(rng, 5) - 0.42) * 2.6, 0, 1)[:, :, None]
- sky = sky * (1 - clouds * 0.7) + np.asarray(cloud, float) * clouds * 0.7
- if glow is not None:
- heat = np.clip(rows[:, :, 0] * 1.6 - 0.55, 0, 1) * np.clip(value_noise(rng, 4) * 1.6 - 0.3, 0, 1)
- sky = sky * (1 - heat[:, :, None]) + np.asarray(glow, float) * heat[:, :, None]
- image = Image.fromarray(np.clip(sky, 0, 255).astype(np.uint8), "RGB")
- draw = ImageDraw.Draw(image)
- ridge = value_noise(rng, 3)[0]
- points = [(x, int(H * 0.86 - ridge[x] * H * 0.1)) for x in range(0, W, 4)] + [(W, H), (0, H)]
- draw.polygon(points, fill=ground)
- return image
-
-
-def rim_colours(angle):
- """Steel lit from the top left: a bevel's colour at `angle` round it, 0 at the top left."""
- light = 0.5 + 0.5 * math.cos(angle)
- return tuple(int(90 + 150 * light) for _ in range(3))
-
-
-def bolt(draw, x, y, radius):
- draw.ellipse((x - radius, y - radius, x + radius, y + radius), fill=(60, 64, 70))
- draw.ellipse((x - radius + 2, y - radius + 2, x + radius - 3, y + radius - 3), fill=(215, 220, 226))
-
-
-def shadow_under(image, mask, offset):
- """A soft dark copy of `mask` under the sign, down and to the right."""
- blurred = mask.filter(ImageFilter.GaussianBlur(SUPER * 1.5))
- shifted = Image.new("L", mask.size)
- shifted.paste(blurred, (offset, offset))
- darkened = Image.new("RGB", image.size, (0, 0, 0))
- image.paste(darkened, (0, 0), shifted.point(lambda v: v * 0.6))
-
-
-def plate(image, outline, face, bolts):
- """A sign: `outline` the points of its edge, a steel rim round a `face` of colour, bolts at
- `bolts`. The rim is a ring of short strokes each shaded by the way it faces."""
- mask = Image.new("L", image.size)
- ImageDraw.Draw(mask).polygon(outline, fill=255)
- shadow_under(image, mask, SUPER * 2)
- draw = ImageDraw.Draw(image)
- draw.polygon(outline, fill=(150, 155, 162))
- count = len(outline)
- for each in range(count):
- a, b = outline[each], outline[(each + 1) % count]
- facing = math.atan2(-(b[0] - a[0]), b[1] - a[1]) - math.radians(135)
- draw.line((a, b), fill=rim_colours(facing), width=SUPER * 3)
- centre = (sum(p[0] for p in outline) / count, sum(p[1] for p in outline) / count)
- inner = [(centre[0] + (x - centre[0]) * 0.84, centre[1] + (y - centre[1]) * 0.84) for x, y in outline]
- draw.polygon(inner, fill=(30, 30, 34))
- face_points = [(centre[0] + (x - centre[0]) * 0.8, centre[1] + (y - centre[1]) * 0.8) for x, y in outline]
- shade = Image.new("L", image.size)
- ImageDraw.Draw(shade).polygon(face_points, fill=255)
- rows = np.linspace(1.18, 0.78, H)[:, None, None]
- lit = np.clip(np.broadcast_to(np.asarray(face, float), (H, W, 3)) * rows, 0, 255).astype(np.uint8)
- image.paste(Image.fromarray(lit, "RGB"), (0, 0), shade)
- for x, y in bolts:
- bolt(draw, x, y, SUPER * 2)
- return centre
-
-
-def circle_points(cx, cy, radius, count=48):
- return [(cx + radius * math.cos(2 * math.pi * i / count), cy + radius * math.sin(2 * math.pi * i / count))
- for i in range(count)]
-
-
-def attack(rng):
- image = backdrop(rng, (70, 40, 34), (190, 90, 40), (120, 110, 104), (34, 26, 20), glow=(255, 150, 40))
- cx, cy, radius = W / 2, H / 2 - SUPER, H * 0.44
- diagonal = radius * 0.62
- plate(image, circle_points(cx, cy, radius), (205, 32, 28),
- [(cx - diagonal, cy - diagonal), (cx + diagonal, cy - diagonal),
- (cx - diagonal, cy + diagonal), (cx + diagonal, cy + diagonal)])
- draw = ImageDraw.Draw(image)
- white = (248, 246, 240)
- ring = radius * 0.46
- thick = SUPER * 3
- draw.ellipse((cx - ring, cy - ring, cx + ring, cy + ring), outline=white, width=thick)
- reach, gap = radius * 0.72, radius * 0.18
- for dx, dy in ((1, 0), (-1, 0), (0, 1), (0, -1)):
- draw.line((cx + dx * gap, cy + dy * gap, cx + dx * reach, cy + dy * reach), fill=white, width=thick)
- dot = SUPER * 2
- draw.ellipse((cx - dot, cy - dot, cx + dot, cy + dot), fill=white)
- return image
-
-
-def hold(rng):
- image = backdrop(rng, (70, 110, 170), (170, 190, 205), (235, 238, 240), (52, 48, 38))
- left, top, right, bottom = W * 0.2, SUPER * 2, W * 0.8, H - SUPER * 5
- cut = SUPER * 6
- outline = [(left + cut, top), (right - cut, top), (right, top + cut), (right, bottom - cut),
- (right - cut, bottom), (left + cut, bottom), (left, bottom - cut), (left, top + cut)]
- inset = SUPER * 5
- cx, cy = plate(image, outline, (36, 84, 190),
- [(left + inset, top + inset), (right - inset, top + inset),
- (left + inset, bottom - inset), (right - inset, bottom - inset)])
- # a raised palm: the palm, four fingers and the thumb, each a rounded bar
- draw = ImageDraw.Draw(image)
- white = (248, 246, 240)
- scale = (bottom - top) / 125.0
- cy -= 4 * scale
- palm = (cx - 20 * scale, cy - 2 * scale, cx + 20 * scale, cy + 34 * scale)
- draw.rounded_rectangle(palm, radius=10 * scale, fill=white)
- fingers = [(-15.5, 42), (-5.2, 50), (5.2, 48), (15.5, 40)]
- for x, length in fingers:
- width = 8 * scale
- draw.rounded_rectangle((cx + x * scale - width / 2, cy + 6 * scale - length * scale,
- cx + x * scale + width / 2, cy + 8 * scale), radius=width / 2, fill=white)
- thumb = Image.new("L", image.size)
- ImageDraw.Draw(thumb).rounded_rectangle((cx + 12 * scale, cy - 4 * scale, cx + 22 * scale, cy + 28 * scale),
- radius=5 * scale, fill=255)
- thumb = thumb.rotate(-35, center=(cx + 17 * scale, cy + 26 * scale), resample=Image.BICUBIC)
- image.paste(Image.new("RGB", image.size, white), (0, 0), thumb)
- return image
-
-
-def move(rng):
- image = backdrop(rng, (96, 112, 104), (176, 184, 160), (214, 218, 206), (46, 52, 34))
- cx, cy = W / 2, H / 2 - SUPER
- reach = H * 0.47
- inset = reach * 0.66
- cx, cy = plate(image, [(cx, cy - reach), (cx + reach, cy), (cx, cy + reach), (cx - reach, cy)], (40, 150, 60),
- [(cx, cy - inset), (cx + inset, cy), (cx, cy + inset), (cx - inset, cy)])
- # a road sign's arrow, pointing ahead: a shaft and a head, rounded off by the resize
- draw = ImageDraw.Draw(image)
- white = (248, 246, 240)
- scale = reach / 60.0
- draw.rectangle((cx - 6 * scale, cy - 2 * scale, cx + 6 * scale, cy + 22 * scale), fill=white)
- draw.polygon([(cx, cy - 25 * scale), (cx + 19 * scale, cy), (cx - 19 * scale, cy)], fill=white)
- return image
-
-
-def aggressive(rng):
- image = backdrop(rng, (80, 34, 30), (196, 84, 44), (130, 104, 96), (34, 24, 20), glow=(255, 140, 40))
- cx, top, bottom, half = W / 2, SUPER * 2, H - SUPER * 5, W * 0.3
- inset = SUPER * 6
- plate(image, [(cx, top), (cx + half, bottom), (cx - half, bottom)], (200, 28, 26),
- [(cx, top + inset * 1.8), (cx + half - inset * 1.6, bottom - inset * 0.7), (cx - half + inset * 1.6, bottom - inset * 0.7)])
- # two chevrons pointing ahead
- draw = ImageDraw.Draw(image)
- white = (248, 246, 240)
- scale = (bottom - top) / 125.0
- mid = (top + bottom) / 2 + 14 * scale
- for lift in (0, 26):
- apex = mid - lift * scale - 14 * scale
- draw.line([(cx - 22 * scale, apex + 20 * scale), (cx, apex), (cx + 22 * scale, apex + 20 * scale)],
- fill=white, width=SUPER * 3, joint="curve")
- return image
-
-
-def defensive(rng):
- image = backdrop(rng, (58, 84, 120), (150, 172, 190), (220, 228, 236), (44, 46, 42))
- cx, top, bottom, half = W / 2, SUPER * 2, H - SUPER * 3, W * 0.27
- shoulder = top + (bottom - top) * 0.5
- inset = SUPER * 5
- plate(image, [(cx - half, top), (cx + half, top), (cx + half, shoulder), (cx, bottom), (cx - half, shoulder)],
- (54, 104, 168),
- [(cx - half + inset, top + inset), (cx + half - inset, top + inset),
- (cx - half + inset, shoulder - SUPER), (cx + half - inset, shoulder - SUPER)])
- # a smaller shield inside, outlined, with a bar down it
- draw = ImageDraw.Draw(image)
- white = (248, 246, 240)
- small_half, small_top, small_bottom = half * 0.45, top + (bottom - top) * 0.22, bottom - (bottom - top) * 0.2
- small_shoulder = small_top + (small_bottom - small_top) * 0.5
- inner = [(cx - small_half, small_top), (cx + small_half, small_top), (cx + small_half, small_shoulder),
- (cx, small_bottom), (cx - small_half, small_shoulder)]
- draw.line(inner + [inner[0]], fill=white, width=SUPER * 3, joint="curve")
- draw.line((cx, small_top, cx, small_bottom - SUPER * 2), fill=white, width=SUPER * 3)
- return image
-
-
-def cameo(painted):
- small = painted.resize((CAMEO_W, CAMEO_H), Image.LANCZOS)
- return small.filter(ImageFilter.UnsharpMask(radius=1, percent=60, threshold=2))
-
-
-def texture():
- rng = np.random.default_rng(SEED)
- sheet = Image.new("RGBA", (TEXTURE_W, TEXTURE_H), (0, 0, 0, 0))
- # in this order: the stream is shared, so a new cameo goes last and leaves the others as they were
- for name, paint in (("attack", attack), ("hold", hold), ("move", move),
- ("aggressive", aggressive), ("defensive", defensive)):
- sheet.paste(cameo(paint(rng)).convert("RGBA"), CAMEO_PLACES[name])
- return sheet
-
-
-def selfcheck():
- sheet = texture()
- assert sheet.size == (TEXTURE_W, TEXTURE_H)
- for name, (x, y) in CAMEO_PLACES.items():
- picture = np.asarray(sheet.crop((x, y, x + CAMEO_W, y + CAMEO_H)), dtype=int)
- assert picture[:, :, 3].min() == 255, name # a whole cameo, no hole in it
- assert picture[:, :, :3].std() > 30, name # a picture, not a flat fill
- # a red plate, a blue one and a green one: the three read apart at a glance
- attack_mid = np.asarray(sheet.crop((20, 10, 40, 30)), dtype=int)[:, :, :3].mean(axis=(0, 1))
- hold_mid = np.asarray(sheet.crop((64 + 12, 6, 64 + 20, 14)), dtype=int)[:, :, :3].mean(axis=(0, 1))
- move_side = np.asarray(sheet.crop((17, 64 + 25, 23, 64 + 29)), dtype=int)[:, :, :3].mean(axis=(0, 1))
- assert attack_mid[0] > attack_mid[2], attack_mid
- assert hold_mid[2] > hold_mid[0], hold_mid
- assert move_side[1] > move_side[0] and move_side[1] > move_side[2], move_side
- # and the two stances: red and steel blue plates
- def face(x0, y0, x1, y1):
- return np.asarray(sheet.crop((x0, y0, x1, y1)), dtype=int)[:, :, :3].mean(axis=(0, 1))
- aggressive_foot = face(192 + 27, 34, 192 + 33, 38)
- defensive_top = face(128 + 16, 64 + 8, 128 + 20, 64 + 14)
- assert aggressive_foot[0] > 140 and aggressive_foot[1] < 60, aggressive_foot
- assert defensive_top[2] > defensive_top[0] + 50, defensive_top
- assert np.array_equal(np.asarray(texture()), np.asarray(sheet)) # seeded: the same file every time
- print("order_cameos selfcheck ok")
-
-
-def main():
- if len(sys.argv) > 1 and sys.argv[1] == "selfcheck":
- selfcheck()
- return
- texture().save(OUT_PATH)
- print(OUT_PATH)
-
-
-if __name__ == "__main__":
- main()
diff --git a/GeneralsMD/Code/Tools/package-common.sh b/GeneralsMD/Code/Tools/package-common.sh
index a47702878..f6a27ed38 100644
--- a/GeneralsMD/Code/Tools/package-common.sh
+++ b/GeneralsMD/Code/Tools/package-common.sh
@@ -83,8 +83,6 @@ license_entry() {
"(FreeType-GPLv2.txt), as NOTICE.md in the game's source says." > "$L/FreeType-OPTION.txt";;
glslang) cp "$s/glslang/LICENSE.txt" "$L/glslang-LICENSE.txt";;
spirv-cross) cp "$s/SPIRV-Cross/LICENSE" "$L/SPIRV-Cross-LICENSE.txt";;
- litehtml) cp "$s/litehtml/LICENSE" "$L/litehtml-LICENSE.txt";;
- gumbo) cp "$s/litehtml/src/gumbo/LICENSE" "$L/gumbo-LICENSE.txt";;
miniaudio) cp "$s/miniaudio/LICENSE" "$L/miniaudio-LICENSE.txt";;
gamespy) cp "$s/GameSpy/LICENSE" "$L/GameSpy-LICENSE.txt";;
lzhl) # LZH-Light's notice is the comment that opens lzhl.h (inside libcompression, unaltered)
@@ -93,7 +91,6 @@ license_entry() {
zlib) # zlib's licence is the comment that opens zlib.h
awk 'NR == 1 && !/^\/\*/ { exit 1 } { print } /\*\// { exit }' "$s/Compression/ZLib/zlib.h" > "$L/zlib-LICENSE.txt" &&
grep -q "This notice may not be removed" "$L/zlib-LICENSE.txt";;
- nanosvg) cp "$s/nanosvg/LICENSE.txt" "$L/nanosvg-LICENSE.txt";;
*) echo "no license_entry named $1" >&2; return 1;;
esac
}
diff --git a/GeneralsMD/Code/Tools/run_with_modules.py b/GeneralsMD/Code/Tools/run_with_modules.py
deleted file mode 100755
index 66f7e06e3..000000000
--- a/GeneralsMD/Code/Tools/run_with_modules.py
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env python3
-# Copyright 2026 İlyas Akın
-# Additional terms under GNU GPL section 7 apply: see LICENSE.md.
-#
-# 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/>.
-"""Run a Python tool's check only where the modules it imports are installed.
-
- python run_with_modules.py numpy,PIL Tools/order_cameos.py selfcheck
-
-A check whose script needs third-party modules (numpy, Pillow) would fail with an ImportError on a
-machine that lacks them, which says nothing about the code under test. This looks for each module
-first. If any is missing it says which, on stdout so ctest's log keeps it, and exits 77, which the
-test registers as its skip code: the run shows the test as skipped, by name, with the reason. If all
-are there it runs the script as __main__ with the remaining arguments, exactly as `python script ...`
-would.
-"""
-
-import importlib.util
-import runpy
-import sys
-
-SKIP = 77
-
-
-def main():
- if len(sys.argv) < 3:
- print("usage: run_with_modules.py <module,module,...> <script> [arguments...]", file=sys.stderr)
- return 2
- modules = [name for name in sys.argv[1].split(",") if name]
- missing = [name for name in modules if importlib.util.find_spec(name) is None]
- script = sys.argv[2]
- if missing:
- print("skip: %s needs %s, which %s lacks" % (script, " and ".join(missing), sys.executable))
- return SKIP
- sys.argv = sys.argv[2:]
- runpy.run_path(script, run_name="__main__")
- return 0
-
-
-if __name__ == "__main__":
- sys.exit(main())
diff --git a/GeneralsMD/Code/Tools/vendor.ps1 b/GeneralsMD/Code/Tools/vendor.ps1
index cd289b19c..4e055d622 100644
--- a/GeneralsMD/Code/Tools/vendor.ps1
+++ b/GeneralsMD/Code/Tools/vendor.ps1
@@ -138,53 +138,6 @@ function Install-GameSpy {
Step "GamespySDK -> Libraries\Source\GameSpy"
}
-# --- litehtml 0.10, whole repository: the HTML and CSS layout engine behind the pages drawn over
-# the battlefield. Its CMakeLists builds the bundled gumbo parser as well. Same .gitignore dance as
-# GameSpy, for the same reason.
-function Install-Litehtml {
- $destination = Join-Path $libraries 'Source\litehtml'
- if ((Test-Path (Join-Path $destination 'CMakeLists.txt')) -and -not $Force) { return }
- $archive = Get-File 'https://github.com/litehtml/litehtml/archive/9bc84b8b8d15a4e50f18b327aa30955048b441c2.zip' (Join-Path $work 'litehtml-0.10.zip')
- $source = Expand-Source $archive 'litehtml'
- $keep = Join-Path $destination '.gitignore'
- $kept = if (Test-Path $keep) { Get-Content $keep -Raw } else { $null }
- if (Test-Path $destination) { Remove-Item -Recurse -Force $destination }
- New-Item -ItemType Directory -Force -Path $destination | Out-Null
- Copy-Item (Join-Path $source '*') $destination -Recurse -Force
- if ($null -ne $kept) { Set-Content -Path $keep -Value $kept -NoNewline }
- Step "litehtml 0.10 -> Libraries\Source\litehtml"
-}
-
-# --- The fork's one change to litehtml, Libraries\Source\litehtml-parsed-css.patch: createFromString
-# takes stylesheets the caller parsed once, which was two thirds of building a page. HtmlOverlay.cpp
-# passes them and does not compile without it. A copy that has the patch says so by the parameter's
-# name in document.h, so a copy fetched before the patch existed gets it on the next build too.
-function Install-LitehtmlPatch {
- $destination = Join-Path $libraries 'Source\litehtml'
- $header = Join-Path $destination 'include\litehtml\document.h'
- if (Select-String -LiteralPath $header -Pattern 'master_parsed' -SimpleMatch -Quiet) { return }
- $patch = Join-Path $libraries 'Source\litehtml-parsed-css.patch'
- # without the ceiling git finds this checkout around the folder and skips every file in the patch
- # as outside it, and says nothing
- $env:GIT_CEILING_DIRECTORIES = Join-Path $libraries 'Source'
- try { git -C $destination -c core.autocrlf=false apply $patch }
- finally { Remove-Item Env:GIT_CEILING_DIRECTORIES }
- if ($LASTEXITCODE -ne 0) { throw "litehtml-parsed-css.patch did not apply to Libraries\Source\litehtml" }
- Step "litehtml-parsed-css.patch -> Libraries\Source\litehtml"
-}
-
-# --- nanosvg, the two headers: parses and rasterises the SVG pictures a page names in url(), which
-# the game then draws pixel by pixel. Same .gitignore dance as litehtml.
-function Install-Nanosvg {
- $destination = Join-Path $libraries 'Source\nanosvg'
- if ((Test-Path (Join-Path $destination 'nanosvgrast.h')) -and -not $Force) { return }
- $archive = Get-File 'https://github.com/memononen/nanosvg/archive/239e102ec2c691f2902e20ace2ed36ee4a35cfe6.zip' (Join-Path $work 'nanosvg.zip')
- $source = Expand-Source $archive 'nanosvg'
- Copy-Files (Get-TopLevel (Join-Path $source 'src') @('.h')) $destination
- Copy-Item (Join-Path $source 'LICENSE.txt') $destination -Force
- Step "nanosvg -> Libraries\Source\nanosvg"
-}
-
# --- miniaudio 0.11.25, the one header and its one implementation file, the same pin as vendor.sh.
# Windows plays through XAudio2 but records -wav through miniaudio's mix (miles_dispatch.cpp), the
# one the logic clock can move. Copied file by file so the committed .gitignore is left alone.
@@ -305,9 +258,6 @@ Install-Lzhl
Install-LzhlPatch
Install-DirectX
Install-GameSpy
-Install-Litehtml
-Install-LitehtmlPatch
-Install-Nanosvg
Install-Miniaudio
# SDL3 is the platform layer for everything that is not Windows (decision 3 in PORTING.md). Windows
# keeps Win32Device, so it is not fetched here; vendor.sh fetches it, and says it skips DirectX the
diff --git a/GeneralsMD/Code/Tools/vendor.sh b/GeneralsMD/Code/Tools/vendor.sh
index 0d27b80e7..4eeb1513a 100755
--- a/GeneralsMD/Code/Tools/vendor.sh
+++ b/GeneralsMD/Code/Tools/vendor.sh
@@ -350,7 +350,13 @@ install_gamespy() {
# with a different linkage is ill-formed, so 34 engine files stopped on it. The patch keeps the
# declarations for GameSpy's own C, which is what gsplatformutil.c defines them for. Only the
# !_WIN32 half of the header changes, so vendor.ps1 has nothing to apply.
-# Checked by the marker, not git apply's exit status, for the reason install_litehtml_patch gives.
+#
+# GIT_CEILING_DIRECTORIES is not optional. The SDK sits inside this repository's checkout, and
+# without the ceiling git finds the outer repository, treats every file in the patch as outside it,
+# skips them all - and says nothing.
+#
+# And the result is checked by the marker, not by git apply's exit status. The failure above is the
+# silent kind; a status check would pass on the one case it exists to catch.
install_gamespy_patch() {
local destination="$libraries/Source/GameSpy"
local header="$destination/include/gamespy/gsplatform.h"
@@ -421,68 +427,10 @@ install_gamespy_unix_patch() {
art_pattern='Reforged(?!Normals).*\.big$'
art_release='https://github.com/olcayseygan/CnCGeneralsZH-Reforged/releases/download/art-latest'
-# --- litehtml 0.10, the whole repository: the HTML and CSS layout engine behind the pages upstream
-# draws over the battlefield. gameengine links it, so unlike DirectX it is needed on macOS too.
-# Same .gitignore dance as GameSpy, and for the same reason.
-install_litehtml() {
- local destination="$libraries/Source/litehtml"
- if [ -e "$destination/CMakeLists.txt" ] && [ -z "$force" ]; then return 0; fi
- local archive source
- archive=$(get_file 'https://github.com/litehtml/litehtml/archive/9bc84b8b8d15a4e50f18b327aa30955048b441c2.zip' "$work/litehtml-0.10.zip")
- source=$(expand_source "$archive" 'litehtml')
- local keep="$destination/.gitignore" kept="$run/litehtml.gitignore"
- rm -f "$kept"
- if [ -e "$keep" ]; then mv "$keep" "$kept"; fi
- rm -rf "$destination"
- mkdir -p "$destination"
- cp -Rf "$source/." "$destination/"
- if [ -e "$kept" ]; then mv -f "$kept" "$keep"; fi
- step "litehtml 0.10 -> Libraries/Source/litehtml"
-}
-
-# --- The fork's one change to litehtml, Libraries/Source/litehtml-parsed-css.patch. HtmlOverlay.cpp
-# does not compile without it. A patched copy says so by the parameter name `master_parsed` in
-# document.h, so a copy fetched before the patch existed gets it on the next run too.
-#
-# GIT_CEILING_DIRECTORIES is not optional. litehtml sits inside this repository's checkout, and
-# without the ceiling git finds the outer repository, treats every file in the patch as outside it,
-# skips them all - and says nothing. vendor.ps1 records exactly that.
-#
-# And the result is checked by the marker, not by git apply's exit status. The failure above is the
-# silent kind; a status check would pass on the one case it exists to catch.
-install_litehtml_patch() {
- local destination="$libraries/Source/litehtml"
- local header="$destination/include/litehtml/document.h"
- if grep -q 'master_parsed' "$header" 2>/dev/null; then return 0; fi
- local patch="$libraries/Source/litehtml-parsed-css.patch"
- GIT_CEILING_DIRECTORIES="$libraries/Source" \
- git -C "$destination" -c core.autocrlf=false apply "$patch" || true
- if ! grep -q 'master_parsed' "$header" 2>/dev/null; then
- echo "[vendor] litehtml-parsed-css.patch did not apply to Libraries/Source/litehtml" >&2
- echo "[vendor] ($header still lacks master_parsed)" >&2
- exit 1
- fi
- step "litehtml-parsed-css.patch -> Libraries/Source/litehtml"
-}
-
-# --- nanosvg, the two headers: parses and rasterises the SVG pictures a page names in url(). Copied
-# file by file rather than by replacing the folder, so its committed .gitignore is never disturbed.
-install_nanosvg() {
- local destination="$libraries/Source/nanosvg"
- if [ -e "$destination/nanosvgrast.h" ] && [ -z "$force" ]; then return 0; fi
- local archive source
- archive=$(get_file 'https://github.com/memononen/nanosvg/archive/239e102ec2c691f2902e20ace2ed36ee4a35cfe6.zip' "$work/nanosvg.zip")
- source=$(expand_source "$archive" 'nanosvg')
- local headers=()
- while IFS= read -r f; do headers+=("$f"); done < <(list_top_level "$source/src" '.h')
- copy_files "$destination" "${headers[@]}" "$source/LICENSE.txt"
- step "nanosvg -> Libraries/Source/nanosvg"
-}
-
# --- SDL3 3.4.16, the whole repository: the window, the events, the entry point and the GPU API on
# every platform that is not Windows (decision 3 in PORTING.md). Windows keeps
# Win32Device, so vendor.ps1 does not fetch it - it says so, the way report_directx does here. Same
-# .gitignore dance as litehtml. Pinned to the release's commit, not its tag, because a tag can move.
+# .gitignore dance as GameSpy. Pinned to the release's commit, not its tag, because a tag can move.
install_sdl3() {
local destination="$libraries/Source/SDL3"
if [ -e "$destination/CMakeLists.txt" ] && [ -z "$force" ]; then return 0; fi
@@ -506,7 +454,7 @@ install_sdl3() {
# --- The fork's first change to SDL3, Libraries/Source/sdl3-metal-windowless.patch: METAL_PrepareDriver
# also accepts ZH_SDL_GPU_METAL_WINDOWLESS, so -offscreen makes a Metal GPU device on a host with no
# window server (the patch's header says why, what upstream has, and when it goes). Hint-gated: every
-# run without the hint is upstream's. Checked by the marker, for the reason install_litehtml_patch gives.
+# run without the hint is upstream's. Checked by the marker, for the reason install_gamespy_patch gives.
install_sdl3_patch() {
local destination="$libraries/Source/SDL3"
local source="$destination/src/gpu/metal/SDL_gpu_metal.m"
@@ -523,7 +471,7 @@ install_sdl3_patch() {
}
# --- miniaudio 0.11.25, the one header and its one implementation file: audio beneath C4's port of
-# MilesAudioManager (decision 3). POSIX only, like SDL3. Copied file by file, like nanosvg, so its
+# MilesAudioManager (decision 3). POSIX only, like SDL3. Copied file by file, so its
# committed .gitignore is never disturbed; upstream's CMakeLists builds extras this does not want.
install_miniaudio() {
local destination="$libraries/Source/miniaudio"
@@ -772,9 +720,6 @@ report_directx
install_gamespy
install_gamespy_patch
install_gamespy_unix_patch
-install_litehtml
-install_litehtml_patch
-install_nanosvg
install_sdl3
install_sdl3_patch
install_miniaudio