SimpleTest/tools/charactercreation/characterpdf.xml

221 lines
10 KiB
XML

<Pdf Name="charpdf">
<Styles>
<Style Name="HeaderItem">
<Padding>2</Padding>
</Style>
<Style Name="Italic">
<Italic>true</Italic>
</Style>
<Style Name="Bold">
<Bold>true</Bold>
</Style>
<Style Name="ValueBoxRow">
<HAlign>center</HAlign>
</Style>
<Style Name="ValueBox">
<Border>2</Border>
<Margin>8</Margin>
<Width>42</Width>
<Height>42</Height>
<VAlign>middle</VAlign>
<HAlign>center</HAlign>
</Style>
<Style Name="ValueBoxChildren" Recursive="true" IgnoreSelf="true">
<HAlign>center</HAlign>
<FontSize>16</FontSize>
<Bold>true</Bold>
</Style>
<Style Name="Courage">
<BorderColor>ff0000</BorderColor>
</Style>
<Style Name="Intelligence">
<BorderColor>9900cc</BorderColor>
</Style>
<Style Name="Intuition">
<BorderColor>11cc11</BorderColor>
</Style>
<Style Name="Charisma">
<BorderColor>000000</BorderColor>
</Style>
<Style Name="Dexterity">
<BorderColor>b3b300</BorderColor>
</Style>
<Style Name="Agility">
<BorderColor>0000ff</BorderColor>
</Style>
<Style Name="Physique">
<BorderColor>1dcaab</BorderColor>
</Style>
<Style Name="Strength">
<BorderColor>ff6600</BorderColor>
</Style>
</Styles>
<Pages>
<Page>
<Header>
<RowLayout>
<Content>
<Label Styles="HeaderItem;Italic">
<Text>"Heldenbogen"</Text>
</Label>
<Label Styles="HeaderItem">
<Text>"-"</Text>
</Label>
<Label Styles="HeaderItem">
<Text>[data.character.definition.name]</Text>
</Label>
<Label Styles="HeaderItem">
<Text>"-"</Text>
</Label>
<Label Styles="HeaderItem;Bold">
<Text>"Persönliche Daten"</Text>
</Label>
</Content>
</RowLayout>
</Header>
<Body>
<ColumnLayout>
<Content>
<RowLayout Styles="ValueBoxRow">
<Content>
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Courage">
<Content>
<Label>
<Text>"MU"</Text>
</Label>
<Label>
<Text>[data.character.attributes.courage]</Text>
</Label>
</Content>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Intelligence">
<Content>
<Label>
<Text>"KL"</Text>
</Label>
<Label>
<Text>[data.character.attributes.intelligence]</Text>
</Label>
</Content>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Intuition">
<Content>
<Label>
<Text>"IN"</Text>
</Label>
<Label>
<Text>[data.character.attributes.intuition]</Text>
</Label>
</Content>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Charisma">
<Content>
<Label>
<Text>"CH"</Text>
</Label>
<Label>
<Text>[data.character.attributes.charisma]</Text>
</Label>
</Content>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Dexterity">
<Content>
<Label>
<Text>"FF"</Text>
</Label>
<Label>
<Text>[data.character.attributes.dexterity]</Text>
</Label>
</Content>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Agility">
<Content>
<Label>
<Text>"GE"</Text>
</Label>
<Label>
<Text>[data.character.attributes.agility]</Text>
</Label>
</Content>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Physique">
<Content>
<Label>
<Text>"KO"</Text>
</Label>
<Label>
<Text>[data.character.attributes.physique]</Text>
</Label>
</Content>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Strength">
<Content>
<Label>
<Text>"KK"</Text>
</Label>
<Label>
<Text>[data.character.attributes.strength]</Text>
</Label>
</Content>
</ColumnLayout>
</Content>
</RowLayout>
<RowLayout Styles="ValueBoxRow">
<Content>
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
<Label>
<Text>"LE"</Text>
</Label>
<Label>
<Text>[data.character.attributes.physique] + [data.character.attributes.physique] + [data.character.attributes.strength] + [data.character.race.healthbonus]</Text>
</Label>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
<Label>
<Text>"INI"</Text>
</Label>
<Label>
<Text>Round(([data.character.attributes.courage] + [data.character.attributes.agility]) / 2)</Text>
</Label>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
<Label>
<Text>"AW"</Text>
</Label>
<Label>
<Text>Round(([data.character.attributes.intuition] + [data.character.attributes.agility] + [data.character.attributes.agility]) / 4)</Text>
</Label>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
<Label>
<Text>"GS"</Text>
</Label>
<Label>
<Text>[data.character.race.speed]</Text>
</Label>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren" Visible="[data.character.definition.ismage]">
<Label>
<Text>"MN"</Text>
</Label>
<Label>
<Text>[data.character.magic.mana]</Text>
</Label>
</ColumnLayout>
<ColumnLayout Styles="ValueBox;ValueBoxChildren" Visible="[data.character.definition.ismage]">
<Label>
<Text>"AM"</Text>
</Label>
<Label>
<Text>charlib_intrinsicmagic()</Text>
</Label>
</ColumnLayout>
</Content>
</RowLayout>
</Content>
</ColumnLayout>
</Body>
<!--<Footer></Footer>-->
</Page>
</Pages>
</Pdf>