From f03916abdca6db7d3c42e08b1f1815b396c47be5 Mon Sep 17 00:00:00 2001 From: Kevin Krol Date: Fri, 6 Sep 2024 15:54:47 +0200 Subject: [PATCH] Improve tooltip --- Clicked/BindingConfig/Tabs/Action.lua | 12 +++++++++++- Clicked/Locales/enUS.lua | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Clicked/BindingConfig/Tabs/Action.lua b/Clicked/BindingConfig/Tabs/Action.lua index 6a7cf6b..f8a403a 100644 --- a/Clicked/BindingConfig/Tabs/Action.lua +++ b/Clicked/BindingConfig/Tabs/Action.lua @@ -626,7 +626,17 @@ function Addon.BindingConfig.BindingActionTab:RedrawKeyOptions() CreateCheckbox(Addon.L["Override queued spell"], Addon.L["Allow this binding to override a spell that is queued by the lag-tolerance system, should be reserved for high-priority spells."], "cancelQueuedSpell") CreateCheckbox(Addon.L["Exit shapeshift form"], Addon.L["Allow this binding to automatically exit your shapeshift form."], "cancelForm") CreateCheckbox(Addon.L["Target on cast"], Addon.L["Targets the unit you are casting on."], "targetUnitAfterCast") - CreateCheckbox(Addon.L["Clear blue cursor"], Addon.L["Clears the \"blue casting cursor\"."] .. "\n\n" .. Addon.L["It's recommended to always leave this option enabled, as without it you may sometimes be left with a pending spell cast on your cursor."], "stopSpellTarget") + + do + local tooltip = { + Addon.L["Clears the \"blue casting cursor\"."], + "", + Addon.L["It's recommended to always leave this option enabled unless you need the extra space in a macro."], + Addon.L["Without it you may be left with a dangling cast if the macro cannot determine the target automatically, in other words if your targets don't end in either 'player' or 'cursor' (or 'default' if self-cast is enabled)"] + } + + CreateCheckbox(Addon.L["Clear blue cursor"], table.concat(tooltip, "\n"), "stopSpellTarget") + end self.container:AddChild(group) end diff --git a/Clicked/Locales/enUS.lua b/Clicked/Locales/enUS.lua index 587e98f..4dc6dd6 100644 --- a/Clicked/Locales/enUS.lua +++ b/Clicked/Locales/enUS.lua @@ -317,4 +317,5 @@ L["Tank"] = true L["Healer"] = true L["Clear blue cursor"] = true L["Clears the \"blue casting cursor\"."] = true -L["It's recommended to always leave this option enabled, as without it you may sometimes be left with a pending spell cast on your cursor."] = true +L["It's recommended to always leave this option enabled unless you need the extra space in a macro."] = true +L["Without it you may be left with a dangling cast if the macro cannot determine the target automatically, in other words if your targets don't end in either 'player' or 'cursor' (or 'default' if self-cast is enabled)"] = true