eschlon
December 22nd, 2010, 11:37
Hi all, just getting started with FG and I'm having some issues with anchoring not producing the results I expect. The goal of this exercise is to produce a box on the character sheet using the sheetbox frame and then put a vertical separator in said box.
I've created and stored the separator as an icon, it generally displays fine but the positioning is weird (this happens with any icon, not just the one I created, so I don't think it's an issue with the icon).
Here's the relevant code:
<genericcontrol name="theFrame">
<bounds>10,90,275,150</bounds>
<frame>
<name>sheetgroup</name>
</frame>
</genericcontrol>
<genericcontrol>
<anchored>
<to>theFrame</to>
<position>insidetopleft</position>
<offset>50,50</offset>
</anchored>
<icon>vseparator</icon>
</genericcontrol>
The idea is that this would create a sheetgroup frame with the graphic set to offset 50px x & y from the top left.
Instead I get a huge stretched icon hanging around outside of the the sheetgroup frame (in a roughly top-left area). I've attached an image of what I'm talking about (using the standard d10icon instead of the separator for clarity).
esc
I've created and stored the separator as an icon, it generally displays fine but the positioning is weird (this happens with any icon, not just the one I created, so I don't think it's an issue with the icon).
Here's the relevant code:
<genericcontrol name="theFrame">
<bounds>10,90,275,150</bounds>
<frame>
<name>sheetgroup</name>
</frame>
</genericcontrol>
<genericcontrol>
<anchored>
<to>theFrame</to>
<position>insidetopleft</position>
<offset>50,50</offset>
</anchored>
<icon>vseparator</icon>
</genericcontrol>
The idea is that this would create a sheetgroup frame with the graphic set to offset 50px x & y from the top left.
Instead I get a huge stretched icon hanging around outside of the the sheetgroup frame (in a roughly top-left area). I've attached an image of what I'm talking about (using the standard d10icon instead of the separator for clarity).
esc