@@ -683,7 +683,7 @@ local function GetBuffTriggerOptions(data, triggernum)
|
|||||||
|
|
||||||
useUnitName = {
|
useUnitName = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
width = "WeakAuras.normalWidth",
|
width = WeakAuras.normalWidth,
|
||||||
name = L["UnitName Filter"],
|
name = L["UnitName Filter"],
|
||||||
order = 69.1,
|
order = 69.1,
|
||||||
hidden = function() return
|
hidden = function() return
|
||||||
|
|||||||
@@ -1322,7 +1322,7 @@ local function AddCodeOption(args, data, name, prefix, url, order, hiddenFunc, p
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function AddCommonTriggerOptions(options, data, triggernum)
|
local function AddCommonTriggerOptions(options, data, triggernum)
|
||||||
local trigger= data.triggers[triggernum].trigger
|
local trigger = data.triggers[triggernum].trigger
|
||||||
|
|
||||||
local trigger_types = {};
|
local trigger_types = {};
|
||||||
for type, triggerSystem in pairs(WeakAuras.triggerTypes) do
|
for type, triggerSystem in pairs(WeakAuras.triggerTypes) do
|
||||||
@@ -1349,15 +1349,11 @@ local function AddCommonTriggerOptions(options, data, triggernum)
|
|||||||
end,
|
end,
|
||||||
set = function(info, v)
|
set = function(info, v)
|
||||||
trigger.type = v;
|
trigger.type = v;
|
||||||
if(trigger.event) then
|
local prototype = trigger.event and WeakAuras.event_prototypes[trigger.event];
|
||||||
local prototype = WeakAuras.event_prototypes[trigger.event];
|
if v == "status" and (not prototype or prototype.type == "event") then
|
||||||
if(prototype) then
|
trigger.event = "Cooldown Progress (Spell)"
|
||||||
if(v == "status" and prototype.type == "event") then
|
elseif v == "event" and (not prototype or prototype.type == "status") then
|
||||||
trigger.event = "Cooldown Progress (Spell)"
|
trigger.event = "Combat Log"
|
||||||
elseif(v == "event" and prototype.type == "status") then
|
|
||||||
trigger.event = "Combat Log"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
WeakAuras.Add(data);
|
WeakAuras.Add(data);
|
||||||
WeakAuras.UpdateThumbnail(data);
|
WeakAuras.UpdateThumbnail(data);
|
||||||
|
|||||||
@@ -408,7 +408,11 @@ local function GetGenericTriggerOptions(data, triggernum)
|
|||||||
control = "WeakAurasSortedDropdown",
|
control = "WeakAurasSortedDropdown",
|
||||||
hidden = function() return not (trigger.type == "event" and trigger.event == "Combat Log" and subevent_actual_prefix_types[trigger.subeventPrefix]); end,
|
hidden = function() return not (trigger.type == "event" and trigger.event == "Combat Log" and subevent_actual_prefix_types[trigger.subeventPrefix]); end,
|
||||||
get = function(info)
|
get = function(info)
|
||||||
return trigger.subevent
|
return trigger.subeventSuffix
|
||||||
|
end,
|
||||||
|
set = function(info, v)
|
||||||
|
trigger.subeventSuffix = v
|
||||||
|
WeakAuras.Add(data)
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
spacer_suffix = {
|
spacer_suffix = {
|
||||||
|
|||||||
@@ -767,6 +767,9 @@ function WeakAuras.CreateFrame()
|
|||||||
end
|
end
|
||||||
|
|
||||||
frame.UpdateOptions = function(self)
|
frame.UpdateOptions = function(self)
|
||||||
|
if not self.pickedDisplay then
|
||||||
|
return
|
||||||
|
end
|
||||||
self.selectedTab = self.selectedTab or "region"
|
self.selectedTab = self.selectedTab or "region"
|
||||||
local data
|
local data
|
||||||
if type(self.pickedDisplay) == "string" then
|
if type(self.pickedDisplay) == "string" then
|
||||||
@@ -820,6 +823,10 @@ function WeakAuras.CreateFrame()
|
|||||||
-- Any changes to the options that go around that, e.g. drag/drop, group,
|
-- Any changes to the options that go around that, e.g. drag/drop, group,
|
||||||
-- texture pick, etc should call this
|
-- texture pick, etc should call this
|
||||||
frame.FillOptions = function(self)
|
frame.FillOptions = function(self)
|
||||||
|
if not self.pickedDisplay then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
frame:UpdateOptions()
|
frame:UpdateOptions()
|
||||||
|
|
||||||
local data
|
local data
|
||||||
|
|||||||
Reference in New Issue
Block a user