5E Product Walkthrough Playlist
  1. #1
    Wintermute's Avatar
    Join Date
    Nov 2013
    Location
    Pigeon Forge, Tennessee
    Posts
    335
    Blog Entries
    2

    Question Adjusting the chat area of the chatbox.

    I'm wanting to adjust the margins of the chat area in the chatbox. I'm wanting to make sure that all the text falls inside the white box. Can someone point me in a direction or give me a search term. Thanks

    chatarea.png

  2. #2
    That's a small area. You will end up getting a lot of text/dice wrapping.

    In order to change, you would need an extension that overrode the "basicchatwindow" template to make it the new size.

    Regards,
    JPG

  3. #3
    Wintermute's Avatar
    Join Date
    Nov 2013
    Location
    Pigeon Forge, Tennessee
    Posts
    335
    Blog Entries
    2
    Thanks for the help. I was looking in the wrong place and the math wasn't adding up. Once I found the original offset of 20,25, everything worked. lol The image was just an exaggerated example.

    Could you answer a question about XML inheritance in FG? When overriding an element, does FG delete the old and then add the new or does it just merge the two overwriting existing? I'm not sure that's the clearest way to ask that. So lets try it this way... (please note I would never write code this way)

    Does this:

    <framedef name="windowtitle">
    <bitmap file="graphics/frames/windowtitle.png"/>
    </framedef>

    AND

    <framedef name="windowtitle">
    <offset>25,0,30,0</offset>
    </framedef>



    equal this?

    <framedef name="windowtitle">
    <bitmap file="graphics/frames/windowtitle.png"/>
    <offset>25,0,30,0</offset>
    </framedef>

    or does it just take the last one encountered in the file? Thanks.

  4. #4

  5. #5
    The merge attribute is only supported in specific cases. See these Developer Guide topics:
    https://www.fantasygrounds.com/wiki/...ets_-_Layering
    https://www.fantasygrounds.com/wiki/...ts_-_Templates

    Regards,
    JPG

  6. #6

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,096
    So for the poster’s framedef example, what is the result?

  7. #7
    Wintermute's Avatar
    Join Date
    Nov 2013
    Location
    Pigeon Forge, Tennessee
    Posts
    335
    Blog Entries
    2
    I did some testing this morning and the second element would be the active one with incomplete data.

    I used the following code.

    <framedef name = "chatbox" >
    <!-- No offset so chatbox image isn't visible. -->
    <bitmap file="graphics/frames/chatbox10.png"/>
    </framedef>

    <!-- I tried with and without merge -->
    <framedef name = "chatbox" merge="join">
    <offset>10,100,10,10</offset>
    </framedef>


    I was unable to get the image to display by having it split across two incomplete framedef entries. Framedef does not appear to be one of the merge-able ones.

  8. #8
    Framedef does not support the merge attribute. However, file references will fall through to the previous layer, so you don't need to include the graphic again if you're re-using the one from the base ruleset.

    Regards,
    JPG

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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
  •  
Starfinder Playlist

Log in

Log in