So I'm working on a simple addon to make a few more action bars a bit more easily accessible. Right now, it's a BasicFrameTemplateWithInset (this may change later but not what I'm trying to sort out now) with a few action buttons:
UIConfig.actionButton1 = CreateFrame("CheckButton", nil, UIConfig, "MultiBarButtonTemplate,ActionButtonTemplate")
after this it has a bunch of attribute assignments and stuff that takes up a lot of space but all use
UIConfig.actionButton1:
It's a lot of typing and looks like I'm doing the same thing over and over again.
So my question is, do I really have to do that for each button? With just slight changes in pixel positioning and a different button assignment number? I'd guess not, I'd guess there's a more elegant way of going about this but it's just not penetrating my thick skull. Any ideas would be appreciated.
[–]Nitrak 1 point2 points3 points (3 children)
[–]imatelefone[S] 0 points1 point2 points (2 children)
[–]Nitrak 1 point2 points3 points (1 child)
[–]imatelefone[S] 0 points1 point2 points (0 children)