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,771
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 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
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 03-04-11, 11:36 PM  
Daninkai
A Kobold Labourer
 
Daninkai's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 7
Uploads: 1
Originally posted by Allez
install/turn on oUF?
It is. I even removed oUF_Trinkets from the dependencies for my layout and just have it enabled in my addons list I'm still receiving the error.
Last edited by Daninkai : 03-04-11 at 11:38 PM.
Report comment to moderator  
Reply With Quote
Unread 03-04-11, 11:28 PM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 143
Uploads: 4
Originally posted by Daninkai
Getting this error
install/turn on oUF?
Report comment to moderator  
Reply With Quote
Unread 03-04-11, 11:14 PM  
Daninkai
A Kobold Labourer
 
Daninkai's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 7
Uploads: 1
Getting this error
Message: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:3: oUF not loaded
Time: 03/05/11 00:10:47
Count: 1
Stack: [C]: in function `assert'
Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:3: in main chunk

Locals: (*temporary) = nil
(*temporary) = "oUF not loaded"
Report comment to moderator  
Reply With Quote
Unread 12-22-09, 12:50 PM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 428
Uploads: 7
Originally posted by Allez
On any icons spawned by layout with these options. If you add button.cd.noCooldownCount = true in CreateAura it will disable cd in all aura icons. self.Trinket.cooldownFrame.noCooldownCount=true disables cd in this module.
Yeah, so that's exactly my point: I'd love to see another way to determine whether the trinket was used or not without cooldownFrame enabled, e.g. hiding the icon (cause I do indeed use mentioned earlier options in my CreateAuras func).
Report comment to moderator  
Reply With Quote
Unread 12-20-09, 04:14 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 143
Uploads: 4
Originally posted by Monolit
yeah but
button.cd.noCooldownCount = true or icons.disableCooldown = true

disables OmniCC text / spiral textures on any icons spawned by layout
On any icons spawned by layout with these options. If you add button.cd.noCooldownCount = true in CreateAura it will disable cd in all aura icons. self.Trinket.cooldownFrame.noCooldownCount=true disables cd in this module.
Report comment to moderator  
Reply With Quote
Unread 12-20-09, 03:48 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 143
Uploads: 4
Originally posted by psycho36
error still exist i have tried it with oUF_ViV too
can anyone link me his oUF layout with trinket support so i can see what i have to do?
oUF_Allez.rar
Last edited by Allez : 12-20-09 at 03:48 AM.
Report comment to moderator  
Reply With Quote
Unread 12-20-09, 03:23 AM  
psycho36
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Originally posted by Allez
Make sure you added this addon to "## OptionalDeps:" section in .toc file of your layout (in your case oUF_Tukz.toc)
error still exist i have tried it with oUF_ViV too
can anyone link me his oUF layout with trinket support so i can see what i have to do?
Report comment to moderator  
Reply With Quote
Unread 12-19-09, 09:02 PM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 428
Uploads: 7
Originally posted by Allez
I don't think that oUF aura element affects all other cooldown frames. Time spawned by OmniCC
yeah but
button.cd.noCooldownCount = true or icons.disableCooldown = true

disables OmniCC text / spiral textures on any icons spawned by layout
Report comment to moderator  
Reply With Quote
Unread 12-19-09, 08:37 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 143
Uploads: 4
Originally posted by Monolit
Alright, the problem with this module is that you will never get your time/spiral frame to spawn if you disable that spiral frames in your layout.

So basically anyone with
button.cd.noCooldownCount = true or icons.disableCooldown = true
in create aura function will have no time spawned on those trinket icons.

My suggestion: Make an option or some kind of indicator that we can use in our layouts to define the moment when trinket was used, so we would be able to fade the trinket icon out or something.
I don't think that oUF aura element affects all other cooldown frames. Time spawned by OmniCC
Report comment to moderator  
Reply With Quote
Unread 12-19-09, 08:13 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 143
Uploads: 4
Originally posted by psycho36
any time my arena frames spawn i got this error
Code:
oUF_Trinkets.lua:23: attempt to index field '?' (a nil value)
is it possible that it is a conflict with the tukui layout?
Make sure you added this addon to "## OptionalDeps:" section in .toc file of your layout (in your case oUF_Tukz.toc)
Report comment to moderator  
Reply With Quote
Unread 12-19-09, 03:55 AM  
psycho36
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
any time my arena frames spawn i got this error
Code:
oUF_Trinkets.lua:23: attempt to index field '?' (a nil value)
is it possible that it is a conflict with the tukui layout?
Report comment to moderator  
Reply With Quote
Unread 12-18-09, 03:31 PM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 428
Uploads: 7
Alright, the problem with this module is that you will never get your time/spiral frame to spawn if you disable that spiral frames in your layout.

So basically anyone with
button.cd.noCooldownCount = true or icons.disableCooldown = true
in create aura function will have no time spawned on those trinket icons.

My suggestion: Make an option or some kind of indicator that we can use in our layouts to define the moment when trinket was used, so we would be able to fade the trinket icon out or something.
Report comment to moderator  
Reply With Quote
Unread 12-18-09, 11:11 AM  
psycho36
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
i dont know why but i cant get it to work for me i think i´m the problem ^^
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: