Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mainbtn = factory("tekPopbar"..actionID, driver, "ActionBarButtonTemplate,SecureHandlerEnterLeaveTemplate")
- mainbtn:SetAttribute("_execute", [[buttons = newtable()]])
- mainbtn:SetAttribute("_onenter", [[
- self:SetAlpha(0.5)
- for _,button in pairs(buttons) do button:Show() end
- ]])
- mainbtn:SetAttribute("_onleave", [[
- self:SetAlpha(1)
- for _,button in pairs(buttons) do button:Hide() end
- ]])
- -- ...
- mainbtn:SetAttribute("_frame-kid", btn)
- mainbtn:SetAttribute("_execute", "buttons["..bar.."] = self:GetAttribute('frameref-kid')")
Add Comment
Please, Sign In to add comment