Larkinabout / fvtt-token-action-hud-core

Token Action HUD is a repositionable HUD of actions for a selected token.
13 stars 18 forks source link

[FEATURE] Settings to work with User Flags (setups) #62

Closed apoapostolov closed 1 year ago

apoapostolov commented 1 year ago

This is related to https://github.com/Larkinabout/fvtt-token-action-hud-pf2e/issues/9 because I am looking for a way to remove those stuck settings for strikes and reset to default.

Please expose the user flags in a JSON format in the Settings of the Core Mod. This will be a dialog called in Settings that contains a multiline text field to expose the current user flags and be able to delete or modify them. This would allow:

Larkinabout commented 1 year ago

You can use game.tokenActionHud.resetUserFlags() and game.tokenActionHud.resetActorFlags() to reset the subcategories and actions respectively, though it does it for every actor. There's also the 'Reset HUD' module setting, though that does nothing more than the macro commands.

I do like the idea of an import/export feature.

Larkinabout commented 1 year ago

Import/export is going to be a way off, but I added a 'Reset Actions' button in the 'Customise Categories' dialog available by clicking the book icon: image

apoapostolov commented 1 year ago

Thank you, this helps with all customized objects (strikes) that are no longer there but their customizations remain.

Larkinabout commented 1 year ago

With Token Action HUD Core 1.4.2, the HUD data is stored in json files within the 'data/token-action-hud-core/world/' folder. This may be easier to manage directly than any setting screen would be able to do.

If you're happy with managing them that way, I'm inclined to close this issue.

Larkinabout commented 1 year ago

Added in Token Action HUD Core 1.4.12.