1
0
forked from 0ad/0ad
0ad/binaries/data
elexis 0550315161 Gamesetup subpages support.
Split SetupWindow from GameSetupPage class.
Create Gamesetup/Pages subfolder, starting with the existing
GameSetupPage and LoadingPage.
Run the subpage in the same GUI script context instead of separate
pages.
Planned subpages are AIConfigPage (refs D2577), MapBrowser (D1703), hero
selection dialog, civ selection (refs #3987), starting resources,
population capacity (refs #4379, #812...).

This allows:
- subpages to benefit from direct access and reuse of the gamesetup
controlers, (f.e. gameSettingsControl, playerAssignmentsControl,
mapCache, netMessages, ...), deduplication.
- subpages to handle events and control gamesettings even if the
according subpage is closed (for example deleting AIBehavior if there is
no AI assigned).
- to keep gamesettings decoupled, i.e. exactly one class per setting
(for this example avoiding that both GameSetupPage/AIConfigButton and
AIConfigPage/AIBehavior control the AIBehavior setting value.).

Differential Revision: https://code.wildfiregames.com/D2581
Comments By: Vladislav
(http://irclogs.wildfiregames.com/2020-01/2020-01-18-QuakeNet-%230ad-dev.log),
nani (PM)

This was SVN commit r23413.
2020-01-18 19:42:58 +00:00
..
config Gamesetup class rewrite, fixes #5322, refs #5387. 2020-01-11 20:14:17 +00:00
l10n Add a script to lint the translations with Dennis. 2017-05-27 12:26:26 +00:00
mods Gamesetup subpages support. 2020-01-18 19:42:58 +00:00
tests Fix ESLint semicolon-related warnings 2019-07-01 11:09:19 +00:00
tools Allow artists to add upgrade animations. 2019-11-24 11:34:57 +00:00