Mephisto
October 1st, 2025, 18:23
Hi there,
I'm looking for some suggestions/ideas to implement "tags" with variable size for a location based hit system in one of my rulesets.
From a data perspective, I have a windowlist with child nodes, containing the data for every hit location (e.g. armor values). For every child note, I would like to have a tag (buttonfield ?) with the location name which the user can hover over to get more details and which can accept drops. The number of child nodes can vary.
For spacing reasons, the tag should be only as wide as is required to hold the name string and they should - ideally - be added programmatically via lua per node and fill a defined space (similar to like a windowlist fills from left to right and then the next line.
A windowlist would probably work just fine for adding and filling the space but I don't have an idea how every window item could have a different width.
Maybe someone has a brilliant idea how to accomplish this? :)
I'm looking for some suggestions/ideas to implement "tags" with variable size for a location based hit system in one of my rulesets.
From a data perspective, I have a windowlist with child nodes, containing the data for every hit location (e.g. armor values). For every child note, I would like to have a tag (buttonfield ?) with the location name which the user can hover over to get more details and which can accept drops. The number of child nodes can vary.
For spacing reasons, the tag should be only as wide as is required to hold the name string and they should - ideally - be added programmatically via lua per node and fill a defined space (similar to like a windowlist fills from left to right and then the next line.
A windowlist would probably work just fine for adding and filling the space but I don't have an idea how every window item could have a different width.
Maybe someone has a brilliant idea how to accomplish this? :)