WoWInterface - View Single Post - Double-click to sign up for a group in the Premade Groups finder
View Single Post
09-10-20, 04:49 PM   #11
A Molten Giant
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 529
Register for ADDON_LOADED so you can execute the code when the talent UI loads.

Lua Code:
  1. local f=CreateFrame("frame")
  2. f:RegisterEvent("ADDON_LOADED")
  3. f:SetScript("OnEvent",function(self,event,addon)
  4.     if addon=="Blizzard_TalentUI" then
  5.         PlayerTalentFrameSpecializationSpecButton1:SetScript("OnDoubleClick",function()SetSpecialization(1)end)
  6.         PlayerTalentFrameSpecializationSpecButton2:SetScript("OnDoubleClick",function()SetSpecialization(2)end)
  7.         PlayerTalentFrameSpecializationSpecButton3:SetScript("OnDoubleClick",function()SetSpecialization(3)end)
  8.     end
  9. end)
  Reply With Quote