Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(4 Kb)
Download
Updated: 06-28-11 11:28 AM
Addon for:
oUF.
Updated:06-28-11 11:28 AM
Created:02-08-09 07:58 AM
Downloads:13,830
Favorites:89
MD5:

oUF Swing  Popular! (More than 5000 hits)

Version: 40200.1
by: p3lim, Thalyra

This addon is discontinued.

Description:
oUF Swing is a element plug-in made for the UnitFrame framework oUF.
It is required that you have this addon updated at all times to make everything work as it should.
You can download oUF by clicking on the link located under the "Download" button on the right.

Features:
- Timer for Auto Shot
- Timer for Attack
- Timer for Shoot
- Hide on DualWielding
- Stop while Slaming
- Parryhaste Support
- Dual Wield Support
- Option to Hide on Combat End
- Text fontstring on that bar
- Ability to set custom time format

Note:
Read the documentation inside the lua file for usage.
You need to add this addon to your layout's toc metadata!

40200.1:
- update for 4.2 (i hate COMBAT_LOG_EVENT...)

40100.3:
- the .Text Frames are now reparented to .Twohand, .Mainhand and .Offhand, i had problems with being the text below the bars today ;)

40100.2:
- .Swing is now hidden when no one of the timers is shown

40100.1:
- Patch 4.1 changes
- ToC update

40000.3b:
- Code improvements
- added oUF embedded support

40000.2b:
- Dual Wield support
- completely rewritten (needed for Dual Wield support)

40000.1:
- updated ToC to 40000
- Slam has only got 1 Spell ID left
- no more reaction on instants which have been on-swing attacks

30300.6:
- fixed an error with the time text

30300.5:
- fixed a bug with hiding @ dual wield
- fixed the "laggy" bar when slamming as a warrior

30300.4:
- multilanguage support for dw hiding
- edited one line regarding parryhaste

30300.3:
- Parryhaste Support
- small bug fixed regarding sword specc proccs

30300.2:
- Option to Hide at Combat End
- Stops only while Slaming
- Checks Sword Specc Proccs (not sure if working)

30300.1:
- Updated to 3.3.5
- Hides on DualWielding
- Stops while Casting

30100.3:
- Updated toc to 3.1

30000.2:
- Initial commit
Archived Files (14)
File Name
Version
Size
Author
Date
40100.3
3kB
p3lim
06-05-11 05:52 AM
40100.2
3kB
p3lim
05-19-11 09:37 AM
40100.1
3kB
p3lim
04-30-11 07:43 AM
40000.3b
3kB
p3lim
12-02-10 05:49 AM
40000.2b
3kB
p3lim
11-28-10 09:34 AM
40000.1
2kB
p3lim
10-18-10 11:01 AM
30300.6
2kB
p3lim
10-01-10 04:59 AM
30300.5
2kB
p3lim
09-25-10 08:16 AM
30300.4
3kB
p3lim
08-15-10 05:35 AM
30300.3
2kB
p3lim
08-03-10 08:57 AM
30300.2
2kB
p3lim
07-17-10 07:51 AM
30300.1
1kB
p3lim
07-15-10 04:39 AM
30100.3
1kB
p3lim
04-17-09 09:32 AM
30000.2
1kB
p3lim
02-08-09 07:58 AM


Post A Reply Comment Options
Unread 05-19-11, 09:38 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
uploaded new version

.Swing should be properly hidden when no one of the three timers is shown
Thalyra is offline Report comment to moderator  
Reply With Quote
Unread 05-14-11, 09:10 AM  
Dajova
A Wyrmkin Dreamwalker
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 58
File comments: 791
Uploads: 13
Originally posted by Thalyra
the latest version shows the frame.Swing element always, because it's intended as a normal frame, the enable func normally creates it's own statusbars for twohand, mainhand, offhand (due to dual wield support)

it's showing the background while casting because your swingtimer is parented to your castbar, you can create the elements .Swing.Mainhand, .Swing.Offhand, .Swing.Twohand by yourself

but i think i will change this behaviour a little bit
Well, i tried that, but getting errors saying that it can't find those frames. And it doesnt help when i anchor it to UIParent either. Then it just stays shown all the time.
__________________


Livestream | Twitter | Facebook | YouTube


Dajova is offline Report comment to moderator  
Reply With Quote
Unread 05-13-11, 01:25 PM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
the latest version shows the frame.Swing element always, because it's intended as a normal frame, the enable func normally creates it's own statusbars for twohand, mainhand, offhand (due to dual wield support)

it's showing the background while casting because your swingtimer is parented to your castbar, you can create the elements .Swing.Mainhand, .Swing.Offhand, .Swing.Twohand by yourself

but i think i will change this behaviour a little bit
Thalyra is offline Report comment to moderator  
Reply With Quote
Unread 05-12-11, 12:50 PM  
Dajova
A Wyrmkin Dreamwalker
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 58
File comments: 791
Uploads: 13
For some reason, adding a background to the swingbar in the latest version doesn't seems to work correctly. It does work and all that...

... but as you can see, the background texture i have does not hide with the rest of the plugin while ooc, even with the code enabled.
It hides like it should when i don't cast anything, but as soon as i cast something, the bar shows.

