Thread Tools Display Modes
11-14-22, 08:33 PM   #1
Beardedrasta
A Murloc Raider
Join Date: Aug 2018
Posts: 7
Talent/Achievement Frame Recolor

I just came back to retail and i have ran into an issue with a couple of my interface scripts to recolor some panels. I modified the character / spellbook and a couple other frames already but for some reason some of them have broken and i cant seem to find the issue, The code works fine if i use it in a kgpanels format but not in my addon script. This is one of the shorter ones maybe make it easier for an answer

Credits for this script goes to SUI creator: Syiana
Not sure if they are active anymore but the scipt isnt updated.

If anybody could help me sort this issue thatd be appreicated.


Code:
 local Module = SUI:NewModule("Skins.Talents");
local _,class = UnitClass("player")

function Module:OnEnable()
  if (SUI:Color()) then
    local f = CreateFrame("Frame")
    f:RegisterEvent("ADDON_LOADED")
    f:SetScript("OnEvent", function(self, event, name)
      if name == "Blizzard_ClassTalentUI" then
for i, v in pairs({
          ClassTalentFrame.NineSlice.TopEdge,
          ClassTalentFrame.NineSlice.RightEdge,
          ClassTalentFrame.NineSlice.BottomEdge,
          ClassTalentFrame.NineSlice.LeftEdge,
          ClassTalentFrame.NineSlice.TopRightCorner,
          ClassTalentFrame.NineSlice.TopLeftCorner,
          ClassTalentFrame.NineSlice.BottomLeftCorner,
          ClassTalentFrame.NineSlice.BottomRightCorner, }) do
            v:SetVertexColor(RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b)
          end
        end)
      end
    end

Last edited by Beardedrasta : 11-14-22 at 10:09 PM.
  Reply With Quote
11-15-22, 12:04 AM   #2
Beardedrasta
A Murloc Raider
Join Date: Aug 2018
Posts: 7
Ive pretty much fixed all the panels now, Just seems the new talent frame has alot of the number codes in the path which dont seem to work the same,,, Number codes as in the random stuff like 1dhg78hh in middle of it
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Talent/Achievement Frame Recolor


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off