WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Tags onUpdate (https://www.wowinterface.com/forums/showthread.php?t=56939)

GreyFox777 01-02-19 03:27 AM

Tags onUpdate
 
Can someome explain me how to update the tag onUpdate?

Code:

-- PVP Timer
tags['myaddon:pvptimer'] = function(self, elapsed)


local sec = math.floor(GetPVPTimer()/1000)
                if( GetPVPTimer() >= 300000 ) then
                        return nil
                end
               
                return string.format(GetPVPTimer() / 1000)
end


p3lim 01-02-19 06:47 PM

It's in the documentation:
https://github.com/oUF-wow/oUF/blob/...s/tags.lua#L40


All times are GMT -6. The time now is 04:28 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2019 MMOUI