DataSlotLoader changes and OpenPage Introduction

This commit is contained in:
Florian 2026-04-09 17:42:27 +02:00
parent 5a0c38b6aa
commit 4ee7ca2093

View File

@ -8,15 +8,21 @@
<DataStructure>characterdata</DataStructure>
</DataSlot>
</Data>
<StartPage>start</StartPage>
<StartPage>"start"</StartPage>
<Pages>
<Page Name="start">
<Content>
<DataSlotLoader>
<DataSlot>[data.character]</DataSlot>
<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>
<!--
<OnPreLoad/>
<OnPostLoad/>
<OnPreCreate/>
<OnPostCreate/>
-->
</DataSlotLoader>
<Label>
<Text>"Character Name: "</Text>
@ -26,14 +32,26 @@
</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>"This is the new Character Page!"</Label>
</Content>
</Page>
</Pages>
</Tool>