View Single Post
05/13/17, 05:44 AM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
Your texture could not be loaded, so it is displayed as a white box. The white box is tinted yellow because of
nameplate.monsterDiff:SetColor(240,100,0,1)

The texure could not be loaded because iconCFG.defaultboss[normal] returns nil in your code.
Lua Code:
  1. defaultboss = {
  2.             normal      = Myaddon.name .. '/textures/bossicon1.dds',
  3.     }
This lua code means the table defaultboss has a field called normal, which contains the path to the texture. However, when calling defaultboss[normal] lua will interpret normal as a variable and not the name of the field.
You need to call iconCFG.defaultboss.normal or iconCFG.defaultboss["normal"]
  Reply With Quote