PDA

View Full Version : Shrinking tags



Xarxus
January 29th, 2023, 08:40
Reading I found this code here (Wiki - Ruleset - Interfaces (Windows, Panels, Widgets)) (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644483/Ruleset+-+Interfaces+Windows+Panels+Widgets#Anchoring)


<anchored width="30" height="22">
<left parent="label" anchor="right" />
<top offset="5" />
</anchored>

Is there a way to shrink the tags further? Something like this.


<anchored width="30" height="22" left.parent="label" left.anchor="right" top.offset="5" />

Moon Wizard
January 29th, 2023, 19:20
No, there is no way to shrink tags to that level. Attributes don't have multiple nestings.

If the anchors both have the same parent, you can do:


<anchored parent="label" position="righthigh" offset="5,0" width="30" height="20" />


Otherwise, if you are using different parents for different anchors, or specifying relative anchors; you need to use the long version.

Regards,
JPG

Xarxus
January 30th, 2023, 21:45
I love the synthesis

Ty Moon