View Single Post
05-04-16, 02:43 PM   #17
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Loaded the texture using both notations and it's working fine using either of these.
Code:
"Interface\\ChatFrame\\ChatFrameColorSwatch"
[[Interface\ChatFrame\ChatFrameColorSwatch]]


Here's a copy of the test code:
Lua Code:
  1. local tex=UIParent:CreateTexture(nil,"BACKGROUND");
  2. tex:SetTexture("Interface\\ChatFrame\\ChatFrameColorSwatch");
  3. tex:SetPoint("CENTER");
  4. tex:SetSize(16,16);
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)