PDA

View Full Version : Help with <framefdef>



Stargrove
April 12th, 2025, 22:07
For a given <framedef> for use in a reference manual frame, how does one adjust the location of the text inside so it does not overlap with the graphic of the frame itself. I have an issue where a block I am trying to create overlaps the top of the graphic.

Here is the issue I am seeing:
https://www.fantasygrounds.com/forums/attachment.php?attachmentid=64026&d=1733273156

Here is the graphic I am using to create the frame:
https://www.fantasygrounds.com/forums/attachment.php?attachmentid=64027&d=1733273156


Here is the frame definition in the code:


<framedef name="referenceblock-trav31">
<bitmap file="graphics/frames/refblock_ruleset31.png" />
<offset>125,50,160,55</offset>
</framedef>


I am still not even sure about the code for the frame itself at this point because the frame overlaps itself when there is no text. I guess this could be causing my issue to. I am just not sure.

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=64028&d=1733273156

superteddy57
April 13th, 2025, 00:29
I would suggest checking out the wiki as it breaks down that control definition.

https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996645444/framedef

Stargrove
April 13th, 2025, 01:10
I would suggest checking out the wiki as it breaks down that control definition.

https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996645444/framedef


I was looking at that before I posted here and it only helped me adjust how things looked after I added multiple lines of text so things lined up correctly. I am not sure what additional tags to add to adjust where the text would sit in the frame.

I always struggle with the formatting of things in FGU.

Moon Wizard
April 13th, 2025, 20:01
There is no “fine tuning” of the frame “margins”. They are fixed the same for every frame. You’ll have to adjust the frame to work within the existing margins.

Regards,
JPG