Thread Tools Display Modes
09-02-15, 04:54 AM   #1
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 122
Two frame Cooldown question

I have two questions about the frame Cooldown:

The first is: if I want monitor the duration of a temporary enchant weapon through APIs GetWeaponEnchantInfo() and cd:SetCooldown (start, duration), how can I retrieve the start and duration values?

The second is: How can I avoid, once the cooldown finish, the flash animation?

Thank you in advance
  Reply With Quote
09-10-15, 12:42 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
#1 - GetWeaponEnchantInfo() tells you the duration. To find the start time, I'd just record the time the enchant first appeared.

#2 - cooldown:SetDrawBling(false)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
09-10-15, 03:16 AM   #3
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 122
GetWeaponEnchantInfo() tell you the time remaining for the weapon enchant, as thousandths of seconds, not the duration
  Reply With Quote
09-10-15, 05:32 AM   #4
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Since you gain a buff when you apply the enchant i would try to investigate that buff. Also make sure to update stuff when the player switching weapons too.

I happen to write a buff/debuff/weapon enchant/consolidated buff frames today, maybe i can help wou with it when it's finished.

Last edited by Resike : 09-10-15 at 05:35 AM.
  Reply With Quote
09-16-15, 04:28 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Benalish View Post
GetWeaponEnchantInfo() tell you the time remaining for the weapon enchant, as thousandths of seconds, not the duration
Yes, that's what I meant by "duration"... I guess I should have said "remaining duration".
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Two frame Cooldown question

Thread Tools
Display Modes

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