Download
(46 Kb)
Download
Updated: 08-06-09 02:09 PM
Pictures
File Info
Updated:08-06-09 02:09 PM
Created:08-06-09 02:09 PM
Downloads:1,558
Favorites:2
MD5:
rGalaxy
Version: 001
by: zork [More]
WHAT IS THIS?
This is my testmod that is using the new Blizzard animation system that is bugged like crap but still works in some ways.

This mod shows how you can create a rotating texture...in fact I create 3 of them at different size, rotationspeed, alpha and position.

Its even posible to do a translation of the positions aswell but I had no luck doing it until now.

WHY?
Because Blizzard killed the m2-files and I am looking for an alternative. Blackbox showed me the general idea.

Code:
http://code.google.com/p/rothui/sour...trunk/rGalaxy/

Code:
  --Blizzard documentation
  --http://forums.worldofwarcraft.com/thread.html?sid=1&topicId=15443414368
  
  --Black box
  --http://wow.curseforge.com/addons/blackboxlua/

  local function createme(x,y,size,alpha,dur)
    local h = CreateFrame("Frame",nil,UIParent)
    h:SetHeight(size)
    h:SetWidth(size)		  
    h:SetPoint("CENTER",x,y)
    h:SetAlpha(alpha)
  
    local t = h:CreateTexture()
    t:SetAllPoints(h)
    t:SetTexture("Interface\\AddOns\\rGalaxy\\galaxy")
    h.t = t
    
    local ag = h:CreateAnimationGroup()
    h.ag = ag
    
    local a1 = h.ag:CreateAnimation("Rotation")
    a1:SetDegrees(360)
    a1:SetDuration(dur)
    h.ag.a1 = a1
    
    h:SetScript("OnUpdate",function(self,elapsed)
      local t = self.total
      if (not t) then
        self.total = 0
        return
      end
      t = t + elapsed
      if (t<1) then
        self.total = t
        return
      else
        h.ag:Play()
      end
    end)
    
    return h
  
  end
  
  local a = createme(0,0,100,0.8,20)
  local b = createme(5,0,130,0.5,10)
  local c = createme(5,5,120,0.6,15)
Optional Files (0)


Post A Reply Comment Options
Old 09-01-09, 05:07 PM  
DDjusD
A Murloc Raider

Forum posts: 6
File comments: 13
Uploads: 0
how

ok I downloaded this to try and place it on a party of my UI cause it kinda looks cool so how do I move it?
DDjusD is offline Report comment to moderator  
Reply With Quote
Old 09-03-09, 12:38 PM  
Noth
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Re: how

Originally posted by DDjusD
ok I downloaded this to try and place it on a party of my UI cause it kinda looks cool so how do I move it?
Same for me. Although since this addon havent got an addon manager, but i have figured as far that you need to modify the LUA for changing the location. but i have no experience in lua editing and all so i have no clue were to change... if the author could provide with the needed info it would be appreaciated. also, i see that you have "2" of your galaxy addon on your screenshot, i'd really like to know how this is done.
Noth is offline Report comment to moderator  
Reply With Quote
Old 09-03-09, 01:24 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1289
File comments: 3270
Uploads: 84
This mod is for addon developers only. Don't hurt yourself.
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI FAQ | GoogleCode | Zork | Guild | zorker.de

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Old 10-24-09, 12:23 PM  
vlakarados
An Aku'mai Servant
 
vlakarados's Avatar
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 133
Uploads: 6
any chance seeing some cool animation for bars?
my oUF status bars are missing it
vlakarados is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: