Refactor character creation tool XML: simplify RowLayout and ColumnLayout nesting for improved readability and maintainability
This commit is contained in:
parent
3da2b824b5
commit
759c827d5e
@ -75,140 +75,144 @@
|
|||||||
</Header>
|
</Header>
|
||||||
<Body>
|
<Body>
|
||||||
<ColumnLayout>
|
<ColumnLayout>
|
||||||
<RowLayout Styles="ValueBoxRow">
|
<Content>
|
||||||
<Content>
|
<RowLayout Styles="ValueBoxRow">
|
||||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Courage">
|
<Content>
|
||||||
<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>
|
<Label>
|
||||||
<Text>"MU"</Text>
|
<Text>"LE"</Text>
|
||||||
</Label>
|
</Label>
|
||||||
<Label>
|
<Label>
|
||||||
<Text>[data.character.attributes.courage]</Text>
|
<Text>[data.character.attributes.physique] + [data.character.attributes.physique] + [data.character.attributes.strength] + [data.character.race.healthbonus]</Text>
|
||||||
</Label>
|
</Label>
|
||||||
</Content>
|
</ColumnLayout>
|
||||||
</ColumnLayout>
|
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
|
||||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Intelligence">
|
|
||||||
<Content>
|
|
||||||
<Label>
|
<Label>
|
||||||
<Text>"KL"</Text>
|
<Text>"INI"</Text>
|
||||||
</Label>
|
</Label>
|
||||||
<Label>
|
<Label>
|
||||||
<Text>[data.character.attributes.intelligence]</Text>
|
<Text>Round(([data.character.attributes.courage] + [data.character.attributes.agility]) / 2)</Text>
|
||||||
</Label>
|
</Label>
|
||||||
</Content>
|
</ColumnLayout>
|
||||||
</ColumnLayout>
|
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
|
||||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Intuition">
|
|
||||||
<Content>
|
|
||||||
<Label>
|
<Label>
|
||||||
<Text>"IN"</Text>
|
<Text>"AW"</Text>
|
||||||
</Label>
|
</Label>
|
||||||
<Label>
|
<Label>
|
||||||
<Text>[data.character.attributes.intuition]</Text>
|
<Text>Round(([data.character.attributes.intuition] + [data.character.attributes.agility] + [data.character.attributes.agility]) / 4)</Text>
|
||||||
</Label>
|
</Label>
|
||||||
</Content>
|
</ColumnLayout>
|
||||||
</ColumnLayout>
|
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
|
||||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Charisma">
|
|
||||||
<Content>
|
|
||||||
<Label>
|
<Label>
|
||||||
<Text>"CH"</Text>
|
<Text>"GS"</Text>
|
||||||
</Label>
|
</Label>
|
||||||
<Label>
|
<Label>
|
||||||
<Text>[data.character.attributes.charisma]</Text>
|
<Text>[data.character.race.speed]</Text>
|
||||||
</Label>
|
</Label>
|
||||||
</Content>
|
</ColumnLayout>
|
||||||
</ColumnLayout>
|
<ColumnLayout Styles="ValueBox;ValueBoxChildren" Visible="[data.character.definition.ismage]">
|
||||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Dexterity">
|
|
||||||
<Content>
|
|
||||||
<Label>
|
<Label>
|
||||||
<Text>"FF"</Text>
|
<Text>"MN"</Text>
|
||||||
</Label>
|
</Label>
|
||||||
<Label>
|
<Label>
|
||||||
<Text>[data.character.attributes.dexterity]</Text>
|
<Text>[data.character.magic.mana]</Text>
|
||||||
</Label>
|
</Label>
|
||||||
</Content>
|
</ColumnLayout>
|
||||||
</ColumnLayout>
|
<ColumnLayout Styles="ValueBox;ValueBoxChildren" Visible="[data.character.definition.ismage]">
|
||||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Agility">
|
|
||||||
<Content>
|
|
||||||
<Label>
|
<Label>
|
||||||
<Text>"GE"</Text>
|
<Text>"AM"</Text>
|
||||||
</Label>
|
</Label>
|
||||||
<Label>
|
<Label>
|
||||||
<Text>[data.character.attributes.agility]</Text>
|
<Text>charlib_intrinsicmagic()</Text>
|
||||||
</Label>
|
</Label>
|
||||||
</Content>
|
</ColumnLayout>
|
||||||
</ColumnLayout>
|
</Content>
|
||||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Physique">
|
</RowLayout>
|
||||||
<Content>
|
</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">
|
|
||||||
<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>
|
|
||||||
</RowLayout>
|
|
||||||
</ColumnLayout>
|
</ColumnLayout>
|
||||||
</Body>
|
</Body>
|
||||||
<!--<Footer></Footer>-->
|
<!--<Footer></Footer>-->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user