from retail

This commit is contained in:
Bunny67
2020-07-18 22:48:08 +03:00
parent 741c70cbb5
commit 0e3999b8fd
3 changed files with 25 additions and 2 deletions
+10
View File
@@ -204,6 +204,9 @@ local function GetCustomTriggerOptions(data, triggernum)
name = L["Dynamic Duration"],
order = 12.5,
hidden = function() return not (trigger.type == "custom" and trigger.custom_type == "event" and trigger.custom_hide ~= "custom") end,
get = function()
return trigger.dynamicDuration
end,
set = function(info, v)
trigger.dynamicDuration = v;
WeakAuras.Add(data);
@@ -217,6 +220,12 @@ local function GetCustomTriggerOptions(data, triggernum)
name = L["Duration (s)"],
order = 13,
hidden = function() return not (trigger.type == "custom" and trigger.custom_type == "event" and trigger.custom_hide ~= "custom" and not trigger.dynamicDuration) end,
get = function()
return trigger.duration
end,
set = function(info, v)
trigger.duration = v
end
},
addOverlayFunction = {
type = "execute",
@@ -247,6 +256,7 @@ local function GetCustomTriggerOptions(data, triggernum)
end
WeakAuras.Add(data);
WeakAuras.ClearAndUpdateOptions(data.id)
WeakAuras.FillOptions()
end
}
};
+14 -2
View File
@@ -809,7 +809,13 @@ function WeakAuras.ConstructOptions(prototype, data, startorder, triggernum, tri
type = "select",
width = WeakAuras.doubleWidth,
name = L["Hide"],
order = order
order = order,
get = function()
return trigger.unevent
end,
set = function(info, v)
trigger.unevent = v
end
};
order = order + 1;
if(unevent == "timed") then
@@ -818,7 +824,13 @@ function WeakAuras.ConstructOptions(prototype, data, startorder, triggernum, tri
type = "input",
width = WeakAuras.normalWidth,
name = L["Duration (s)"],
order = order
order = order,
get = function()
return trigger.duration
end,
set = function(info, v)
trigger.duration = v
end
}
order = order + 1;
else
@@ -741,6 +741,7 @@ local function ConstructTextEditor(frame)
editor:ClearFocus()
frame.window = "default"
frame:UpdateFrameVisible()
WeakAuras.FillOptions()
end
WeakAuras.editor = editor