View Single Post
11/20/14, 05:42 PM   #1
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Accessing Custom Textures

Is it possible to Access textures in another addons folders?

I'm not planning on using someone elses textures, but was wanting to open an addon up so people can create their own textures that they could register with my addon. I have everything working except I can't figure out how to access the textures in another addons folder. Right now it only works if the other addon registers textures built into the game.

I was trying to use something like this, but nothing is showing up:
Lua Code:
  1. texture = "/OtherAddonName/textures/some_custom_texture.dds"
  2. cCntrl:GetNamedChild("Texture"):SetTexture(texture)

While I'm at it what is the difference, if any, to using either of these:
Lua Code:
  1. texture = "/OtherAddonName/textures/some_custome_texture.dds"
  2. texture = [[/OtherAddonName/textures/some_custome_texture.dds]]
  Reply With Quote