from retail
This commit is contained in:
@@ -3,7 +3,7 @@ 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() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasTreeGroup", 2
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or 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() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local tinsert, tconcat, tremove, wipe = table.insert, table.concat, table.remove, wipe
|
||||
@@ -1855,7 +1855,7 @@ local function Constructor()
|
||||
renamebox:Hide();
|
||||
end);
|
||||
|
||||
local group = CreateFrame("BUTTON", nil, button);
|
||||
local group = CreateFrame("Button", nil, button);
|
||||
button.group = group;
|
||||
group:SetWidth(16);
|
||||
group:SetHeight(16);
|
||||
@@ -1870,7 +1870,7 @@ local function Constructor()
|
||||
group:SetScript("OnEnter", function() Show_Tooltip(button, L["Group (verb)"], L["Put this display in a group"]) end);
|
||||
group:SetScript("OnLeave", Hide_Tooltip);
|
||||
|
||||
local ungroup = CreateFrame("BUTTON", nil, button);
|
||||
local ungroup = CreateFrame("Button", nil, button);
|
||||
button.ungroup = ungroup;
|
||||
ungroup:SetWidth(11);
|
||||
ungroup:SetHeight(11);
|
||||
@@ -1885,7 +1885,7 @@ local function Constructor()
|
||||
ungroup:SetScript("OnLeave", Hide_Tooltip);
|
||||
ungroup:Hide();
|
||||
|
||||
local upgroup = CreateFrame("BUTTON", nil, button);
|
||||
local upgroup = CreateFrame("Button", nil, button);
|
||||
button.upgroup = upgroup;
|
||||
upgroup:SetWidth(11);
|
||||
upgroup:SetHeight(11);
|
||||
@@ -1902,7 +1902,7 @@ local function Constructor()
|
||||
upgroup:SetScript("OnLeave", Hide_Tooltip);
|
||||
upgroup:Hide();
|
||||
|
||||
local downgroup = CreateFrame("BUTTON", nil, button);
|
||||
local downgroup = CreateFrame("Button", nil, button);
|
||||
button.downgroup = downgroup;
|
||||
downgroup:SetWidth(11);
|
||||
downgroup:SetHeight(11);
|
||||
@@ -1918,7 +1918,7 @@ local function Constructor()
|
||||
downgroup:SetScript("OnLeave", Hide_Tooltip);
|
||||
downgroup:Hide();
|
||||
|
||||
local expand = CreateFrame("BUTTON", nil, button);
|
||||
local expand = CreateFrame("Button", nil, button);
|
||||
button.expand = expand;
|
||||
expand.expanded = true;
|
||||
expand.disabled = true;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--[[-----------------------------------------------------------------------------
|
||||
Button Widget for our Expand button
|
||||
-------------------------------------------------------------------------------]]
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasExpand", 3
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--[[-----------------------------------------------------------------------------
|
||||
Anchor for a Expandable section
|
||||
-------------------------------------------------------------------------------]]
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
local Type, Version = "WeakAurasExpandAnchor", 2
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--[[-----------------------------------------------------------------------------
|
||||
Button Widget for our Expand button
|
||||
-------------------------------------------------------------------------------]]
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local Type, Version = "WeakAurasExpandSmall", 2
|
||||
|
||||
@@ -3,7 +3,7 @@ Icon Widget that allows for a tooltip, by preventing SetLabel from actually
|
||||
setting a label
|
||||
Graphical Button.
|
||||
-------------------------------------------------------------------------------]]
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasIcon", 1
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasIconButton", 21
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
@@ -62,7 +62,7 @@ Constructor
|
||||
-------------------------------------------------------------------------------]]
|
||||
|
||||
local function Constructor()
|
||||
local button = CreateFrame("BUTTON", nil, UIParent);
|
||||
local button = CreateFrame("Button", nil, UIParent);
|
||||
button:SetHeight(52);
|
||||
button:SetWidth(52);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasImportButton", 20
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
@@ -124,7 +124,7 @@ Constructor
|
||||
|
||||
local function Constructor()
|
||||
local name = "WeakAurasImportButton"..AceGUI:GetNextWidgetNum(Type);
|
||||
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
|
||||
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
|
||||
button:SetHeight(18);
|
||||
button:SetWidth(380);
|
||||
button.dgroup = nil;
|
||||
@@ -136,7 +136,7 @@ local function Constructor()
|
||||
background:SetVertexColor(0.5, 0.5, 0.5, 0.25);
|
||||
background:SetAllPoints(button);
|
||||
|
||||
local expand = CreateFrame("BUTTON", nil, button);
|
||||
local expand = CreateFrame("Button", nil, button);
|
||||
button.expand = expand;
|
||||
expand.expanded = true;
|
||||
expand.disabled = true;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--[[-----------------------------------------------------------------------------
|
||||
Input Widget that allows to show an alternative text when it does not have focus
|
||||
-------------------------------------------------------------------------------]]
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or 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() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasLoadedHeaderButton", 22
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
@@ -142,7 +142,7 @@ Constructor
|
||||
|
||||
local function Constructor()
|
||||
local name = Type..AceGUI:GetNextWidgetNum(Type)
|
||||
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
|
||||
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
|
||||
button:SetHeight(20);
|
||||
button:SetWidth(1000);
|
||||
button:SetDisabledFontObject("GameFontNormal");
|
||||
@@ -154,7 +154,7 @@ local function Constructor()
|
||||
background:SetVertexColor(0.5, 0.5, 0.5, 0.6);
|
||||
background:SetAllPoints(button);
|
||||
|
||||
local expand = CreateFrame("BUTTON", nil, button);
|
||||
local expand = CreateFrame("Button", nil, button);
|
||||
button.expand = expand;
|
||||
expand.expanded = true;
|
||||
expand.disabled = true;
|
||||
@@ -172,7 +172,7 @@ local function Constructor()
|
||||
expand:SetScript("OnEnter", function() Show_Tooltip(button, expand.title, expand.desc) end);
|
||||
expand:SetScript("OnLeave", Hide_Tooltip);
|
||||
|
||||
local view = CreateFrame("BUTTON", nil, button);
|
||||
local view = CreateFrame("Button", nil, button);
|
||||
button.view = view;
|
||||
view:SetWidth(16);
|
||||
view:SetHeight(16);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasMultiLineEditBox", 35
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
-- based on the AceGUI widget, overwrites the enter handling
|
||||
local Type, Version = "WeakAuras-MultiLineEditBoxWithEnter", 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasNewButton", 24
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
@@ -90,7 +90,7 @@ Constructor
|
||||
|
||||
local function Constructor()
|
||||
local name = "WeakAurasDisplayButton"..AceGUI:GetNextWidgetNum(Type);
|
||||
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
|
||||
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
|
||||
button:SetHeight(40);
|
||||
button:SetWidth(380);
|
||||
button.dgroup = nil;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasNewHeaderButton", 20
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
@@ -56,7 +56,7 @@ Constructor
|
||||
|
||||
local function Constructor()
|
||||
local name = Type..AceGUI:GetNextWidgetNum(Type)
|
||||
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
|
||||
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
|
||||
button:SetHeight(20);
|
||||
button:SetWidth(1000);
|
||||
button:SetDisabledFontObject("GameFontNormal");
|
||||
|
||||
@@ -160,7 +160,7 @@ Constructor
|
||||
|
||||
local function Constructor()
|
||||
local name = "WeakAurasPendingInstallButton" .. AceGUI:GetNextWidgetNum(Type)
|
||||
local button = CreateFrame("BUTTON", name, UIParent)
|
||||
local button = CreateFrame("Button", name, UIParent)
|
||||
button:SetHeight(32)
|
||||
button:SetWidth(1000)
|
||||
button.data = {}
|
||||
@@ -191,7 +191,7 @@ local function Constructor()
|
||||
|
||||
button.description = {}
|
||||
|
||||
local update = CreateFrame("BUTTON", nil, button)
|
||||
local update = CreateFrame("Button", nil, button)
|
||||
button.update = update
|
||||
update.disabled = true
|
||||
update.func = function()
|
||||
|
||||
@@ -289,7 +289,7 @@ Constructor
|
||||
|
||||
local function Constructor()
|
||||
local name = "WeakAurasPendingUpdateButton" .. AceGUI:GetNextWidgetNum(Type)
|
||||
local button = CreateFrame("BUTTON", name, UIParent)
|
||||
local button = CreateFrame("Button", name, UIParent)
|
||||
button:SetHeight(32)
|
||||
button:SetWidth(1000)
|
||||
button.data = {}
|
||||
@@ -320,7 +320,7 @@ local function Constructor()
|
||||
|
||||
button.description = {}
|
||||
|
||||
local update = CreateFrame("BUTTON", nil, button)
|
||||
local update = CreateFrame("Button", nil, button)
|
||||
button.update = update
|
||||
update.disabled = true
|
||||
update.func = function()
|
||||
|
||||
@@ -137,7 +137,7 @@ local function Constructor()
|
||||
button:SetHeight(24)
|
||||
button:SetWidth(170)
|
||||
|
||||
local deleteButton = CreateFrame("BUTTON", nil, button)
|
||||
local deleteButton = CreateFrame("Button", nil, button)
|
||||
deleteButton:SetPoint("RIGHT", button, "RIGHT", -3, 0)
|
||||
deleteButton:SetSize(20, 20)
|
||||
local deleteTex = deleteButton:CreateTexture()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasTextureButton", 25
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
@@ -87,7 +87,7 @@ Constructor
|
||||
|
||||
local function Constructor()
|
||||
local name = "WeakAurasTextureButton"..AceGUI:GetNextWidgetNum(Type);
|
||||
local button = CreateFrame("BUTTON", name, UIParent, "OptionsListButtonTemplate");
|
||||
local button = CreateFrame("Button", name, UIParent, "OptionsListButtonTemplate");
|
||||
button:SetHeight(128);
|
||||
button:SetWidth(128);
|
||||
button:SetBackdrop({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local Type, Version = "WeakAurasTwoColumnDropdown", 3
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
@@ -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() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local WeakAuras = WeakAuras
|
||||
@@ -2001,7 +2001,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] ~= values[i] then
|
||||
elseif childValues[i][nameSource] ~= values[i] then
|
||||
values[i] = conflictBlue .. L["Entry %i"]:format(i)
|
||||
end
|
||||
i = i + 1
|
||||
@@ -2418,7 +2418,7 @@ local function mergeOptions(mergedOptions, data, options, config, prepath, paren
|
||||
-- check if nextToMerge.nameSource was merged in the same spot as mergedOption.nameSource
|
||||
local subMergedOption = mergedOption.subOptions[mergedOption.nameSource]
|
||||
local optionData = subMergedOption.references[data.id]
|
||||
if not optionData or optionData.optionIndex ~= nextToMerge.nameSource then
|
||||
if not optionData or optionData.index ~= nextToMerge.nameSource then
|
||||
-- either an option was not merged at the name source's index, or the wrong option was.
|
||||
-- in both cases, the name source is conflicted. Fallback to "Entry #" as entry names
|
||||
mergedOption.nameSource = nil
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
@@ -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() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local WeakAuras = WeakAuras;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or 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() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
-- For All Indents And Purposes
|
||||
local revision = 23
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "deDE") then
|
||||
if GetLocale() ~= "deDE" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "esES") then
|
||||
if GetLocale() ~= "esES" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "esMX") then
|
||||
if GetLocale() ~= "esMX" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "frFR") then
|
||||
if GetLocale() ~= "frFR" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "itIT") then
|
||||
if GetLocale() ~= "itIT" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "koKR") then
|
||||
if GetLocale() ~= "koKR" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "ptBR") then
|
||||
if GetLocale() ~= "ptBR" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "ruRU") then
|
||||
if GetLocale() ~= "ruRU" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "zhCN") then
|
||||
if GetLocale() ~= "zhCN" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
|
||||
if not(GetLocale() == "zhTW") then
|
||||
if GetLocale() ~= "zhTW" then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
@@ -21,8 +21,8 @@ local oldFocusName
|
||||
function OptionsPrivate.StartFrameChooser(data, path)
|
||||
local frame = WeakAuras.OptionsFrame();
|
||||
if not(frameChooserFrame) then
|
||||
frameChooserFrame = CreateFrame("frame");
|
||||
frameChooserBox = CreateFrame("frame", nil, frameChooserFrame);
|
||||
frameChooserFrame = CreateFrame("Frame");
|
||||
frameChooserBox = CreateFrame("Frame", nil, frameChooserFrame);
|
||||
frameChooserBox:SetFrameStrata("TOOLTIP");
|
||||
frameChooserBox:SetBackdrop({
|
||||
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
@@ -57,7 +57,7 @@ local function ConstructModelPicker(frame)
|
||||
group.frame:Hide();
|
||||
group:SetLayout("flow");
|
||||
|
||||
local filterInput = CreateFrame("editbox", "WeakAurasModelFilterInput", group.frame, "WA_InputBoxTemplate")
|
||||
local filterInput = CreateFrame("EditBox", "WeakAurasModelFilterInput", group.frame, "WA_InputBoxTemplate")
|
||||
filterInput:SetAutoFocus(false)
|
||||
filterInput:SetTextInsets(16, 20, 0, 0)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
@@ -56,11 +56,11 @@ local function ConstructMover(frame)
|
||||
topAndBottom:SetClampedToScreen(true)
|
||||
topAndBottom:SetSize(25, 45)
|
||||
topAndBottom:SetPoint("LEFT", frame, "RIGHT", 1, 0)
|
||||
local top = CreateFrame("BUTTON", nil, topAndBottom)
|
||||
local top = CreateFrame("Button", nil, topAndBottom)
|
||||
top:SetSize(25, 25)
|
||||
top:SetPoint("TOP", topAndBottom)
|
||||
top:SetFrameStrata("BACKGROUND")
|
||||
local bottom = CreateFrame("BUTTON", nil, topAndBottom)
|
||||
local bottom = CreateFrame("Button", nil, topAndBottom)
|
||||
bottom:SetSize(25, 25)
|
||||
bottom:SetPoint("BOTTOM", topAndBottom)
|
||||
bottom:SetFrameStrata("BACKGROUND")
|
||||
@@ -69,11 +69,11 @@ local function ConstructMover(frame)
|
||||
leftAndRight:SetClampedToScreen(true)
|
||||
leftAndRight:SetSize(45, 25)
|
||||
leftAndRight:SetPoint("TOP", frame, "BOTTOM", 0, 1)
|
||||
local left = CreateFrame("BUTTON", nil, leftAndRight)
|
||||
local left = CreateFrame("Button", nil, leftAndRight)
|
||||
left:SetSize(25, 25)
|
||||
left:SetPoint("LEFT", leftAndRight)
|
||||
left:SetFrameStrata("BACKGROUND")
|
||||
local right = CreateFrame("BUTTON", nil, leftAndRight)
|
||||
local right = CreateFrame("Button", nil, leftAndRight)
|
||||
right:SetSize(25, 25)
|
||||
right:SetPoint("RIGHT", leftAndRight)
|
||||
right:SetFrameStrata("BACKGROUND")
|
||||
@@ -107,7 +107,7 @@ local function ConstructMover(frame)
|
||||
right:GetPushedTexture():SetRotation(-math.pi/2)
|
||||
right:SetScript("OnClick", function() moveOnePxl("right") end)
|
||||
|
||||
local arrow = CreateFrame("frame", nil, frame)
|
||||
local arrow = CreateFrame("Frame", nil, frame)
|
||||
arrow:SetClampedToScreen(true)
|
||||
arrow:SetSize(196, 196)
|
||||
arrow:SetPoint("CENTER", frame, "CENTER")
|
||||
@@ -146,7 +146,7 @@ end
|
||||
local function ConstructSizer(frame)
|
||||
-- topright, bottomright, bottomleft, topleft
|
||||
|
||||
local topright = CreateFrame("FRAME", nil, frame)
|
||||
local topright = CreateFrame("Frame", nil, frame)
|
||||
topright:EnableMouse()
|
||||
topright:SetWidth(16)
|
||||
topright:SetHeight(16)
|
||||
@@ -178,7 +178,7 @@ local function ConstructSizer(frame)
|
||||
texTR2:Hide()
|
||||
end
|
||||
|
||||
local bottomright = CreateFrame("FRAME", nil, frame)
|
||||
local bottomright = CreateFrame("Frame", nil, frame)
|
||||
bottomright:EnableMouse()
|
||||
bottomright:SetWidth(16)
|
||||
bottomright:SetHeight(16)
|
||||
@@ -210,7 +210,7 @@ local function ConstructSizer(frame)
|
||||
texBR2:Hide()
|
||||
end
|
||||
|
||||
local bottomleft = CreateFrame("FRAME", nil, frame)
|
||||
local bottomleft = CreateFrame("Frame", nil, frame)
|
||||
bottomleft:EnableMouse()
|
||||
bottomleft:SetSize(16, 16)
|
||||
bottomleft:SetHeight(16)
|
||||
@@ -242,7 +242,7 @@ local function ConstructSizer(frame)
|
||||
texBL2:Hide()
|
||||
end
|
||||
|
||||
local topleft = CreateFrame("FRAME", nil, frame)
|
||||
local topleft = CreateFrame("Frame", nil, frame)
|
||||
topleft:EnableMouse()
|
||||
topleft:SetWidth(16)
|
||||
topleft:SetHeight(16)
|
||||
@@ -276,7 +276,7 @@ local function ConstructSizer(frame)
|
||||
|
||||
-- top, right, bottom, left
|
||||
|
||||
local top = CreateFrame("FRAME", nil, frame)
|
||||
local top = CreateFrame("Frame", nil, frame)
|
||||
top:EnableMouse()
|
||||
top:SetHeight(8)
|
||||
top:SetPoint("TOPRIGHT", topright, "TOPLEFT")
|
||||
@@ -298,7 +298,7 @@ local function ConstructSizer(frame)
|
||||
texT:Hide()
|
||||
end
|
||||
|
||||
local right = CreateFrame("FRAME", nil, frame)
|
||||
local right = CreateFrame("Frame", nil, frame)
|
||||
right:EnableMouse()
|
||||
right:SetWidth(8)
|
||||
right:SetPoint("BOTTOMRIGHT", bottomright, "TOPRIGHT")
|
||||
@@ -320,7 +320,7 @@ local function ConstructSizer(frame)
|
||||
texR:Hide()
|
||||
end
|
||||
|
||||
local bottom = CreateFrame("FRAME", nil, frame)
|
||||
local bottom = CreateFrame("Frame", nil, frame)
|
||||
bottom:EnableMouse()
|
||||
bottom:SetHeight(8)
|
||||
bottom:SetPoint("BOTTOMLEFT", bottomleft, "BOTTOMRIGHT")
|
||||
@@ -343,7 +343,7 @@ local function ConstructSizer(frame)
|
||||
texB:Hide()
|
||||
end
|
||||
|
||||
local left = CreateFrame("FRAME", nil, frame)
|
||||
local left = CreateFrame("Frame", nil, frame)
|
||||
left:EnableMouse()
|
||||
left:SetWidth(8)
|
||||
left:SetPoint("TOPLEFT", topleft, "BOTTOMLEFT")
|
||||
@@ -417,7 +417,7 @@ local function BuildAlignLines(mover)
|
||||
end
|
||||
|
||||
local function ConstructMoverSizer(parent)
|
||||
local frame = CreateFrame("FRAME", nil, parent)
|
||||
local frame = CreateFrame("Frame", nil, parent)
|
||||
frame:SetBackdrop({
|
||||
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
|
||||
edgeSize = 12,
|
||||
@@ -439,7 +439,7 @@ local function ConstructMoverSizer(parent)
|
||||
frame.left.Clear()
|
||||
frame.topleft.Clear()
|
||||
|
||||
local mover = CreateFrame("FRAME", nil, frame)
|
||||
local mover = CreateFrame("Frame", nil, frame)
|
||||
mover:RegisterEvent("PLAYER_REGEN_DISABLED")
|
||||
mover:EnableMouse()
|
||||
mover.moving = {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
@@ -44,7 +44,7 @@ local function CreateFrameSizer(frame, callback, position)
|
||||
xOffset2, yOffset2 = -1, -1
|
||||
end
|
||||
|
||||
local handle = CreateFrame("BUTTON", nil, frame)
|
||||
local handle = CreateFrame("Button", nil, frame)
|
||||
handle:SetPoint(position, frame)
|
||||
handle:SetSize(25, 25)
|
||||
handle:EnableMouse()
|
||||
@@ -88,7 +88,7 @@ local minWidth = 750
|
||||
local minHeight = 240
|
||||
|
||||
function OptionsPrivate.CreateFrame()
|
||||
CreateFrame("frame", "WeakAuras_DropDownMenu", nil, "UIDropDownMenuTemplate")
|
||||
CreateFrame("Frame", "WeakAuras_DropDownMenu", nil, "UIDropDownMenuTemplate")
|
||||
local frame
|
||||
local db = OptionsPrivate.savedVars.db
|
||||
local odb = OptionsPrivate.savedVars.odb
|
||||
@@ -367,7 +367,7 @@ function OptionsPrivate.CreateFrame()
|
||||
tipPopupLabel:SetJustifyH("LEFT")
|
||||
tipPopupLabel:SetJustifyV("TOP")
|
||||
|
||||
local urlWidget = CreateFrame("EDITBOX", nil, tipPopup, "WA_InputBoxTemplate")
|
||||
local urlWidget = CreateFrame("EditBox", nil, tipPopup, "WA_InputBoxTemplate")
|
||||
urlWidget:SetFont(STANDARD_TEXT_FONT, 12)
|
||||
urlWidget:SetPoint("TOPLEFT", tipPopupLabel, "BOTTOMLEFT", 6, 0)
|
||||
urlWidget:SetPoint("TOPRIGHT", tipPopupLabel, "BOTTOMRIGHT", 0, 0)
|
||||
@@ -490,7 +490,7 @@ function OptionsPrivate.CreateFrame()
|
||||
frame.moversizer, frame.mover = OptionsPrivate.MoverSizer(frame)
|
||||
|
||||
-- filter line
|
||||
local filterInput = CreateFrame("editbox", "WeakAurasFilterInput", frame, "WA_InputBoxTemplate")
|
||||
local filterInput = CreateFrame("EditBox", "WeakAurasFilterInput", frame, "WA_InputBoxTemplate")
|
||||
filterInput:SetAutoFocus(false)
|
||||
filterInput:SetTextInsets(16, 20, 0, 0)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local AceGUI = LibStub("AceGUI-3.0")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
@@ -457,7 +457,7 @@ end
|
||||
-- Create preview thumbnail
|
||||
local function createThumbnail()
|
||||
-- Preview frame
|
||||
local borderframe = CreateFrame("FRAME", nil, UIParent);
|
||||
local borderframe = CreateFrame("Frame", nil, UIParent);
|
||||
borderframe:SetWidth(32);
|
||||
borderframe:SetHeight(32);
|
||||
|
||||
@@ -468,13 +468,13 @@ local function createThumbnail()
|
||||
border:SetTexCoord(0.2, 0.8, 0.2, 0.8);
|
||||
|
||||
-- Main region
|
||||
local region = CreateFrame("FRAME", nil, borderframe);
|
||||
local region = CreateFrame("Frame", nil, borderframe);
|
||||
borderframe.region = region;
|
||||
region:SetWidth(32);
|
||||
region:SetHeight(32);
|
||||
|
||||
-- Status-bar frame
|
||||
local bar = CreateFrame("FRAME", nil, region);
|
||||
local bar = CreateFrame("Frame", nil, region);
|
||||
borderframe.bar = bar;
|
||||
|
||||
-- Fake status-bar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
@@ -463,7 +463,7 @@ end
|
||||
|
||||
local function createThumbnail()
|
||||
-- frame
|
||||
local thumbnail = CreateFrame("FRAME", nil, UIParent);
|
||||
local thumbnail = CreateFrame("Frame", nil, UIParent);
|
||||
thumbnail:SetWidth(32);
|
||||
thumbnail:SetHeight(32);
|
||||
|
||||
@@ -494,7 +494,7 @@ local function defaultIconAnimation(self, elapsed)
|
||||
end
|
||||
|
||||
local function createAnimatedDefaultIcon(parent)
|
||||
local defaultIcon = CreateFrame("FRAME", nil, parent);
|
||||
local defaultIcon = CreateFrame("Frame", nil, parent);
|
||||
parent.defaultIcon = defaultIcon;
|
||||
|
||||
local t1 = defaultIcon:CreateTexture(nil, "ARTWORK");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L;
|
||||
@@ -629,7 +629,7 @@ end
|
||||
|
||||
local function createThumbnail()
|
||||
-- frame
|
||||
local thumbnail = CreateFrame("FRAME", nil, UIParent);
|
||||
local thumbnail = CreateFrame("Frame", nil, UIParent);
|
||||
thumbnail:SetWidth(32);
|
||||
thumbnail:SetHeight(32);
|
||||
|
||||
@@ -648,7 +648,7 @@ end
|
||||
|
||||
local function createDefaultIcon(parent)
|
||||
-- default Icon
|
||||
local defaultIcon = CreateFrame("FRAME", nil, parent);
|
||||
local defaultIcon = CreateFrame("Frame", nil, parent);
|
||||
parent.defaultIcon = defaultIcon;
|
||||
|
||||
local t1 = defaultIcon:CreateTexture(nil, "ARTWORK");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local Masque = LibStub("Masque", true)
|
||||
@@ -231,7 +231,7 @@ local function createOptions(id, data)
|
||||
end
|
||||
|
||||
local function createThumbnail()
|
||||
local frame = CreateFrame("FRAME", nil, UIParent)
|
||||
local frame = CreateFrame("Frame", nil, UIParent)
|
||||
local icon = frame:CreateTexture();
|
||||
icon:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark");
|
||||
icon:SetAllPoints(frame)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L;
|
||||
@@ -128,7 +128,7 @@ local function createOptions(id, data)
|
||||
end
|
||||
|
||||
local function createThumbnail()
|
||||
local borderframe = CreateFrame("FRAME", nil, UIParent);
|
||||
local borderframe = CreateFrame("Frame", nil, UIParent);
|
||||
borderframe:SetWidth(32);
|
||||
borderframe:SetHeight(32);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L;
|
||||
@@ -401,7 +401,7 @@ local function Transform(tx, x, y, angle, aspect) -- Translates texture to x, y
|
||||
end
|
||||
|
||||
local function createThumbnail()
|
||||
local borderframe = CreateFrame("FRAME", nil, UIParent);
|
||||
local borderframe = CreateFrame("Frame", nil, UIParent);
|
||||
borderframe:SetWidth(32);
|
||||
borderframe:SetHeight(32);
|
||||
|
||||
@@ -410,7 +410,7 @@ local function createThumbnail()
|
||||
border:SetTexture("Interface\\BUTTONS\\UI-Quickslot2.blp");
|
||||
border:SetTexCoord(0.2, 0.8, 0.2, 0.8);
|
||||
|
||||
local region = CreateFrame("FRAME", nil, borderframe);
|
||||
local region = CreateFrame("Frame", nil, borderframe);
|
||||
borderframe.region = region;
|
||||
region:SetWidth(32);
|
||||
region:SetHeight(32);
|
||||
|
||||
@@ -546,7 +546,7 @@ local function createOptions(id, data)
|
||||
end
|
||||
|
||||
local function createThumbnail()
|
||||
local borderframe = CreateFrame("FRAME", nil, UIParent);
|
||||
local borderframe = CreateFrame("Frame", nil, UIParent);
|
||||
borderframe:SetWidth(32);
|
||||
borderframe:SetHeight(32);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
@@ -321,7 +321,7 @@ local function createOptions(id, data)
|
||||
end
|
||||
|
||||
local function createThumbnail()
|
||||
local borderframe = CreateFrame("FRAME", nil, UIParent);
|
||||
local borderframe = CreateFrame("Frame", nil, UIParent);
|
||||
borderframe:SetWidth(32);
|
||||
borderframe:SetHeight(32);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
@@ -121,7 +121,7 @@ local function createOptions(id, data)
|
||||
end
|
||||
|
||||
local function createThumbnail()
|
||||
local borderframe = CreateFrame("FRAME", nil, UIParent);
|
||||
local borderframe = CreateFrame("Frame", nil, UIParent);
|
||||
borderframe:SetWidth(32);
|
||||
borderframe:SetHeight(32);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
local L = WeakAuras.L;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Magic constant
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local SharedMedia = LibStub("LibSharedMedia-3.0")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local SharedMedia = LibStub("LibSharedMedia-3.0");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local L = WeakAuras.L
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if not WeakAuras.IsCorrectVersion() then return end
|
||||
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
-- Lua APIs
|
||||
@@ -181,7 +181,7 @@ local frame;
|
||||
local db;
|
||||
local odb;
|
||||
local reopenAfterCombat = false;
|
||||
local loadedFrame = CreateFrame("FRAME");
|
||||
local loadedFrame = CreateFrame("Frame");
|
||||
loadedFrame:RegisterEvent("ADDON_LOADED");
|
||||
loadedFrame:RegisterEvent("PLAYER_REGEN_ENABLED");
|
||||
loadedFrame:RegisterEvent("PLAYER_REGEN_DISABLED");
|
||||
|
||||
Reference in New Issue
Block a user