WoWInterface - View Single Post - Issue Changing CraftFrame Colors
View Single Post
05-17-21, 03:02 AM   #1
A Defias Bandit
Join Date: May 2021
Posts: 3
Issue Changing CraftFrame Colors

I have an addon (Lorti-UI-Classic) that recolors the default WoW UI frames. However it's not applied to the craft frame and tradeskill frames. I am trying to add that.

Here's an example of the code it has that successfully recolors the Character frame:

local a, b, c, d, _, e = PaperDollFrame:GetRegions()
for _, v in pairs({a, b, c, d, e

v:SetVertexColor(.35, .35, .35)

When I try to do the same to the CraftFrame window, it throws a Lua error.

The code I used is basically the same as above:

local a, b, c, d, _, e = CraftFrame:GetRegions()
for _, v in pairs({a, b, c, d, e

v:SetVertexColor(.35, .35, .35)

I used "/framestack" to get the names of the windows. I did it for CraftFrame and TradeFrame. The error says:

Message: Interface\AddOns\Lorti-UI-Classic\core\frames.lua:383: attempt to index global 'CraftFrame' (a nil value)

Even if I try to just manually set the region windows without the loop, it still doesn't seem to work. However there is no error -- I think it just doesn't recolor anything.

Any ideas? Thanks in advance!

Last edited by pinkney : 05-17-21 at 05:57 AM.
  Reply With Quote