Download
(4Kb)
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:16,469
Favorites:85
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
Post A Reply Comment Options
Unread 10-30-19, 05:00 AM  
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 583
File comments: 438
Uploads: 22
With swing timers actually mattering for WoW classic, what's the likely hood we see this updated again?

A quick google search found me this which does seem maintained. Though I'm not certain on the legality of it.
__________________
Tweets YouTube Website
Report comment to moderator  
Reply With Quote
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
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: 787
Uploads: 5
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 | YouTube
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
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: 787
Uploads: 5
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 | YouTube
Last edited by Dajova : 05-12-11 at 12:53 PM.
Report comment to moderator  
Reply With Quote
Unread 12-08-10, 02:11 PM  
Rainrider
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 454
File comments: 28
Uploads: 2
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.
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)
Report comment to moderator  
Reply With Quote
Unread 12-01-10, 05:28 PM  
Goldpaw
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 56
File comments: 17
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
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
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 12:51 PM  
Rainrider
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 454
File comments: 28
Uploads: 2
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.
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?
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 08:36 AM  
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 784
File comments: 150
Uploads: 14
did anyone have problems since patch? it doesnt seem to appear for me anymore :/
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
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.
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.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: