From f14efeaa4fb793593fd71bf9bc5daec0776bd1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Wed, 5 Nov 2014 18:26:08 +0100 Subject: [PATCH] added support for ElvUI's datatext The datatext use the field .value instead .text --- Broker_ConsolidatedBuffs.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Broker_ConsolidatedBuffs.lua b/Broker_ConsolidatedBuffs.lua index 7cc3ec5..1df7cbd 100644 --- a/Broker_ConsolidatedBuffs.lua +++ b/Broker_ConsolidatedBuffs.lua @@ -3,7 +3,7 @@ local addonName, addonNS = ... local ldb = LibStub("LibDataBroker-1.1") local defaults = {} -defaults.statIcons = { -- thanks ElvUI/modules/auras/consolidatedBuffs.lua +defaults.statIcons = { -- thanks ElvUI/modules/auras/consolidatedBuffs.lua, i'll change this in future versions [1] = "Interface\\Icons\\Spell_Magic_GreaterBlessingofKings", -- Stats [2] = "Interface\\Icons\\Spell_Holy_WordFortitude", -- Stamina [3] = "Interface\\Icons\\INV_Misc_Horn_02", --Attack Power @@ -17,10 +17,10 @@ defaults.statIcons = { -- thanks ElvUI/modules/auras/consolidatedBuffs.lua local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", { - type = "data source", - text = "0/"..NUM_LE_RAID_BUFF_TYPES, - value = 1, - icon = "Interface\\AddOns\\Broker_ConsolidatedBuffs\\BuffConsolidation", -- I can't use the default because is a combination texture :( + type = "data source", + text = "0/"..NUM_LE_RAID_BUFF_TYPES, + value = "0/"..NUM_LE_RAID_BUFF_TYPES, + icon = "Interface\\AddOns\\Broker_ConsolidatedBuffs\\BuffConsolidation", -- I can't use the default because is a combination texture :( label = "ConsolidatedBuffs", OnTooltipShow = function(tooltip) @@ -74,7 +74,8 @@ local function updateBuffs(self, event, unitID) end end - BrokerConsolidatedBuffs.text = c.."/"..NUM_LE_RAID_BUFF_TYPES + BrokerConsolidatedBuffs.text = c.."/"..NUM_LE_RAID_BUFF_TYPES + BrokerConsolidatedBuffs.value = c.."/"..NUM_LE_RAID_BUFF_TYPES -- for ElvUI datatexts end end