This is the code i use atm:
Code:
			-- swing bar
			if C["unitframes"].swing == true then
				local Swing = CreateFrame("StatusBar", self:GetName().."_Swing", self.Castbar)
				Swing:SetFrameLevel(2)
				if C["unitframes"].cbinside then
					Swing:Point("BOTTOMLEFT", TukuiInfoBottom, "TOPLEFT", 2, 3)
					Swing:Point("BOTTOMRIGHT", TukuiInfoBottom, "TOPRIGHT", -2, 3)
				else
					Swing:Point("TOPLEFT", self.Castbar, "BOTTOMLEFT", 0, -6)
					Swing:Point("TOPRIGHT", self.Castbar, "BOTTOMRIGHT", 0, -6)
				end
				Swing:Height(6)
				Swing:SetStatusBarTexture(normTex)
				Swing:GetStatusBarTexture():SetHorizTile(false)
				Swing:SetStatusBarColor(unpack(C["media"].bordercolor))	-- i like this color :)
						
				Swing.bg = CreateFrame("Frame", nil, Swing)
				Swing.bg:Point("TOPLEFT", -2, 2)
				Swing.bg:Point("BOTTOMRIGHT", 2, -2)
				Swing.bg:SetFrameLevel(Swing:GetFrameLevel() - 1)
				Swing.bg:SetTemplate("Default", true)
				Swing.bg:CreateShadow("Default")

				Swing.disableMelee = false
				Swing.disableRanged = false
				Swing.hideOoc = true
				
				self.Swing = Swing
			end
and no, adding Swing.bg.hideOoc = true does not fix it, i've already tested :P
__________________


Livestream | Twitter | Facebook | YouTube


Last edited by Dajova : 05-12-11 at 12:53 PM.
Dajova is offline Report comment to moderator  
Reply With Quote
Unread 12-08-10, 02:11 PM  
Rainrider
A Rage Talon Dragon Guard

Forum posts: 318
File comments: 26
Uploads: 0
Sorry for asking this if it is somehow apparent, but how do we hide the swing bar ooc? self.Swing.hideOoc = true doesn't seem to function. Do I have to add manually Twohand, Mainhand and Offhand and then hide them?

EDIT: Was my fault sorry. You expect self.Swing to have the texture and color properties, which I was setting via SetStatusBarTexture (self.Swing was defined as a StatusBar in my layout, which apparently isn't a problem). Maybe that was the problem, don't know, but it hides the bar now
Last edited by Rainrider : 12-08-10 at 02:55 PM.
Rainrider is offline Report comment to moderator  
Reply With Quote
Unread 12-02-10, 05:48 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
yes, i do that with the next update (now :P)
Thalyra is offline Report comment to moderator  
Reply With Quote
Unread 12-01-10, 05:28 PM  
Goldpaw
A Cyclonian
 
Goldpaw's Avatar
AddOn Author - Click to view AddOns

Forum posts: 47
File comments: 240
Uploads: 21
Could you please add the following two lines to the start of your .lua file to make it compatible with oUF styles that embed oUF?

Code:
local addon, ns = ...
local oUF = oUF or ns.oUF
Goldpaw is offline Report comment to moderator  
Reply With Quote
Unread 11-28-10, 01:36 PM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
next update will be a .zip
Thalyra is offline Report comment to moderator  
Reply With Quote
Unread 11-28-10, 12:51 PM  
Rainrider
A Rage Talon Dragon Guard

Forum posts: 318
File comments: 26
Uploads: 0
Could you please switch to using the .zip archive format so we could use the MMOUI Minion for updates. Zip is also supported out-of-the-box on windows and OSX, but for .rar an additional program is required.
Rainrider is offline Report comment to moderator  
Reply With Quote
Unread 11-21-10, 05:44 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
for me its working like it should - are you getting any errors?
Thalyra is offline Report comment to moderator  
Reply With Quote
Unread 11-19-10, 08:36 AM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 653
File comments: 705
Uploads: 14
did anyone have problems since patch? it doesnt seem to appear for me anymore :/
Game92 is offline Report comment to moderator  
Reply With Quote
Unread 10-18-10, 11:01 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
Originally posted by yrns
I don't know if Slam's spell ID changed in the patch or what, but I couldn't get this to work until I changed it to 1464.
there are no ranks left, so slam has got the spell id from the old rank 1, i changed it in the new version
Thalyra is offline Report comment to moderator  
Reply With Quote
Unread 10-14-10, 05:40 PM  
yrns
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
I don't know if Slam's spell ID changed in the patch or what, but I couldn't get this to work until I changed it to 1464.
yrns is offline Report comment to moderator  
Reply With Quote
Unread 10-01-10, 09:07 AM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 263
Uploads: 5
Awesome, thank you.
__________________
Proud author of IntricateChatMods, Wanderlust and SimplerMount.
ichik is offline Report comment to moderator  
Reply With Quote
Unread 10-01-10, 05:01 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
Originally posted by ichik


This is what i get with .5, anything changed? .4 worked as charm.
.6 fixes this, it was my bad, i didnt changed "elapsed" to "swingelapsed" at the time text font
Thalyra is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: