From: Erik V. <eri...@hc...> - 2007-07-29 20:28:28
|
> On 7/29/07, Erik Vos <eri...@hc...> wrote: > > We could define the toggle itself like > > <Option name="WithOptional6Train" default="no"/> > > which would let the UI show a popup after game selection, > > but how can we refer to such toggles in the rest of the XML? > > > > Any comments or better proposals? > > > > > I think the toggle should start with a top-level <variant> tag. This > would allow you to parse the variants specifically and also separates > the variant-specific options from the options for the main game. OK, indeed we could have variant-specific toggles, although I think that would be pretty exceptional. That means, that we could also have nested <IfVariant> and <IfOption> nodes, so the parsing of that part would be recursive. But that is OK for a generic construct. Erik. |