@@ -18,11 +18,11 @@ local GetNumSpellTabs = C_SpellBook and C_SpellBook.GetNumSpellBookSkillLines or
18
18
local GetSpellTabInfo = (C_SpellBook and C_SpellBook .GetSpellBookSkillLineInfo ) and function (index )
19
19
local skillLineInfo = C_SpellBook .GetSpellBookSkillLineInfo (index );
20
20
if skillLineInfo then
21
- return skillLineInfo .name ,
22
- skillLineInfo .iconID ,
23
- skillLineInfo .itemIndexOffset ,
24
- skillLineInfo .numSpellBookItems ,
25
- skillLineInfo .isGuild ,
21
+ return skillLineInfo .name ,
22
+ skillLineInfo .iconID ,
23
+ skillLineInfo .itemIndexOffset ,
24
+ skillLineInfo .numSpellBookItems ,
25
+ skillLineInfo .isGuild ,
26
26
skillLineInfo .offSpecID ,
27
27
skillLineInfo .shouldHide ,
28
28
skillLineInfo .specID ;
@@ -261,37 +261,36 @@ end
261
261
-- }}}
262
262
263
263
local function GetTalentTreeString ()
264
- if not ClassTalentFrame_LoadUI then
265
- -- maybe classic
266
- if GetTalentTabInfo then
264
+ -- maybe classic
265
+ if GetTalentTabInfo then
267
266
268
- if tonumber (select (3 , GetTalentTabInfo (1 )), 10 ) then
269
- return select (3 , GetTalentTabInfo (1 )) .. " /" .. select (3 , GetTalentTabInfo (2 )) .. " /" .. select (3 , GetTalentTabInfo (3 ))
270
- end
271
-
272
- -- Cataclysm
273
-
274
- for i = 1 , 3 do
275
- if select (8 , GetTalentTabInfo (i )) then
276
- return select (2 , GetTalentTabInfo (i ))
277
- end
278
- end
267
+ -- wlk
268
+ if tonumber (select (3 , GetTalentTabInfo (1 )), 10 ) then
269
+ return select (3 , GetTalentTabInfo (1 )) .. " /" .. select (3 , GetTalentTabInfo (2 )) .. " /" .. select (3 , GetTalentTabInfo (3 ))
279
270
end
280
271
281
- return nil
272
+ -- other
273
+ if tonumber (select (5 , GetTalentTabInfo (1 )), 10 ) then
274
+ return select (5 , GetTalentTabInfo (1 )) .. " /" .. select (5 , GetTalentTabInfo (2 )) .. " /" .. select (5 , GetTalentTabInfo (3 ))
275
+ end
282
276
end
283
277
284
- ClassTalentFrame_LoadUI ()
285
- if (ClassTalentFrame ) and (ClassTalentFrame .TalentsTab ) and (ClassTalentFrame .TalentsTab .GetLoadoutExportString ) then
286
- if ClassTalentFrame .TalentsTab .GetConfigID and ClassTalentFrame .TalentsTab .GetTalentTreeID then
287
- if (not ClassTalentFrame .TalentsTab :GetConfigID ()) or (not ClassTalentFrame .TalentsTab :GetTalentTreeID ()) then
288
- return nil
289
- end
278
+ -- 11.0
279
+ if PlayerSpellsFrame_LoadUI then
280
+ PlayerSpellsFrame_LoadUI ()
281
+
282
+ -- no talent yet
283
+ if not PlayerSpellsFrame .TalentsFrame :GetConfigID () then
284
+ return nil
290
285
end
291
- ClassTalentFrame .TalentsTab :UpdateTreeInfo ()
292
286
293
- return ClassTalentFrame .TalentsTab :GetLoadoutExportString ()
287
+ PlayerSpellsFrame .TalentsFrame :UpdateTreeInfo ()
288
+ if PlayerSpellsFrame .TalentsFrame :GetLoadoutExportString () then
289
+ return PlayerSpellsFrame .TalentsFrame :GetLoadoutExportString ()
290
+ end
294
291
end
292
+
293
+ return nil
295
294
end
296
295
297
296
function MySlot :Export (opt )
0 commit comments