Elitist Jerks
Register
Blogs
Urban Rivals
Forums
New Posts


Go Back   Elitist Jerks > Blogs > Zorks interface blog
Elitist Jerks Login

gamerDNA Login

Welcome to Elitist Jerks
We're testing some new features on the site regarding OpenID registration and coordination with gamerDNA. If you experience any issues with registering an account, please take the time to fill out a report and send it to this e-mail address. We would appreciate any assistance you could provide in making sure everything is functioning as intended. Thanks!

If this is your first visit, please be sure to check out the FAQ and the forum rules. Users must register to post and new registrations are subject to a one day "mute" period to get acquainted with the community.

Me blogging about random interface topics.
Rate this Entry

How to make addons start walking

Posted 08/07/09 at 9:33 AM by zork
Updated 08/07/09 at 7:56 PM by zork
For some reason the animation fogs (RedRadiationFog.m2) stopped working with patch 3.2, which had a major impact on my UI since the glow stopped working. So I had to develop a different solution.

I had already tried some stuff with rotating textures before, so my first thought was: "Lets try to overlay 1-3 cloudish textures with blendmode and let them rotate on the orb".

No sooner said than done, I started a new testmod called rGalaxy. My idea was to have 1-3 galaxies rotate on the orb background instead of the glow.

The question in place was: "What technique shall I use to make that thing rotate?"

I remembered myself of the animation system that Blizzard released in 3.1.0 and that is bugged like hell. (Hello animation:Stop() crashing WoW!)

I google'd a bit and found "Blackbox".
WoW AddOns - BlackBox - CurseForge.com

A neat developer addon with a small black box that can be pushed around with the mouse. His code helped me alot to create rGalaxy which should just create some textures that should rotate constantly.

So this is it.

Code:
trunk - rothui - Project Hosting on Google Code

Final product:
rGalaxy : WoWInterface Downloads : Graphic UI Mods

Video: Roth UI new galaxy animation

Now why have you done this again? To make my orbs look like this:

See those swirlies? That are galaxies, three of them at different size and rotation speed.

Latest version:


This is only step one. To make it even more random you can add translations (move the animation around), scale it and change the alpha.

Hmm...does Blizzard even use it? Yes they do, for the glyph window:
Blizzard_GlyphUI.xml
Blizzard_GlyphUI.lua

Blizzard WoW animation API
World of Warcraft - English (NA) Forums -> 3.1.0 API Changes - Animation System

So if you need some more inspiration you can look at Blizzards code aswell.

Digg this Post! Add Post to del.icio.us Bookmark Post in Technorati Furl this Post!
Posted in Addon Creation
Comments 0 Email Blog Entry
Total Comments 0

Comments

 
Total Trackbacks 0

Trackbacks

Recent Blog Entries by zork