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): explain the graphics options and when each applies

Olcay Seygand5ebcb2b79f5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f65d5baa4..a9d83307d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1082,7 +1082,9 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same
- Twelve more are decided for you instead of asked about. Grid placement, nudging a blocked building, 45 degree building rotation, the placement range ring, workers going back to supply, detailed build tooltips, the HUD overlay and archived replays are simply on - every one of them is the version of the game people were choosing anyway, and a page of eight checkboxes nobody unticks is a page of eight decisions nobody wanted to make. Middle-mouse panning left the screen too, and edge scrolling in a window and 45 degree camera steps are still yours by name in `Options.ini` if the defaults are wrong for your setup.
- A page no longer says its own name twice. Every tab used to open onto a heading repeating the word already written on the button you just pressed, with a rule under it dividing nothing from nothing.
- An open dropdown covers what is under it instead of the other way round. The list of resolutions grew downwards behind the labels below it, so half the entries were readable and half were words on top of words.
-- Every button, slider and checkbox is the artwork the game already had, down to the fonts and the hover colours.- Writing a line into `Options.ini` by hand still works, and the screen shows you what is in there when it opens. Window mode takes effect the moment you accept it; antialiasing applies the next time the display device resets.
+- Every button, slider and checkbox is the artwork the game already had, down to the fonts and the hover colours.
+- The Graphics page says what you are choosing. A grey line under the detail preset tells you what that preset turns on, and that picking it only fills in the boxes until you press Accept. Labels say what you will see: Cast Shadows and Flat Shadows instead of 3D and 2D, Ground Pattern, Soft Shorelines, Trees And Bushes, Units Behind Buildings. Every tooltip, in English and Turkish, ends with when the setting takes effect: on Accept, from the next map, or the next time the game starts. Antialiasing and texture filtering used to promise a change "when the display device resets" that never came during play; they say next start now, which is when they apply, and antialiasing says plainly that only the old renderer uses it.
+- Writing a line into `Options.ini` by hand still works, and the screen shows you what is in there when it opens. Window mode takes effect the moment you accept it; antialiasing applies the next time the game starts.
- The Defaults button still resets what it always reset, which is the original settings. The new rows keep their values.
## The whole game in Turkish
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index bda85fde8..4789660b0 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -448,11 +448,111 @@ GUI:TreeSway
END
TOOLTIP:TreeSway
-"Trees and shrubs lean in the wind. Takes effect on the next map."
+"Trees and shrubs lean in the wind. Applies from the next map."
END
TOOLTIP:ExtraAnimations
-"Buildings rise inside scaffolding while they are built. Swaying trees have a box of their own."
+"Buildings rise inside scaffolding while they are built. Applies from the next map."
+END
+
+GUI:ExtraAnimations
+"Building Scaffolding"
+END
+
+GUI:Detail
+"Detail Preset"
+END
+
+GUI:DetailNote0
+"Every box on, the most particles and thick smoke, and detail never drops in a big fight. Picking it only fills in the boxes; Accept applies it."
+END
+
+GUI:DetailNote1
+"All the shadows and full-size textures, with the original smoke. Picking it only fills in the boxes; Accept applies it."
+END
+
+GUI:DetailNote2
+"Flat shadows in place of cast ones and fewer particles, for a modest graphics card. Picking it only fills in the boxes; Accept applies it."
+END
+
+GUI:DetailNote3
+"No shadows, half-size textures and the fewest particles, for an old machine. Picking it only fills in the boxes; Accept applies it."
+END
+
+GUI:DetailNote4
+"Your own mix of the boxes on this page and on Effects. Accept keeps it as it is."
+END
+
+GUI:Shadows3D
+"Cast Shadows"
+END
+
+TOOLTIP:Shadows3D
+"Shadows that units, buildings and trees throw on the ground and on each other. Off turns all of them off, the sun's shadows included, and Infantry Shadows needs it on. Applies when you press Accept; a few shadows only change on the next map."
+END
+
+GUI:Shadows2D
+"Flat Shadows"
+END
+
+TOOLTIP:Shadows2D
+"The flat dark patch drawn under a unit or a missile that has no cast shadow. Costs little. Applies when you press Accept."
+END
+
+TOOLTIP:CloudShadows
+"Cloud shadows drift across the ground. Costs little. Applies when you press Accept."
+END
+
+GUI:GroundLighting
+"Ground Pattern"
+END
+
+TOOLTIP:GroundLighting
+"A faint pattern of light and dark laid over the ground, so its repeating tiles show less. Costs little. Applies when you press Accept."
+END
+
+GUI:SmoothWater
+"Soft Shorelines"
+END
+
+TOOLTIP:SmoothWater
+"Water fades out at the shore instead of ending on a hard line. Applies from the next map."
+END
+
+GUI:ShowProps
+"Trees And Bushes"
+END
+
+TOOLTIP:ShowProps
+"Trees and bushes on the map. Off helps a slow machine. Network games always show them. Applies from the next map."
+END
+
+GUI:HeatEffects
+"Heat Haze"
+END
+
+TOOLTIP:HeatEffects
+"Hot air shimmers, as it does over the Microwave Tank's beam. Applies when you press Accept."
+END
+
+GUI:BehindBuilding
+"Units Behind Buildings"
+END
+
+TOOLTIP:BehindBuilding
+"A unit hidden behind a building shows through it as a silhouette in its player's colour. Applies when you press Accept."
+END
+
+TOOLTIP:NoDynamicLOD
+"When the frame rate drops in a big fight, the game thins out effects to keep up. On, it never does: the picture stays full and the frame rate takes the hit."
+END
+
+TOOLTIP:LowResSlider
+"How sharp the textures are. Lower saves graphics memory on an old card. Applies when you press Accept."
+END
+
+TOOLTIP:ParticleCapSlider
+"How many particles of smoke, fire and sparks can exist at once. Big fights reach the limit first; lower it if explosions slow the game down. Applies when you press Accept."
END
GUI:TextureFilter
@@ -472,7 +572,7 @@ GUI:TextureFilter2
END
TOOLTIP:TextureFilter
-"How textures are sampled as they recede from the camera. Bilinear is what the game shipped with and makes distant ground shimmer; anisotropic keeps it sharp. Takes effect the next time the display device is reset."
+"How textures are sampled as they recede from the camera. Bilinear is what the game shipped with and makes distant ground shimmer; anisotropic keeps it sharp. Applies the next time the game starts."
END
GUI:Anisotropy
@@ -480,7 +580,7 @@ GUI:Anisotropy
END
TOOLTIP:Anisotropy
-"How many samples anisotropic filtering may take. Auto lets the graphics card decide, up to 16. Only used when texture filtering is anisotropic."
+"How many samples anisotropic filtering may take. Auto lets the graphics card decide, up to 16. Only used when texture filtering is anisotropic. Applies the next time the game starts."
END
GUI:AnisotropyCardMaximum
@@ -622,7 +722,7 @@ GUI:MSAA4
END
TOOLTIP:MSAA
-"Smooths the stair steps along model edges. A level your card does not offer drops to the highest one it does. Applied when the display device is next reset."
+"Smooths the stair steps along model edges. Only the Direct3D 9 renderer uses it: the default renderer smooths edges on its own and ignores this setting. A level your card does not offer drops to the highest one it does. Applies the next time the game starts."
END
GUI:Bloom
@@ -690,7 +790,7 @@ GUI:InfantryShadows
END
TOOLTIP:InfantryShadows
-"Soldiers and the other animated models cast 3D shadows too. Needs 3D Shadows. Takes effect on the next map."
+"Soldiers and the other animated models cast real shadows too. Needs Cast Shadows. Applies from the next map."
END
GUI:ProjectileShadows
@@ -698,7 +798,7 @@ GUI:ProjectileShadows
END
TOOLTIP:ProjectileShadows
-"Missiles and bombs the artists gave no shadow get one on the ground. Takes effect on the next map."
+"Missiles and bombs the artists gave no shadow get one on the ground. Applies from the next map."
END
GUI:PropShadows
@@ -706,7 +806,7 @@ GUI:PropShadows
END
TOOLTIP:PropShadows
-"Fences, rubbish and shrubs, which the original drew with no shadow at all, get one. Takes effect on the next map."
+"Fences, rubbish and shrubs, which the original drew with no shadow at all, get one. Applies from the next map."
END
GUI:ParticleShadows
@@ -714,7 +814,7 @@ GUI:ParticleShadows
END
TOOLTIP:ParticleShadows
-"Big clouds of smoke and dust lay a soft shadow on the ground under them."
+"Big clouds of smoke and dust lay a soft shadow on the ground under them. Applies when you press Accept."
END
GUI:Smoke
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index 77a8da1e5..bbae1ef15 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -970,7 +970,7 @@ GUI:Resolution
END
GUI:Detail
-"Ayrıntı"
+"Hazır Ayar"
END
GUI:Faction
@@ -9426,19 +9426,19 @@ TOOLTIP:Shadows
END
GUI:BehindBuilding
-"Bina Arkası"
+"Bina Arkasındaki Birlikler"
END
TOOLTIP:BehindBuilding
-"Binaların arkasındaki birliklerin gösterilmesini açıp kapatır. Daha iyi performans için kapatın"
+"Bir binanın arkasında kalan birlik, binanın içinden oyuncusunun renginde bir siluet olarak görünür. Kabul Et'e basınca uygulanır."
END
GUI:ShowProps
-"Dekorları Göster"
+"Ağaçlar ve Çalılar"
END
TOOLTIP:ShowProps
-"Oyundaki dekor nesnelerini açıp kapatır. Daha iyi performans için kapatın"
+"Haritadaki ağaçlar ve çalılar. Kapatmak yavaş bilgisayara yardım eder. Ağ oyunlarında hep görünürler. Bir sonraki haritada uygulanır."
END
GUI:LowResSlider
@@ -9454,7 +9454,7 @@ GUI:LowResFaster
END
TOOLTIP:LowResSlider
-"Yüksek çözünürlüklü dokular oyunu yavaşlatabilir"
+"Kaplamaların ne kadar net olduğu. Düşürmek eski ekran kartında bellek kazandırır. Kabul Et'e basınca uygulanır."
END
GUI:ParticleCap
@@ -9470,7 +9470,7 @@ GUI:LessParticlesFaster
END
TOOLTIP:ParticleCapSlider
-"Parçacık sayısı arttıkça oyun yavaşlayabilir"
+"Aynı anda en çok kaç duman, ateş ve kıvılcım parçacığı olabileceği. Sınıra önce büyük çatışmalar dayanır; patlamalar oyunu yavaşlatıyorsa düşürün. Kabul Et'e basınca uygulanır."
END
GUI:CurrentLossStreak
@@ -9502,19 +9502,19 @@ GUI:OlderReplayVersion
END
GUI:Shadows2D
-"2B Gölgeler"
+"Yassı Gölgeler"
END
TOOLTIP:Shadows2D
-"Oyun içi 2B gölgeleri açıp kapatır. Daha iyi performans için kapatın"
+"Düşen gölgesi olmayan bir birliğin ya da füzenin altına çizilen yassı, koyu leke. Pek yük getirmez. Kabul Et'e basınca uygulanır."
END
GUI:Shadows3D
-"3B Gölgeler"
+"Düşen Gölgeler"
END
TOOLTIP:Shadows3D
-"Oyun içi 3B gölgeleri açıp kapatır. Daha iyi performans için kapatın"
+"Birliklerin, binaların ve ağaçların yere ve birbirine düşürdüğü gölgeler. Kapalıyken güneşin gölgeleri dahil hepsi kapanır; Piyade Gölgeleri de bunun açık olmasını ister. Kabul Et'e basınca uygulanır, birkaç gölge ancak bir sonraki haritada değişir."
END
GUI:CloudShadows
@@ -9522,31 +9522,31 @@ GUI:CloudShadows
END
TOOLTIP:CloudShadows
-"Arazi üzerindeki bulut gölgelerini açıp kapatır. Daha iyi performans için kapatın"
+"Bulutların gölgesi zeminin üstünden kayıp geçer. Pek yük getirmez. Kabul Et'e basınca uygulanır."
END
GUI:GroundLighting
-"Ek Zemin Aydınlatması"
+"Zemin Deseni"
END
TOOLTIP:GroundLighting
-"Arazideki ayrıntılı aydınlatmayı açıp kapatır. Daha iyi performans için kapatın"
+"Zeminin üstüne serilen hafif bir açık-koyu desen; tekrar eden zemin parçaları daha az belli olur. Pek yük getirmez. Kabul Et'e basınca uygulanır."
END
GUI:SmoothWater
-"Yumuşak Su Kenarları"
+"Yumuşak Kıyılar"
END
TOOLTIP:SmoothWater
-"Su kenarlarının yumuşatılmasını açıp kapatır. Daha iyi performans için kapatın"
+"Su, kıyıda keskin bir çizgiyle bitmek yerine yavaşça kaybolur. Bir sonraki haritada uygulanır."
END
GUI:ExtraAnimations
-"Ek Animasyonlar"
+"İnşaat İskelesi"
END
TOOLTIP:ExtraAnimations
-"Binalar yapılırken iskelenin içinde yükselir. Sallanan ağaçların kendi kutusu var."
+"Binalar yapılırken iskelenin içinde yükselir. Bir sonraki haritada uygulanır."
END
GUI:NoDynamicLOD
@@ -9554,7 +9554,7 @@ GUI:NoDynamicLOD
END
TOOLTIP:NoDynamicLOD
-"Otomatik ayrıntı ayarını devre dışı bırakır. Daha iyi performans için kapatın"
+"Büyük bir çatışmada kare hızı düşünce oyun yetişebilmek için efektleri azaltır. Açıkken bunu hiç yapmaz: görüntü tam kalır, kare hızı düşer."
END
GUI:UnlockMaxFPS
@@ -9570,7 +9570,7 @@ GUI:TreeSway
END
TOOLTIP:TreeSway
-"Ağaçlar ve çalılar rüzgârda eğilir. Bir sonraki haritada etkinleşir."
+"Ağaçlar ve çalılar rüzgârda eğilir. Bir sonraki haritada uygulanır."
END
GUI:TankTreads
@@ -13778,11 +13778,11 @@ ACADEMY:Firestorm
END
GUI:HeatEffects
-"Isı Efektleri"
+"Sıcak Hava Titremesi"
END
TOOLTIP:HeatEffects
-"Isı bozulması efektlerini açar veya kapatır. Daha iyi performans için kapatın"
+"Sıcak hava titrer, Mikrodalga Tankı'nın ışınının üstünde olduğu gibi. Kabul Et'e basınca uygulanır."
END
GUI:WeatherEffects
@@ -15041,8 +15041,28 @@ GUI:Ultra
"Ultra"
END
+GUI:DetailNote0
+"Bütün kutular açık, en çok parçacık, kalın duman; büyük çatışmada bile ayrıntı düşmez. Seçince sadece kutular dolar, Kabul Et'e basınca uygulanır."
+END
+
+GUI:DetailNote1
+"Bütün gölgeler ve tam boy kaplamalar, duman oyunun kendi ayarında. Seçince sadece kutular dolar, Kabul Et'e basınca uygulanır."
+END
+
+GUI:DetailNote2
+"Düşen gölgeler yerine yassı gölgeler, daha az parçacık; orta halli ekran kartı için. Seçince sadece kutular dolar, Kabul Et'e basınca uygulanır."
+END
+
+GUI:DetailNote3
+"Gölge yok, yarım boy kaplamalar ve en az parçacık; eski bilgisayar için. Seçince sadece kutular dolar, Kabul Et'e basınca uygulanır."
+END
+
+GUI:DetailNote4
+"Bu sayfadaki ve Efektler sayfasındaki kutuları kendiniz seçtiniz. Kabul Et'e basınca olduğu gibi kaydedilir."
+END
+
GUI:TextureFilter
-"Doku Filtreleme"
+"Kaplama Filtreleme"
END
GUI:TextureFilter0
@@ -15058,7 +15078,7 @@ GUI:TextureFilter2
END
TOOLTIP:TextureFilter
-"Kameradan uzaklaşan dokuların nasıl örneklendiği. Bilineer, oyunun çıkış ayarıdır ve uzaktaki zemini titretir; anizotropik onu keskin tutar. Görüntü aygıtı bir sonraki sıfırlandığında etkinleşir."
+"Kameradan uzaklaşan kaplamaların nasıl örneklendiği. Bilineer, oyunun çıkış ayarıdır ve uzaktaki zemini titretir; anizotropik onu keskin tutar. Oyun bir sonraki açılışında uygulanır."
END
GUI:Anisotropy
@@ -15066,7 +15086,7 @@ GUI:Anisotropy
END
TOOLTIP:Anisotropy
-"Anizotropik filtrelemenin alabileceği örnek sayısı. Otomatik, en çok 16 olmak üzere kararı ekran kartına bırakır. Yalnızca doku filtreleme anizotropik olduğunda kullanılır."
+"Anizotropik filtrelemenin alabileceği örnek sayısı. Otomatik, en çok 16 olmak üzere kararı ekran kartına bırakır. Yalnızca kaplama filtreleme anizotropik olduğunda kullanılır. Oyun bir sonraki açılışında uygulanır."
END
GUI:AnisotropyCardMaximum
@@ -15074,7 +15094,7 @@ GUI:AnisotropyCardMaximum
END
GUI:TextureResolution
-"Doku Çözünürlüğü"
+"Kaplama Kalitesi"
END
GUI:ParticleLimit
@@ -15186,7 +15206,7 @@ GUI:MSAA0
END
TOOLTIP:MSAA
-"Model kenarlarındaki merdiven basamaklarını yumuşatır. Ekran kartınızın sunmadığı bir seviye, sunduğu en yüksek seviyeye düşer. Görüntü aygıtı bir sonraki sıfırlandığında uygulanır."
+"Model kenarlarındaki merdiven basamaklarını yumuşatır. Bunu yalnızca Direct3D 9 çizicisi kullanır: varsayılan çizici kenarları kendisi yumuşatır ve bu ayara bakmaz. Ekran kartınızın sunmadığı bir seviye, sunduğu en yüksek seviyeye düşer. Oyun bir sonraki açılışında uygulanır."
END
GUI:Bloom
@@ -15254,7 +15274,7 @@ GUI:InfantryShadows
END
TOOLTIP:InfantryShadows
-"Askerler ve öteki hareketli modeller de 3B gölge düşürür. 3B gölgelerin açık olması gerekir. Bir sonraki haritada etkinleşir."
+"Askerler ve öteki hareketli modeller de gerçek gölge düşürür. Düşen Gölgelerin açık olması gerekir. Bir sonraki haritada uygulanır."
END
GUI:ProjectileShadows
@@ -15262,7 +15282,7 @@ GUI:ProjectileShadows
END
TOOLTIP:ProjectileShadows
-"Çizerlerin gölge vermediği füzeler ve bombalar yere bir gölge düşürür. Bir sonraki haritada etkinleşir."
+"Çizerlerin gölge vermediği füzeler ve bombalar yere bir gölge düşürür. Bir sonraki haritada uygulanır."
END
GUI:PropShadows
@@ -15270,7 +15290,7 @@ GUI:PropShadows
END
TOOLTIP:PropShadows
-"Orijinal oyunun hiç gölgesiz çizdiği çitler, çöpler ve çalılar da gölge düşürür. Bir sonraki haritada etkinleşir."
+"Orijinal oyunun hiç gölgesiz çizdiği çitler, çöpler ve çalılar da gölge düşürür. Bir sonraki haritada uygulanır."
END
GUI:ParticleShadows
@@ -15278,7 +15298,7 @@ GUI:ParticleShadows
END
TOOLTIP:ParticleShadows
-"Büyük duman ve toz bulutları altlarındaki zemine yumuşak bir gölge düşürür."
+"Büyük duman ve toz bulutları altlarındaki zemine yumuşak bir gölge düşürür. Kabul Et'e basınca uygulanır."
END
GUI:Smoke
diff --git a/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
index 770d9ce04..976cca60a 100644
--- a/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
+++ b/GeneralsMD/Code/Data/Window/Menus/OptionsMenu.wnd
@@ -3421,7 +3421,51 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 266, BOTTOMRIGHT: 258 290, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 34 266, BOTTOMRIGHT: 258 346, 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 350, BOTTOMRIGHT: 258 374, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:LabelTextureResolution";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
@@ -3468,7 +3512,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 178 290, BOTTOMRIGHT: 258 314, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 178 374, BOTTOMRIGHT: 258 398, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:ValueTextureResolution";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
@@ -3514,7 +3558,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 290, BOTTOMRIGHT: 176 314, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 40 374, BOTTOMRIGHT: 176 398, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:LowResSlider";
STATUS = ENABLED+IMAGE+TABSTOP;
STYLE = HORZSLIDER+MOUSETRACK;
@@ -3589,7 +3633,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 34 322, BOTTOMRIGHT: 258 346, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 34 406, BOTTOMRIGHT: 258 430, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:LabelParticleCap";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
@@ -3636,7 +3680,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = STATICTEXT;
- SCREENRECT = UPPERLEFT: 178 346, BOTTOMRIGHT: 258 370, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 178 430, BOTTOMRIGHT: 258 454, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:ValueParticleCap";
STATUS = ENABLED;
STYLE = STATICTEXT+MOUSETRACK;
@@ -3682,7 +3726,7 @@ WINDOW
CHILD
WINDOW
WINDOWTYPE = HORZSLIDER;
- SCREENRECT = UPPERLEFT: 40 346, BOTTOMRIGHT: 176 370, CREATIONRESOLUTION: 800 600;
+ SCREENRECT = UPPERLEFT: 40 430, BOTTOMRIGHT: 176 454, CREATIONRESOLUTION: 800 600;
NAME = "OptionsMenu.wnd:ParticleCapSlider";
STATUS = ENABLED+IMAGE+TABSTOP;
STYLE = HORZSLIDER+MOUSETRACK;
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/OptionsCatalog.h b/GeneralsMD/Code/GameEngine/Include/Common/OptionsCatalog.h
index 15b9606d1..be6fc35dd 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/OptionsCatalog.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/OptionsCatalog.h
@@ -73,6 +73,7 @@ enum OptionApply
APPLY_DEVICE_RESET, ///< the D3D device has to be recreated before it shows
APPLY_RESTART, ///< only read once, before the engine exists - see EarlyOptions.h
APPLY_SHELL_REBUILD, ///< read as the menus are laid out: Accept builds the shell again, as a resolution change does
+ APPLY_NEXT_MAP, ///< read when a drawable is made, so what already stands keeps the old value until the next map
};
//-----------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
index 37a9bb37f..4943faa6b 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/OptionsCatalog.cpp
@@ -320,17 +320,19 @@ const OptionDef TheOptionCatalog[] =
// 0 bilinear, 1 trilinear, 2 anisotropic. Retail shipped bilinear with point mip selection,
// which is a 2003 fill-rate budget and is why distant ground used to shimmer; 2 is the default
- // here. The filter table is built when the device is made, so this needs a device reset. A combo
- // box on the Graphics page; stored as the same decimal the hand-edited key always was.
+ // here. The filter table is built when the device is made, and W3DDisplay::init is the only place
+ // that hands this value to WW3D2 - a reset from the display page does not push it again - so it
+ // waits for the next launch. A combo box on the Graphics page; stored as the same decimal the
+ // hand-edited key always was.
{ "TextureFilter", OPT_WND( "ComboBoxTextureFilter" ), "GUI:TextureFilter",
- OPTION_ENUM, APPLY_DEVICE_RESET, 0, TEXTURE_FILTER_MODE_COUNT - 1,
+ OPTION_ENUM, APPLY_RESTART, 0, TEXTURE_FILTER_MODE_COUNT - 1,
get_m_textureFilterMode, set_m_textureFilterMode },
// Samples anisotropic filtering may take. 0 means whatever the card offers, capped at 16, and
// asking for more than the card has still gets you the card's answer. Only read when the filter
- // above is anisotropic. The slider beside the filter box.
+ // above is anisotropic. The slider beside the filter box; pushed in by W3DDisplay::init with it.
{ "Anisotropy", OPT_WND( "SliderAnisotropy" ), "GUI:Anisotropy",
- OPTION_INT, APPLY_DEVICE_RESET, 0, 16,
+ OPTION_INT, APPLY_RESTART, 0, 16,
get_m_anisotropyLevel, set_m_anisotropyLevel },
// Eight rows used to sit here: grid and nudge build placement, snap-to-45 building rotation, the
@@ -364,9 +366,10 @@ const OptionDef TheOptionCatalog[] =
// Multisampling, as an index into 0/2/4/8/16 rather than a sample count - the device offers
// those and nothing between them, so a slider would spend most of its travel on values that
- // silently round down.
+ // silently round down. W3DDisplay::init hands it to the device once, and only to a Direct3D 9
+ // frame: the default Direct3D 11 picture asks for no samples and smooths its edges with FXAA.
{ "MSAA", OPT_WND( "ComboBoxMSAA" ), "GUI:MSAA",
- OPTION_ENUM, APPLY_DEVICE_RESET, 0, OPTION_MSAA_LEVEL_COUNT - 1,
+ OPTION_ENUM, APPLY_RESTART, 0, OPTION_MSAA_LEVEL_COUNT - 1,
get_m_msaaLevel, set_m_msaaLevel },
// Wait for the monitor. Off is what the uncapped picture shipped as: D3D9 honours the
@@ -448,18 +451,19 @@ const OptionDef TheOptionCatalog[] =
get_m_textLanguage, set_m_textLanguage },
// The Effects page. These four sat in GameData.ini with no control, all on. Each is read when the
- // thing that casts the shadow is made, so a change shows on the next map rather than on the units
- // already standing there - except smoke clouds, which ask every frame.
+ // thing that casts the shadow is made (fillShadowInfoFromTemplate, promoteSkinShadowToVolume), so a
+ // change shows on the next map rather than on the units already standing there - except smoke
+ // clouds, which ask every frame.
{ "UseShadowVolumesForSkins", OPT_WND( "CheckInfantryShadows" ), "GUI:InfantryShadows",
- OPTION_BOOL, APPLY_LIVE, 0, 1,
+ OPTION_BOOL, APPLY_NEXT_MAP, 0, 1,
get_m_useShadowVolumesForSkins, set_m_useShadowVolumesForSkins },
{ "ShadowsForProjectiles", OPT_WND( "CheckProjectileShadows" ), "GUI:ProjectileShadows",
- OPTION_BOOL, APPLY_LIVE, 0, 1,
+ OPTION_BOOL, APPLY_NEXT_MAP, 0, 1,
get_m_shadowsForProjectiles, set_m_shadowsForProjectiles },
{ "ShadowsForProps", OPT_WND( "CheckPropShadows" ), "GUI:PropShadows",
- OPTION_BOOL, APPLY_LIVE, 0, 1,
+ OPTION_BOOL, APPLY_NEXT_MAP, 0, 1,
get_m_shadowsForProps, set_m_shadowsForProps },
{ "ShadowsForParticles", OPT_WND( "CheckParticleShadows" ), "GUI:ParticleShadows",
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 0ea1b16f1..f6deb6995 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp
@@ -2116,6 +2116,25 @@ static void showDetailPreset( Int index )
updateSliderReadouts();
}
+/** The grey line under the detail box: what the picked preset turns on, and that picking one only
+ * fills in the boxes until Accept. GUI:DetailNote0..4 follow the box's own order, Ultra to Custom. */
+static void updateDetailNote( void )
+{
+ GameWindow *note = TheWindowManager->winGetWindowFromId( NULL, NAMEKEY( "OptionsMenu.wnd:DetailNote" ) );
+ // a stale Run/Window layout without the line still opens; it just says nothing
+ if( note == NULL )
+ return;
+
+ Int index = CUSTOMDETAIL;
+ GadgetComboBoxGetSelectedPos( comboBoxDetail, &index );
+ if( index < ULTRADETAIL || index > CUSTOMDETAIL )
+ index = CUSTOMDETAIL;
+
+ AsciiString key;
+ key.format( "GUI:DetailNote%d", index );
+ GadgetStaticTextSetText( note, TheGameText->fetch( key ) );
+}
+
/** A detail control was touched, so what the page shows is nobody's preset any more. */
static void markDetailCustom( void )
{
@@ -2127,6 +2146,7 @@ static void markDetailCustom( void )
ignoreSelected = TRUE;
GadgetComboBoxSetSelectedPos( comboBoxDetail, CUSTOMDETAIL );
ignoreSelected = FALSE;
+ updateDetailNote();
}
//-------------------------------------------------------------------------------------------------
/** Initialize the options menu */
@@ -2560,6 +2580,7 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
fillCatalogWidgets();
updateSliderReadouts();
+ updateDetailNote();
showOptionsPage( 0 );
// show menu
@@ -2755,6 +2776,7 @@ WindowMsgHandledType OptionsMenuSystem( GameWindow *window, UnsignedInt msg,
Int index = CUSTOMDETAIL;
GadgetComboBoxGetSelectedPos( comboBoxDetail, &index );
showDetailPreset( index );
+ updateDetailNote();
}
else if( controlID == comboBoxMonitorID )
{
diff --git a/GeneralsMD/Code/Tools/optionsmenu_layout.py b/GeneralsMD/Code/Tools/optionsmenu_layout.py
index 145616ec3..80c647a11 100644
--- a/GeneralsMD/Code/Tools/optionsmenu_layout.py
+++ b/GeneralsMD/Code/Tools/optionsmenu_layout.py
@@ -186,6 +186,17 @@ READOUTS = [
"ValueCloserZoom", "ValueDragTolerance",
]
+# Lines of small grey text under a control that say what its current choice does, written by
+# OptionsMenu.cpp. The detail preset is the one that needs it: picking Ultra only fills in the boxes,
+# and nothing on the shipped screen said that Accept is what applies them.
+# (name, label key whose entries 0..count-1 it shows, count)
+NOTES = [("DetailNote", "GUI:DetailNote", 5)]
+NOTE_HEIGHT = 80
+NOTE_FONT = 'NAME: "Arial", SIZE: 10, BOLD: 0'
+NOTE_COLOR = ("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")
+
# a cloned slider keeps its template's range unless it is given one; selfcheck holds these to the
# catalog row's own bounds
SLIDER_RANGES = [("SliderAnisotropy", 0, 16), ("SliderCloserZoom", 0, 60),
@@ -245,6 +256,7 @@ GROUP_LAYOUT = [
("PageGraphics", 0, "GUI:OptionsGroupDetail", [
("check", "CheckClassicGraphics"),
setting("DetailLabel", "ComboBoxDetail"),
+ ("note", "DetailNote"),
setting("LabelTextureResolution", "LowResSlider", "ValueTextureResolution"),
setting("LabelParticleCap", "ParticleCapSlider", "ValueParticleCap")]),
("PageGraphics", 1, "GUI:OptionsGroupImage", [
@@ -402,6 +414,15 @@ def make_readout(label_template, name):
return readout
+def make_note(label_template, name):
+ """A readout in the combo boxes' 10 point lettering and a quieter grey, tall enough to wrap."""
+ note = make_readout(label_template, name)
+ note.set_prop("FONT", NOTE_FONT)
+ note.set_prop("HEADERTEMPLATE", '"LabelRegular"')
+ note.set_prop("TEXTCOLOR", NOTE_COLOR)
+ return note
+
+
def setting_of(name):
"""The setting a control belongs to, which is its name without the kind in front. A label and
the combo box under it are two controls for one setting and share one tooltip string."""
@@ -480,6 +501,8 @@ def build(layout):
waiting[name] = make_control(templates[template], name, text, 0, 0, 1, 1)
for name in READOUTS:
waiting[name] = make_readout(templates[LABEL], name)
+ for name, _key, _count in NOTES:
+ waiting[name] = make_note(templates[LABEL], name)
for name, low, high in SLIDER_RANGES:
waiting[name].put_prop("SLIDERDATA", "MINVALUE: %d, MAXVALUE: %d" % (low, high))
for name, key in TEXT_OVERRIDES:
@@ -525,6 +548,9 @@ def build(layout):
elif item[0] == "check":
put(page_name, item[1], left, top, COLUMN_WIDTH, ROW_HEIGHT, CHECK)
top += CHECK_PITCH
+ elif item[0] == "note":
+ put(page_name, item[1], left - TEXT_NUDGE, top, COLUMN_WIDTH, NOTE_HEIGHT)
+ top += NOTE_HEIGHT + 4
else:
put(page_name, item[1], left, top, 160, ROW_HEIGHT)
top += BUTTON_PITCH
@@ -685,9 +711,13 @@ def selfcheck():
if key not in keys:
problems.append("caption %s is not in Patch.str" % key)
- for name in READOUTS + GRAPHICS_CHECKS + MENU_CHECKS + MENU_COMBOS:
+ 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)
+ for name, key, count in NOTES:
+ for entry in range(count):
+ if "%s%d" % (key, entry) not in keys:
+ problems.append("%s needs %s%d in Patch.str" % (name, key, entry))
for name in MENU_COMBOS:
for key in ("GUI:%s" % setting_of(name), "TOOLTIP:%s" % setting_of(name)):
if key not in keys: