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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
feat(gameengine): supply pile limit as a lobby rule
Olcay Seygan1bfb7531c3dc
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fd1b60ba9..f0bc5216e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -879,6 +879,7 @@ A third pass went through the generals' powers, promotions and unit abilities.- A Unit Limit box on the settings page caps the match at 840 units, shared out evenly: two players get 420 each, four get 210, eight get 105. Units standing and units waiting in a queue both count against your share, buildings do not, and the build buttons grey out when you reach it. A transport that rolls out full is charged for its riders while it is still in the queue, so a Troop Crawler costs nine and cannot slip eight Red Guards past the limit, and a pair of Red Guards costs two. A shift or control batch near the wall queues as many as still fit and stops there, and a button whose next order would not fit greys out. Your own count and your share sit in the top right corner next to the frame rate, so you can see the wall coming. The host ticks it; everybody else sees it ticked.- Allies can pool their income. Share Income on the settings page splits every payment evenly between whoever earned it and each teammate still in the match, so an oil derrick paying 200 to one of two allies pays 100 to each. Oil Derricks shares the derricks you capture and nothing else; All Income adds supply runs, hackers and black markets. In a two-against-two between computer players one pair of partners had earned 4,600 apart after five minutes without it, and 190 apart with it. It works in skirmish too, with a computer ally. No Sharing is the game as it always played.- Destroyed tech buildings can come back. With Tech Respawn set on the settings page, an oil derrick, refinery, hospital, artillery platform, repair bay or reinforcement pad that gets blown up lies in ruins for the minutes the host picked, and then a neutral one stands on the same spot at full health, waiting for an engineer. It keeps happening for as long as the match lasts, so the derricks in the middle of the map are worth fighting over in the second hour too. Nothing appears on top of anybody: a building you put up over the ruin, or a tank parked on it, keeps it away until the spot is clear. In a test six Crusaders sat on a dead derrick for a minute past its time and it came back one second after they drove off. Never is the game as it always played.+- A supply pile can be kept to one player. Pile Limit on the settings page sets how many players may gather from one supply dock or pile at the same time: 1, 2 or 3. Whoever sends a gatherer first holds the pile, and with the limit at 1 everybody else's supply trucks and Workers drive to another pile or wait at home, Chinooks included. An ally counts as a player of his own, so two teammates at a limit of 1 need a pile each. The pile stays yours for as long as your gatherers keep coming, and frees up a minute after the last load was taken from it. Point at a pile that is closed to you and its tooltip says it is taken. A computer player is held to the same limit and does not yet go looking for a pile of its own, so one that shares its piles with a neighbour earns less under this rule. No Limit is the game as it always played.- Superweapons are a dropdown instead of a tick box. Allow Superweapons is the game as it plays without a rule. Limit Superweapons leaves each player one Particle Cannon, one Nuclear Missile or one Scud Storm at a time. No Superweapons bars them.- No Superweapons can be picked. The dropdown sits low on the settings page, and its last row hung past the bottom edge of the panel: it drew, but a click on it went to nobody and the list stayed on whatever it said before. Any dropdown row past the edge of its panel takes the click now.- The USA Superweapon General is the exception to both, because the rule that reads as a handicap to everyone else reads as a deletion to him: three superweapons of his own are what he pays for weaker tanks, weaker infantry and a worse air force with. Under Limit he keeps four of each of his. Under No he keeps one. Play him against a lobby that has banned superweapons and you are playing the army you paid for, not an empty base.diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.strindex 28201d91e..606276fcc 100644--- a/GeneralsMD/Code/Data/Patch.str+++ b/GeneralsMD/Code/Data/Patch.str@@ -901,6 +901,12 @@ 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+// 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.@@ -1099,6 +1105,22 @@ GUI:TechRespawnFormat"After %d min"END+GUI:SupplyPileLimit+"Pile Limit"+END++TOOLTIP:SupplyPileLimit+"How many players may gather from one supply dock or supply pile at the same time. With 1, a pile belongs to whoever reaches it first, and every other player's supply trucks, Workers and Chinooks go to another pile or wait at home. Allies count as separate players. A pile is free again a minute after the last load was taken from it."+END++GUI:SupplyPileLimitOff+"No Limit"+END++GUI:SupplyPileLimitFormat+"%d per pile"+END+GUI:ProRules"Pro Rules"ENDdiff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.strindex 486f9e0a4..12389d450 100644--- a/GeneralsMD/Code/Data/Turkish/Generals.str+++ b/GeneralsMD/Code/Data/Turkish/Generals.str@@ -1033,6 +1033,10 @@ TOOLTIP:SupplyWarehouse"\n $%d kaldı"END+TOOLTIP:SupplyPileFull+"\n Dolu: yığın sınırı toplayıcılarınızı almıyor"+END+TOOLTIP:LobbyPlayers"Şu anda Oyun Lobisinde bulunan oyuncular"END@@ -15537,6 +15541,22 @@ GUI:TechRespawnFormat"%d dk sonra"END+GUI:SupplyPileLimit+"Yığın Sınırı"+END++TOOLTIP:SupplyPileLimit+"Bir ikmal noktasından ya da ikmal yığınından aynı anda kaç oyuncunun toplayabileceği. 1 seçilirse yığın ona ilk ulaşanın olur; diğer oyuncuların ikmal kamyonları, İşçileri ve Chinook'ları başka bir yığına gider ya da üste bekler. Müttefikler ayrı oyuncu sayılır. Son yük alındıktan bir dakika sonra yığın yeniden boşa çıkar."+END++GUI:SupplyPileLimitOff+"Sınır Yok"+END++GUI:SupplyPileLimitFormat+"Yığın başına %d"+END+GUI:ProRules"Pro Kuralları"ENDdiff --git a/GeneralsMD/Code/Data/Window/Menus/GameSpyGameOptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/GameSpyGameOptionsMenu.wndindex 16c7fe0c7..c9bfb176a 100644--- a/GeneralsMD/Code/Data/Window/Menus/GameSpyGameOptionsMenu.wnd+++ b/GeneralsMD/Code/Data/Window/Menus/GameSpyGameOptionsMenu.wnd@@ -11837,6 +11837,294 @@ WINDOWIMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;ENDCHILD+ WINDOW+ WINDOWTYPE = STATICTEXT;+ SCREENRECT = UPPERLEFT: 463 442, BOTTOMRIGHT: 553 466, CREATIONRESOLUTION: 800 600;+ NAME = "GameSpyGameOptionsMenu.wnd:LabelSupplyPileLimit";+ STATUS = ENABLED+IMAGE;+ STYLE = STATICTEXT+MOUSETRACK;+ SYSTEMCALLBACK = "[None]";+ INPUTCALLBACK = "[None]";+ TOOLTIPCALLBACK = "[None]";+ DRAWCALLBACK = "[None]";+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;+ HEADERTEMPLATE = "TextEntry";+ TOOLTIPTEXT = "TOOLTIP:SupplyPileLimit";+ TOOLTIPDELAY = -1;+ TEXT = "GUI:SupplyPileLimit";+ 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 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ 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: 557 442, BOTTOMRIGHT: 705 466, CREATIONRESOLUTION: 800 600;+ NAME = "GameSpyGameOptionsMenu.wnd:ComboBoxSupplyPileLimit";+ 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:SupplyPileLimit";+ TOOLTIPDELAY = -1;+ TEXTCOLOR = ENABLED: 255 254 254 255, ENABLEDBORDER: 0 0 0 255,+ DISABLED: 122 48 1 255, DISABLEDBORDER: 64 64 64 255,+ HILITE: 168 255 12 255, HILITEBORDER: 1 1 1 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ 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: 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ 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 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;+ 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: 255 190 0 0, BORDERCOLOR: 47 55 168 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ LISTBOXDISABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 0, BORDERCOLOR: 148 112 0 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ LISTBOXHILITESLIDERDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 0, BORDERCOLOR: 49 55 168 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBENABLEDDRAWDATA = IMAGE: ScrollBarThumbEnabled, COLOR: 255 4 0 0, BORDERCOLOR: 255 243 28 255,+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: ScrollBarThumbDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBHILITEDRAWDATA = IMAGE: ScrollBarThumbHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ END+ CHILDWINDOWWINDOWTYPE = CHECKBOX;SCREENRECT = UPPERLEFT: 500 394, BOTTOMRIGHT: 660 418, CREATIONRESOLUTION: 800 600;diff --git a/GeneralsMD/Code/Data/Window/Menus/LanGameOptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/LanGameOptionsMenu.wndindex c6d16f353..4df38573b 100644--- a/GeneralsMD/Code/Data/Window/Menus/LanGameOptionsMenu.wnd+++ b/GeneralsMD/Code/Data/Window/Menus/LanGameOptionsMenu.wnd@@ -10824,6 +10824,294 @@ WINDOWIMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;ENDCHILD+ WINDOW+ WINDOWTYPE = STATICTEXT;+ SCREENRECT = UPPERLEFT: 330 448, BOTTOMRIGHT: 426 472, CREATIONRESOLUTION: 800 600;+ NAME = "LanGameOptionsMenu.wnd:LabelSupplyPileLimit";+ STATUS = ENABLED+IMAGE;+ STYLE = STATICTEXT+MOUSETRACK;+ SYSTEMCALLBACK = "[None]";+ INPUTCALLBACK = "[None]";+ TOOLTIPCALLBACK = "[None]";+ DRAWCALLBACK = "[None]";+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;+ HEADERTEMPLATE = "TextEntry";+ TOOLTIPTEXT = "TOOLTIP:SupplyPileLimit";+ TOOLTIPDELAY = -1;+ TEXT = "GUI:SupplyPileLimit";+ 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 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ 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: 432 448, BOTTOMRIGHT: 584 472, CREATIONRESOLUTION: 800 600;+ NAME = "LanGameOptionsMenu.wnd:ComboBoxSupplyPileLimit";+ 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:SupplyPileLimit";+ TOOLTIPDELAY = -1;+ TEXTCOLOR = ENABLED: 255 254 254 255, ENABLEDBORDER: 0 0 0 255,+ DISABLED: 122 48 1 255, DISABLEDBORDER: 64 64 64 255,+ HILITE: 168 255 12 255, HILITEBORDER: 1 1 1 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ 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: 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ 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 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;+ 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: 255 190 0 0, BORDERCOLOR: 47 55 168 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ LISTBOXDISABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 0, BORDERCOLOR: 148 112 0 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ LISTBOXHILITESLIDERDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 0, BORDERCOLOR: 49 55 168 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBENABLEDDRAWDATA = IMAGE: ScrollBarThumbEnabled, COLOR: 255 4 0 0, BORDERCOLOR: 255 243 28 255,+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: ScrollBarThumbDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBHILITEDRAWDATA = IMAGE: ScrollBarThumbHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ END+ CHILDWINDOWWINDOWTYPE = CHECKBOX;SCREENRECT = UPPERLEFT: 600 420, BOTTOMRIGHT: 728 444, CREATIONRESOLUTION: 800 600;diff --git a/GeneralsMD/Code/Data/Window/Menus/SkirmishGameOptionsMenu.wnd b/GeneralsMD/Code/Data/Window/Menus/SkirmishGameOptionsMenu.wndindex 236e000a8..40705076b 100644--- a/GeneralsMD/Code/Data/Window/Menus/SkirmishGameOptionsMenu.wnd+++ b/GeneralsMD/Code/Data/Window/Menus/SkirmishGameOptionsMenu.wnd@@ -9157,7 +9157,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = STATICTEXT;- SCREENRECT = UPPERLEFT: 66 404, BOTTOMRIGHT: 162 428, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 66 392, BOTTOMRIGHT: 162 416, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:StartingCashLabel";STATUS = ENABLED+IMAGE;STYLE = STATICTEXT+MOUSETRACK;@@ -9205,7 +9205,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = COMBOBOX;- SCREENRECT = UPPERLEFT: 168 404, BOTTOMRIGHT: 320 428, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 168 392, BOTTOMRIGHT: 320 416, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:ComboBoxStartingCash";STATUS = ENABLED+IMAGE;STYLE = MOUSETRACK+COMBOBOX;@@ -9445,7 +9445,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = STATICTEXT;- SCREENRECT = UPPERLEFT: 330 404, BOTTOMRIGHT: 418 428, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 330 392, BOTTOMRIGHT: 418 416, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:LabelGameSpeed";STATUS = ENABLED+NOINPUT+NOFOCUS;STYLE = STATICTEXT+MOUSETRACK;@@ -9492,7 +9492,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = COMBOBOX;- SCREENRECT = UPPERLEFT: 424 404, BOTTOMRIGHT: 536 428, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 424 392, BOTTOMRIGHT: 536 416, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:ComboBoxGameSpeed";STATUS = ENABLED+IMAGE;STYLE = MOUSETRACK+COMBOBOX;@@ -9732,7 +9732,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = STATICTEXT;- SCREENRECT = UPPERLEFT: 66 436, BOTTOMRIGHT: 162 460, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 66 418, BOTTOMRIGHT: 162 442, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:LabelSuperweapons";STATUS = ENABLED+IMAGE;STYLE = STATICTEXT+MOUSETRACK;@@ -9780,7 +9780,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = COMBOBOX;- SCREENRECT = UPPERLEFT: 168 436, BOTTOMRIGHT: 320 460, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 168 418, BOTTOMRIGHT: 320 442, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:ComboBoxSuperweapons";STATUS = ENABLED+IMAGE;STYLE = MOUSETRACK+COMBOBOX;@@ -10020,7 +10020,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = STATICTEXT;- SCREENRECT = UPPERLEFT: 66 468, BOTTOMRIGHT: 162 492, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 66 444, BOTTOMRIGHT: 162 468, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:LabelIncomeSharing";STATUS = ENABLED+IMAGE;STYLE = STATICTEXT+MOUSETRACK;@@ -10068,7 +10068,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = COMBOBOX;- SCREENRECT = UPPERLEFT: 168 468, BOTTOMRIGHT: 320 492, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 168 444, BOTTOMRIGHT: 320 468, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:ComboBoxIncomeSharing";STATUS = ENABLED+IMAGE;STYLE = MOUSETRACK+COMBOBOX;@@ -10308,7 +10308,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = STATICTEXT;- SCREENRECT = UPPERLEFT: 330 468, BOTTOMRIGHT: 418 492, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 330 444, BOTTOMRIGHT: 418 468, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:LabelTechRespawn";STATUS = ENABLED+IMAGE;STYLE = STATICTEXT+MOUSETRACK;@@ -10356,7 +10356,7 @@ WINDOWCHILDWINDOWWINDOWTYPE = COMBOBOX;- SCREENRECT = UPPERLEFT: 424 468, BOTTOMRIGHT: 536 492, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 424 444, BOTTOMRIGHT: 536 468, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:ComboBoxTechRespawn";STATUS = ENABLED+IMAGE;STYLE = MOUSETRACK+COMBOBOX;@@ -10594,9 +10594,297 @@ WINDOWIMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;ENDCHILD+ WINDOW+ WINDOWTYPE = STATICTEXT;+ SCREENRECT = UPPERLEFT: 66 470, BOTTOMRIGHT: 162 494, CREATIONRESOLUTION: 800 600;+ NAME = "SkirmishGameOptionsMenu.wnd:LabelSupplyPileLimit";+ STATUS = ENABLED+IMAGE;+ STYLE = STATICTEXT+MOUSETRACK;+ SYSTEMCALLBACK = "[None]";+ INPUTCALLBACK = "[None]";+ TOOLTIPCALLBACK = "[None]";+ DRAWCALLBACK = "[None]";+ FONT = NAME: "Arial", SIZE: 10, BOLD: 0;+ HEADERTEMPLATE = "TextEntry";+ TOOLTIPTEXT = "TOOLTIP:SupplyPileLimit";+ TOOLTIPDELAY = -1;+ TEXT = "GUI:SupplyPileLimit";+ 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 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ 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: 168 470, BOTTOMRIGHT: 320 494, CREATIONRESOLUTION: 800 600;+ NAME = "SkirmishGameOptionsMenu.wnd:ComboBoxSupplyPileLimit";+ 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:SupplyPileLimit";+ TOOLTIPDELAY = -1;+ TEXTCOLOR = ENABLED: 255 254 254 255, ENABLEDBORDER: 0 0 0 255,+ DISABLED: 122 48 1 255, DISABLEDBORDER: 64 64 64 255,+ HILITE: 168 255 12 255, HILITEBORDER: 1 1 1 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ 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: 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ 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 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 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: ListBoxHiliteSelectedItemRepeatingCenter, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: ListBoxHiliteSelectedItemSmallRepeatingCenter, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255,+ IMAGE: NoImage, COLOR: 255 255 255 255, BORDERCOLOR: 255 255 255 255;+ 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: 255 190 0 0, BORDERCOLOR: 47 55 168 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ LISTBOXDISABLEDSLIDERDRAWDATA = IMAGE: NoImage, COLOR: 128 128 128 0, BORDERCOLOR: 148 112 0 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ LISTBOXHILITESLIDERDRAWDATA = IMAGE: NoImage, COLOR: 0 255 0 0, BORDERCOLOR: 49 55 168 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBENABLEDDRAWDATA = IMAGE: ScrollBarThumbEnabled, COLOR: 255 4 0 0, BORDERCOLOR: 255 243 28 255,+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 255 255 0 255, BORDERCOLOR: 254 254 254 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBDISABLEDDRAWDATA = IMAGE: ScrollBarThumbDisabled, COLOR: 128 128 128 255, BORDERCOLOR: 192 192 192 255,+ IMAGE: NoImage, COLOR: 192 192 192 255, BORDERCOLOR: 254 254 254 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ SLIDERTHUMBHILITEDRAWDATA = IMAGE: ScrollBarThumbHilite, COLOR: 0 255 0 255, BORDERCOLOR: 0 128 0 255,+ IMAGE: ScrollBarThumbHiliteSelected, COLOR: 254 254 254 255, BORDERCOLOR: 0 128 0 255,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0,+ IMAGE: NoImage, COLOR: 255 255 255 0, BORDERCOLOR: 255 255 255 0;+ END+ CHILDWINDOWWINDOWTYPE = CHECKBOX;- SCREENRECT = UPPERLEFT: 336 436, BOTTOMRIGHT: 536 460, CREATIONRESOLUTION: 800 600;+ SCREENRECT = UPPERLEFT: 336 418, BOTTOMRIGHT: 536 442, CREATIONRESOLUTION: 800 600;NAME = "SkirmishGameOptionsMenu.wnd:CheckBoxUnitLimit";STATUS = ENABLED+IMAGE;STYLE = CHECKBOX+MOUSETRACK;diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.hindex aa480abf1..8b7f56976 100644--- a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h+++ b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h@@ -424,6 +424,7 @@ public:Bool m_unitLimit; ///< -unitlimit: the lobby's unit limit for an -autoskirmish runInt m_incomeSharing; ///< -incomesharing <n>: the lobby's income sharing, an IncomeSharing, for an -autoskirmish runInt m_techRespawn; ///< -techrespawn <n>: the lobby's tech building respawn, in minutes, for an -autoskirmish run+ Int m_supplyPileLimit; ///< -supplypilelimit <n>: the lobby's supply pile limit, in players a pile, for an -autoskirmish runInt m_maxGameFrames; ///< -maxframes <n>: quit after n logic frames however the match is going (0 = no limit)Int m_screenShotFrame; ///< -screenshot <n>: save one picture when the run reaches logic frame n (0 = never)Int m_videoStartFrame; ///< -video <from> <to> [name]: the first logic frame recordeddiff --git a/GeneralsMD/Code/GameEngine/Include/GameLogic/GameLogic.h b/GeneralsMD/Code/GameEngine/Include/GameLogic/GameLogic.hindex 0a665c954..50a543cef 100644--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/GameLogic.h+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/GameLogic.h@@ -281,6 +281,11 @@ public:/// a tech building has just died; stand a neutral one on its spot once the delay has run outvoid scheduleTechRespawn( const Object *ruin );+ /** The lobby's supply pile limit: how many players may have gatherers on one supply pile at the+ same time, allies counted one each. 0 when the option is off. Fixed when the match starts+ and carried by a save. */+ Int getSupplyPileLimit( void ) const { return m_supplyPileLimit; }+#ifdef DUMP_PERF_STATSvoid getAIMetricsStatistics( UnsignedInt *numAI, UnsignedInt *numMoving, UnsignedInt *numAttacking, UnsignedInt *numWaitingForPath, UnsignedInt *overallFailedPathfinds );void resetOverallFailedPathfinds() { m_overallFailedPathfinds = 0; }@@ -402,6 +407,7 @@ private:Bool m_proRules; ///< this match refuses what PRO-RULES.md bansInt m_incomeSharing; ///< which earnings allies split, an IncomeSharingUnsignedInt m_techRespawnDelay; ///< frames a destroyed tech building stays down, 0 = for good+ Int m_supplyPileLimit; ///< players who may gather from one supply pile at once, 0 = any number/// a destroyed tech building waiting to stand againstruct PendingTechBuildingdiff --git a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/SupplyWarehouseDockUpdate.h b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/SupplyWarehouseDockUpdate.hindex 2534f20d3..3aed98ac4 100644--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/SupplyWarehouseDockUpdate.h+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/SupplyWarehouseDockUpdate.h@@ -61,6 +61,13 @@ public:Int m_regenMaxBoxes; ///< ceiling, -1 for whatever it started with};+class Player;++/** The lobby's supply pile limit: is a pile that gatheringPlayers are working, one bit a player+ * index, closed to this player? Never to one of the players already on it, and never with no+ * limit set. */+Bool SupplyPileLimitCloses( Int limit, UnsignedInt gatheringPlayers, Int playerIndex );+//-------------------------------------------------------------------------------------------------class SupplyWarehouseDockUpdate : public DockUpdate{@@ -88,11 +95,22 @@ public:/// how many cash buildings stand close enough to work this pointInt countNearbyCollectors( void ) const;+ // The lobby's supply pile limit. Both dock questions say no to a gatherer it closes the pile to:+ // the first is what ResourceGatheringManager asks before it picks a pile, the second is the+ // reservation itself, which is all that stands between a player's own order and the pile.+ virtual Bool isClearToApproach( Object const* docker ) const;+ virtual Bool reserveApproachPosition( Object* docker, Coord3D *position, Int *index );++ /// are as many other players gathering here as the lobby's supply pile limit allows?+ Bool isClosedToPlayer( const Player *player ) const;+protected:+ UnsignedInt gatheringPlayers( void ) const; ///< who holds this pile under the limit, one bit a player indexInt m_boxesStored;UnsignedInt m_nextRegenFrame; ///< when the next box arrives, 0 until the first one is scheduled+ UnsignedInt m_lastGatherFrame[MAX_PLAYER_COUNT]; ///< frame each player last loaded here, 0 for never};diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GUIUtil.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GUIUtil.hindex 8c493bf19..113f176ee 100644--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GUIUtil.h+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GUIUtil.h@@ -97,6 +97,11 @@ void PopulateTechRespawnComboBox(GameWindow *comboBox, GameInfo *myGame, Bool hovoid UpdateTechRespawnComboBox(GameWindow *comboBox, GameInfo *myGame, Bool hostMayEdit);Int TechRespawnFromComboBox(GameWindow *comboBox);+// The supply pile limit dropdown, players in each entry's item data, travelling as PL.+void PopulateSupplyPileLimitComboBox(GameWindow *comboBox, GameInfo *myGame, Bool hostMayEdit);+void UpdateSupplyPileLimitComboBox(GameWindow *comboBox, GameInfo *myGame, Bool hostMayEdit);+Int SupplyPileLimitFromComboBox(GameWindow *comboBox);+// The lobby's own tab strip: one page of host settings, and the window that page covers - the chat// log in the two network lobbies, the map info list in the skirmish one. All three screens share// these because only one lobby is ever up, and because a tab strip written three times drifts.diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GameInfo.h b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GameInfo.hindex 2e5d0febc..d1df28eaf 100644--- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GameInfo.h+++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GameInfo.h@@ -276,6 +276,11 @@ public:inline Int getTechRespawn( void ) const;void setTechRespawn( Int minutes );+ // How many players may gather from one supply pile at the same time, allies counted one each.+ // 0 is the retail game, where a pile takes whoever drives up to it.+ inline Int getSupplyPileLimit( void ) const;+ void setSupplyPileLimit( Int players );+Bool hasAIPlayers( void ) const; ///< is any slot held by a computer player?protected:@@ -304,6 +309,7 @@ protected:Bool m_proRules; // the lobby's Pro Rules are onInt m_incomeSharing; // an IncomeSharing, INCOME_SHARING_OFF = the retail gameInt m_techRespawn; // minutes before a destroyed tech building comes back, 0 = never+ Int m_supplyPileLimit; // players who may gather from one supply pile at once, 0 = any number};extern GameInfo *TheGameInfo;@@ -336,6 +342,7 @@ Bool GameInfo::getUnitLimit( void ) const { return m_unitLimitBool GameInfo::getProRules( void ) const { return m_proRules; }Int GameInfo::getIncomeSharing( void ) const { return m_incomeSharing; }Int GameInfo::getTechRespawn( void ) const { return m_techRespawn; }+Int GameInfo::getSupplyPileLimit( void ) const { return m_supplyPileLimit; }AsciiString GameInfoToAsciiString( const GameInfo *game );Bool ParseAsciiStringToGameInfo( GameInfo *game, AsciiString options );diff --git a/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cppindex 505b9bb1d..b6f45a972 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp@@ -2030,6 +2030,18 @@ Int parseTechRespawn(char *args[], int num)return 1;}+/* -supplypilelimit <players>: the lobby's supply pile limit for an -autoskirmish run, carried the+ same way as -incomesharing. */+Int parseSupplyPileLimit(char *args[], int num)+{+ if (TheWritableGlobalData && num > 1 && args[1])+ {+ TheWritableGlobalData->m_supplyPileLimit = atoi(args[1]);+ return 2;+ }+ return 1;+}+/* -slowframe <ms> lowers the bar a logic frame has to clear before it logs its own breakdown.The default of 20ms is a stutter hunt: it catches the frames a player would notice. Chasing a@@ -2457,6 +2469,7 @@ static CommandLineParam params[] ={ "-unitlimit", parseUnitLimit },{ "-incomesharing", parseIncomeSharing },{ "-techrespawn", parseTechRespawn },+ { "-supplypilelimit", parseSupplyPileLimit },{ "-showlanes", parseShowLanes },{ "-uidrill", parseUIDrill },{ "-resdrill", parseResDrill },diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cppindex 4f41b1ff5..0296dc87d 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp@@ -696,6 +696,7 @@ static void startAutoSkirmish( Int numPlayersWanted )// set on the game rather than on GameLogic, so the replay's header carries it like a lobby's wouldTheSkirmishGameInfo->setIncomeSharing( TheGlobalData->m_incomeSharing );TheSkirmishGameInfo->setTechRespawn( TheGlobalData->m_techRespawn );+ TheSkirmishGameInfo->setSupplyPileLimit( TheGlobalData->m_supplyPileLimit );/* -seed makes the whole run repeatable: the seed drives the factions, the colours, the startpositions and every logic random draw after them, so the same command line replays the samediff --git a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cppindex cf37b5042..931ec1e77 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp@@ -710,6 +710,7 @@ GlobalData::GlobalData()m_unitLimit = FALSE; // no unit limit unless -unitlimit asks for onem_incomeSharing = 0; // INCOME_SHARING_OFF unless -incomesharing asksm_techRespawn = 0; // a destroyed tech building stays destroyed unless -techrespawn asks+ m_supplyPileLimit = 0; // a supply pile takes any number of players unless -supplypilelimit asksm_autoSkirmishObserver = FALSE;m_headless = FALSE;m_turbo = FALSE;diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cppindex e0ff370bb..0fae6bd18 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp@@ -125,6 +125,7 @@ static NameKeyType checkBoxUnitLimitID = NAMEKEY_INVALID;static NameKeyType checkBoxProRulesID = NAMEKEY_INVALID;static NameKeyType comboBoxIncomeSharingID = NAMEKEY_INVALID;static NameKeyType comboBoxTechRespawnID = NAMEKEY_INVALID;+static NameKeyType comboBoxSupplyPileLimitID = NAMEKEY_INVALID;static NameKeyType windowMapID = NAMEKEY_INVALID;// Window Pointers ------------------------------------------------------------------------static GameWindow *parentLanGameOptions = NULL;@@ -141,6 +142,7 @@ static GameWindow *checkBoxUnitLimit = NULL;static GameWindow *checkBoxProRules = NULL;static GameWindow *comboBoxIncomeSharing = NULL;static GameWindow *comboBoxTechRespawn = NULL;+static GameWindow *comboBoxSupplyPileLimit = NULL;static GameWindow *windowMap = NULL;static GameWindow *comboBoxPlayer[MAX_SLOTS] = {NULL,NULL,NULL,NULL,@@ -426,7 +428,7 @@ void LANDisableButtons()comboBoxStartingCash->winEnable(false);GameWindow *optionalGadgets[] = { comboBoxSuperweapons, comboBoxPeaceTime, checkBoxUnitLimit,- checkBoxProRules, comboBoxIncomeSharing, comboBoxTechRespawn };+ checkBoxProRules, comboBoxIncomeSharing, comboBoxTechRespawn, comboBoxSupplyPileLimit };for (Int i = 0; i < (Int)ARRAY_SIZE(optionalGadgets); ++i){if (optionalGadgets[i])@@ -733,6 +735,24 @@ static void handleTechRespawnSelection()}}+static void handleSupplyPileLimitSelection()+{+ LANGameInfo *myGame = TheLAN->GetMyGame();++ // the same guard as income sharing above+ if (myGame == NULL || comboBoxSupplyPileLimit == NULL || myGame->getSupplyPileLimit() == SupplyPileLimitFromComboBox( comboBoxSupplyPileLimit ))+ return;++ myGame->setSupplyPileLimit( SupplyPileLimitFromComboBox( comboBoxSupplyPileLimit ) );+ myGame->resetAccepted();++ if (myGame->amIHost() && !s_isIniting)+ {+ TheLAN->RequestGameOptions(GenerateGameOptionsString(), true);+ lanUpdateSlotList(); // Update the accepted button UI+ }+}+static void handleProRulesSelection(){LANGameInfo *myGame = TheLAN->GetMyGame();@@ -821,6 +841,7 @@ void InitLanGameGadgets( void )checkBoxProRulesID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:CheckBoxProRules" ) );comboBoxIncomeSharingID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:ComboBoxIncomeSharing" ) );comboBoxTechRespawnID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:ComboBoxTechRespawn" ) );+ comboBoxSupplyPileLimitID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:ComboBoxSupplyPileLimit" ) );windowMapID = TheNameKeyGenerator->nameToKey( AsciiString( "LanGameOptionsMenu.wnd:MapWindow" ) );// Initialize the pointers to our gadgets@@ -871,6 +892,10 @@ void InitLanGameGadgets( void )DEBUG_ASSERTCRASH(comboBoxTechRespawn, ("Could not find the comboBoxTechRespawn"));if (comboBoxTechRespawn)PopulateTechRespawnComboBox(comboBoxTechRespawn, TheLAN->GetMyGame(), TheLAN->AmIHost());+ comboBoxSupplyPileLimit = TheWindowManager->winGetWindowFromId( parentLanGameOptions, comboBoxSupplyPileLimitID );+ DEBUG_ASSERTCRASH(comboBoxSupplyPileLimit, ("Could not find the comboBoxSupplyPileLimit"));+ if (comboBoxSupplyPileLimit)+ PopulateSupplyPileLimitComboBox(comboBoxSupplyPileLimit, TheLAN->GetMyGame(), TheLAN->AmIHost());windowMap = TheWindowManager->winGetWindowFromId( parentLanGameOptions,windowMapID );DEBUG_ASSERTCRASH(windowMap, ("Could not find the LanGameOptionsMenu.wnd:MapWindow" ));@@ -977,6 +1002,7 @@ void DeinitLanGameGadgets( void )checkBoxProRules = NULL;comboBoxIncomeSharing = NULL;comboBoxTechRespawn = NULL;+ comboBoxSupplyPileLimit = NULL;windowMap = NULL;for (Int i = 0; i < MAX_SLOTS; i++){@@ -1036,6 +1062,7 @@ void LanGameOptionsMenuInit( WindowLayout *layout, void *userData )game->setProRules( pref.getInt( "ProRules", 1 ) != 0 );game->setIncomeSharing( pref.getInt( "IncomeSharing", INCOME_SHARING_OFF ) );game->setTechRespawn( pref.getInt( "TechRespawn", 0 ) );+ game->setSupplyPileLimit( pref.getInt( "SupplyPileLimit", 0 ) );AsciiString lowerMap = pref.getPreferredMap();lowerMap.toLower();std::map<AsciiString, MapMetaData>::iterator it = TheMapCache->find(lowerMap);@@ -1167,6 +1194,8 @@ void updateGameOptions( void )UpdateIncomeSharingComboBox( comboBoxIncomeSharing, theGame, TheLAN->AmIHost() );if (comboBoxTechRespawn)UpdateTechRespawnComboBox( comboBoxTechRespawn, theGame, TheLAN->AmIHost() );+ if (comboBoxSupplyPileLimit)+ UpdateSupplyPileLimitComboBox( comboBoxSupplyPileLimit, theGame, TheLAN->AmIHost() );}}@@ -1341,6 +1370,10 @@ WindowMsgHandledType LanGameOptionsMenuSystem( GameWindow *window, UnsignedInt m{handleTechRespawnSelection();}+ else if ( controlID == comboBoxSupplyPileLimitID )+ {+ handleSupplyPileLimitSelection();+ }else{for (Int i = 0; i < MAX_SLOTS; i++)diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cppindex 9298591d5..12d4bfeef 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/SkirmishGameOptionsMenu.cpp@@ -121,6 +121,7 @@ static NameKeyType comboBoxStartingCashID = NAMEKEY_INVALID;static NameKeyType checkBoxUnitLimitID = NAMEKEY_INVALID;static NameKeyType comboBoxIncomeSharingID = NAMEKEY_INVALID;static NameKeyType comboBoxTechRespawnID = NAMEKEY_INVALID;+static NameKeyType comboBoxSupplyPileLimitID = NAMEKEY_INVALID;// Window Pointers ------------------------------------------------------------------------static GameWindow *parentSkirmishGameOptions = NULL;@@ -136,6 +137,7 @@ static GameWindow *comboBoxStartingCash = NULL;static GameWindow *checkBoxUnitLimit = NULL;static GameWindow *comboBoxIncomeSharing = NULL;static GameWindow *comboBoxTechRespawn = NULL;+static GameWindow *comboBoxSupplyPileLimit = NULL;static GameWindow *comboBoxPlayer[MAX_SLOTS] = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };@@ -390,6 +392,7 @@ Bool SkirmishPreferences::write(void)setInt( "UnitLimit", TheSkirmishGameInfo->getUnitLimit() ? 1 : 0 );setInt( "IncomeSharing", TheSkirmishGameInfo->getIncomeSharing() );setInt( "TechRespawn", TheSkirmishGameInfo->getTechRespawn() );+ setInt( "SupplyPileLimit", TheSkirmishGameInfo->getSupplyPileLimit() );setSlotList();@@ -1082,6 +1085,12 @@ static void handleTechRespawnSelection()TheSkirmishGameInfo->setTechRespawn( TechRespawnFromComboBox( comboBoxTechRespawn ) );}+static void handleSupplyPileLimitSelection()+{+ if (comboBoxSupplyPileLimit)+ TheSkirmishGameInfo->setSupplyPileLimit( SupplyPileLimitFromComboBox( comboBoxSupplyPileLimit ) );+}+//-------------------------------------------------------------------------------------------------/** Initialize the Gadgets Options Menu */@@ -1101,6 +1110,7 @@ void InitSkirmishGameGadgets( void )checkBoxUnitLimitID = TheNameKeyGenerator->nameToKey( AsciiString( "SkirmishGameOptionsMenu.wnd:CheckBoxUnitLimit" ) );comboBoxIncomeSharingID = TheNameKeyGenerator->nameToKey( AsciiString( "SkirmishGameOptionsMenu.wnd:ComboBoxIncomeSharing" ) );comboBoxTechRespawnID = TheNameKeyGenerator->nameToKey( AsciiString( "SkirmishGameOptionsMenu.wnd:ComboBoxTechRespawn" ) );+ comboBoxSupplyPileLimitID = TheNameKeyGenerator->nameToKey( AsciiString( "SkirmishGameOptionsMenu.wnd:ComboBoxSupplyPileLimit" ) );// Initialize the pointers to our gadgetsparentSkirmishGameOptions = TheWindowManager->winGetWindowFromId( NULL, parentSkirmishGameOptionsID );@@ -1135,6 +1145,10 @@ void InitSkirmishGameGadgets( void )DEBUG_ASSERTCRASH(comboBoxTechRespawn, ("Could not find the comboBoxTechRespawn"));if ( comboBoxTechRespawn )PopulateTechRespawnComboBox( comboBoxTechRespawn, TheSkirmishGameInfo, TRUE );+ comboBoxSupplyPileLimit = TheWindowManager->winGetWindowFromId( parentSkirmishGameOptions, comboBoxSupplyPileLimitID );+ DEBUG_ASSERTCRASH(comboBoxSupplyPileLimit, ("Could not find the comboBoxSupplyPileLimit"));+ if ( comboBoxSupplyPileLimit )+ PopulateSupplyPileLimitComboBox( comboBoxSupplyPileLimit, TheSkirmishGameInfo, TRUE );textEntryPlayerNameID = TheNameKeyGenerator->nameToKey( AsciiString( "SkirmishGameOptionsMenu.wnd:TextEntryPlayerName" ) );textEntryPlayerName = TheWindowManager->winGetWindowFromId( NULL, textEntryPlayerNameID );@@ -1313,6 +1327,8 @@ void updateSkirmishGameOptions( void )UpdateIncomeSharingComboBox( comboBoxIncomeSharing, TheSkirmishGameInfo, TRUE );if ( comboBoxTechRespawn )UpdateTechRespawnComboBox( comboBoxTechRespawn, TheSkirmishGameInfo, TRUE );+ if ( comboBoxSupplyPileLimit )+ UpdateSupplyPileLimitComboBox( comboBoxSupplyPileLimit, TheSkirmishGameInfo, TRUE );Int itemCount = GadgetComboBoxGetLength(comboBoxStartingCash);Int index;for ( index = 0; index < itemCount; index++ )@@ -1402,6 +1418,7 @@ void SkirmishGameOptionsMenuInit( WindowLayout *layout, void *userData )TheSkirmishGameInfo->setUnitLimit( prefs.getInt( "UnitLimit", 0 ) != 0 );TheSkirmishGameInfo->setIncomeSharing( prefs.getInt( "IncomeSharing", INCOME_SHARING_OFF ) );TheSkirmishGameInfo->setTechRespawn( prefs.getInt( "TechRespawn", 0 ) );+ TheSkirmishGameInfo->setSupplyPileLimit( prefs.getInt( "SupplyPileLimit", 0 ) );// Pro Rules are for people playing each other; a skirmish against the computer never has them.TheSkirmishGameInfo->setProRules( FALSE );@@ -1648,6 +1665,10 @@ WindowMsgHandledType SkirmishGameOptionsMenuSystem( GameWindow *window, Unsigned{handleTechRespawnSelection();}+ else if ( controlID == comboBoxSupplyPileLimitID )+ {+ handleSupplyPileLimitSelection();+ }else{for (Int i = 0; i < MAX_SLOTS; i++)diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cppindex cdfec814a..822cbd25a 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp@@ -208,6 +208,7 @@ static NameKeyType checkBoxUnitLimitID = NAMEKEY_INVALID;static NameKeyType checkBoxProRulesID = NAMEKEY_INVALID;static NameKeyType comboBoxIncomeSharingID = NAMEKEY_INVALID;static NameKeyType comboBoxTechRespawnID = NAMEKEY_INVALID;+static NameKeyType comboBoxSupplyPileLimitID = NAMEKEY_INVALID;// Window Pointers ------------------------------------------------------------------------static GameWindow *parentWOLGameSetup = NULL;@@ -227,6 +228,7 @@ static GameWindow *checkBoxUnitLimit = NULL;static GameWindow *checkBoxProRules = NULL;static GameWindow *comboBoxIncomeSharing = NULL;static GameWindow *comboBoxTechRespawn = NULL;+static GameWindow *comboBoxSupplyPileLimit = NULL;static GameWindow *comboBoxPlayer[MAX_SLOTS] = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };@@ -348,6 +350,7 @@ static void savePlayerInfo( void )pref.setInt( "ProRules", TheGameSpyGame->getProRules() ? 1 : 0 );pref.setInt( "IncomeSharing", TheGameSpyGame->getIncomeSharing() );pref.setInt( "TechRespawn", TheGameSpyGame->getTechRespawn() );+ pref.setInt( "SupplyPileLimit", TheGameSpyGame->getSupplyPileLimit() );}pref.write();}@@ -854,6 +857,24 @@ static void handleTechRespawnSelection()}}+static void handleSupplyPileLimitSelection()+{+ GameInfo *myGame = TheGameSpyInfo->getCurrentStagingRoom();++ // the same guard as the unit limit box below+ if (myGame == NULL || comboBoxSupplyPileLimit == NULL || myGame->getSupplyPileLimit() == SupplyPileLimitFromComboBox( comboBoxSupplyPileLimit ))+ return;++ myGame->setSupplyPileLimit( SupplyPileLimitFromComboBox( comboBoxSupplyPileLimit ) );+ myGame->resetAccepted();++ if (myGame->amIHost())+ {+ TheGameSpyInfo->setGameOptions();+ WOLDisplaySlotList();// Update the accepted button UI+ }+}+static void handleProRulesSelection(){GameInfo *myGame = TheGameSpyInfo->getCurrentStagingRoom();@@ -1170,6 +1191,8 @@ void WOLDisplayGameOptions( void )UpdateIncomeSharingComboBox( comboBoxIncomeSharing, theGame, superweaponIsTheHostsToPick() );if ( comboBoxTechRespawn )UpdateTechRespawnComboBox( comboBoxTechRespawn, theGame, superweaponIsTheHostsToPick() );+ if ( comboBoxSupplyPileLimit )+ UpdateSupplyPileLimitComboBox( comboBoxSupplyPileLimit, theGame, superweaponIsTheHostsToPick() );}@@ -1261,6 +1284,7 @@ void InitWOLGameGadgets( void )checkBoxProRulesID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:CheckBoxProRules"));comboBoxIncomeSharingID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:ComboBoxIncomeSharing"));comboBoxTechRespawnID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:ComboBoxTechRespawn"));+ comboBoxSupplyPileLimitID = TheNameKeyGenerator->nameToKey(AsciiString("GameSpyGameOptionsMenu.wnd:ComboBoxSupplyPileLimit"));windowMapSelectMapID = TheNameKeyGenerator->nameToKey(AsciiString("WOLMapSelectMenu.wnd:WinMapPreview"));NameKeyType staticTextTitleID = NAMEKEY("GameSpyGameOptionsMenu.wnd:StaticTextGameName");@@ -1307,6 +1331,10 @@ void InitWOLGameGadgets( void )DEBUG_ASSERTCRASH(comboBoxTechRespawn, ("Could not find the GameSpyGameOptionsMenu.wnd:ComboBoxTechRespawn" ));if ( comboBoxTechRespawn )PopulateTechRespawnComboBox( comboBoxTechRespawn, TheGameSpyGame, superweaponIsTheHostsToPick() );+ comboBoxSupplyPileLimit = TheWindowManager->winGetWindowFromId( parentWOLGameSetup, comboBoxSupplyPileLimitID );+ DEBUG_ASSERTCRASH(comboBoxSupplyPileLimit, ("Could not find the GameSpyGameOptionsMenu.wnd:ComboBoxSupplyPileLimit" ));+ if ( comboBoxSupplyPileLimit )+ PopulateSupplyPileLimitComboBox( comboBoxSupplyPileLimit, TheGameSpyGame, superweaponIsTheHostsToPick() );checkBoxLimitArmies = TheWindowManager->winGetWindowFromId( parentWOLGameSetup, checkBoxLimitArmiesID );DEBUG_ASSERTCRASH(windowMap, ("Could not find the GameSpyGameOptionsMenu.wnd:CheckBoxLimitArmies" ));@@ -1465,6 +1493,7 @@ void DeinitWOLGameGadgets( void )checkBoxProRules = NULL;comboBoxIncomeSharing = NULL;comboBoxTechRespawn = NULL;+ comboBoxSupplyPileLimit = NULL;// GameWindow *staticTextTitle = NULL;for (Int i = 0; i < MAX_SLOTS; i++)@@ -1566,6 +1595,7 @@ void WOLGameSetupMenuInit( WindowLayout *layout, void *userData )game->setProRules( isUsingStats || customPref.getInt( "ProRules", 1 ) != 0 );game->setIncomeSharing( isUsingStats ? INCOME_SHARING_OFF : customPref.getInt( "IncomeSharing", INCOME_SHARING_OFF ) );game->setTechRespawn( isUsingStats ? 0 : customPref.getInt( "TechRespawn", 0 ) );+ game->setSupplyPileLimit( isUsingStats ? 0 : customPref.getInt( "SupplyPileLimit", 0 ) );if (isUsingStats)game->setOldFactionsOnly( 0 );@@ -2803,6 +2833,10 @@ WindowMsgHandledType WOLGameSetupMenuSystem( GameWindow *window, UnsignedInt msg{handleTechRespawnSelection();}+ else if ( controlID == comboBoxSupplyPileLimitID )+ {+ handleSupplyPileLimitSelection();+ }else{GameSpyStagingRoom *myGame = TheGameSpyInfo->getCurrentStagingRoom();diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cppindex 71432d20f..66673fa12 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp@@ -6179,6 +6179,9 @@ void InGameUI::createMouseoverHint( const GameMessage *msg )Int value = boxes * TheGlobalData->m_baseValuePerSupplyBox;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() ) )+ str.concat( TheGameText->fetch( "TOOLTIP:SupplyPileFull" ) );}if (player)diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/DockUpdate/SupplyWarehouseDockUpdate.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/DockUpdate/SupplyWarehouseDockUpdate.cppindex 4015f0d51..ca8a51c85 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/DockUpdate/SupplyWarehouseDockUpdate.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/DockUpdate/SupplyWarehouseDockUpdate.cpp@@ -30,8 +30,11 @@#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine#include "Common/GlobalData.h"+#include "Common/Player.h"+#include "Common/PlayerList.h"#include "Common/Xfer.h"#include "GameClient/Drawable.h"+#include "GameLogic/GameLogic.h"#include "GameLogic/Module/SupplyWarehouseDockUpdate.h"#include "GameLogic/Module/SupplyTruckAIUpdate.h"#include "GameLogic/Object.h"@@ -90,12 +93,105 @@ SupplyWarehouseDockUpdate::SupplyWarehouseDockUpdate( Thing *thing, const Module{m_boxesStored = getSupplyWarehouseDockUpdateModuleData()->m_startingBoxesData;m_nextRegenFrame = 0;+ memset( m_lastGatherFrame, 0, sizeof( m_lastGatherFrame ) );}SupplyWarehouseDockUpdate::~SupplyWarehouseDockUpdate(){}+//-------------------------------------------------------------------------------------------------+// The lobby's supply pile limit (GitHub #30)+//-------------------------------------------------------------------------------------------------++/** How long a player's last load keeps the pile his. A gatherer holds an approach spot only from+ * setting off to driving in, so a player working a pile with one Chinook has nothing standing at+ * it for the whole trip home, and without this the pile would change hands between every two+ * loads. A minute covers a round trip to a supply centre built anywhere near the pile; a player+ * who stops coming loses the pile a minute after his last box. */+static const UnsignedInt SUPPLY_PILE_CLAIM_FRAMES = 60 * LOGICFRAMES_PER_SECOND;++Bool SupplyPileLimitCloses( Int limit, UnsignedInt gatheringPlayers, Int playerIndex )+{+ if( limit <= 0 || ( gatheringPlayers & ( 1u << playerIndex ) ) )+ return FALSE;++ Int count = 0;+ for( ; gatheringPlayers; gatheringPlayers &= gatheringPlayers - 1 )+ ++count;+ return count >= limit;+}++static void notePlayerOf( ObjectID dockerID, UnsignedInt *players )+{+ const Object *docker = TheGameLogic->findObjectByID( dockerID );+ if( docker ) // a free spot, or a docker that died and has not been reaped yet+ *players |= 1u << docker->getControllingPlayer()->getPlayerIndex();+}++/** A player holds the pile while one of his gatherers is on the way to it, queued outside it or+ * loading from it, and for SUPPLY_PILE_CLAIM_FRAMES after his last load. Each player is one, an+ * ally like anybody else: the request was a team game in which the second player has to find a+ * pile of his own. */+UnsignedInt SupplyWarehouseDockUpdate::gatheringPlayers( void ) const+{+ UnsignedInt players = 0;++ notePlayerOf( m_activeDocker, &players );+ for( size_t i = 0; i < m_approachPositionOwners.size(); ++i )+ notePlayerOf( m_approachPositionOwners[i], &players );++ const UnsignedInt now = TheGameLogic->getFrame();+ for( Int playerIndex = 0; playerIndex < MAX_PLAYER_COUNT; ++playerIndex )+ {+ // a defeated player's claim dies with him, or his pile would stay shut for the rest of the minute+ if( m_lastGatherFrame[playerIndex] != 0 && now - m_lastGatherFrame[playerIndex] < SUPPLY_PILE_CLAIM_FRAMES &&+ ThePlayerList->getNthPlayer( playerIndex )->isPlayerActive() )+ players |= 1u << playerIndex;+ }++ return players;+}++Bool SupplyWarehouseDockUpdate::isClosedToPlayer( const Player *player ) const+{+ const Int limit = TheGameLogic->getSupplyPileLimit();+ if( limit == 0 )+ return FALSE;++ return SupplyPileLimitCloses( limit, gatheringPlayers(), player->getPlayerIndex() );+}++Bool SupplyWarehouseDockUpdate::isClearToApproach( Object const* docker ) const+{+ return !isClosedToPlayer( docker->getControllingPlayer() ) && DockUpdate::isClearToApproach( docker );+}++Bool SupplyWarehouseDockUpdate::reserveApproachPosition( Object* docker, Coord3D *position, Int *index )+{+ const Int limit = TheGameLogic->getSupplyPileLimit();+ if( limit == 0 )+ return DockUpdate::reserveApproachPosition( docker, position, index );++ // A refusal fails the docking state, and the gatherer goes back to wanting a pile: the search+ // skips this one through isClearToApproach and takes the next, or sends it home to wait.+ const Int playerIndex = docker->getControllingPlayer()->getPlayerIndex();+ if( isClosedToPlayer( docker->getControllingPlayer() ) )+ {+ DEBUG_LOG(("SUPPLY PILE LIMIT frame %d pile %d refuses gatherer %d of player %d, players 0x%X limit %d\n",+ TheGameLogic->getFrame(), getObject()->getID(), docker->getID(), playerIndex, gatheringPlayers(), limit));+ return FALSE;+ }++ const Bool reserved = DockUpdate::reserveApproachPosition( docker, position, index );+ if( reserved )+ {+ DEBUG_LOG(("SUPPLY PILE LIMIT frame %d pile %d takes gatherer %d of player %d, players 0x%X limit %d\n",+ TheGameLogic->getFrame(), getObject()->getID(), docker->getID(), playerIndex, gatheringPlayers(), limit));+ }+ return reserved;+}+void SupplyWarehouseDockUpdate::onObjectCreated(){Drawable *draw = getObject()->getDrawable();@@ -251,6 +347,9 @@ Bool SupplyWarehouseDockUpdate::action( Object* docker, Object *drone )if( taken == 0 )return FALSE; //nobody to gain the boxes, or nowhere to put them+ // what the supply pile limit holds the pile for this player by while his gatherer is away+ m_lastGatherFrame[ docker->getControllingPlayer()->getPlayerIndex() ] = TheGameLogic->getFrame();+if( m_boxesStored == 0 && getSupplyWarehouseDockUpdateModuleData()->m_deleteWhenEmpty ){TheGameLogic->destroyObject( getObject() );@@ -330,13 +429,15 @@ void SupplyWarehouseDockUpdate::crc( Xfer *xfer )// ------------------------------------------------------------------------------------------------/** Xfer method* Version Info:- * 1: Initial version */+ * 1: Initial version+ * 2: m_nextRegenFrame+ * 3: m_lastGatherFrame, the supply pile limit's claim on the pile */// ------------------------------------------------------------------------------------------------void SupplyWarehouseDockUpdate::xfer( Xfer *xfer ){// version- XferVersion currentVersion = 2;+ XferVersion currentVersion = 3;XferVersion version = currentVersion;xfer->xferVersion( &version, currentVersion );@@ -352,6 +453,13 @@ void SupplyWarehouseDockUpdate::xfer( Xfer *xfer )elsem_nextRegenFrame = 0;+ // who loaded here last and when (version 3); an older save starts with the pile unclaimed+ if( version >= 3 )+ {+ for( Int playerIndex = 0; playerIndex < MAX_PLAYER_COUNT; ++playerIndex )+ xfer->xferUnsignedInt( &m_lastGatherFrame[playerIndex] );+ }+} // end xfer// ------------------------------------------------------------------------------------------------diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cppindex 5aff49d01..0118692dd 100644--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp@@ -240,6 +240,7 @@ GameLogic::GameLogic( void )m_proRules = FALSE;m_incomeSharing = INCOME_SHARING_OFF;m_techRespawnDelay = 0;+ m_supplyPileLimit = 0;m_gamePaused = FALSE;m_inputEnabledMemory = TRUE;m_mouseVisibleMemory = TRUE;@@ -1255,6 +1256,7 @@ void GameLogic::startNewGame( Bool loadingSaveGame )? (UnsignedInt)UnitLimitPerPlayer( TheGameInfo->getNumNonObserverPlayers() ) : 0;m_incomeSharing = TheGameInfo->getIncomeSharing();m_techRespawnDelay = TheGameInfo->getTechRespawn() * 60 * LOGICFRAMES_PER_SECOND;+ m_supplyPileLimit = TheGameInfo->getSupplyPileLimit();}else{@@ -1264,6 +1266,7 @@ void GameLogic::startNewGame( Bool loadingSaveGame )m_unitCap = 0;m_incomeSharing = INCOME_SHARING_OFF;m_techRespawnDelay = 0;+ m_supplyPileLimit = 0;}/* Pro Rules hold in the modes people play each other in, when the lobby's check box is ticked,@@ -5732,13 +5735,14 @@ void GameLogic::prepareLogicForObjectLoad( void )* 14: xfer m_proRules* 15: xfer m_incomeSharing* 16: xfer m_techRespawnDelay and m_pendingTechBuildings+ * 17: xfer m_supplyPileLimit*/// ------------------------------------------------------------------------------------------------void GameLogic::xfer( Xfer *xfer ){// version- const XferVersion currentVersion = 16;+ const XferVersion currentVersion = 17;XferVersion version = currentVersion;xfer->xferVersion( &version, currentVersion );@@ -6153,6 +6157,15 @@ void GameLogic::xfer( Xfer *xfer )m_techRespawnDelay = 0;m_pendingTechBuildings.clear();}++ if ( version >= 17 )+ {+ xfer->xferInt( &m_supplyPileLimit );+ }+ else if ( xfer->getXferMode() == XFER_LOAD )+ {+ m_supplyPileLimit = 0;+ }} // end xfer// ------------------------------------------------------------------------------------------------diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GUIUtil.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GUIUtil.cppindex 556667590..ddd57697a 100644--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GUIUtil.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GUIUtil.cpp@@ -644,6 +644,56 @@ Int TechRespawnFromComboBox(GameWindow *comboBox)return (Int)(intptr_t)GadgetComboBoxGetItemData(comboBox, selIndex);}+// -----------------------------------------------------------------------------+// Supply pile limit: how many players may gather from one pile at the same time, GitHub #30.+static const Int theSupplyPileLimitChoices[] = { 0, 1, 2, 3 };++void PopulateSupplyPileLimitComboBox(GameWindow *comboBox, GameInfo *myGame, Bool hostMayEdit)+{+ GadgetComboBoxReset(comboBox);++ Color color = comboBox->winGetEnabled() ? comboBox->winGetEnabledTextColor() : comboBox->winGetDisabledTextColor();+ for ( Int i = 0; i < (Int)(sizeof(theSupplyPileLimitChoices)/sizeof(theSupplyPileLimitChoices[0])); i++ )+ {+ UnicodeString text;+ if ( theSupplyPileLimitChoices[i] == 0 )+ text = TheGameText->fetch( "GUI:SupplyPileLimitOff" );+ else+ text.format( TheGameText->fetch( "GUI:SupplyPileLimitFormat" ), theSupplyPileLimitChoices[i] );++ Int newIndex = GadgetComboBoxAddEntry(comboBox, text, color);+ GadgetComboBoxSetItemData(comboBox, newIndex, (void *)(intptr_t)theSupplyPileLimitChoices[i]);+ }++ UpdateSupplyPileLimitComboBox(comboBox, myGame, hostMayEdit);+}++void UpdateSupplyPileLimitComboBox(GameWindow *comboBox, GameInfo *myGame, Bool hostMayEdit)+{+ comboBox->winEnable( hostMayEdit );++ Int itemCount = GadgetComboBoxGetLength(comboBox);+ for ( Int index = 0; index < itemCount; index++ )+ {+ if ( (Int)(intptr_t)GadgetComboBoxGetItemData(comboBox, index) == myGame->getSupplyPileLimit() )+ {+ Int selected = -1;+ GadgetComboBoxGetSelectedPos( comboBox, &selected );+ if ( selected != index )+ GadgetComboBoxSetSelectedPos(comboBox, index, TRUE);+ return;+ }+ }++ // a host on a build with a longer list than ours+ GadgetComboBoxSetSelectedPos(comboBox, 0, TRUE);+}++Int SupplyPileLimitFromComboBox(GameWindow *comboBox)+{+ return TechRespawnFromComboBox( comboBox ); // the same read: the selected entry's item data+}+// -----------------------------------------------------------------------------// The lobby tab strip.static GameWindow *theLobbySettingsPage = NULL;diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cppindex 1721132a9..3c129b39c 100644--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GameInfo.cpp@@ -399,6 +399,7 @@ void GameInfo::reset( void )m_proRules = TRUE;m_incomeSharing = INCOME_SHARING_OFF;m_techRespawn = 0;+ m_supplyPileLimit = 0;//@@ -837,6 +838,16 @@ void GameInfo::setTechRespawn( Int minutes )m_techRespawn = minutes;}+// clamped the same way; a lobby has MAX_SLOTS players, so nothing above that says anything more+void GameInfo::setSupplyPileLimit( Int players )+{+ if (players < 0)+ players = 0;+ if (players > MAX_SLOTS)+ players = MAX_SLOTS;+ m_supplyPileLimit = players;+}+Bool GameInfo::isColorTaken(Int colorIdx, Int slotToIgnore ) const{for (Int i=0; i<MAX_SLOTS; ++i)@@ -1176,10 +1187,11 @@ static AsciiString buildGameInfoAsciiString( const GameInfo *game, const AsciiSt}AsciiString optionsString;- optionsString.format("US=%d;M=%2.2x%s;MC=%X;MS=%d;SD=%d;C=%d;SR=%u;SC=%u;O=%c;PT=%d;UL=%d;PR=%d;IS=%d;TR=%d;", game->getUseStats(), game->getMapContentsMask(), newMapName.str(),+ optionsString.format("US=%d;M=%2.2x%s;MC=%X;MS=%d;SD=%d;C=%d;SR=%u;SC=%u;O=%c;PT=%d;UL=%d;PR=%d;IS=%d;TR=%d;PL=%d;", game->getUseStats(), game->getMapContentsMask(), newMapName.str(),game->getMapCRC(), game->getMapSize(), game->getSeed(), game->getCRCInterval(), game->getSuperweaponRestriction(),game->getStartingCash().countMoney(), game->oldFactionsOnly() ? 'Y' : 'N', game->getPeaceTime(),- game->getUnitLimit() ? 1 : 0, game->getProRules() ? 1 : 0, game->getIncomeSharing(), game->getTechRespawn() );+ game->getUnitLimit() ? 1 : 0, game->getProRules() ? 1 : 0, game->getIncomeSharing(), game->getTechRespawn(),+ game->getSupplyPileLimit() );//add player info for each slotoptionsString.concat(slotListID);@@ -1259,6 +1271,7 @@ Bool ParseAsciiStringToGameInfo(GameInfo *game, AsciiString options)Bool proRules = FALSE; // the sameInt incomeSharing = INCOME_SHARING_OFF; // the sameInt techRespawn = 0; // the same+ Int supplyPileLimit = 0; // the sameBool sawMap, sawMapCRC, sawMapSize, sawSeed, sawSlotlist, sawUseStats, sawSuperweaponRestriction, sawStartingCash, sawOldFactions;sawMap = sawMapCRC = sawMapSize = sawSeed = sawSlotlist = sawUseStats = sawSuperweaponRestriction = sawStartingCash = sawOldFactions = FALSE;@@ -1380,6 +1393,10 @@ Bool ParseAsciiStringToGameInfo(GameInfo *game, AsciiString options)else if (key.compare("TR") == 0 ){techRespawn = atoi(val.str());+ }+ else if (key.compare("PL") == 0 )+ {+ supplyPileLimit = atoi(val.str());}else if (key.getLength() == 1 && *key.str() == slotListID){@@ -1731,6 +1748,7 @@ Bool ParseAsciiStringToGameInfo(GameInfo *game, AsciiString options)game->setProRules( proRules );game->setIncomeSharing( incomeSharing );game->setTechRespawn( techRespawn );+ game->setSupplyPileLimit( supplyPileLimit );return true;}@@ -1757,7 +1775,7 @@ void SkirmishGameInfo::crc( Xfer *xfer )// ------------------------------------------------------------------------------------------------void SkirmishGameInfo::xfer( Xfer *xfer ){- const XferVersion currentVersion = 9; // 5 adds m_peaceTime, 6 m_unitLimit, 7 m_proRules, 8 m_incomeSharing, 9 m_techRespawn+ const XferVersion currentVersion = 10; // 5 adds m_peaceTime, 6 m_unitLimit, 7 m_proRules, 8 m_incomeSharing, 9 m_techRespawn, 10 m_supplyPileLimitXferVersion version = currentVersion;xfer->xferVersion( &version, currentVersion );@@ -1900,6 +1918,15 @@ void SkirmishGameInfo::xfer( Xfer *xfer )m_techRespawn = 0;}+ if ( version >= 10 )+ {+ xfer->xferInt( &m_supplyPileLimit );+ }+ else if ( xfer->getXferMode() == XFER_LOAD )+ {+ m_supplyPileLimit = 0;+ }+} // end xfer// ------------------------------------------------------------------------------------------------diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cppindex ffb52215f..13098fb0c 100644--- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/LANAPICallbacks.cpp@@ -353,6 +353,7 @@ void LANAPI::OnGameStart( void )pref.setInt( "ProRules", m_currentGame->getProRules() ? 1 : 0 );pref.setInt( "IncomeSharing", m_currentGame->getIncomeSharing() );pref.setInt( "TechRespawn", m_currentGame->getTechRespawn() );+ pref.setInt( "SupplyPileLimit", m_currentGame->getSupplyPileLimit() );pref.setStartingCash( m_currentGame->getStartingCash() );}pref.write();diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cppindex 0377b4154..9e3e469d5 100644--- a/GeneralsMD/Code/Tests/test_gameengine.cpp+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp@@ -13702,6 +13702,45 @@ TEST(tech_respawn_starts_off_and_clamps_the_wire_value)TheWritableGlobalData = saved;}+#include "GameLogic/Module/SupplyWarehouseDockUpdate.h"++/* The supply pile limit arrives as PL= in the host's options string and is clamped like the rest.+ SupplyWarehouseDockUpdate.cpp then decides whom a pile is closed to from the players already on+ it, one bit a player index. */+TEST(supply_pile_limit_starts_off_clamps_and_closes_a_full_pile)+{+ GlobalData *saved = TheWritableGlobalData;+ TheWritableGlobalData = NEW GlobalData;++ SkirmishGameInfo game;+ game.init();+ CHECK_EQ( game.getSupplyPileLimit(), 0 );+ game.setSupplyPileLimit( 2 );+ CHECK_EQ( game.getSupplyPileLimit(), 2 );+ game.setSupplyPileLimit( -3 );+ CHECK_EQ( game.getSupplyPileLimit(), 0 );+ game.setSupplyPileLimit( 1000 );+ CHECK_EQ( game.getSupplyPileLimit(), (Int)MAX_SLOTS );+ game.reset();+ CHECK_EQ( game.getSupplyPileLimit(), 0 );++ delete TheWritableGlobalData;+ TheWritableGlobalData = saved;++ /* no limit closes nothing, however many players are on the pile */+ CHECK( !SupplyPileLimitCloses( 0, 0xFF, 9 ) );++ /* limit 1: an empty pile is open, player 2's pile is closed to player 3 and open to player 2 */+ CHECK( !SupplyPileLimitCloses( 1, 0, 3 ) );+ CHECK( SupplyPileLimitCloses( 1, 1u << 2, 3 ) );+ CHECK( !SupplyPileLimitCloses( 1, 1u << 2, 2 ) );++ /* limit 2: a second player still fits, a third does not, and either of the two comes back */+ CHECK( !SupplyPileLimitCloses( 2, 1u << 2, 3 ) );+ CHECK( SupplyPileLimitCloses( 2, ( 1u << 2 ) | ( 1u << 3 ), 4 ) );+ CHECK( !SupplyPileLimitCloses( 2, ( 1u << 2 ) | ( 1u << 3 ), 3 ) );+}+#include "Common/SpecialPowerType.h"/* Pro Rules name what they ban by the ending every general's copy shares, so each check belowdiff --git a/GeneralsMD/Code/Tools/lobbyroom_layout.py b/GeneralsMD/Code/Tools/lobbyroom_layout.pyindex 49a4cfb8a..8d27c9b4d 100644--- a/GeneralsMD/Code/Tools/lobbyroom_layout.py+++ b/GeneralsMD/Code/Tools/lobbyroom_layout.py@@ -91,16 +91,21 @@ LAN_COLUMNS = [# "Allow Superweapons" needs 152 at 800x600.SKIRMISH_SETTINGS = [(96, 152, [("StartingCashLabel", "ComboBoxStartingCash"), ("LabelSuperweapons", "ComboBoxSuperweapons"),- ("LabelIncomeSharing", "ComboBoxIncomeSharing")]),+ ("LabelIncomeSharing", "ComboBoxIncomeSharing"), ("LabelSupplyPileLimit", "ComboBoxSupplyPileLimit")]),(88, 112, [("LabelGameSpeed", "ComboBoxGameSpeed"), ("CheckBoxUnitLimit",),("LabelTechRespawn", "ComboBoxTechRespawn")]),]+# The skirmish page is 108 high and the pile limit is its fourth row: 26 apart from 4 under the page+# top, the last row ends two pixels above the page bottom.+SKIRMISH_SETTING_ROW_PITCH = 26+SKIRMISH_SETTING_TOP_PADDING = 4# The LAN page is 84 high over the chat entry and every column is full, so the check boxes take a# third column and the rows close up to 28 from the page top to fit a third one.LAN_SETTINGS = [(96, 152, [("StartingCashLabel", "ComboBoxStartingCash"), ("LabelSuperweapons", "ComboBoxSuperweapons"),("LabelTechRespawn", "ComboBoxTechRespawn")]),- (96, 152, [("LabelPeaceTime", "ComboBoxPeaceTime"), ("LabelIncomeSharing", "ComboBoxIncomeSharing")]),+ (96, 152, [("LabelPeaceTime", "ComboBoxPeaceTime"), ("LabelIncomeSharing", "ComboBoxIncomeSharing"),+ ("LabelSupplyPileLimit", "ComboBoxSupplyPileLimit")]),(0, 128, [("CheckBoxProRules",), ("CheckBoxUnitLimit",)]),]LAN_SETTING_ROW_PITCH = 28@@ -243,7 +248,8 @@ def build_skirmish(layout):page_height = PAGE_BOTTOM - PAGE_TOPfor window in (info_frame, need(layout, "ListboxInfo"), need(layout, "PageLobbySettings")):window.place(INNER_LEFT, PAGE_TOP, SEAT_RIGHT - INNER_LEFT, page_height)- place_settings(layout, SKIRMISH_SETTINGS, INNER_LEFT, SEAT_RIGHT, PAGE_TOP, PAGE_BOTTOM)+ place_settings(layout, SKIRMISH_SETTINGS, INNER_LEFT, SEAT_RIGHT, PAGE_TOP, PAGE_BOTTOM,+ SKIRMISH_SETTING_ROW_PITCH, SKIRMISH_SETTING_TOP_PADDING)stats_panel.place(MAP_LEFT, PAGE_TOP, MAP_WIDTH, page_height)value_left = INNER_RIGHT - STAT_INSET - STAT_VALUE_WIDTHdiff --git a/GeneralsMD/Code/Tools/lobbysettings_layout.py b/GeneralsMD/Code/Tools/lobbysettings_layout.pyindex 88d5ba7b0..185db1027 100644--- a/GeneralsMD/Code/Tools/lobbysettings_layout.py+++ b/GeneralsMD/Code/Tools/lobbysettings_layout.py@@ -126,8 +126,10 @@ SUPERWEAPON_CHECKBOX = ("CheckboxLimitSuperweapons", "CheckBoxLimitSuperweapons"# menu code names them and a missing control is as silent as the rest.HAND_PLACED_CHECKBOXES = ("CheckBoxUnitLimit", "CheckBoxProRules")-# Income sharing and tech building respawn went on all three pages by hand the same way.-HAND_PLACED_COMBOS = ("LabelIncomeSharing", "ComboBoxIncomeSharing", "LabelTechRespawn", "ComboBoxTechRespawn")+# Income sharing, tech building respawn and the supply pile limit went on all three pages by hand+# the same way.+HAND_PLACED_COMBOS = ("LabelIncomeSharing", "ComboBoxIncomeSharing", "LabelTechRespawn", "ComboBoxTechRespawn",+ "LabelSupplyPileLimit", "ComboBoxSupplyPileLimit")# What build() moves out of EA's skirmish layout and a later hand edit replaced: the game speed# slider and its number became one dropdown in the slider's place. None is gone without a successor.@@ -170,6 +172,10 @@ STRINGS = ["TOOLTIP:TechRespawn","GUI:TechRespawnOff","GUI:TechRespawnFormat",+ "GUI:SupplyPileLimit",+ "TOOLTIP:SupplyPileLimit",+ "GUI:SupplyPileLimitOff",+ "GUI:SupplyPileLimitFormat",]