1. #1

    GetSpellTexture not returning file path

    Hello,

    Im trying to get the file path for specific spell icons that was available through GetSpellInfo, but in the patch it no longer returns the file path and so we must use GetSpellTexture instead. However, despite many API sites saying it returns the file path (ie Icons\\Spell\\SpellIconFile.tga), it only returns a numeric value which can only be used with SetTexture. Due to the fact im using a frame which is to be skinned with the icon file path, I need to use SetBackdrop as SetTexture does not work with frames (unless im doing something wrong) but the numeric value returned from GetSpellTexture cant be used with SetBackdrop.

    So im at a complete loss on how to obtain the icon's exact file path, any ideas?

    Thanks!

  2. #2
    There is no way in the game to obtain the path from a texture file id, sorry.
    There is some out-of-game resources to do this, if you only need it for a few spells manually, but it doesn't sound like this would apply to you.

    Maybe it would be more appropriate to change the way your frame is painted to allow using SetTexture on a separate backdrop frame, instead of using SetBackdrop for it.
    Last edited by Nevcairiel; 2016-07-25 at 08:46 AM.

  3. #3
    hm that sucks

    what can i change the frame too to allow for SetTexture to work?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •