vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | function SpecialTalentFrame_LoadUI() |
2 | UIParentLoadAddOn("SpecialTalentUI"); |
||
3 | end |
||
4 | |||
5 | function ToggleTalentFrame() |
||
6 | SpecialTalentFrame_LoadUI(); |
||
7 | if ( SpecialTalentFrame_Toggle ) then |
||
8 | SpecialTalentFrame_Toggle(); |
||
9 | else |
||
10 | TalentFrame_LoadUI(); |
||
11 | if ( TalentFrame_Toggle ) then |
||
12 | TalentFrame_Toggle(); |
||
13 | end |
||
14 | end |
||
15 | end |
||
16 | |||
17 | function UpdateTalentButton() |
||
18 | --[[ Always show talent button |
||
19 | if ( UnitLevel("player") < 10 ) then |
||
20 | TalentMicroButton:Hide(); |
||
21 | QuestLogMicroButton:SetPoint("BOTTOMLEFT", "TalentMicroButton", "BOTTOMLEFT", 0, 0); |
||
22 | else |
||
23 | TalentMicroButton:Show(); |
||
24 | QuestLogMicroButton:SetPoint("BOTTOMLEFT", "TalentMicroButton", "BOTTOMRIGHT", -2, 0); |
||
25 | end |
||
26 | --]] |
||
27 | end |
||
28 | |||
29 | local oldUpdateMicroButtons = UpdateMicroButtons; |
||
30 | function UpdateMicroButtons() |
||
31 | oldUpdateMicroButtons(); |
||
32 | if ( (SpecialTalentFrame and SpecialTalentFrame:IsVisible()) or (TalentFrame and TalentFrame:IsVisible()) ) then |
||
33 | TalentMicroButton:SetButtonState("PUSHED", 1); |
||
34 | else |
||
35 | TalentMicroButton:SetButtonState("NORMAL"); |
||
36 | end |
||
37 | end |