Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-30-11, 01:39 PM   #1
Aszeon
A Murloc Raider
Join Date: Mar 2010
Posts: 6
Help creating swingtimer!

Hello guys! Currently using my own version of Mono's oUF layout. From looking at his other modules, I tried adding a swingtimer myself.

So basically, I have imported the oUF_swings into the embeds folder. After this I went to the lib.lua file, and played around with the code. After looking at the other modules, I made a script through the example from oUF_swing.
This is what I came up with;

lib.gen_Swing = function(f)
local Swing = CreateFrame("Frame", nil, self)
Swing:SetWidth(400)
Swing:SetHeight(20)
Swing:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 200)
Swing.texture = [=[Interface\TargetingFrame\UI-StatusBar]=]
Swing.color = {1, 0, 0, 0.8}
Swing.textureBG = [=[Interface\TargetingFrame\UI-StatusBar]=]
Swing.colorBG = {0, 0, 0, 0.8}
end

Now, can somebody tell me why it doesnt work? Any answers or guidelines would be really appreciated. Basically, no swingtimer is showing up on my screen in or out of combat.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Help creating swingtimer!


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off