In my case I don't allow button changes during combat so all changes to the button happen outside of the secure environment, which is why so far that method seems to work for my purposes (I don't think there would be an avenue to determine the info within the secure environment itself).
In the past I looked at in combat changes and found that the secure handlers were missing some key bits of info needed to properly change actions during combat, though if it's viable I might give it another look as it's something I would like to support!
|