added support for ElvUI's datatext
The datatext use the field .value instead .text
This commit is contained in:
parent
d59498e54c
commit
f14efeaa4f
|
@ -3,7 +3,7 @@ local addonName, addonNS = ...
|
||||||
local ldb = LibStub("LibDataBroker-1.1")
|
local ldb = LibStub("LibDataBroker-1.1")
|
||||||
|
|
||||||
local defaults = {}
|
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
|
[1] = "Interface\\Icons\\Spell_Magic_GreaterBlessingofKings", -- Stats
|
||||||
[2] = "Interface\\Icons\\Spell_Holy_WordFortitude", -- Stamina
|
[2] = "Interface\\Icons\\Spell_Holy_WordFortitude", -- Stamina
|
||||||
[3] = "Interface\\Icons\\INV_Misc_Horn_02", --Attack Power
|
[3] = "Interface\\Icons\\INV_Misc_Horn_02", --Attack Power
|
||||||
|
@ -19,7 +19,7 @@ defaults.statIcons = { -- thanks ElvUI/modules/auras/consolidatedBuffs.lua
|
||||||
local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", {
|
local BrokerConsolidatedBuffs = ldb:NewDataObject("Broker_ConsolidatedBuffs", {
|
||||||
type = "data source",
|
type = "data source",
|
||||||
text = "0/"..NUM_LE_RAID_BUFF_TYPES,
|
text = "0/"..NUM_LE_RAID_BUFF_TYPES,
|
||||||
value = 1,
|
value = "0/"..NUM_LE_RAID_BUFF_TYPES,
|
||||||
icon = "Interface\\AddOns\\Broker_ConsolidatedBuffs\\BuffConsolidation", -- I can't use the default because is a combination texture :(
|
icon = "Interface\\AddOns\\Broker_ConsolidatedBuffs\\BuffConsolidation", -- I can't use the default because is a combination texture :(
|
||||||
label = "ConsolidatedBuffs",
|
label = "ConsolidatedBuffs",
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue