Just trying to replicate some of the Blizzard code to understand how it works, and always good to know it general. I'm having an issue with recreating the bonus action bar though.
I figured out that if you use action as the type for a secure action frame, but don't supply the action number it uses the ID and the bar offset. So that works well for the standard bar. For the bonus action bar there is a property called isBonus in the Blizzard code.
My issue is that whenever I set isBonus to 1 like the Blizzard code, it taints the frame and so becomes useless. Is there any way to change isBonus without tainting the frame?
Edit: Inheriting BonusActionButtonTemplate does the trick, but I would rather build the frame myself rather than using a Blizzard one.