PDA

View Full Version : Horizontal Windowlist



Mephisto
July 6th, 2024, 15:49
Quick question to the community: Usually windowlists stack vertically, new items are added at the bottom of the list. Is it possible to have a windowlist add items from left to right?

Moon Wizard
July 6th, 2024, 17:42
Windowlists can have columns that fill left to right first; but always fill downward eventually.

Regards,
JPG

Mephisto
July 6th, 2024, 18:02
I thought about this, too. But how do I make sure there is only one entry per column? By defining the item element size in a way that only 1 item fits into the column?

superteddy57
July 6th, 2024, 18:49
You would apply the fillwidth tag to the xml. You can find some examples in the various provided rulesets. The prime one I can think of is in the encounter record for the NPC tokens to be displayed.

https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996645260/windowlist

Moon Wizard
July 6th, 2024, 19:59
You can't enforce that it only shows one entry per column; as it will wrap when it reaches the right side. The example @superteddy57 provided is a good example. Just add a token and 30 count to an encounter NPC to see it in action.

Regards,
JPG

Mephisto
July 6th, 2024, 21:35
Thank you all, I think I can make it work the way I want it.