TheLastScrub / delta-green-foundry-vtt-system

A Foundry VTT game system for Delta Green: The RPG! This is a fan made work that is unaffiliated with Shane Ivey or Arc Dream Publishing, published under the Delta Green Community license. http://www.delta-green.com https://foundryvtt.com/
MIT License
26 stars 24 forks source link

[ENH] Sort equipment alphabetically & allow manual sorting #131

Closed Vogliadicone closed 3 months ago

Vogliadicone commented 3 months ago

As a player I would like to see my equipment by default autom. sorted alphabetically. And I would like to be able to sort my equipment manually. Weapon-list Right now the equipment is sorted in the order it is added to the character sheet and it is not possible to manually sort it. In a more military oriented campaign like iconoclasts it is sometimes a bit harder to fast access the weapon you wanna use...

TheLastScrub commented 3 months ago

I've never run a military campaign, although I do own Iconoclasts. I doubt I would allow a civilian agent to have all that stuff on them actively for a lot of reasons, weight being one. Although I'm guessing some of that is in a vehicle or something. But it has been on my todo list to fix the sorting since sometimes the gear list at least can get a bit cluttered.

The main tricky thing is, because I had on click handlers for rolls tied to most of the text, it's kind of hard to actually drag anything. Unless you know to somewhat unintuitively click in the empty space of the row.

I may need to run this by Jalen and Michael, but my workaround (and also to make it more clear what is actually rollable) is that I have been trying to put in icons for everything that is rollable, and have the click handlers generally more tied to the icon than the text necessarily. This winds up looking like (I flipped the position of the lethality toggle to keep things consistent):

image

And then I've made the name draggable (as in clicking it no longer rolls the skill check). I think I have the sorting logic togglable between manual and alphabetical for each section as well:

image
Vogliadicone commented 3 months ago

Yeah, the character is the DG contact in the US Army and therefore has access to some heavier weapons. Also one of them is mounted on the groups Humvee.

Clicking on an icon for attack or damage is ok for me. It's like Roll20 handles it as well. See the Screenshot in #133 .