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
+29
View File
@@ -73,6 +73,35 @@ local function GetCustomTriggerOptions(data, triggernum)
WeakAuras.Add(data);
end
},
onUpdateThrottle = {
type = "range",
control = "WeakAurasSpinBox",
softMin = 0,
softMax = 5,
bigStep = 0.1,
min = 0,
width = WeakAuras.doubleWidth,
name = L["Custom trigger Update Throttle"],
order = 9.01,
get = function() return trigger.onUpdateThrottle or 0 end,
set = function(info, v)
v = tonumber(v) or 0
if v < 0 then
v = 0
end
trigger.onUpdateThrottle = v
WeakAuras.Add(data)
end,
hidden = function() return not (
trigger.type == "custom"
and (trigger.custom_type == "status" or trigger.custom_type == "stateupdate")
and (
(trigger.check == "update")
or (trigger.check == "event" and type(trigger.events) == "string" and trigger.events:find("FRAME_UPDATE", 1, true))
)
)
end,
},
events = {
type = "input",
multiline = true,