from retail

This commit is contained in:
NoM0Re
2025-01-06 19:47:37 +01:00
parent 873748218a
commit 7a185106f2
111 changed files with 359 additions and 195 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
-- Animations
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras
+1 -1
View File
@@ -2,7 +2,7 @@
This used to contains the "aura" trigger for buffs and debuffs. Nowadays all functions do essentially nothing
]]--
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L
+19 -9
View File
@@ -50,7 +50,7 @@ Returns the tooltip text for additional properties.
GetTriggerConditions(data, triggernum)
Returns the potential conditions for a trigger
]]--
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
-- Lua APIs
@@ -230,7 +230,6 @@ local function ReferenceMatchDataMulti(matchData, id, triggernum, destGUID)
local matchDataByTriggerBase = GetOrCreateSubTable(matchDataByTrigger, id, triggernum, destGUID)
tinsert(matchDataByTriggerBase, matchData)
end
matchDataChanged[id] = matchDataChanged[id] or {}
matchDataChanged[id][triggernum] = true
end
@@ -566,6 +565,12 @@ local function UpdateStateWithMatch(time, bestMatch, triggerStates, cloneId, mat
changed = true
end
if not state.initialTime then
-- Only set initialTime if it wasn't set before
state.initialTime = time
changed = true
end
if state.expirationTime ~= bestMatch.expirationTime then
-- A bit fuzzy checking
if state.expirationTime and bestMatch.expirationTime and bestMatch.expirationTime - state.expirationTime > 0.2 then
@@ -724,6 +729,15 @@ local function UpdateStateWithNoMatch(time, triggerStates, triggerInfo, cloneId,
changed = true
end
if state.initialTime then
state.initialTime = nil
changed = true
end
if state.refreshTime then
state.refreshTime = nil
changed = true
end
if state.expirationTime ~= math.huge then
state.expirationTime = math.huge
changed = true
@@ -2582,7 +2596,9 @@ function BuffTrigger.GetAdditionalProperties(data, triggernum)
ret = ret .. "|cFFFF0000%".. triggernum .. ".debuffClass|r - " .. L["Debuff Class"] .. "\n"
ret = ret .. "|cFFFF0000%".. triggernum .. ".unitCaster|r - " .. L["Caster Unit"] .. "\n"
ret = ret .. "|cFFFF0000%".. triggernum .. ".casterName|r - " .. L["Caster Name"] .. "\n"
ret = ret .. "|cFFFF0000%".. triggernum .. ".unit|r - " .. L["Unit"] .. "\n"
if trigger.unit ~= "multi" then
ret = ret .. "|cFFFF0000%".. triggernum .. ".unit|r - " .. L["Unit"] .. "\n"
end
ret = ret .. "|cFFFF0000%".. triggernum .. ".unitName|r - " .. L["Unit Name"] .. "\n"
ret = ret .. "|cFFFF0000%".. triggernum .. ".matchCount|r - " .. L["Match Count"] .. "\n"
ret = ret .. "|cFFFF0000%".. triggernum .. ".matchCountPerUnit|r - " .. L["Match Count per Unit"] .. "\n"
@@ -3126,18 +3142,12 @@ local function AugmentMatchDataMultiWith(matchData, unit, name, icon, stacks, de
changed = true
end
if (matchData.unit ~= unit) then
matchData.unit = unit
changed = true
end
local unitName = GetUnitName(unit, false) or ""
if matchData.unitName ~= unitName then
matchData.unitName = unitName
changed = true
end
if matchData.spellId ~= spellId then
matchData.spellId = name
changed = true
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras
+3 -3
View File
@@ -49,7 +49,7 @@ Returns the a tooltip for the additional properties.
GetTriggerConditions(data, triggernum)
Returns potential conditions that this trigger provides.
]]--
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
-- Lua APIs
@@ -1634,9 +1634,9 @@ do
update_frame = CreateFrame("Frame");
end
if not(updating) then
update_frame:SetScript("OnUpdate", function()
update_frame:SetScript("OnUpdate", function(self, elapsed)
if not(WeakAuras.IsPaused()) then
WeakAuras.ScanEvents("FRAME_UPDATE");
WeakAuras.ScanEvents("FRAME_UPDATE", elapsed);
end
end);
updating = true;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras
-4
View File
@@ -25,10 +25,6 @@ function WeakAuras.IsClassic()
return false
end
function WeakAuras.IsCorrectVersion()
return true
end
WeakAuras.prettyPrint = function(...)
print("|cff9900ffWeakAuras:|r ", ...)
end
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras
+95 -10
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
-- Lua APIs
@@ -102,6 +102,10 @@ function WeakAuras.TestSchool(spellSchool, test)
return spellSchool == test
end
function WeakAuras.RaidFlagToIndex(flag)
return Private.combatlog_raidFlags[flag] or 0
end
Private.function_strings = {
count = [[
return function(count)
@@ -941,7 +945,7 @@ Private.load_prototype = {
display = L["Spell Known"],
type = "spell",
test = "WeakAuras.IsSpellKnownForLoad(%s, %s)",
events = {"SPELLS_CHANGED"},
events = {"SPELLS_CHANGED", "UNIT_PET"},
showExactOption = true
},
{
@@ -949,7 +953,7 @@ Private.load_prototype = {
display = WeakAuras.newFeatureString .. L["|cFFFF0000Not|r Spell Known"],
type = "spell",
test = "not WeakAuras.IsSpellKnownForLoad(%s, %s)",
events = {"SPELLS_CHANGED"},
events = {"SPELLS_CHANGED", "UNIT_PET"},
showExactOption = true
},
{
@@ -1835,7 +1839,7 @@ Private.event_prototypes = {
},
{
name = "deficit",
display = WeakAuras.newFeatureString .. L["Health Deficit"],
display = L["Health Deficit"],
type = "number",
init = "total - value",
store = true,
@@ -1965,7 +1969,7 @@ Private.event_prototypes = {
},
{
name = "includePets",
display = WeakAuras.newFeatureString .. L["Include Pets"],
display = L["Include Pets"],
type = "select",
values = "include_pets_types",
width = WeakAuras.normalWidth,
@@ -2175,7 +2179,7 @@ Private.event_prototypes = {
},
{
name = "deficit",
display = WeakAuras.newFeatureString .. L["Power Deficit"],
display = L["Power Deficit"],
type = "number",
init = "total - value",
store = true,
@@ -2305,7 +2309,7 @@ Private.event_prototypes = {
},
{
name = "includePets",
display = WeakAuras.newFeatureString .. L["Include Pets"],
display = L["Include Pets"],
type = "select",
values = "include_pets_types",
width = WeakAuras.normalWidth,
@@ -2473,6 +2477,35 @@ Private.event_prototypes = {
return state and state.show and WeakAuras.CheckCombatLogFlagsObjectType(state.sourceFlags, needle);
end
},
{
name = "sourceRaidFlags",
display = L["Source Raid Mark"],
type = "select",
values = "combatlog_raid_mark_check_type",
init = "arg",
store = true,
test = "WeakAuras.CheckRaidFlags(sourceRaidFlags, %q)",
conditionType = "select",
conditionTest = function(state, needle)
return state and state.show and WeakAuras.CheckRaidFlags(state.sourceRaidFlags, needle);
end
},
{
name = "sourceRaidMarkIndex",
display = WeakAuras.newFeatureString .. L["Source unit's raid mark index"],
init = "WeakAuras.RaidFlagToIndex(sourceRaidFlags)",
test = "true",
store = true,
hidden = true,
},
{
name = "sourceRaidMark",
display = WeakAuras.newFeatureString .. L["Source unit's raid mark texture"],
test = "true",
init = "sourceRaidMarkIndex > 0 and '{rt'..sourceRaidMarkIndex..'}' or ''",
store = true,
hidden = true,
},
{
type = "header",
name = "destHeader",
@@ -2590,6 +2623,54 @@ Private.event_prototypes = {
return not (trigger.subeventPrefix == "SPELL" and trigger.subeventSuffix == "_CAST_START");
end,
},
{ -- destFlags ignore for SPELL_CAST_START
enable = function(trigger)
return (trigger.subeventPrefix == "SPELL" and trigger.subeventSuffix == "_CAST_START");
end,
},
{
name = "destRaidFlags",
display = L["Dest Raid Mark"],
type = "select",
values = "combatlog_raid_mark_check_type",
init = "arg",
store = true,
test = "WeakAuras.CheckRaidFlags(destRaidFlags, %q)",
conditionType = "select",
conditionTest = function(state, needle)
return state and state.show and WeakAuras.CheckRaidFlags(state.destRaidFlags, needle);
end,
enable = function(trigger)
return not (trigger.subeventPrefix == "SPELL" and trigger.subeventSuffix == "_CAST_START");
end,
},
{ -- destRaidFlags ignore for SPELL_CAST_START
enable = function(trigger)
return (trigger.subeventPrefix == "SPELL" and trigger.subeventSuffix == "_CAST_START");
end
},
{
name = "destRaidMarkIndex",
display = WeakAuras.newFeatureString .. L["Destination unit's raid mark index"],
init = "WeakAuras.RaidFlagToIndex(destRaidFlags)",
test = "true",
store = true,
hidden = true,
enable = function(trigger)
return not (trigger.subeventPrefix == "SPELL" and trigger.subeventSuffix == "_CAST_START");
end,
},
{
name = "destRaidMark",
display = WeakAuras.newFeatureString .. L["Destination unit's raid mark texture"],
test = "true",
init = "destRaidMarkIndex > 0 and '{rt'..destRaidMarkIndex..'}' or ''",
store = true,
hidden = true,
enable = function(trigger)
return not (trigger.subeventPrefix == "SPELL" and trigger.subeventSuffix == "_CAST_START");
end,
},
{-- destFlags ignore for SPELL_CAST_START
enable = function(trigger)
return (trigger.subeventPrefix == "SPELL" and trigger.subeventSuffix == "_CAST_START");
@@ -2669,7 +2750,7 @@ Private.event_prototypes = {
},
{
name = "spellSchool",
display = WeakAuras.newFeatureString .. L["Spell School"],
display = L["Spell School"],
type = "select",
values = "combatlog_spell_school_types_for_ui",
sorted = true,
@@ -5594,7 +5675,7 @@ Private.event_prototypes = {
threatpct, rawthreatpct, threatvalue, threattotal = 100, 100, 0, 100
end
]];
return ret;
return ret .. unitHelperFunctions.SpecificUnitCheck(trigger);
end,
canHaveDuration = true,
statesParameter = "unit",
@@ -5688,6 +5769,10 @@ Private.event_prototypes = {
{
hidden = true,
test = "status ~= nil and ok"
},
{
hidden = true,
test = "WeakAuras.UnitExistsFixed(unit, smart) and specificUnitCheck"
}
},
automaticrequired = true
@@ -6126,7 +6211,7 @@ Private.event_prototypes = {
},
{
name = "includePets",
display = WeakAuras.newFeatureString .. L["Include Pets"],
display = L["Include Pets"],
type = "select",
values = "include_pets_types",
width = WeakAuras.normalWidth,
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
+6 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras
@@ -1096,6 +1096,11 @@ local function modify(parent, region, data)
end
controlPoint:SetWidth(regionData.dimensions.width)
controlPoint:SetHeight(regionData.dimensions.height)
if data.anchorFrameParent then
controlPoint:SetParent(frame == "" and self.relativeTo or frame)
else
controlPoint:SetParent(self)
end
if self.anchorPerUnit == "UNITFRAME" then
Private.dyngroup_unitframe_monitor[regionData] = frame
end
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L;
+9 -9
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras;
@@ -757,8 +757,8 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare
region.subRegionEvents:Notify("PreHide")
if region:IsProtected() then
if InCombatLockdown() then
Private.AuraWarnings.UpdateWarning(uid, "protected_frame", "error",
L["Cannot hide secure frame in combat lockdown. Find more information:\nhttps://github.com/WeakAuras/WeakAuras2/wiki/Protected-Frames"],
Private.AuraWarnings.UpdateWarning(uid, "protected_frame_error", "error",
L["Cannot change secure frame in combat lockdown. Find more information:\nhttps://github.com/WeakAuras/WeakAuras2/wiki/Protected-Frames"],
true)
else
Private.AuraWarnings.UpdateWarning(uid, "protected_frame", "warning",
@@ -788,8 +788,8 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare
if region:IsProtected() then
if InCombatLockdown() then
Private.AuraWarnings.UpdateWarning(uid, "protected_frame", "error",
L["Cannot hide secure frame in combat lockdown. Find more information:\nhttps://github.com/WeakAuras/WeakAuras2/wiki/Protected-Frames"],
Private.AuraWarnings.UpdateWarning(uid, "protected_frame_error", "error",
L["Cannot change secure frame in combat lockdown. Find more information:\nhttps://github.com/WeakAuras/WeakAuras2/wiki/Protected-Frames"],
true)
else
Private.AuraWarnings.UpdateWarning(uid, "protected_frame", "warning",
@@ -843,8 +843,8 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare
Private.ApplyFrameLevel(region)
if region:IsProtected() then
if InCombatLockdown() then
Private.AuraWarnings.UpdateWarning(uid, "protected_frame", "error",
L["Cannot show secure frame in combat lockdown. Find more information:\nhttps://github.com/WeakAuras/WeakAuras2/wiki/Protected-Frames"],
Private.AuraWarnings.UpdateWarning(uid, "protected_frame_error", "error",
L["Cannot change secure frame in combat lockdown. Find more information:\nhttps://github.com/WeakAuras/WeakAuras2/wiki/Protected-Frames"],
true)
else
Private.AuraWarnings.UpdateWarning(uid, "protected_frame", "warning",
@@ -912,8 +912,8 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare
if region:IsProtected() then
if InCombatLockdown() then
Private.AuraWarnings.UpdateWarning(uid, "protected_frame", "error",
L["Cannot show secure frame in combat lockdown. Find more information:\nhttps://github.com/WeakAuras/WeakAuras2/wiki/Protected-Frames"],
Private.AuraWarnings.UpdateWarning(uid, "protected_frame_error", "error",
L["Cannot change secure frame in combat lockdown. Find more information:\nhttps://github.com/WeakAuras/WeakAuras2/wiki/Protected-Frames"],
true)
else
Private.AuraWarnings.UpdateWarning(uid, "protected_frame", "warning",
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local texture_data = WeakAuras.StopMotion.texture_data;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local LCG = LibStub("LibCustomGlow-1.0")
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -18,7 +18,7 @@ Imports an aura from a table, which may or may not be encoded as a B64 string.
If target is installed data, or is a uid which points to installed data, then the import will be an update to that aura
]]--
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
-- Lua APIs
+16 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local WeakAuras = WeakAuras;
@@ -1168,6 +1168,18 @@ Private.combatlog_raid_mark_check_type = {
L["Any"]
}
Private.combatlog_raidFlags = {
[0] = 0,
[1] = 1,
[2] = 2,
[4] = 3,
[8] = 4,
[16] = 5,
[32] = 6,
[64] = 7,
[128] = 8,
}
Private.raid_mark_check_type = CopyTable(Private.combatlog_raid_mark_check_type)
Private.raid_mark_check_type[9] = nil
@@ -2620,6 +2632,7 @@ Private.author_option_fields = {
hideReorder = true,
entryNames = nil, -- handled as a special case in code
subOptions = {},
noMerge = false,
}
}
@@ -2753,11 +2766,13 @@ Private.reset_swing_spells = {
[GetSpellInfo(6807)] = true, -- Maul
[GetSpellInfo(20549)] = true, -- War Stomp
[GetSpellInfo(56815)] = true, -- Rune Strike
[GetSpellInfo(5384)] = true, -- Feign Death
}
Private.reset_ranged_swing_spells = {
[GetSpellInfo(2764)] = true, -- Throw
[GetSpellInfo(5019)] = true, -- Shoot Wands
[GetSpellInfo(75)] = true, -- Auto Shot
[GetSpellInfo(5384)] = true, -- Feign Death
}
WeakAuras.StopMotion = {}
+34 -27
View File
@@ -107,10 +107,6 @@ end
SLASH_WEAKAURAS1, SLASH_WEAKAURAS2 = "/weakauras", "/wa";
function SlashCmdList.WEAKAURAS(input)
if not WeakAuras.IsCorrectVersion() then
prettyPrint(Private.wrongTargetMessage)
return
end
local args, msg = {}, nil
@@ -141,7 +137,7 @@ function SlashCmdList.WEAKAURAS(input)
end
end
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
function Private.ToggleMinimap()
WeakAurasSaved.minimap.hide = not WeakAurasSaved.minimap.hide
@@ -2311,8 +2307,6 @@ local function removeNameplateUnits(data)
if trigger and trigger.type == "unit" then
if trigger.unit == "nameplate" then
trigger.unit = "target"
elseif trigger.threatUnit == "nameplate" then
trigger.threatUnit = "target"
end
end
end
@@ -3020,12 +3014,15 @@ do
if new_frame and new_frame ~= data.frame then
local id = region.id .. (region.cloneId or "")
-- remove previous glow
actionGlowStop(data.actions, data.frame, id)
if data.frame then
actionGlowStop(data.actions, data.frame, id)
end
-- apply the glow to new_frame
data.frame = new_frame
actionGlowStart(data.actions, data.frame, id)
-- update hidefunc
local region = region
region.active_glows_hidefunc = region.active_glows_hidefunc or {}
region.active_glows_hidefunc[data.frame] = function()
actionGlowStop(data.actions, data.frame, id)
glow_frame_monitor[region] = nil
@@ -3081,7 +3078,7 @@ function Private.HandleGlowAction(actions, region)
or (actions.glow_frame_type == "FRAMESELECTOR" and actions.glow_frame)
)
then
local glow_frame
local glow_frame, should_glow_frame
if actions.glow_frame_type == "FRAMESELECTOR" then
if actions.glow_frame:sub(1, 10) == "WeakAuras:" then
local frame_name = actions.glow_frame:sub(11)
@@ -3090,45 +3087,55 @@ function Private.HandleGlowAction(actions, region)
end
if WeakAuras.regions[frame_name] then
glow_frame = WeakAuras.regions[frame_name].region
should_glow_frame = true
end
else
glow_frame = Private.GetSanitizedGlobal(actions.glow_frame)
should_glow_frame = true
end
elseif actions.glow_frame_type == "UNITFRAME" and region.state.unit then
glow_frame = WeakAuras.GetUnitFrame(region.state.unit)
should_glow_frame = true
elseif actions.glow_frame_type == "NAMEPLATE" and region.state.unit then
glow_frame = WeakAuras.isAwesomeEnabled() and WeakAuras.GetNamePlateForUnit(region.state.unit) or nil
if not(WeakAuras.isAwesomeEnabled()) then return end
glow_frame = WeakAuras.GetNamePlateForUnit(region.state.unit)
should_glow_frame = true
end
if glow_frame then
if should_glow_frame then
local id = region.id .. (region.cloneId or "")
if actions.glow_action == "show" then
-- remove previous glow
if region.active_glows_hidefunc
and region.active_glows_hidefunc[glow_frame]
then
region.active_glows_hidefunc[glow_frame]()
if glow_frame then
if region.active_glows_hidefunc
and region.active_glows_hidefunc[glow_frame]
then
region.active_glows_hidefunc[glow_frame]()
end
-- start glow
actionGlowStart(actions, glow_frame, id)
-- make unglow function & monitor unitframe changes
region.active_glows_hidefunc = region.active_glows_hidefunc or {}
if actions.glow_frame_type == "UNITFRAME" then
region.active_glows_hidefunc[glow_frame] = function()
actionGlowStop(actions, glow_frame, id)
glow_frame_monitor[region] = nil
end
else
region.active_glows_hidefunc[glow_frame] = function()
actionGlowStop(actions, glow_frame, id)
end
end
end
-- start glow
actionGlowStart(actions, glow_frame, id)
-- make unglow function & monitor unitframe changes
region.active_glows_hidefunc = region.active_glows_hidefunc or {}
if actions.glow_frame_type == "UNITFRAME" then
glow_frame_monitor = glow_frame_monitor or {}
glow_frame_monitor[region] = {
actions = actions,
frame = glow_frame
}
region.active_glows_hidefunc[glow_frame] = function()
actionGlowStop(actions, glow_frame, id)
glow_frame_monitor[region] = nil
end
else
region.active_glows_hidefunc[glow_frame] = function()
actionGlowStop(actions, glow_frame, id)
end
end
elseif actions.glow_action == "hide"
and glow_frame
and region.active_glows_hidefunc
and region.active_glows_hidefunc[glow_frame]
then
@@ -3,7 +3,9 @@ WeakAurasInlineGroup based on InlineGroup Container
Simple container widget that has the same API as a InlineGroup, without actually
showing any borders or a title.
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasInlineGroup", 1
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasInlineGroup", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -3,9 +3,9 @@ WeakAurasTreeGroup Container
Container that uses a tree control to switch between groups.
This file was forked from AceGUIContainer-TreeGroup.lua version 41
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTreeGroup", 2
local Type, Version = "WeakAurasTreeGroup", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasAnchorButtons", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local tinsert, tremove, wipe = table.insert, table.remove, wipe
@@ -1,9 +1,9 @@
--[[-----------------------------------------------------------------------------
Button Widget for our Expand button
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasExpand", 3
local Type, Version = "WeakAurasExpand", 4
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,9 +1,9 @@
--[[-----------------------------------------------------------------------------
Anchor for a Expandable section
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local Type, Version = "WeakAurasExpandAnchor", 2
local Type, Version = "WeakAurasExpandAnchor", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,10 +1,10 @@
--[[-----------------------------------------------------------------------------
Button Widget for our Expand button
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local Type, Version = "WeakAurasExpandSmall", 2
local Type, Version = "WeakAurasExpandSmall", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -3,9 +3,9 @@ Icon Widget that allows for a tooltip, by preventing SetLabel from actually
setting a label
Graphical Button.
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasIcon", 1
local Type, Version = "WeakAurasIcon", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasIconButton", 21
local Type, Version = "WeakAurasIconButton", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasImportButton", 20
local Type, Version = "WeakAurasImportButton", 21
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,7 +1,7 @@
--[[-----------------------------------------------------------------------------
Input Widget that allows to show an alternative text when it does not have focus
-------------------------------------------------------------------------------]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasInputFocus", 1
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasLoadedHeaderButton", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasMultiLineEditBox", 35
local Type, Version = "WeakAurasMultiLineEditBox", 36
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
-- based on the AceGUI widget, overwrites the enter handling
local Type, Version = "WeakAuras-MultiLineEditBoxWithEnter", 1
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasNewButton", 24
local Type, Version = "WeakAurasNewButton", 25
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasNewHeaderButton", 20
local Type, Version = "WeakAurasNewHeaderButton", 21
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,12 +1,10 @@
if not WeakAuras.IsCorrectVersion() then
return
end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local pairs, next, type, unpack = pairs, next, type, unpack
local Type, Version = "WeakAurasPendingInstallButton", 2
local Type, Version = "WeakAurasPendingInstallButton", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
@@ -1,13 +1,11 @@
if not WeakAuras.IsCorrectVersion() then
return
end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
local pairs, next, type, unpack = pairs, next, type, unpack
local Type, Version = "WeakAurasPendingUpdateButton", 2
local Type, Version = "WeakAurasPendingUpdateButton", 3
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
@@ -2,7 +2,9 @@
SnippetButton Widget, based on AceGUI Button (and WA ToolbarButton)
Graphical Button.
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasSnippetButton", 1
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasSnippetButton", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
return
@@ -2,7 +2,9 @@
Spacer Widget
Just uses up a bit of horizontal space
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasSpacer", 1
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasSpacer", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,8 @@
--[[-----------------------------------------------------------------------------
Spin Box Widget
-------------------------------------------------------------------------------]]
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasSpinBox", 5
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTextureButton", 25
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
@@ -2,6 +2,8 @@
ToolbarButton Widget, based on AceGUI Button
Graphical Button.
-------------------------------------------------------------------------------]]
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasToolbarButton", 6
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -1,6 +1,6 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasTwoColumnDropdown", 3
local Type, Version = "WeakAurasTwoColumnDropdown", 4
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
@@ -2,7 +2,9 @@
Progress Bar Widget
A simple progress bar
-------------------------------------------------------------------------------]]
local Type, Version = "WeakAurasProgressBar", 1
if not WeakAuras.IsLibsOK() then return end
local Type, Version = "WeakAurasProgressBar", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+12 -2
View File
@@ -58,7 +58,7 @@
bigStep (optional) -> step size of the slider. Defaults to 0.05
step (optional) -> like bigStep, but applies to number input as well
]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local WeakAuras = WeakAuras
@@ -1180,6 +1180,15 @@ typeControlAdders = {
end,
disabled = function() return not option.useCollapse end
}
args[prefix .. "noMerge"] = {
type = "toggle",
name = WeakAuras.newFeatureString .. name(option, "noMerge", L["Prevent Merging"]),
desc = desc(option, "noMerge", L["If checked, then this group will not merge with other group when selecting multiple auras."]),
order = order(),
width = WeakAuras.doubleWidth,
get = get(option, "noMerge"),
set = set(data, option, "noMerge"),
}
if option.groupType ~="simple" then
args[prefix .. "limitType"] = {
type = "select",
@@ -1998,7 +2007,7 @@ local function addUserModeOption(options, args, data, order, prefix, i)
while i <= #values or i <= #childValues do
if firstChild then
values[i] = childValues[i][nameSource] or conflictBlue .. L["Entry %i"]:format(i)
elseif childValues[i][nameSource] ~= values[i] then
elseif not childValues[i] or childValues[i][nameSource] ~= values[i] then
values[i] = conflictBlue .. L["Entry %i"]:format(i)
end
i = i + 1
@@ -2106,6 +2115,7 @@ local function addUserModeOption(options, args, data, order, prefix, i)
type = "execute",
name = L["Delete Entry"],
order = order(),
confirm = true,
func = function()
for id, optionData in pairs(option.references) do
local childOption = optionData.options[optionData.index]
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
+3 -3
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
@@ -687,7 +687,7 @@ local function GetBuffTriggerOptions(data, triggernum)
use_includePets = {
type = "toggle",
width = WeakAuras.normalWidth,
name = WeakAuras.newFeatureString .. L["Include Pets"],
name = L["Include Pets"],
order = 66.1,
hidden = function() return
not (trigger.type == "aura2" and (trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"))
@@ -697,7 +697,7 @@ local function GetBuffTriggerOptions(data, triggernum)
type = "select",
values = OptionsPrivate.Private.include_pets_types,
width = WeakAuras.normalWidth,
name = WeakAuras.newFeatureString .. L["Include Pets"],
name = L["Include Pets"],
order = 66.15,
hidden = function() return not (trigger.type == "aura2" and (trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party") and trigger.use_includePets) end,
},
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
+6 -3
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
@@ -1072,7 +1072,7 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
return data.anchorFrameParent or data.anchorFrameParent == nil;
end,
hidden = function()
return (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE" or IsParentDynamicGroup());
return not IsGroupByFrame() and (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE" or IsParentDynamicGroup());
end,
},
anchorFrameSpaceOne = {
@@ -1082,7 +1082,7 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
order = 72,
image = function() return "", 0, 0 end,
hidden = function()
return IsParentDynamicGroup() or IsGroupByFrame() or not (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE")
return IsParentDynamicGroup() or not (data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE")
end,
},
-- Input field to select frame to anchor on
@@ -1142,6 +1142,9 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
if IsGroupByFrame() then
return false
end
if IsParentDynamicGroup() then
return true
end
return data.anchorFrameType == "SCREEN" or data.anchorFrameType == "MOUSE";
else
return data.anchorFrameType == "MOUSE";
+1 -1
View File
@@ -44,7 +44,7 @@
-- - setter: The setter function, called both on activating and deactivating a property change
--- - action: The action function, called on activating a condition
-- - type: The type
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local WeakAuras = WeakAuras;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
local regionOptions = WeakAuras.regionOptions
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
-- For All Indents And Purposes
local revision = 23
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "deDE" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local L = WeakAuras.L
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "esES" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "esMX" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "frFR" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "itIT" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "koKR" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "ptBR" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "ruRU" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "zhCN" then
return
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
if GetLocale() ~= "zhTW" then
return
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- WoW APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- WoW APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -1159,9 +1159,9 @@ function OptionsPrivate.CreateFrame()
containerScroll:AddChild(simpleLabel)
local button = AceGUI:Create("WeakAurasNewButton")
button:SetTitle(L["From Template"])
button:SetTitle(L["Premade Auras"])
button:SetDescription(L["Offer a guided way to create auras for your character"])
button:SetIcon("Interface\\Icons\\INV_Misc_Book_06")
button:SetIcon("Interface\\Icons\\Inv_misc_book_09")
button:SetClick(function()
OptionsPrivate.OpenTriggerTemplate(nil, self:GetTargetAura())
end)
+29 -6
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
@@ -55,6 +55,7 @@ local editor_themes = {
}
if not WeakAurasSaved.editor_tab_spaces then WeakAurasSaved.editor_tab_spaces = 4 end
if not WeakAurasSaved.editor_font_size then WeakAurasSaved.editor_font_size = 12 end -- set default font size if missing
local color_scheme = {[0] = "|r"}
local function set_scheme()
if not WeakAurasSaved.editor_theme then
@@ -162,7 +163,7 @@ local function ConstructTextEditor(frame)
editor:DisableButton(true)
local fontPath = SharedMedia:Fetch("font", "Fira Mono Medium")
if (fontPath) then
editor.editBox:SetFont(fontPath, 12)
editor.editBox:SetFont(fontPath, WeakAurasSaved.editor_font_size)
end
group:AddChild(editor)
@@ -263,6 +264,14 @@ local function ConstructTextEditor(frame)
menuList = "spaces"
},
level)
UIDropDownMenu_AddButton(
{
text = WeakAuras.newFeatureString .. L["Font Size"],
hasArrow = true,
notCheckable = true,
menuList = "sizes"
},
level)
elseif menu == "spaces" then
local spaces = {2,4}
for _, i in pairs(spaces) do
@@ -282,6 +291,23 @@ local function ConstructTextEditor(frame)
},
level)
end
elseif menu == "sizes" then
local sizes = {10, 12, 14, 16}
for _, i in pairs(sizes) do
UIDropDownMenu_AddButton(
{
text = i,
isNotRadio = false,
checked = function()
return WeakAurasSaved.editor_font_size == i
end,
func = function()
WeakAurasSaved.editor_font_size = i
editor.editBox:SetFont(fontPath, WeakAurasSaved.editor_font_size)
end
},
level)
end
end
end
UIDropDownMenu_Initialize(dropdown, settings_dropdown_initialize, "MENU")
@@ -475,16 +501,13 @@ local function ConstructTextEditor(frame)
end
)
-- CTRL + S saves and closes, ESC cancels and closes
-- CTRL + S saves and closes
editor.editBox:HookScript(
"OnKeyDown",
function(_, key)
if IsControlKeyDown() and key == "S" then
group:Close()
end
if key == "ESCAPE" then
group:CancelClose()
end
end
)
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
-- Lua APIs
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local AceGUI = LibStub("AceGUI-3.0")
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local SharedMedia = LibStub("LibSharedMedia-3.0");
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L
+3 -3
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
@@ -413,7 +413,7 @@ local function createDistributeAlignOptions(id, data)
local childData = WeakAuras.GetData(childId);
local childRegion = WeakAuras.GetRegion(childId)
if(childData and childRegion) then
if(v > 0) then
if(v >= 0) then
if(childData.selfPoint:find("LEFT")) then
childData.xOffset = xOffset;
elseif(childData.selfPoint:find("RIGHT")) then
@@ -497,7 +497,7 @@ local function createDistributeAlignOptions(id, data)
local childData = WeakAuras.GetData(childId);
local childRegion = WeakAuras.GetRegion(childId)
if(childData and childRegion) then
if(v > 0) then
if(v >= 0) then
if(childData.selfPoint:find("BOTTOM")) then
childData.yOffset = yOffset;
elseif(childData.selfPoint:find("TOP")) then
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local Masque = LibStub("Masque", true)
+1 -1
View File
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
@@ -1,4 +1,4 @@
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local L = WeakAuras.L;
@@ -1,3 +1,5 @@
if not WeakAuras.IsLibsOK() then return end
local L = WeakAuras.L
local AddonName, OptionsPrivate = ...

Some files were not shown because too many files have changed in this diff Show More