KazWolfe / XIVDeck

A Stream Deck plugin providing rich integration for Final Fantasy XIV!
GNU Affero General Public License v3.0
110 stars 3 forks source link

Add Support for "Toggle" Actions #16

Open KazWolfe opened 2 years ago

KazWolfe commented 2 years ago

Certain commands in-game would benefit from first-party "toggle" action, where the Stream Deck can at-a-glance show if a certain state is active or not. Examples of such an action would be:

This would unfortunately probably require toggle actions be manually defined and then maintained (which is not great), but the action types are just so variable that I don't think it's possible to expose a single global state.

If you can think of any extra toggle actions you'd like to see or would use, please drop them in the comments.

KazWolfe commented 2 years ago

Technical Details

As part of this ticket, a new data packet would need to be added to the API. This data packet (named GameState for now) will need to include any relevant tracked toggle states or information that the Stream Deck may need. This packet may include other things like HP/MP for future additions (maybe).

GameState will be given to the Stream Deck under the following conditions:

zbee commented 2 years ago

Not sure if it could work with hotbar slots, or something - but having this for tank stances would be absolutely amazing