Quantcast WoWInterface - View Single Post - Two Questions: Learning LUA & Custom Animations in game
View Single Post
04-10-13, 03:57 PM   #5
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Aryae21 View Post
... I've tried adjusting it to test one that is on my desktop but all I got was the unloaded blue box.
WoW can't see anything outside of its program directory, and I'm not sure if it can see custom files (eg. not files with the same name/path as files from the MPQs) outside of the Interface\AddOns file.

Try putting your custom model in your addon's folder:

World of Warcraft > Interface > AddOns > MyAddOn > model.file

Then reference it in-game using a path relative to the program folder:


Also, most "animated textures" you see in-game are not actually animated like a GIF image file or a movie file. They're just clever use of size, opacity, and rotation transitions to create simple pulsing or shining effects.

Textures that are actually animated (eg. the eye icon on the LFG minimap button while you're queued) are done using sprites -- one image file contains 20 or so "frames" for the animation, laid out in a grid, and a script changes which part of the image is shown on the in-game object several every 1/10th ofa second or so.
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote