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>
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>