Download
(3 Kb)
Download
Updated: 06-20-09 06:16 AM
Pictures
File Info
Updated:06-20-09 06:16 AM
Created:04-04-09 06:53 PM
Downloads:7,742
Favorites:53
MD5:
oUF WeaponEnchant  Popular! (More than 5000 hits)
Version: r5
by: Gotai [More]
For those of you updating to r4, take note that I've renamed PostUpdateIcons to PostUpdateEnchantIcons. The former name was too generic and should have been changed before release. Sorry for the inconvenience.

oUF_WeaponEnchant provides you with icons for your temporary weapon enchants. The code works pretty similar to the normal Auras element, mostly because half of it is the same code. All you need to in your layout is create a self.Enchant frame, set its dimensions and any options you want and you're good to go. You will also need to add oUF_WeaponEnchant to your layout's OptionalDependancies.

More information on how to use this can be found at the top of the Lua file.

A large part of the code was written during a sleepless night, so there is a slight chance of some things not working properly. If you happen to find one, please post a comment here and I'll try to fix it as soon as possible. The same goes for any suggestions you might have.

Credits:
haste for oUF and the Auras code, on which this is based.
Caellian for the idea and feedback.
r4:
* Renamed PostUpdateIcons to PostUpdateEnchantIcons to be more specific.
* Blizzard's TemporaryEnchantFrame is now hidden by default.

r3:
Initial commit.
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
r4
3kB
Gotai
04-05-09 10:13 AM


Post A Reply Comment Options
Unread 11-09-11, 11:17 AM  
N3misis
A Kobold Labourer

Forum posts: 0
File comments: 39
Uploads: 0
Hello Gotai ,

size: Size of the enchant icons. (Default: 16)
I have change this Size in Line 59 & 60 ( Lua File ) to 20 but i can not see a Change.
Can you please help me ?


local OnClick = function(self, button)
if button == "RightButton" then
CancelItemTempEnchantment(self.slot == 16 and 1 or 2)
end
OnClick for "cancel " the Buff is not working
i get a Screen Info " that is only for Blizzard UI "
Last edited by N3misis : 11-09-11 at 11:37 AM.
N3misis is offline Report comment to moderator  
Reply With Quote
Unread 02-08-11, 02:58 AM  
Baine
A Murloc Raider
 
Baine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 364
Uploads: 2
3rd Weapon Enchant

since a few patches, rogues are allowed to enchant 3 weapons (mh, oh, thrown)

here's a version of ouf_WeaponEnchant.lua which supports all 3 =)

just replace the contents with the text i've posted using the above link, save, and ya good to go^^

greetings =)
__________________
Baine is offline Report comment to moderator  
Reply With Quote
Unread 07-23-10, 05:52 PM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 133
Uploads: 10
Originally posted by Guardix
hmm the plug-in no longer follows the element principle of oUF. Since 1.4, functions have the element as first argument and 'self' stripped away.
I'll see what I can do to fix this if I can find some time, thanks for the report.
Gotai is offline Report comment to moderator  
Reply With Quote
Unread 07-23-10, 12:30 PM  
Guardix
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 42
File comments: 115
Uploads: 3
hmm the plug-in no longer follows the element principle of oUF. Since 1.4, functions have the element as first argument and 'self' stripped away.
Guardix is offline Report comment to moderator  
Reply With Quote
Unread 06-11-10, 05:41 AM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 133
Uploads: 10
Re: any help on...

That is correct, this plugin needs to be supported by the layout for the icons to show. Can always try asking the author to add support.
Gotai is offline Report comment to moderator  
Reply With Quote
Unread 06-10-10, 09:14 AM  
cocotimbo
A Deviate Faerie Dragon
 
cocotimbo's Avatar

Forum posts: 11
File comments: 62
Uploads: 0
any help on...

Any help on the icon not showing up for oUF_Lumen?
I'm trying to put my UI together and I'm using mostly Caellian stuff except something like oUF_lumen. Is it that Lumen's frames don't support oUF_Weaponenchant probably? I'm not really into lua code and I only try to change very little and see the results. I often manage to get what I want, but not this time.
So if it is lumen that does not let me have weapon enchants icons I will have to think and go back and use oUF_Caellian unit frames which has the compatibility.

Ty for your amazing addons mate.

PS this is the picture of my work in progress UI...

<script src='http://img36.imageshack.us/shareable/?i=43811088.jpg&p=tl' type='text/javascript'></script><noscript></noscript>
Last edited by cocotimbo : 06-10-10 at 12:05 PM.
cocotimbo is offline Report comment to moderator  
Reply With Quote
Unread 06-23-09, 03:59 PM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 133
Uploads: 10
Re: correct time!!

Originally posted by shinchih2001
i download the new version
also have to use double times just can show correct weapon buff time
The problem with weapon enchants is that there doesn't seem to be any indication that the values returned by GetWeaponEnchantInfo have actually been updated after the new enchant is applied. Judging by your comments on Caellian's layout I assume you use that, which is working fine for me. No idea what could be causing the glitch for you, perhaps high(er) latency, I can't say for sure.

What you can try is opening up the Lua file, browse to line 180 (use ctrl-g in Notepad) and change self.elapsed > 1 to self.elapsed > 2 . Unfortunately I can't think of any better way to do this without storing durations for every possible enchant, which I don't want to do.
Gotai is offline Report comment to moderator  
Reply With Quote
Unread 06-23-09, 09:49 AM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 210
Uploads: 0
correct time!!

i download the new version
also have to use double times just can show correct weapon buff time
shinchih2001 is offline Report comment to moderator  
Reply With Quote
Unread 04-05-09, 03:06 PM  
Nightspirit
A Cyclonian
 
Nightspirit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 44
File comments: 139
Uploads: 5
Originally posted by Wimpface
Good work, not that i'll ever use it myself as i don't see why you couldn't just use the default auras for this?
Because even Blizzard makes the weapon enchant differ from the rest of the auras.
Nightspirit is offline Report comment to moderator  
Reply With Quote
Unread 04-05-09, 11:47 AM  
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view AddOns

Forum posts: 631
File comments: 263
Uploads: 23
Good work, not that i'll ever use it myself as i don't see why you couldn't just use the default auras for this?
__________________
All I see is strobe lights blinding me in my hindsight.
Wimpface is offline Report comment to moderator  
Reply With Quote
Unread 04-05-09, 01:24 AM  
Darthgnomer
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 13
Uploads: 1
Frost, Shadow, Wizard, and Mana Oils and warlock Spellstones and Firestones as well.
Darthgnomer is offline Report comment to moderator  
Reply With Quote
Unread 04-04-09, 07:57 PM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 268
File comments: 942
Uploads: 5
Originally posted by DJJoeJoe
Interesting, isn't the only weapon enchants left in the game poisons and fishing?
Shamans: flametongue, windfury and so on.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator  
Reply With Quote
Unread 04-04-09, 07:42 PM  
DJJoeJoe
A Murloc Raider
 
DJJoeJoe's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 5
File comments: 168
Uploads: 1
Interesting, isn't the only weapon enchants left in the game poisons and fishing?
__________________

Joetest - Ner'Zhul - Disciples of Death
DJJoeJoe is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: