from retail
This commit is contained in:
@@ -251,11 +251,11 @@ local function UpdateToolTipDataInMatchData(matchData, time)
|
||||
local changed = false
|
||||
|
||||
if matchData.unit and matchData.index and matchData.filter then
|
||||
local tooltip, _, tooltip1, tooltip2, tooltip3 = WeakAuras.GetAuraTooltipInfo(matchData.unit, matchData.index, matchData.filter)
|
||||
local tooltip, _, tooltip1, tooltip2, tooltip3, tooltip4 = WeakAuras.GetAuraTooltipInfo(matchData.unit, matchData.index, matchData.filter)
|
||||
|
||||
changed = matchData.tooltip ~= tooltip or matchData.tooltip1 ~= tooltip1
|
||||
or matchData.tooltip2 ~= tooltip2 or matchData.tooltip3 ~= tooltip3
|
||||
matchData.tooltip, matchData.tooltip1, matchData.tooltip2, matchData.tooltip3 = tooltip, tooltip1, tooltip2, tooltip3
|
||||
or matchData.tooltip2 ~= tooltip2 or matchData.tooltip3 ~= tooltip3 or matchData.tooltip4 ~= tooltip4
|
||||
matchData.tooltip, matchData.tooltip1, matchData.tooltip2, matchData.tooltip3, matchData.tooltip4 = tooltip, tooltip1, tooltip2, tooltip3, tooltip4
|
||||
end
|
||||
|
||||
matchData.tooltipUpdated = time
|
||||
@@ -491,6 +491,7 @@ local function UpdateStateWithMatch(time, bestMatch, triggerStates, cloneId, mat
|
||||
tooltip1 = bestMatch.tooltip1,
|
||||
tooltip2 = bestMatch.tooltip2,
|
||||
tooltip3 = bestMatch.tooltip3,
|
||||
tooltip4 = bestMatch.tooltip4,
|
||||
affected = affected,
|
||||
unaffected = unaffected,
|
||||
totalStacks = totalStacks,
|
||||
@@ -626,6 +627,11 @@ local function UpdateStateWithMatch(time, bestMatch, triggerStates, cloneId, mat
|
||||
changed = true
|
||||
end
|
||||
|
||||
if state.tooltip4 ~= bestMatch.tooltip4 then
|
||||
state.tooltip4 = bestMatch.tooltip4
|
||||
changed = true
|
||||
end
|
||||
|
||||
if state.matchCount ~= matchCount then
|
||||
state.matchCount = matchCount
|
||||
changed = true
|
||||
@@ -790,8 +796,8 @@ local function UpdateStateWithNoMatch(time, triggerStates, triggerInfo, cloneId,
|
||||
changed = true
|
||||
end
|
||||
|
||||
if state.tooltip or state.tooltip1 or state.tooltip2 or state.tooltip3 then
|
||||
state.tooltip, state.tooltip1, state.tooltip2, state.tooltip3 = nil, nil, nil, nil
|
||||
if state.tooltip or state.tooltip1 or state.tooltip2 or state.tooltip3 or state.tooltip4 then
|
||||
state.tooltip, state.tooltip1, state.tooltip2, state.tooltip3, state.tooltip4 = nil, nil, nil, nil, nil
|
||||
changed = true
|
||||
end
|
||||
|
||||
@@ -1864,6 +1870,8 @@ local function UnloadAura(scanFuncName, id)
|
||||
if triggerInfo.id == id or not id then
|
||||
if triggerInfo.nextScheduledCheckHandle then
|
||||
timer:CancelTimer(triggerInfo.nextScheduledCheckHandle)
|
||||
triggerInfo.nextScheduledCheck = nil
|
||||
triggerInfo.nextScheduledCheckHandle = nil
|
||||
end
|
||||
nameData[triggerInfo] = nil
|
||||
end
|
||||
@@ -1890,6 +1898,8 @@ local function UnloadGeneral(scanFuncGeneral, id)
|
||||
if triggerInfo.id == id or not id then
|
||||
if triggerInfo.nextScheduledCheckHandle then
|
||||
timer:CancelTimer(triggerInfo.nextScheduledCheckHandle)
|
||||
triggerInfo.nextScheduledCheck = nil
|
||||
triggerInfo.nextScheduledCheckHandle = nil
|
||||
end
|
||||
debuffData[triggerInfo] = nil
|
||||
end
|
||||
@@ -2619,6 +2629,7 @@ function BuffTrigger.GetAdditionalProperties(data, triggernum)
|
||||
ret = ret .. "|cFFFF0000%".. triggernum .. ".tooltip1|r - " .. L["First Value of Tooltip Text"] .. "\n"
|
||||
ret = ret .. "|cFFFF0000%".. triggernum .. ".tooltip2|r - " .. L["Second Value of Tooltip Text"] .. "\n"
|
||||
ret = ret .. "|cFFFF0000%".. triggernum .. ".tooltip3|r - " .. L["Third Value of Tooltip Text"] .. "\n"
|
||||
ret = ret .. "|cFFFF0000%".. triggernum .. ".tooltip4|r - " .. L["Fourth Value of Tooltip Text"] .. "\n"
|
||||
end
|
||||
|
||||
if trigger.unit ~= "multi" and trigger.fetchRaidMark then
|
||||
@@ -2726,6 +2737,10 @@ function BuffTrigger.GetTriggerConditions(data, triggernum)
|
||||
display = L["Tooltip Value 3"],
|
||||
type = "number"
|
||||
}
|
||||
result["tooltip4"] = {
|
||||
display = L["Tooltip Value 4"],
|
||||
type = "number"
|
||||
}
|
||||
end
|
||||
|
||||
if trigger.unit ~= "multi" then
|
||||
@@ -3362,6 +3377,11 @@ function BuffTrigger.GetTriggerDescription(data, triggernum, namestable)
|
||||
local trigger = data.triggers[triggernum].trigger
|
||||
if trigger.useName and trigger.auranames then
|
||||
for index, name in pairs(trigger.auranames) do
|
||||
if index > 10 then
|
||||
tinsert(namestable, {" ", "[...]"})
|
||||
break
|
||||
end
|
||||
|
||||
local left = " "
|
||||
if(index == 1) then
|
||||
if(#trigger.auranames > 0) then
|
||||
@@ -3386,6 +3406,11 @@ function BuffTrigger.GetTriggerDescription(data, triggernum, namestable)
|
||||
|
||||
if trigger.useExactSpellId and trigger.auraspellids then
|
||||
for index, spellId in pairs(trigger.auraspellids) do
|
||||
if index > 10 then
|
||||
tinsert(namestable, {" ", "[...]"})
|
||||
break
|
||||
end
|
||||
|
||||
local left = " "
|
||||
if index == 1 then
|
||||
if #trigger.auraspellids > 0 then
|
||||
|
||||
Reference in New Issue
Block a user