1
1
local E , L , V , P , G = unpack (ElvUI )
2
2
local DT = E :GetModule (' DataTexts' )
3
3
4
- if not (E .Wrath or E .ClassicSOD ) then return end
5
-
6
4
local _G = _G
7
5
local format , strjoin = format , strjoin
8
6
local HideUIPanel = HideUIPanel
@@ -29,7 +27,7 @@ local function BuildTalentString(talentGroup)
29
27
30
28
for i = 1 , MAX_TALENT_TABS do
31
29
local _ , _ , pointsSpent = GetTalentTabInfo (i , false , false , talentGroup )
32
- if ( str == ' ' ) then
30
+ if str == ' ' then
33
31
str = pointsSpent
34
32
else
35
33
str = strjoin (' /' , str , pointsSpent )
59
57
local function OnEnter ()
60
58
DT .tooltip :ClearLines ()
61
59
62
- DT .tooltip :AddDoubleLine (format (' %s: %s' , ColorText (PRIMARY , activeGroup == 1 and ' 0CD809' or ' FFFFFF' ), primaryStr ))
60
+ local primary = format (' %s: %s' , ColorText (PRIMARY , activeGroup == 1 and ' 0CD809' or ' FFFFFF' ), primaryStr )
61
+ DT .tooltip :AddDoubleLine (primary )
63
62
64
63
if hasDualSpec then
65
- DT .tooltip :AddDoubleLine (format (' %s: %s' , ColorText (SECONDARY , activeGroup == 2 and ' 0CD809' or ' FFFFFF' ), secondaryStr ))
64
+ local secondary = format (' %s: %s' , ColorText (SECONDARY , activeGroup == 2 and ' 0CD809' or ' FFFFFF' ), secondaryStr )
65
+ DT .tooltip :AddDoubleLine (secondary )
66
66
end
67
67
68
68
DT .tooltip :AddLine (' ' )
@@ -87,10 +87,8 @@ local function OnClick(_, button)
87
87
else
88
88
HideUIPanel (_G .PlayerTalentFrame )
89
89
end
90
- else
91
- if hasDualSpec then
92
- SetActiveTalentGroup (activeGroup == 1 and 2 or 1 )
93
- end
90
+ elseif hasDualSpec then
91
+ SetActiveTalentGroup (activeGroup == 1 and 2 or 1 )
94
92
end
95
93
end
96
94
end
0 commit comments