from retail
This commit is contained in:
+11
-11
@@ -1852,12 +1852,12 @@ local function createScanFunc(trigger)
|
||||
local use_tooltip = not isSingleMissing and not isMulti and trigger.fetchTooltip and trigger.use_tooltip
|
||||
local use_tooltipValue = not isSingleMissing and not isMulti and trigger.fetchTooltip and trigger.use_tooltipValue
|
||||
local use_total = not isSingleMissing and not isMulti and trigger.useTotal and trigger.total
|
||||
local use_blacklist_name = not isSingleMissing and not isMulti and trigger.useBlackName and trigger.blackauranames
|
||||
local use_blacklist_spellId = not isSingleMissing and not isMulti and trigger.useBlackExactSpellId and trigger.blackauraspellids
|
||||
local use_ignore_name = not isSingleMissing and not isMulti and trigger.useIgnoreName and trigger.ignoreAuraNames
|
||||
local use_ignore_spellId = not isSingleMissing and not isMulti and trigger.useIgnoreExactSpellId and trigger.ignoreAuraSpellids
|
||||
|
||||
if not useStacks and use_stealable == nil and not use_debuffClass and trigger.ownOnly == nil
|
||||
and not use_tooltip and not use_tooltipValue and not trigger.useNamePattern and not use_total
|
||||
and not use_blacklist_name and not use_blacklist_spellId then
|
||||
and not use_ignore_name and not use_ignore_spellId then
|
||||
return nil
|
||||
end
|
||||
|
||||
@@ -1982,29 +1982,29 @@ local function createScanFunc(trigger)
|
||||
end
|
||||
end
|
||||
|
||||
if use_blacklist_name then
|
||||
if use_ignore_name then
|
||||
local names = {}
|
||||
for index, spellName in ipairs(trigger.blackauranames) do
|
||||
for index, spellName in ipairs(trigger.ignoreAuraNames) do
|
||||
local spellId = WeakAuras.SafeToNumber(spellName)
|
||||
local name = GetSpellInfo(spellId or 0) or spellName
|
||||
tinsert(names, name)
|
||||
end
|
||||
|
||||
preamble = preamble .. "local blacklistNames = {\n"
|
||||
preamble = preamble .. "local ignoreNames = {\n"
|
||||
for index, name in ipairs(names) do
|
||||
preamble = preamble .. string.format(" [%q] = true,\n", name)
|
||||
end
|
||||
preamble = preamble .. "}\n"
|
||||
ret = ret .. [[
|
||||
if blacklistNames[matchData.name] then
|
||||
if ignoreNames[matchData.name] then
|
||||
return false
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
if use_blacklist_spellId then
|
||||
preamble = preamble .. "local blacklistSpellId = {\n"
|
||||
for index, spellId in ipairs(trigger.blackauraspellids) do
|
||||
if use_ignore_spellId then
|
||||
preamble = preamble .. "local ignoreSpellId = {\n"
|
||||
for index, spellId in ipairs(trigger.ignoreAuraSpellids) do
|
||||
local spell = WeakAuras.SafeToNumber(spellId)
|
||||
if spell then
|
||||
preamble = preamble .. string.format(" [%s] = true,\n", spell)
|
||||
@@ -2012,7 +2012,7 @@ local function createScanFunc(trigger)
|
||||
end
|
||||
preamble = preamble .. "}\n"
|
||||
ret = ret .. [[
|
||||
if blacklistSpellId[matchData.spellId] then
|
||||
if ignoreSpellId[matchData.spellId] then
|
||||
return false
|
||||
end
|
||||
]]
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ WeakAuras.halfWidth = WeakAuras.normalWidth / 2
|
||||
WeakAuras.doubleWidth = WeakAuras.normalWidth * 2
|
||||
|
||||
local versionStringFromToc = GetAddOnMetadata("WeakAuras", "Version")
|
||||
local versionString = "2.17.11"
|
||||
local versionString = "2.17.12"
|
||||
local buildTime = "20200511190745"
|
||||
|
||||
WeakAuras.versionString = versionStringFromToc
|
||||
|
||||
@@ -749,11 +749,11 @@ WeakAuras.load_prototype = {
|
||||
desc = constants.nameRealmFilterDesc,
|
||||
},
|
||||
{
|
||||
name = "namerealmblack",
|
||||
display = L["Blacklisted Player Name/Realm"],
|
||||
name = "ignoreNameRealm",
|
||||
display = L["|cFFFF0000Not|r Player Name/Realm"],
|
||||
type = "string",
|
||||
test = "not nameRealmBlacklistChecker:Check(player, realm)",
|
||||
preamble = "local nameRealmBlacklistChecker = WeakAuras.ParseNameCheck(%q)",
|
||||
test = "not nameRealmIgnoreChecker:Check(player, realm)",
|
||||
preamble = "local nameRealmIgnoreChecker = WeakAuras.ParseNameCheck(%q)",
|
||||
desc = constants.nameRealmFilterDesc,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -209,7 +209,7 @@ local function create(parent, data)
|
||||
icon:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark");
|
||||
|
||||
--This section creates a unique frame id for the cooldown frame so that it can be created with a global reference
|
||||
--The reason is so that WeakAuras cooldown frames can interact properly with OmniCC (i.e., put on its blacklist for timer overlays)
|
||||
--The reason is so that WeakAuras cooldown frames can interact properly with OmniCC (i.e., put on its ignore list for timer overlays)
|
||||
local id = data.id;
|
||||
local frameId = id:lower():gsub(" ", "_");
|
||||
if(_G["WeakAurasCooldown"..frameId]) then
|
||||
|
||||
+34
-11
@@ -1,4 +1,4 @@
|
||||
local internalVersion = 32;
|
||||
local internalVersion = 33;
|
||||
|
||||
-- Lua APIs
|
||||
local insert = table.insert
|
||||
@@ -3727,28 +3727,28 @@ function WeakAuras.Modernize(data)
|
||||
|
||||
-- Introduced in June 2020 in Bfa
|
||||
if data.internalVersion < 31 then
|
||||
local whitelist
|
||||
local blacklist
|
||||
local allowedNames
|
||||
local ignoredNames
|
||||
if data.load.use_name == true and data.load.name then
|
||||
whitelist = data.load.name
|
||||
allowedNames = data.load.name
|
||||
elseif data.load.use_name == false and data.load.name then
|
||||
blacklist = data.load.name
|
||||
ignoredNames = data.load.name
|
||||
end
|
||||
|
||||
if data.load.use_realm == true and data.load.realm then
|
||||
whitelist = (whitelist or "") .. "-" .. data.load.realm
|
||||
allowedNames = (allowedNames or "") .. "-" .. data.load.realm
|
||||
elseif data.load.use_realm == false and data.load.realm then
|
||||
blacklist = (blacklist or "") .. "-" .. data.load.realm
|
||||
ignoredNames = (ignoredNames or "") .. "-" .. data.load.realm
|
||||
end
|
||||
|
||||
if whitelist then
|
||||
if allowedNames then
|
||||
data.load.use_namerealm = true
|
||||
data.load.namerealm = whitelist
|
||||
data.load.namerealm = allowedNames
|
||||
end
|
||||
|
||||
if blacklist then
|
||||
if ignoredNames then
|
||||
data.load.use_namerealmblack = true
|
||||
data.load.namerealmblack = blacklist
|
||||
data.load.namerealmblack = ignoredNames
|
||||
end
|
||||
|
||||
data.load.use_name = nil
|
||||
@@ -3809,6 +3809,29 @@ function WeakAuras.Modernize(data)
|
||||
end
|
||||
end
|
||||
|
||||
-- Introduced in July 2020 in Bfa
|
||||
if data.internalVersion < 33 then
|
||||
data.load.use_ignoreNameRealm = data.load.use_namerealmblack
|
||||
data.load.ignoreNameRealm = data.load.namerealmblack
|
||||
data.load.use_namerealmblack = nil
|
||||
data.load.namerealmblack = nil
|
||||
|
||||
-- trigger.useBlackExactSpellId and trigger.blackauraspellids
|
||||
if data.triggers then
|
||||
for triggerId, triggerData in ipairs(data.triggers) do
|
||||
triggerData.trigger.useIgnoreName = triggerData.trigger.useBlackName
|
||||
triggerData.trigger.ignoreAuraNames = triggerData.trigger.blackauranames
|
||||
triggerData.trigger.useIgnoreExactSpellId = triggerData.trigger.useBlackExactSpellId
|
||||
triggerData.trigger.ignoreAuraSpellids = triggerData.trigger.blackauraspellids
|
||||
|
||||
triggerData.trigger.useBlackName = nil
|
||||
triggerData.trigger.blackauranames = nil
|
||||
triggerData.trigger.useBlackExactSpellId = nil
|
||||
triggerData.trigger.blackauraspellids = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, triggerSystem in pairs(triggerSystems) do
|
||||
triggerSystem.Modernize(data);
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## Interface: 30300
|
||||
## Title: WeakAuras 2
|
||||
## Author: Mirrored and the WeakAuras Team
|
||||
## Version: 2.17.11
|
||||
## Version: 2.17.12
|
||||
## Notes: A powerful, comprehensive utility for displaying graphics and information based on buffs, debuffs, and other triggers.
|
||||
## Notes-esES: Potente y completa aplicación que te permitirá mostrar por pantalla múltiples diseños, basados en beneficios, perjuicios y otros activadores.
|
||||
## Notes-deDE: Ein leistungsfähiges, umfassendes Addon zur grafischen Darstellung von Informationen von Auren, Cooldowns, Timern und vielem mehr.
|
||||
|
||||
Reference in New Issue
Block a user