beta
This commit is contained in:
@@ -1084,6 +1084,16 @@ WeakAuras.event_prototypes = {
|
||||
store = true,
|
||||
conditionType = "select"
|
||||
},
|
||||
{
|
||||
name = "ignoreSelf",
|
||||
display = L["Ignore Self"],
|
||||
type = "toggle",
|
||||
width = WeakAuras.doubleWidth,
|
||||
enable = function(trigger)
|
||||
return trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"
|
||||
end,
|
||||
init = "not UnitIsUnit(\"player\", unit)"
|
||||
},
|
||||
{
|
||||
name = "ignoreDead",
|
||||
display = L["Ignore Dead"],
|
||||
@@ -1284,6 +1294,16 @@ WeakAuras.event_prototypes = {
|
||||
store = true,
|
||||
conditionType = "select"
|
||||
},
|
||||
{
|
||||
name = "ignoreSelf",
|
||||
display = L["Ignore Self"],
|
||||
type = "toggle",
|
||||
width = WeakAuras.doubleWidth,
|
||||
enable = function(trigger)
|
||||
return trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"
|
||||
end,
|
||||
init = "not UnitIsUnit(\"player\", unit)"
|
||||
},
|
||||
{
|
||||
name = "ignoreDead",
|
||||
display = L["Ignore Dead"],
|
||||
@@ -1492,6 +1512,16 @@ WeakAuras.event_prototypes = {
|
||||
store = true,
|
||||
conditionType = "select"
|
||||
},
|
||||
{
|
||||
name = "ignoreSelf",
|
||||
display = L["Ignore Self"],
|
||||
type = "toggle",
|
||||
width = WeakAuras.doubleWidth,
|
||||
enable = function(trigger)
|
||||
return trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"
|
||||
end,
|
||||
init = "not UnitIsUnit(\"player\", unit)"
|
||||
},
|
||||
{
|
||||
name = "ignoreDead",
|
||||
display = L["Ignore Dead"],
|
||||
@@ -4933,6 +4963,16 @@ WeakAuras.event_prototypes = {
|
||||
return not trigger.use_inverse
|
||||
end
|
||||
},
|
||||
{
|
||||
name = "ignoreSelf",
|
||||
display = L["Ignore Self"],
|
||||
type = "toggle",
|
||||
width = WeakAuras.doubleWidth,
|
||||
enable = function(trigger)
|
||||
return trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party"
|
||||
end,
|
||||
init = "not UnitIsUnit(\"player\", unit)"
|
||||
},
|
||||
{
|
||||
name = "sourceUnit",
|
||||
init = "unit",
|
||||
|
||||
@@ -120,6 +120,39 @@ WeakAuras.format_types = {
|
||||
AddOptions = function() end,
|
||||
CreateFormatter = function() end
|
||||
},
|
||||
string = {
|
||||
display = L["String"],
|
||||
AddOptions = function(symbol, hidden, addOption, get)
|
||||
addOption(symbol .. "_abbreviate", {
|
||||
type = "toggle",
|
||||
name = L["Abbreviate"],
|
||||
width = WeakAuras.normalWidth,
|
||||
hidden = hidden,
|
||||
})
|
||||
addOption(symbol .. "_abbreviate_max", {
|
||||
type = "range",
|
||||
name = L["Max Char "],
|
||||
width = WeakAuras.normalWidth,
|
||||
min = 1,
|
||||
max = 20,
|
||||
hidden = hidden,
|
||||
step = 1,
|
||||
disabled = function()
|
||||
return not get(symbol .. "_abbreviate")
|
||||
end
|
||||
})
|
||||
end,
|
||||
CreateFormatter = function(symbol, get)
|
||||
local abbreviate = get(symbol .. "_abbreviate", false)
|
||||
local abbreviateMax = get(symbol .. "_abbreviate_max", 8)
|
||||
if abbreviate then
|
||||
return function(input)
|
||||
return WeakAuras.WA_Utf8Sub(input, abbreviateMax)
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
},
|
||||
timed = {
|
||||
display = L["Time Format"],
|
||||
AddOptions = function(symbol, hidden, addOption, get)
|
||||
|
||||
Reference in New Issue
Block a user