<Tool>
    <Name>Test Tool</Name>
    <AccessRule>[rule.access]</AccessRule>
    <Display>Test Tool</Display>
    <Description>The Test Tool</Description>
    <Data>
        <DataSlot Name="character">
            <DataStructure>testdata</DataStructure>
        </DataSlot>
    </Data>
    <Bases>
        <BaseReference Name="races">
            <Path>wiki/races/Races</Path>
        </BaseReference>
    </Bases>
    <StartPage>"start"</StartPage>
    <Pages>
        <Page Name="start">
            <Content>
                <DataSlotLoader>
                    <DataSlot>[data.character]</DataSlot>
                    <Create>
                        <Rule>[rule.createcharacter]</Rule>
                    </Create>
                    <OnPostLoad>
                        <Actions>
                            <OpenPage>
                                <Page>"newchar"</Page>
                            </OpenPage>
                        </Actions>
                    </OnPostLoad>
                    <OnPostCreate>
                        <Actions>
                            <OpenPage>
                                <Page>"newchar"</Page>
                            </OpenPage>
                        </Actions>
                    </OnPostCreate>
                </DataSlotLoader>
            </Content>
            <!--
            <OnOpen/>
            <OnClose/>
            -->
        </Page>
        <Page Name="newchar">
            <Content>
                <GridContainer>
                    <Cols>3</Cols>
                    <Content>
                        <Label>
                            <Text>"Name"</Text>
                        </Label>
                        <StringInput>
                            <Output>[data.character.definition.name]</Output>
                        </StringInput>
                        <Label>
                            <Text>[data.character.definition.name]</Text>
                        </Label>
                        <Label>
                            <Text>"Rasse"</Text>
                        </Label>
                        <Label>
                            <Text>[data.character.race.name]</Text>
                        </Label>
                        <Label>
                            <Text>[data.character.race.speed]</Text>
                        </Label>
                        <Label>
                            <Text>"Add Speed"</Text>
                        </Label>
                        <IntInput>
                            <Output>[data.character.buff.speed]</Output>
                        </IntInput>
                        <BaseSingleSelect>
                            <Base>[base.races.Playable]</Base>
                            <Output>[data.character.race.id]</Output>
                            <Display>[file.name]</Display>
                            <PropertyOutputs>
                                <PropertyOutput>
                                    <Property>[data.race.speed]</Property>
                                    <Output>[data.character.race.speed]</Output>
                                </PropertyOutput>
                                <PropertyOutput>
                                    <Property>[file.name]</Property>
                                    <Output>[data.character.race.name]</Output>
                                </PropertyOutput>
                            </PropertyOutputs>
                        </BaseSingleSelect>
                    </Content>
                </GridContainer>
                <Label>
                    <Text>"Your race has "</Text>
                </Label>
                <Label>
                    <Text>[data.character.race.speed] + [data.character.buff.speed]</Text>
                </Label>
                <Label>
                    <Text>" speed"</Text>
                </Label>
                <MarkdownDisplay>
                    <MarkdownId>[data.character.race.id]</MarkdownId>
                </MarkdownDisplay>
            </Content>
        </Page>
    </Pages>
</Tool>
