From e1b166b53c8d930704d9226ac1894d9b51493655 Mon Sep 17 00:00:00 2001 From: Buds Date: Tue, 19 Sep 2023 15:52:12 +0200 Subject: [PATCH] Add tooltip to inRange option and update on ignoreInvisible tooltip --- WeakAuras/Prototypes.lua | 4 ++++ WeakAurasOptions/BuffTrigger2.lua | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index b63b429d5d..cd8a954c2b 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -2228,6 +2228,7 @@ Private.event_prototypes = { { name = "inRange", display = L["In Range"], + desc = L["Uses UnitInRange() to check if in range. Matches default raid frames out of range behavior, which is between 25 to 40 yards depending on your class and spec."], type = "toggle", width = WeakAuras.doubleWidth, enable = function(trigger) @@ -3027,6 +3028,7 @@ Private.event_prototypes = { { name = "inRange", display = L["In Range"], + desc = L["Uses UnitInRange() to check if in range. Matches default raid frames out of range behavior, which is between 25 to 40 yards depending on your class and spec."], type = "toggle", width = WeakAuras.doubleWidth, enable = function(trigger) @@ -3585,6 +3587,7 @@ Private.event_prototypes = { { name = "inRange", display = L["In Range"], + desc = L["Uses UnitInRange() to check if in range. Matches default raid frames out of range behavior, which is between 25 to 40 yards depending on your class and spec."], type = "toggle", width = WeakAuras.doubleWidth, enable = function(trigger) @@ -3892,6 +3895,7 @@ Private.event_prototypes = { { name = "inRange", display = L["In Range"], + desc = L["Uses UnitInRange() to check if in range. Matches default raid frames out of range behavior, which is between 25 to 40 yards depending on your class and spec."], type = "toggle", width = WeakAuras.doubleWidth, enable = function(trigger) diff --git a/WeakAurasOptions/BuffTrigger2.lua b/WeakAurasOptions/BuffTrigger2.lua index 5b4394abef..d2f96ab0cd 100644 --- a/WeakAurasOptions/BuffTrigger2.lua +++ b/WeakAurasOptions/BuffTrigger2.lua @@ -1038,6 +1038,7 @@ local function GetBuffTriggerOptions(data, triggernum) inRange = { type = "toggle", name = L["Ignore out of casting range"], + desc = L["Uses UnitInRange() to check if in range. Matches default raid frames out of range behavior, which is between 25 to 40 yards depending on your class and spec."], order = 69.81, width = WeakAuras.doubleWidth, hidden = function() return not (trigger.type == "aura2" and (trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party") and WeakAuras.IsRetail()) end @@ -1045,7 +1046,7 @@ local function GetBuffTriggerOptions(data, triggernum) ignoreInvisible = { type = "toggle", name = L["Ignore out of checking range"], - desc = L["Uses UnitIsVisible() to check if in range. This is polled every second."], + desc = L["Uses UnitIsVisible() to check if game client has loaded a object for this unit. This distance is around 100 yards. This is polled every second."], order = 69.9, width = WeakAuras.doubleWidth, hidden = function() return not (trigger.type == "aura2" and (trigger.unit == "group" or trigger.unit == "raid" or trigger.unit == "party")) end