5E Character Create Playlist
  1. #1

    Offset inconsistencies bug

    There's a visual difference between these two pieces of code, although I think that the second code would just be shorthand for the first:

    Code:
    <backcolor>#999999</backcolor>
    <anchored position="insideleft">
    	<left offset="15" />
    	<right offset="45" />
    	<top offset="30" />
    	<bottom offset="30" />
    </anchored>

    Code:
    <backcolor>#999999</backcolor>
    <anchored position="insideleft" offset="15,30,45,30" />
    The first example will anchor the top left corner of the current template, into its parent frame, without expanding the background between the text and the control in any way.

    The second example will anchor the left (and likely right) side to its parent, but the top and bottom will then expand the background between that text and the control, to something looking close to 30.

    There does not seem to be a position that acts like "over", that still makes the background color stay within the control. Instead "over" makes the background overflow in all directions, like it does in the second example.
    Last edited by MooCow; January 2nd, 2020 at 01:00. Reason: Removed error. I was looking at the wrong line.

  2. #2
    The anchored tag with a position of “insideleft” only supports two numbers in the offset attribute to create left and top anchors.

    There is no position option which allows you to set all four anchors independently. Just define the anchors the first way.

    Regards,
    JPG

  3. #3

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,096
    And remember if you use attributes rather than tags you cannot use lua tables to read the values.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in