PDA

View Full Version : Adding field to Main tab on character sheet



KlatuB
November 17th, 2018, 17:29
I'm trying to add a field to the main tab of the character sheet. I'm trying to place it next to the "Speed" field, the code snip below is how I have it set. The "Fly" section is what I'm trying to add, I don't see anything wrong with the format of the code, but when I try opening the character sheet I get the following error and the field doesn't show.

Ruleset Error: window: Control() anchoring to an undefined control (speedfly2) in windowclass (charsheet_sensescombat)

I found that if I comment out the <label_charfieldtop> section that the error goes away but the still doesn't show.

Can one of the extension guru's please take a look to see what I'm missing.

Thanks



<!-- Speed -->
<number_charspeed name="speed" source="speed.total">
<anchored to="initiative" position="righthigh" offset="20,0" width="40" height="30" />
</number_charspeed>
<label_charfieldtop>
<anchored to="speed" offset="0,15" />
<static textres="char_label_speed" />
</label_charfieldtop>

<!-- Combat Medic Button -->
<button_charcombatcalc name="button_combatcalc">
<anchored to="ac" position="lefthigh" offset="15,5" />
</button_charcombatcalc>

<!-- Fly -->
<number_charfly name="speedfly2" source="speed.fly">
<anchored to="speed" position="righthigh" offset="20,0" width="40" height="30" />
</number_charfly>
<label_charfieldtop>
<anchored to="speedfly2" offset="0,15" />
<static textres="char_label_fly" />
</label_charfieldtop>

damned
November 18th, 2018, 01:59
number_charfly refers to a template.
If you havent created the template then this element wont display.
Because this element isnt displaying the next object which is anchored to this one cannot be positioned.

KlatuB
November 18th, 2018, 15:56
Thanks Damned, that did the trick