Varsuuk
November 12th, 2024, 02:37
The result of my attempts to stack a control on top of another (I will be adding code that only enables one of them based on character's class) before continuing on to add more controls did not work as planned. Instead both controls appeared side by side:
Basic template:
<template name="d6actioncheck">
<basicnumber>
<frame name="groupbox" offset="7,5,7,5" />
<rollable />
<hideonvalue value="0" />
<anchored to="columnanchor" height="30" width="45">
<top anchor="bottom" />
<left anchor="right" relation="relative" />
</anchored>
...
TECHNICALLY, the "left" line is: <left anchor="right" postoffset="10" relation="relative" /> but I removed the "postoffset" while troublshooting.
Template in use, places things in right place but I expected turnundead to cover singforsupprt:
Things look good except that the
Anchors definitions:
<template name="anchor_row">
<genericcontrol>
<anchored to="contentanchor" position="insidetop" height="0">
<top anchor="bottom" />
<left anchor="right" />
</anchored>
<disabled />
<invisible />
</genericcontrol>
</template>
...
<sheetdata>
<anchor_content_top name="contentanchor" />
<anchor_row name="columnanchor" />
<!-- First row of Lore/action buttons -->
...
<!-- Second row of Lore/action buttons -->
<anchor_row name="columnanchor2">
<anchored>
<top anchor="bottom" offset="48" />
</anchored>
</anchor_row>
<d6actioncheck name="surprisedon">
<anchored to="columnanchor2" />
<rollable mergerule="delete" />
<targetgenerator>lorecheck</targetgenerator>
<description textres="char_surprisedon_tooltip" />
</d6actioncheck>
<label_fieldtopverticalinset>
<anchored to="surprisedon"/>
<static textres="char_label_surprisedon" />
<tooltip textres="char_surprisedon_tooltip" />
</label_fieldtopverticalinset>
<d6actioncheck name="singforsupper">
<anchored to="columnanchor2" />
<targetgenerator>secretdoorcheck</targetgenerator>
<description textres="char_singforsupper_tooltip" />
</d6actioncheck>
<label_fieldtopverticalinset>
<anchored to="singforsupper" />
<static textres="char_label_singforsupper" />
<tooltip textres="char_singforsupper_tooltip" />
</label_fieldtopverticalinset>
<anchored to="columnanchor" height="30" width="45">
<top anchor="bottom" />
<left anchor="right" postoffset="10" relation="relative" />
</anchored>
<d6actioncheck name="turnundead">
<anchored to="columnanchor2">
<left anchor="right" relation="current" offset="0"/>
</anchored>
<targetgenerator>secretdoorcheck</targetgenerator>
<description textres="char_turnundead_tooltip" />
</d6actioncheck>
<label_fieldtopverticalinset>
<anchored to="turnundead" />
<static textres="char_label_turnundead" />
<tooltip textres="char_turnundead_tooltip" />
</label_fieldtopverticalinset>
Basic template:
<template name="d6actioncheck">
<basicnumber>
<frame name="groupbox" offset="7,5,7,5" />
<rollable />
<hideonvalue value="0" />
<anchored to="columnanchor" height="30" width="45">
<top anchor="bottom" />
<left anchor="right" relation="relative" />
</anchored>
...
TECHNICALLY, the "left" line is: <left anchor="right" postoffset="10" relation="relative" /> but I removed the "postoffset" while troublshooting.
Template in use, places things in right place but I expected turnundead to cover singforsupprt:
Things look good except that the
Anchors definitions:
<template name="anchor_row">
<genericcontrol>
<anchored to="contentanchor" position="insidetop" height="0">
<top anchor="bottom" />
<left anchor="right" />
</anchored>
<disabled />
<invisible />
</genericcontrol>
</template>
...
<sheetdata>
<anchor_content_top name="contentanchor" />
<anchor_row name="columnanchor" />
<!-- First row of Lore/action buttons -->
...
<!-- Second row of Lore/action buttons -->
<anchor_row name="columnanchor2">
<anchored>
<top anchor="bottom" offset="48" />
</anchored>
</anchor_row>
<d6actioncheck name="surprisedon">
<anchored to="columnanchor2" />
<rollable mergerule="delete" />
<targetgenerator>lorecheck</targetgenerator>
<description textres="char_surprisedon_tooltip" />
</d6actioncheck>
<label_fieldtopverticalinset>
<anchored to="surprisedon"/>
<static textres="char_label_surprisedon" />
<tooltip textres="char_surprisedon_tooltip" />
</label_fieldtopverticalinset>
<d6actioncheck name="singforsupper">
<anchored to="columnanchor2" />
<targetgenerator>secretdoorcheck</targetgenerator>
<description textres="char_singforsupper_tooltip" />
</d6actioncheck>
<label_fieldtopverticalinset>
<anchored to="singforsupper" />
<static textres="char_label_singforsupper" />
<tooltip textres="char_singforsupper_tooltip" />
</label_fieldtopverticalinset>
<anchored to="columnanchor" height="30" width="45">
<top anchor="bottom" />
<left anchor="right" postoffset="10" relation="relative" />
</anchored>
<d6actioncheck name="turnundead">
<anchored to="columnanchor2">
<left anchor="right" relation="current" offset="0"/>
</anchored>
<targetgenerator>secretdoorcheck</targetgenerator>
<description textres="char_turnundead_tooltip" />
</d6actioncheck>
<label_fieldtopverticalinset>
<anchored to="turnundead" />
<static textres="char_label_turnundead" />
<tooltip textres="char_turnundead_tooltip" />
</label_fieldtopverticalinset>