SimpleTest/tools/charactercreation/charactertool.xml

76 lines
2.6 KiB
XML

<Tool>
<Name>charactercreator</Name>
<AccessRule>[rule.access]</AccessRule>
<Display>Character Creator</Display>
<Description>The Character Creation Tool</Description>
<Data>
<DataSlot Name="character">
<DataStructure>characterdata</DataStructure>
</DataSlot>
</Data>
<StartPage>"start"</StartPage>
<Pages>
<Page Name="start">
<Content>
<DataSlotLoader>
<DataSlot>[data.character]</DataSlot><!-- Maybe we should change this to "data.character" or "character" and let it be thrown into the execution -->
<Create>
<Rule>[rule.createcharacter]</Rule>
</Create>
<OnPostLoad>
<Actions>
<OpenPage>
<Page>"newchar"</Page>
</OpenPage>
</Actions>
</OnPostLoad>
<OnPostCreate>
<Actions>
<OpenPage>
<Page>"newchar"</Page>
</OpenPage>
</Actions>
</OnPostCreate>
<!--
<OnPreLoad/>
<OnPostLoad/>
<OnPreCreate/>
<OnPostCreate/>
-->
</DataSlotLoader>
<Label>
<Text>"Character Name: "</Text>
</Label>
<Label>
<Text>[data.character.definition.name]</Text>
</Label>
<Button>
<Text>"Press me"</Text>
<OnClick>
<Actions>
<Action>
<Do>"Somename"</Do>
<Output>[data.character.definition.name]</Output>
</Action>
<OpenPage>
<Page>"newchar"</Page>
</OpenPage>
</Actions>
</OnClick>
</Button>
</Content>
<!--
<OnOpen/>
<OnClose/>
-->
</Page>
<Page Name="newchar">
<Content>
<Label>
<Text>"This is the new Character Page!"</Text>
</Label>
</Content>
</Page>
</Pages>
</Tool>