WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Two frame Cooldown question (https://www.wowinterface.com/forums/showthread.php?t=52681)

Benalish 09-02-15 04:54 AM

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

Phanx 09-10-15 12:42 AM

#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)

Benalish 09-10-15 03:16 AM

GetWeaponEnchantInfo() tell you the time remaining for the weapon enchant, as thousandths of seconds, not the duration :p

Resike 09-10-15 05:32 AM

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.

Phanx 09-16-15 04:28 PM

Quote:

Originally Posted by Benalish (Post 310888)
GetWeaponEnchantInfo() tell you the time remaining for the weapon enchant, as thousandths of seconds, not the duration :p

Yes, that's what I meant by "duration"... I guess I should have said "remaining duration".


All times are GMT -6. The time now is 12:30 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI