View Single Post
02-06-13, 08:38 AM   #4
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
As seen on the screenshot I had some issues working with "Tab" buttons.

I'm currently looking into it. The "OptionsFrameTabButtonTemplate" needs to be adjusted via spacer, as seen here:
https://github.com/tekkub/wow-ui-sou...Frame.xml#L215

So you actually have to add another layer changing the width of the tab.

The default "TabButtonTemplate" was actually quite difficult to find in use. But I found an example:
https://github.com/tekkub/wow-ui-sou...rame.xml#L1167

So the size of the TabButton can be changed via OnLoad script.
Lua Code:
  1. PanelTemplates_TabResize(self, 0);
  2. _G[self:GetName().."HighlightTexture"]:SetWidth(self:GetTextWidth() + 31);

The corresponding function can be found here:
https://github.com/tekkub/wow-ui-sou...lates.lua#L142

So working with tab buttons has to include this kind of onLoad script. Not sure why the script (on the template itself is the onload script) does not work properly since as you can see the tab button has a text applied. Currently not sure. Going to debug that.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 02-06-13 at 09:10 AM.
  Reply With Quote