Thread Tools Display Modes
01-02-19, 03:27 AM   #1
GreyFox777
A Cliff Giant
Join Date: Jan 2017
Posts: 75
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
  Reply With Quote
01-02-19, 06:47 PM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
It's in the documentation:
https://github.com/oUF-wow/oUF/blob/...s/tags.lua#L40
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Tags onUpdate

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