WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Classic - AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=179)
-   -   Energy tick rate (https://www.wowinterface.com/forums/showthread.php?t=57544)

tirafesi 09-24-19 12:22 PM

Energy tick rate
 
I made a frame to track energy tick rates, but how do I sync it?

I started counting 2s from the first OnUpdate, but that doesn't work.

When does the first energy tick happen?

Kanegasi 09-24-19 03:31 PM

There is nothing you can use to directly tell you about energy ticks, you can only sync them with the event UNIT_ENERGY. It always fires when you login to a rogue, which should be the start of the tick, so start your OnUpdate count on that event. If it still isn't syncing up, try coding it to resync itself every time it measures an energy increase outside of combat.

tirafesi 09-25-19 07:16 AM

Quote:

Originally Posted by Kanegasi (Post 333963)
There is nothing you can use to directly tell you about energy ticks, you can only sync them with the event UNIT_ENERGY. It always fires when you login to a rogue, which should be the start of the tick, so start your OnUpdate count on that event.

I tried this using the events UNIT_POWER_UPDATE and UNIT_POWER_FREQUENT - UNIT_ENERGY no longer exists - but the events don't fire when logging in.

Kanegasi 09-25-19 09:29 AM

My bad. I was looking at how IceHUD does their energy tick, which is what I use, and I missed the part of the code that checks for WoW version.


All times are GMT -6. The time now is 03:55 PM.

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