Varsuuk
April 2nd, 2018, 00:29
I cannot seem to figure out why the attribute bonus section is so "flattened" - I'm sure I am using some weird thing unaware but cannot see it when I trace these darn things... I wanted (first try) to look just like the Scores one (just not editable, droppable, etc) but not getting there below is the charsheet_main.xml related section.
<!-- Attribute Scores -->
<frame_char name="attributeframe">
<anchored to="classlevelframe" position="belowleft" offset="0,0"
width="155" height="220" />
</frame_char>
<!-- Strength -->
<number_charattributescore name="strength" source="abilities.strength.score">
<anchored to="attributeframe" position="insidetopright" offset="20,25" />
<description textres="char_tooltip_str" />
</number_charattributescore>
<string_charattributelabel name="strength_label">
<anchored to="strength" />
<static textres="char_strength" />
</string_charattributelabel>
... other stats...
<!-- Attribute Bonuses -->
<frame_char name="attributebonusframe">
<anchored to="attributeframe" position="right"
width="200" />
</frame_char>
<label>
<anchored to="attributebonusframe" position="insidetop"
offset="15,7" height="20" />
<center />
<static textres="char_label_attribute_bonuses" />
<disabled />
</label>
<number_bonusfield name="strength_bonustohit" source="abilities.strength.bonustohit">
<anchored to="attributebonusframe" position="insidetopright" offset="20,45" />
<description textres="char_tooltip_dex" />
</number_bonusfield>
What's odd to me, is that the width/height seem to be identical in underlying controls (albeit different base window classes)
<template name="number_charattributescore">
<basicnumber>
<anchored position="belowleft" offset="0,12" width="32" height="20" />
<rollable />
<min>3</min>
<max>18</max>
<default>9</default>
<!-- @TODO Scripting -->
<!-- <script file="campaign/scripts/number_charattributescores.lua" /> -->
</basicnumber>
</template>
...snip...
<template name="number_bonusfield">
<number>
<frame name="charsheet_attribute_bonus_frame" />
<anchored position="belowleft" offset="0,12" width="32" height="20" />
<displaysign />
<nokeyedit />
<hideonvalue>0</hideonvalue>
</number>
</template>
The bonus field uses the frame "fielddark.png" (from C&C)
The Score field uses the "groupbox.png" (from C&C)
My setup so far has been starting with nothing, then grabbing stuff from AD&D (Celestian), C&C, (maybe some in 5e?) and of course, referencing CoreRPG. On top of that, I have done my own templates and the like.
I bet this is obvious and I'magonnakickmyself.
22827
<!-- Attribute Scores -->
<frame_char name="attributeframe">
<anchored to="classlevelframe" position="belowleft" offset="0,0"
width="155" height="220" />
</frame_char>
<!-- Strength -->
<number_charattributescore name="strength" source="abilities.strength.score">
<anchored to="attributeframe" position="insidetopright" offset="20,25" />
<description textres="char_tooltip_str" />
</number_charattributescore>
<string_charattributelabel name="strength_label">
<anchored to="strength" />
<static textres="char_strength" />
</string_charattributelabel>
... other stats...
<!-- Attribute Bonuses -->
<frame_char name="attributebonusframe">
<anchored to="attributeframe" position="right"
width="200" />
</frame_char>
<label>
<anchored to="attributebonusframe" position="insidetop"
offset="15,7" height="20" />
<center />
<static textres="char_label_attribute_bonuses" />
<disabled />
</label>
<number_bonusfield name="strength_bonustohit" source="abilities.strength.bonustohit">
<anchored to="attributebonusframe" position="insidetopright" offset="20,45" />
<description textres="char_tooltip_dex" />
</number_bonusfield>
What's odd to me, is that the width/height seem to be identical in underlying controls (albeit different base window classes)
<template name="number_charattributescore">
<basicnumber>
<anchored position="belowleft" offset="0,12" width="32" height="20" />
<rollable />
<min>3</min>
<max>18</max>
<default>9</default>
<!-- @TODO Scripting -->
<!-- <script file="campaign/scripts/number_charattributescores.lua" /> -->
</basicnumber>
</template>
...snip...
<template name="number_bonusfield">
<number>
<frame name="charsheet_attribute_bonus_frame" />
<anchored position="belowleft" offset="0,12" width="32" height="20" />
<displaysign />
<nokeyedit />
<hideonvalue>0</hideonvalue>
</number>
</template>
The bonus field uses the frame "fielddark.png" (from C&C)
The Score field uses the "groupbox.png" (from C&C)
My setup so far has been starting with nothing, then grabbing stuff from AD&D (Celestian), C&C, (maybe some in 5e?) and of course, referencing CoreRPG. On top of that, I have done my own templates and the like.
I bet this is obvious and I'magonnakickmyself.
22827