Thread Tools Display Modes
04-15-23, 07:03 AM   #1
A Flamescale Wyrmkin
Benalish's Avatar
Join Date: Dec 2012
Posts: 122
Relative path file

Hello. In the folder where the .lua, .xml and .toc files are present, there is a subfolder called "media" where the "thumb.blp" file is present. What is the right syntax to load this file? I tried




but none of them work. Do I have to write the whole path?
  Reply With Quote
04-15-23, 09:01 AM   #2
I did that?
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,831
or create a variable for the textures path

local TexturePath = "Inteface\\AddOns\\Your-Addon-Folder\\Media\\"
and use
thisTexture:SetTexture(TexturePath .. "Thumb")
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Relative path file

Thread Tools
Display Modes

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