﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	phab_field
4436	Huge or dynamically changing amount of repeated XML elements	elexis		"Using the `repeated` element in XML GUI page descriptions, the contained GUI objects can be duplicated and used as an array.

This pattern is applied
* by the player assignments in the gamesetup (8 players)
* when displaying resources in the top panel (#3934)
* by the buttons in the training/research selection panel

The number of repetitions is hardcoded unfortunately, while the number of repeated GUI objects actually used changes dynamically.

This implies that we either
1) set a huge number of repetitions (for example 4096 (#4004, #4210) player assignment and civ choice dropdowns and AI config buttons) or
2) Reload the GUI page each time when the number of actually used repetition changes. The number could be passed as a new argument to the `SwitchGUIPage`, `PushGUIPage` calls. For example an object where each property relates to the name of a repeated GUI object.
"	defect	closed	Nice to Have		Core engine	wontfix			
