DICE PACKS BUNDLE
  1. #1

    Windowlist columns... can someone explain the use?

    I'm trying to figure out what the column/width/fill down/width is suppose to do but not really finding it useful.

    What I expected was I could say "fill this width with an entry and then make a new column (window) and add the next".

    So if I said width of 3 then it would do this.

    [Longsword] [Dagger] [Bow]
    [Dart]


    (4 database objects. sword, dagger, bow and dart)

    But either im doing something wrong or completely misunderstanding the use of it.

    https://www.fantasygrounds.com/refdoc/windowlist.xcp



    The XML bits say "pixels" for width.... but setColumnWidth doesn't mention pixels so I was thinking it was columns, literal.

    Am I barking up the wrong tree entirely and have to code the controls manually or will it actually generate a type of windowlist like the example I used? I've tried various options and none of them seem to result in anything useful.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  2. #2
    So, I tried one last thing and this seems to get the effect I wanted.

    Code:
      setColumnWidth(130);
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  3. #3
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,267
    Blog Entries
    9
    Severed limbs was the effect you wanted?

    Brutal dude! Or should I say Vorpal?

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  4. #4
    I managed to get it cleaned up a bit and working. Was just a bit confused on the documentation.

    Looks pretty decent and it expands as the window changes.



    The only part that I don't like is the overlapping shading (marked in red) which I couldn't seem to resolve with margin controls for the entries.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  5. #5
    Quote Originally Posted by LordEntrails View Post
    Severed limbs was the effect you wanted?

    Brutal dude! Or should I say Vorpal?
    Trolls are easy to chop up! I guess they lost that in 5e?
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  6. #6
    My guess is that the overlapping shading is due to the column width not being wide enough for how the windows are defined. (i.e. windows are defined in a way that makes them wider than 130.) There's no auto-sizing of columns, just pixel-based specification.

    Regards,
    JPG

  7. #7
    Quote Originally Posted by Moon Wizard View Post
    My guess is that the overlapping shading is due to the column width not being wide enough for how the windows are defined. (i.e. windows are defined in a way that makes them wider than 130.) There's no auto-sizing of columns, just pixel-based specification.

    Regards,
    JPG
    My suspicion is that it's the <child><backcolor>1A40301E</backcolor></child> sets a frame within the windowlist. The current definition of the windowlist and it's class are:

    Code:
          <windowlist name="mini_combat_window">
            <anchored>
              <top parent="columnanchor" anchor="bottom" relation="relative" offset="7" />
              <left offset="10" />
              <right offset="-5" />
            </anchored>
            <child></child>
            <child><backcolor>1A40301E</backcolor></child>
            <noscroll />
            <columns><width>130</width></columns>
            <datasource>.abilitynoteslist</datasource>
            <class>cta_abilitynotes_host</class>
            <sortby><control>name</control></sortby>
            <noscroll />
            <frame name="ct_subgroupbox" offset="4,5,1,1" />
          </windowlist>
    
    ------------------------------
    
      <windowclass name="cta_abilitynotes_host">
        <sheetdata>
          <stringfield name="name">
          <script>
            function onInit()
              local node = window.getDatabaseNode();
              local sText = DB.getValue(node,"text","");
              local sCleaned = UtilityManagerADND.stripFormattedText(sText);
              setTooltipText(sCleaned);
            end
            function onHover(oncontrol)
              if oncontrol then
                setColor("ffffff");
              else
                setColor(nil);
              end
            end
            function onClickDown(button, x, y)
              local w = Interface.openWindow('quicknote',window.getDatabaseNode());
              if w then
                return true;
              end          
            end
          </script>
            <anchored>
              <top anchor="top" offset="2" />
              <left anchor="left" offset="4"/>
            </anchored>
            <multilinespacing>20</multilinespacing>
            <readonly /> 
          </stringfield>
          
        </sheetdata>
      </windowclass>
    I tried tweaking the margins on the class entry trying to clean it up but it didn't seem to help.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  8. #8
    Background colors are independent of frames; and are actually drawn under frames. Try adding a fixed width of 120 to your name field to see if that helps.

    Regards,
    JPG

  9. #9
    Quote Originally Posted by Moon Wizard View Post
    Background colors are independent of frames; and are actually drawn under frames. Try adding a fixed width of 120 to your name field to see if that helps.

    Regards,
    JPG
    That got it, perfect.



    I tend to not use static width when I can, didn't think to try, thanks!
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

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
  •  
FG Spreadshirt Swag

Log in

Log in