added buff icons

Maybe I should not use this ElvUI table... but I don't know what default
icons to use :(
This commit is contained in:
Sergio Álvarez 2014-11-05 07:31:29 +01:00
parent c5ee8c0345
commit d59498e54c
3 changed files with 16 additions and 2 deletions

View File

@ -2,6 +2,19 @@
local addonName, addonNS = ... local addonName, addonNS = ...
local ldb = LibStub("LibDataBroker-1.1") local ldb = LibStub("LibDataBroker-1.1")
local defaults = {}
defaults.statIcons = { -- thanks ElvUI/modules/auras/consolidatedBuffs.lua
[1] = "Interface\\Icons\\Spell_Magic_GreaterBlessingofKings", -- Stats
[2] = "Interface\\Icons\\Spell_Holy_WordFortitude", -- Stamina
[3] = "Interface\\Icons\\INV_Misc_Horn_02", --Attack Power
[4] = "Interface\\Icons\\INV_Helmet_08", --Haste
[5] = "Interface\\Icons\\Spell_Holy_MagicalSentry", --Spell Power
[6] = "Interface\\Icons\\ability_monk_prideofthetiger", -- Critical Strike
[7] = "Interface\\Icons\\Spell_Holy_GreaterBlessingofKings", --Mastery
[8] = "Interface\\Icons\\spell_warlock_focusshadow", --Multistrike
[9] = "Interface\\Icons\\Spell_Holy_MindVision" --Versatility
}
local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", { local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", {
type = "data source", type = "data source",
@ -24,7 +37,7 @@ local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", {
r, g, b = 1, 0, 0 r, g, b = 1, 0, 0
end end
tooltip:AddLine(_G["RAID_BUFF_"..i], r, g, b) tooltip:AddLine("\124T"..defaults.statIcons[i]..":0\124t ".._G["RAID_BUFF_"..i], r, g, b)
end end
end, end,

View File

@ -2,7 +2,7 @@
## Title: Broker_ConsolidatedBuffs ## Title: Broker_ConsolidatedBuffs
## Notes: Track consolidated buffs ## Notes: Track consolidated buffs
## Author: Gio ## Author: Gio
## Version: 0.3 ## Version: 0.4
## SavedVariables: ## SavedVariables:
libs\LibStub\LibStub.lua libs\LibStub\LibStub.lua

View File

@ -14,3 +14,4 @@ Simple :)
## TODO ## TODO
- Change tooltip lib to LibQTip. - Change tooltip lib to LibQTip.
- To show more info about missing buffs. - To show more info about missing buffs.
- Workaround for ElvUI datatexts :/