-
July 17th, 2019, 06:14 #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.
-
July 17th, 2019, 06:23 #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.
-
July 17th, 2019, 06:33 #3
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.
-
July 17th, 2019, 06:37 #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.
-
July 17th, 2019, 06:38 #5---
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.
-
July 17th, 2019, 16:53 #6
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
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
-
July 17th, 2019, 17:17 #7
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>
---
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.
-
July 17th, 2019, 17:44 #8
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
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
-
July 17th, 2019, 18:04 #9---
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