From d59498e54c3ceee1981fc82a067285f07288b223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Wed, 5 Nov 2014 07:31:29 +0100 Subject: [PATCH] added buff icons Maybe I should not use this ElvUI table... but I don't know what default icons to use :( --- Broker_ConsolidatedBuffs.lua | 15 ++++++++++++++- Broker_ConsolidatedBuffs.toc | 2 +- README.md | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Broker_ConsolidatedBuffs.lua b/Broker_ConsolidatedBuffs.lua index 18b8789..7cc3ec5 100644 --- a/Broker_ConsolidatedBuffs.lua +++ b/Broker_ConsolidatedBuffs.lua @@ -2,6 +2,19 @@ local addonName, addonNS = ... 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", { type = "data source", @@ -24,7 +37,7 @@ local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", { r, g, b = 1, 0, 0 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, diff --git a/Broker_ConsolidatedBuffs.toc b/Broker_ConsolidatedBuffs.toc index 9f898d7..6cf92ad 100644 --- a/Broker_ConsolidatedBuffs.toc +++ b/Broker_ConsolidatedBuffs.toc @@ -2,7 +2,7 @@ ## Title: Broker_ConsolidatedBuffs ## Notes: Track consolidated buffs ## Author: Gio -## Version: 0.3 +## Version: 0.4 ## SavedVariables: libs\LibStub\LibStub.lua diff --git a/README.md b/README.md index 71b6a15..a43a2b0 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,4 @@ Simple :) ## TODO - Change tooltip lib to LibQTip. - To show more info about missing buffs. +- Workaround for ElvUI datatexts :/ \ No newline at end of file