This commit is contained in:
NoM0Re
2025-08-06 01:44:29 +02:00
committed by GitHub
parent 78d681a06c
commit 727747ad1d
44 changed files with 287 additions and 167 deletions
@@ -470,6 +470,30 @@ local function createOptions(parentData, data, index, subIndex)
WeakAuras.ClearAndUpdateOptions(parentData.id)
end
},
text_customTextUpdateThrottle = {
type = "range",
control = "WeakAurasSpinBox",
softMin = 0,
softMax = 5,
bigStep = 0.1,
min = 0,
width = WeakAuras.doubleWidth,
name = L["Custom Text Update Throttle"],
order = 3.01,
get = function() return parentData.customTextUpdateThrottle or 0 end,
set = function(info, v)
v = tonumber(v) or 0
if v < 0 then
v = 0
end
parentData.customTextUpdateThrottle = v
WeakAuras.Add(parentData)
WeakAuras.ClearAndUpdateOptions(parentData.id)
end,
hidden = function()
return hideCustomTextOption() or (parentData.customTextUpdate ~= "update")
end
}
}
OptionsPrivate.commonOptions.AddCodeOption(commonTextOptions, parentData, L["Custom Function"], "customText", "https://github.com/WeakAuras/WeakAuras2/wiki/Custom-Code-Blocks#custom-text",