Refering to frame called "BagnonBag-3" by its name?
I am working on a modification of Bagnon that allows me to toggle the "Reagents Bank" with an extra menu button instead of having to use the "Reagents Bank" button in the bag list, that I do not need otherwise.
I thought that having my extra menu button trigger the bag list's reagents band button (using Click()) would be the most straight forward method.
But how do I get hold of that button...?
This is how Bagnon is creating its buttons:
function Bag:New(parent, id)
local bag = self:Bind(CreateFrame('CheckButton', ADDON .. self.Name .. id, parent))
For bags with a positive id, e.g. 5, I have no problem addressing them like:
Unfortunately, the "Reagents Bank" bag has the id -3 and
obviously does not work.
So how can I address this button/frame called "BagnonBag-3"??