• 0

    posted a message on Odd re-texture problem.
    Much appreciated. Before this my most involved AddOn was to play a sound-file on level-up. As an aside, are there any "best practices" for AddOn development?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Odd re-texture problem.
    I wrote a quick add-on that is triggered by triggers in chat located through strfind and the various CHAT_MSG_* events. When the trigger is used it will change the texture of a frame (I only use the one frame) and display it. All images are 24-bit RLE-compressed .tga images and all display properly within WoW. The issue I am having is that sometimes the texture will get "stuck" and not change.

    I had added debugging stuff to make sure that the texture was pathed to the right location and that all arguments are being passed. I know that I didn't follow some good practice like making the frame in XML rather than in the Lua code itself. Below is a pastebin link to the code in question. If anyone has suggestions other than to fix my proposed issue, please let me know. :) Anything that improves this project is a plus in my book. :)

    http://pastebin.com/f1c434e25
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.