This commit is contained in:
NoM0Re
2025-05-31 22:54:39 +02:00
committed by GitHub
parent 9def6a5ab8
commit bda851552d
58 changed files with 2518 additions and 1671 deletions
+15 -3
View File
@@ -1410,7 +1410,13 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
xOffset = {
type = "range",
control = "WeakAurasSpinBox",
name = L["X Offset"],
name = function()
if data.anchor_mode == "area" then
return L["Extra Width"]
else
return L["X Offset"]
end
end,
order = 79,
width = WeakAuras.normalWidth,
softMin = (-1 * screenWidth),
@@ -1430,7 +1436,13 @@ local function PositionOptions(id, data, _, hideWidthHeight, disableSelfPoint, g
yOffset = {
type = "range",
control = "WeakAurasSpinBox",
name = L["Y Offset"],
name = function()
if data.anchor_mode == "area" then
return L["Extra Height"]
else
return L["Y Offset"]
end
end,
order = 80,
width = WeakAuras.normalWidth,
softMin = (-1 * screenHeight),
@@ -1945,7 +1957,7 @@ local function AddCodeOption(args, data, name, prefix, url, order, hiddenFunc, p
code = "return " .. code;
local loadedFunction, errorString = OptionsPrivate.Private.LoadFunction(code, true);
local loadedFunction, errorString = OptionsPrivate.Private.LoadFunction(code, data.id, true);
if not errorString then
if options.validator then