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,478
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 08-01-10, 04:44 PM  
korn3r
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 16
Uploads: 1
hi
just awesome addon

i have a problem
i see "Hides on DualWielding" in changelog, but it doesnt hides for me (Fury Warrior).
maybe i`m doing something wrong or it doesnt hides in latest build?
sry for my english

here`s my code
Code:
		if(IsAddOnLoaded("oUF_Swing")) then      
			self.Swing = CreateFrame('StatusBar', nil, self)
			self.Swing:SetPoint('TOP', self.Health, 'BOTTOM', 0, -30)
			self.Swing:SetStatusBarTexture(sett1ngs.texture)
			self.Swing:GetStatusBarTexture():SetHorizTile(false)
			self.Swing:SetStatusBarColor(0.3, 0.5, 0.2)   
			self.Swing:SetHeight(4)
			self.Swing:SetWidth(sett1ngs.mX)

			self.Swing.Text = self.Swing:CreateFontString(nil, "OVERLAY")
			self.Swing.Text:SetFont(sett1ngs.font, sett1ngs.fontsize, "THINOUTLINE")
			self.Swing.Text:SetPoint("BOTTOMRIGHT", self.Swing, "TOPRIGHT", 0,1)
			self.Swing.bd = SetBD(self.Swing, backdrop, sett1ngs.bcolor)   
		end
Report comment to moderator  
Reply With Quote
Unread 08-03-10, 05:36 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
hmm, for me its working with your code

do you get any lua errors?
Report comment to moderator  
Reply With Quote
Unread 08-03-10, 05:54 AM  
korn3r
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 16
Uploads: 1
no errors
bar just dont hides on dualwielding
timer resets each time i hit with my offhand

edit:
just checked on my rogue - everything is ok on it (bar properly hides when i`m dualwielding)
checked warrior with 2x1h weapons - still doesnt hides
Last edited by korn3r : 08-03-10 at 06:09 AM.
Report comment to moderator  
Reply With Quote
Unread 08-03-10, 08:59 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
thats a strange behaviour, on my warrior the hiding works normally

you could try the newest version (30300.3), but on the dw-hiding code i didnt changed anything
Report comment to moderator  
Reply With Quote
Unread 08-03-10, 10:00 AM  
korn3r
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 16
Uploads: 1
found problem...
i`m playing on RU realms and i have localized item types (my "testing" rogue is on EU )
so "itemType ~= "Weapon"" should be "itemType ~= "Оружие"" for me

is there a chance to change func to something like
if itemType ~= GetItemInfo(25) then
i mean not hardly write Weapon in code, but get localized type from other item like "Worn Shortsword" (id 25)

ofc i could change line 89 for myself to
if ( itemType ~= "Weapon" and itemType ~= "Оружие" ) then
but i think it would be nice to have multilangual support "out-of-box"
Last edited by korn3r : 08-03-10 at 10:05 AM.
Report comment to moderator  
Reply With Quote
Unread 08-03-10, 10:42 AM  
Thalyra
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 46
Uploads: 1
i will change this with the next version (i hope i get an idea for dw support soon )
Report comment to moderator  
Reply With Quote
Unread 08-05-10, 08:53 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Do the following (ingame) and see if it returns "Оружие"
Code:
/run print(ENCHSLOT_WEAPON)
If it does, you can use that global string instead of a localized one.
Report comment to moderator  
Reply With Quote
Unread 08-06-10, 12:44 AM  
korn3r
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 16
Uploads: 1
yes it does. thanks)
Report comment to moderator  
Reply With Quote
Unread 09-29-10, 06:21 AM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 263
Uploads: 5


This is what i get with .5, anything changed? .4 worked as charm.
__________________
Proud author of IntricateChatMods, Wanderlust and SimplerMount.
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
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
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-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 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 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
Post A Reply



Category Jump: