Jump to content

How to add Additional Talent Tabs - Trinitycore

By countallister
in Interface

Recommended Posts

The first and easiest things to do is make edits to your core. 

Go to your solution and open up SharedDefines.h in the Shared folder.
Change the definition for Max Talent Trees from 3 to your number of desired tabs, in this case it is 4.
e364447507d2bd4d2bb3927886e0f865.png


Now go to DBCEnums.h and find this, and do the same, increase it to the number of tabs you want. Here we enter 4.
80ae597309c55a2cfde30470d1b33149.png


Further down in SharedDefines.h find trees and add your specs tab id, this is our fourth one so we punch it in as 3 because it starts at 0.
50d0738251edca46ca37b788499bad62.png









In this tutorial we are also gonna add the skill for the talent tree, make sure to add it to the enum here
2643b63ec16dda22ca3559315c325e3f.png


Now I go over here and enter my skillline in skillline.dbc
4e74a072b6795e8902d52732f361d933.png


Now we open up TalentTab.dbc to punch in our custom talent tab, Im gonna call it Primal for shamans. Classmask is in column 21, SpellIcon id is in 19, and the directory to the backround for the talent pane is in column 24.
8be808d435713f1bbd8f5ec071190b1b.png





Now we go and add talents to our new talent tab id.

23a91256930f56941d135cec411aa791.png


Now its time to get to the UI work. 

Navigate over to Blizzard_TalentUI.lua and xml in the Addons and Blizzard_TalentUI directory.  Change the glyph tab to be the tab number +1 to your custom tabs, we have 4 so glyphs are tab 5. 

39a22ed226e48582977ffc1758009c08.png


Next we need to actually add the tab so edit the .xml file to copy PlayerTalentFrameTab3 and name it PlayerTalentFrameTab4, then anchor it to 3.

Then edit the glyph tab to anchor to tab 4 and change its ID to tab 5.


f7a4a61b1a55608af74583fc9981ad3e.png


Now go to Interface, FrameXML, and edit TalentFrameBase.lua to change the max_talent_tab variable from 3 to 4.

bd0f9319a7cd77b8b8fc6e3e160a3032.png

and now finally, in Interface\TalentFrame you add in your image of your talent pane. I extracted existing ones for warriors and cut it the same way and named the extensions to the ones in TalentTab.dbc followed by -Part. so ShamanStonewarden-BottomLeft is the bottom left section of the image.


cec2c102ffd5317c6018537b8d1a4d18.png





So finally, once your server is recompiled, your client edited and you remembered to put the dbc files not just in your patch but in the server directory, restart it and VIOLA!


63e5b213e974ab49dc1bd117ddf6cb72.png
 

Link to comment
Share on other sites

×
×
  • Create New...