from retail

This commit is contained in:
NoM0Re
2025-01-05 15:08:50 +01:00
parent 95db2e326e
commit 8375cfa0a7
115 changed files with 332 additions and 261 deletions
@@ -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)
+16 -16
View File
@@ -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 -1
View File
@@ -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")