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>
|
||||
<Body>
|
||||
<ColumnLayout>
|
||||
<RowLayout Styles="ValueBoxRow">
|
||||
<Content>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Courage">
|
||||
<Content>
|
||||
<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>"MU"</Text>
|
||||
<Text>"LE"</Text>
|
||||
</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>
|
||||
</Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Intelligence">
|
||||
<Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
|
||||
<Label>
|
||||
<Text>"KL"</Text>
|
||||
<Text>"INI"</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[data.character.attributes.intelligence]</Text>
|
||||
<Text>Round(([data.character.attributes.courage] + [data.character.attributes.agility]) / 2)</Text>
|
||||
</Label>
|
||||
</Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Intuition">
|
||||
<Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
|
||||
<Label>
|
||||
<Text>"IN"</Text>
|
||||
<Text>"AW"</Text>
|
||||
</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>
|
||||
</Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Charisma">
|
||||
<Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren">
|
||||
<Label>
|
||||
<Text>"CH"</Text>
|
||||
<Text>"GS"</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[data.character.attributes.charisma]</Text>
|
||||
<Text>[data.character.race.speed]</Text>
|
||||
</Label>
|
||||
</Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Dexterity">
|
||||
<Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren" Visible="[data.character.definition.ismage]">
|
||||
<Label>
|
||||
<Text>"FF"</Text>
|
||||
<Text>"MN"</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[data.character.attributes.dexterity]</Text>
|
||||
<Text>[data.character.magic.mana]</Text>
|
||||
</Label>
|
||||
</Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren;Agility">
|
||||
<Content>
|
||||
</ColumnLayout>
|
||||
<ColumnLayout Styles="ValueBox;ValueBoxChildren" Visible="[data.character.definition.ismage]">
|
||||
<Label>
|
||||
<Text>"GE"</Text>
|
||||
<Text>"AM"</Text>
|
||||
</Label>
|
||||
<Label>
|
||||
<Text>[data.character.attributes.agility]</Text>
|
||||
<Text>charlib_intrinsicmagic()</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">
|
||||
<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>
|
||||
</Content>
|
||||
</RowLayout>
|
||||
</Content>
|
||||
</ColumnLayout>
|
||||
</Body>
|
||||
<!--<Footer></Footer>-->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user