AshitaXI / Ashita

Issue tracker and wiki for the Ashita project.
https://ashitaxi.com/
7 stars 1 forks source link

Ability to show "locked" slots on equipmon #63

Open loicteixeira opened 1 month ago

loicteixeira commented 1 month ago

The equipmon plugins shows your currently equipped gear, and can show encumbered status (if enabled in the settings).

In a similar fashion, it would be great if it could show slots you locked via luashitacast, see mockup (and lock icon):

mockup icon

Unlike the encumbered status though, this would not be automatic, and the user would have to pass the information to equipmon on which slot to display locked or unlocked. As a result, what is displayed and the true state of things could be out of sync, but I think it might be acceptable.

To achieve that, I imagine it would need to expose new commands, for example:

Users would call this command manually, or automatically in their luashitacast profiles in combination with their custom lock command (like locktp or lockweapons).

Locked slots could be saved/checked via a bitmask function, so the display implementation would be very similar to the encumbrance one. I'm not sure if it would display in addition to the encumbrance status, or hide when the slot is encumbered. Probably the latter?

I'd be happy to give it a go and submit a PR if the idea was accepted, and the details of the expected commands were agreed on.