Guest User

Untitled

a guest
Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local mainbtn = factory("tekPopbar"..actionID, driver, "ActionBarButtonTemplate,SecureHandlerEnterLeaveTemplate")
  2.  
  3. mainbtn:SetAttribute("_execute", [[buttons = newtable()]])
  4. mainbtn:SetAttribute("_onenter", [[
  5. self:SetAlpha(0.5)
  6. for _,button in pairs(buttons) do button:Show() end
  7. ]])
  8. mainbtn:SetAttribute("_onleave", [[
  9. self:SetAlpha(1)
  10. for _,button in pairs(buttons) do button:Hide() end
  11. ]])
  12.  
  13. -- ...
  14.  
  15. mainbtn:SetAttribute("_frame-kid", btn)
  16. mainbtn:SetAttribute("_execute", "buttons["..bar.."] = self:GetAttribute('frameref-kid')")
Add Comment
Please, Sign In to add comment