Add preprint check logic, PDF generation functionality, and new print page to character creation tool XML
This commit is contained in:
parent
cf1386466f
commit
ecea5860b6
@ -210,5 +210,10 @@
|
|||||||
<String Name="new_description"/>
|
<String Name="new_description"/>
|
||||||
</Variables>
|
</Variables>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Group Name="print">
|
||||||
|
<Variables>
|
||||||
|
<Bool Name="preprintcheck"/>
|
||||||
|
</Variables>
|
||||||
|
</Group>
|
||||||
</Groups>
|
</Groups>
|
||||||
</DataStructure>
|
</DataStructure>
|
||||||
@ -36,5 +36,9 @@
|
|||||||
</Actions>
|
</Actions>
|
||||||
<Return>[local.cost]</Return>
|
<Return>[local.cost]</Return>
|
||||||
</Function>-->
|
</Function>-->
|
||||||
|
|
||||||
|
<Function Name="charlib_checkpreprint">
|
||||||
|
<Return>true</Return>
|
||||||
|
</Function>
|
||||||
</Functions>
|
</Functions>
|
||||||
</Library>
|
</Library>
|
||||||
@ -3,5 +3,8 @@
|
|||||||
<Function Name="charlib_midval">
|
<Function Name="charlib_midval">
|
||||||
<Return>Truncate(([param.0] + [param.1] + [param.2]) / 3)</Return>
|
<Return>Truncate(([param.0] + [param.1] + [param.2]) / 3)</Return>
|
||||||
</Function>
|
</Function>
|
||||||
|
<Function Name="charlibcreate_checkpreprint">
|
||||||
|
<Return>true</Return>
|
||||||
|
</Function>
|
||||||
</Functions>
|
</Functions>
|
||||||
</Library>
|
</Library>
|
||||||
16
tools/charactercreation/characterpdf.xml
Normal file
16
tools/charactercreation/characterpdf.xml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<Pdf Name="charpdf">
|
||||||
|
<Styles>
|
||||||
|
<Style Name="main_table">
|
||||||
|
<BorderWidth>1</BorderWidth>
|
||||||
|
</Style>
|
||||||
|
</Styles>
|
||||||
|
<Pages>
|
||||||
|
<Page>
|
||||||
|
<Header></Header>
|
||||||
|
<Body>
|
||||||
|
<Label></Label>
|
||||||
|
</Body>
|
||||||
|
<Footer></Footer>
|
||||||
|
</Page>
|
||||||
|
</Pages>
|
||||||
|
</Pdf>
|
||||||
@ -424,7 +424,7 @@
|
|||||||
<GridContainer>
|
<GridContainer>
|
||||||
<Cols>3</Cols>
|
<Cols>3</Cols>
|
||||||
<Content>
|
<Content>
|
||||||
|
|
||||||
<!-- Summary Row -->
|
<!-- Summary Row -->
|
||||||
<Label>
|
<Label>
|
||||||
<Text>"Gesamt"</Text>
|
<Text>"Gesamt"</Text>
|
||||||
@ -3941,9 +3941,9 @@
|
|||||||
<Label>
|
<Label>
|
||||||
<Text>"Description:"</Text>
|
<Text>"Description:"</Text>
|
||||||
</Label>
|
</Label>
|
||||||
<StringInput>
|
<TextInput>
|
||||||
<Output>[data.character.magic.new_description]</Output>
|
<Output>[data.character.magic.new_description]</Output>
|
||||||
</StringInput>
|
</TextInput>
|
||||||
<Empty/>
|
<Empty/>
|
||||||
<Button>
|
<Button>
|
||||||
<Text>"Hinzufügen"</Text>
|
<Text>"Hinzufügen"</Text>
|
||||||
@ -4175,5 +4175,21 @@
|
|||||||
</BaseToListPicker>
|
</BaseToListPicker>
|
||||||
</Content>
|
</Content>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Name="print">
|
||||||
|
<OnOpen>
|
||||||
|
<Action>
|
||||||
|
<Do>charlib_checkpreprint() and charlibcreate_checkpreprint()</Do>
|
||||||
|
<Output>[data.character.print.preprintcheck]</Output>
|
||||||
|
</Action>
|
||||||
|
</OnOpen>
|
||||||
|
<Content>
|
||||||
|
<Label Visible="![data.character.print.preprintcheck]">
|
||||||
|
<Text>"Pre print check failed"</Text>
|
||||||
|
</Label>
|
||||||
|
<PdfGenerator Visible="[data.character.print.preprintcheck]">
|
||||||
|
<Pdf>"charpdf"</Pdf>
|
||||||
|
</PdfGenerator>
|
||||||
|
</Content>
|
||||||
|
</Page>
|
||||||
</Pages>
|
</Pages>
|
||||||
</Tool>
|
</Tool>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user