Download
(2 Kb)
Download
Updated: 05-03-11 11:57 PM
Pictures
File Info
Updated:05-03-11 11:57 PM
Created:12-17-09 02:08 AM
Downloads:3,866
Favorites:19
MD5:
oUF Trinkets
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
Archived Files (5)
File Name
Version
Size
Author
Date
40000.1-Beta
2kB
Allez
10-12-10 05:45 AM
30300.4-Beta
2kB
Allez
06-27-10 11:20 PM
30300.3-Beta
2kB
Allez
01-17-10 08:44 AM
30300.2-Alpha
1kB
Allez
12-18-09 05:17 AM
30300.1-Alpha
1kB
Allez
12-17-09 02:08 AM


Post A Reply Comment Options
Old 12-18-09, 02:04 AM  
psycho36
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
error

i got this two errors

Code:
Message: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:25: attempt to index field '?' (a nil value)
Time: 12/18/09 10:03:10
Count: 5
Stack: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:25: in function <Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:6>

Locals: self = <unnamed> {
 0 = <userdata>
}
event = "ARENA_OPPONENT_UPDATE"
unit = "arenapet2"
type = "seen"
(*temporary) = nil
(*temporary) = "arenapet2"
(*temporary) = "Alliance"
(*temporary) = "Alliance"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
arenaGUID = <table> {
 -2147483648 = "arenapet2"
 -2147483648 = "arena1"
 -2147483648 = "arena2"
 -2147483648 = "arenapet2"
}
trinkets = <table> {
}
Code:
Message: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:38: attempt to index field '?' (a nil value)
Time: 12/18/09 10:02:37
Count: 1
Stack: Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:38: in function `TrinketUsed'
Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:13: in function <Interface\AddOns\oUF_Trinkets\oUF_Trinkets.lua:6>

Locals: unit = "arena1"
(*temporary) = <function> defined @Interface\FrameXML\Cooldown.lua:2
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
trinkets = <table> {
}
psycho36 is offline Report comment to moderator  
Reply With Quote
Old 12-18-09, 05:11 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 140
Uploads: 4
Try to replace line 20 in oUF_Trinkets.lua
Code:
				if (UnitExists(unit)) then
by this
Code:
				if (UnitExists(unit) and UnitIsPlayer(unit)) then
Allez is offline Report comment to moderator  
Reply With Quote
Old 12-18-09, 10: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 im the problem ^^
psycho36 is offline Report comment to moderator  
Reply With Quote
Old 12-18-09, 02:31 PM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 430
Uploads: 8
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.
Monolit is offline Report comment to moderator  
Reply With Quote
Old 12-19-09, 02: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?
psycho36 is offline Report comment to moderator  
Reply With Quote
Old 12-19-09, 07:13 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 140
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)
Allez is offline Report comment to moderator  
Reply With Quote
Old 12-19-09, 07:37 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 140
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
Allez is offline Report comment to moderator  
Reply With Quote
Old 12-19-09, 08:02 PM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 430
Uploads: 8
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
Monolit is offline Report comment to moderator  
Reply With Quote
Old 12-20-09, 02: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?
psycho36 is offline Report comment to moderator  
Reply With Quote
Old 12-20-09, 02:48 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 140
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 02:48 AM.
Allez is offline Report comment to moderator  
Reply With Quote
Old 12-20-09, 03:14 AM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 140
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.
Allez is offline Report comment to moderator  
Reply With Quote
Old 12-22-09, 11:50 AM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 430
Uploads: 8
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).
Monolit is offline Report comment to moderator  
Reply With Quote
Old 03-04-11, 10:14 PM  
Daninkai
A Kobold Labourer
 
Daninkai's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 7
Uploads: 3
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"
Daninkai is offline Report comment to moderator  
Reply With Quote
Old 03-04-11, 10:28 PM  
Allez
A Kobold Labourer
AddOn Author - Click to view AddOns

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

Forum posts: 1
File comments: 7
Uploads: 3
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 10:38 PM.
Daninkai is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: