Download
(2Kb)
Download
Updated: 05-03-11 11:57 PM
Pictures
File Info
Updated:05-03-11 11:57 PM
Created:12-17-09 03:08 AM
Downloads:5,781
Favorites:21
MD5:

oUF Trinkets  Popular! (More than 5000 hits)

Version: 40100.1-Beta
by: Allez [More]

Adds trinket status to oUF, allowing you to see if an unit has used its PvP trinket.

Example usage:
(arena frames only)

Code:
if (unit and unit:find('arena%d') and (not unit:find("arena%dtarget")) and (not unit:find("arena%dpet"))) then
	self.Trinket = CreateFrame("Frame", nil, self)
	self.Trinket:SetHeight(27)
	self.Trinket:SetWidth(27)
	self.Trinket:SetPoint("TOPRIGHT", self, "TOPLEFT", -4, 1)
	self.Trinket.trinketUseAnnounce = true
	self.Trinket.trinketUpAnnounce = true
end
(all frames)
Code:
	local trinket = self.Health:CreateFontString(nil, 'OVERLAY')
	trinket:SetPoint("CENTER")
	trinket:SetFont(GameFontNormal:GetFont(),13)
	trinket.frequentUpdates = 0.25
	self:Tag(trinket, '[trinket]')
You will need to add oUF_Trinkets in the optional dependencies of your layout in the TOC file.
You can use OmniCC to display cooldown count text

40100.1-Beta
* update for patch 4.1

40000.1-Beta
* .toc update

30300.4-Beta
* support for embedded oUF

30300.3-Beta
* 45 second shared cooldown with Will of the Forsaken
* Added [trinket] tag. Works with all units
* Reset all trinkets status when changed area
* Added options to display trinket usage announcement

30300.2-Alpha
* bug fix release
Post A Reply Comment Options
Unread 05-03-11, 05:33 PM  
Thedeath
A Kobold Labourer

Forum posts: 0
File comments: 20
Uploads: 0
can i add this to default frames?
can u do it if no?
Report comment to moderator  
Reply With Quote
Unread 01-28-12, 06:43 PM  
Caelis
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
iIm using a heavy modified simple2 layout, and i can't for the life of me get this to work or actually figure out where to add the lines of code.

Is there anybody that can help me get this to work?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: