View Single Post
09-20-22, 11:28 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,941
I found these in the TalentUI lua file which may help you - good luck


Lua Code:
  1. local activeTalentGroup, numTalentGroups = GetActiveSpecGroup(false), GetNumSpecGroups(false);
  2. PlayerTalentFrame.primaryTree = GetSpecialization(PlayerTalentFrame.inspect, false, PlayerTalentFrame.talentGroup);
  3. local primaryTree = GetSpecialization(false, false, spec.talentGroup);

Lua Code:
  1. local numSpecs = GetNumSpecializations(false, self.isPet);
  2. for i = 1,numSpecs do
  3. local _, name, description, icon = GetSpecializationInfo(i, false, self.isPet, nil, sex);
  4. local role = GetSpecializationRole(i, false, self.isPet);
  5. end

Where specs is this local table and spec an element in it
Lua Code:
  1. local specs = {
  2.     ["spec1"] = {
  3.         name = SPECIALIZATION_PRIMARY,
  4.         nameActive = TALENT_SPEC_PRIMARY_ACTIVE,
  5.         specName = SPECIALIZATION_PRIMARY,
  6.         specNameActive = SPECIALIZATION_PRIMARY_ACTIVE,
  7.         talentGroup = 1,
  8.         tooltip = SPECIALIZATION_PRIMARY,
  9.         defaultSpecTexture = "Interface\\Icons\\Ability_Marksmanship",
  10.     },
  11.     ["spec2"] = {
  12.         name = SPECIALIZATION_SECONDARY,
  13.         nameActive = TALENT_SPEC_SECONDARY_ACTIVE,
  14.         specName = SPECIALIZATION_SECONDARY,
  15.         specNameActive = SPECIALIZATION_SECONDARY_ACTIVE,
  16.         talentGroup = 2,
  17.         tooltip = SPECIALIZATION_SECONDARY,
  18.         defaultSpecTexture = "Interface\\Icons\\Ability_Marksmanship",
  19.     },
  20. };
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote