Skip to content

Commit f582fdd

Browse files
Added picture tooltip to 'Enable Soft Interact'
Added colors to the tooltips of the softInteract child checkboxes
1 parent 36f3f40 commit f582fdd

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

imagesClassic/icontoofar.png

5.46 KB
Loading

tabs/standard_cata.lua

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,21 @@ function cata:ExtraButtons(tab1contents)
6767
DropDown_CreateTitle(tab1contents.baitEnable.dropDown, T["Bait"])
6868

6969

70-
70+
7171
tab1contents.softInteract.text:SetText(T["Enable Soft Interact"])
72+
local pictureTooltip = CreateFrame("GameTooltip", "AngleurSoftInteract_PictureTooltip", UIParent, "Angleur_LegolandoPictureTooltipTemplate")
73+
tab1contents.softInteract.text:SetScript("OnEnter", function()
74+
pictureTooltip:SetOwner(tab1contents.softInteract.text, "ANCHOR_BOTTOMRIGHT")
75+
pictureTooltip:AddLine(T["Soft Interact in Classic:"])
76+
pictureTooltip:AddLine(T["Due to a limitation in Classic, the \'soft interact system\' can sometimes fail to catch the bobber when it lands too far.(Demonstrated in the picture)"
77+
.. "\n\nAngleur is designed to provide workarounds for this. Once enabled, please check out the options that appear below."], 1, 1, 1, true)
78+
pictureTooltip:Show()
79+
pictureTooltip:PlaceTexture("Interface/AddOns/Angleur/imagesClassic/icontoofar.png", 128, 128, "TOPRIGHT")
80+
81+
end)
82+
tab1contents.softInteract.text:SetScript("OnLeave", function()
83+
pictureTooltip:Hide()
84+
end)
7285
tab1contents.softInteract:reposition()
7386
-- tab1contents.softInteract.disabledText:SetText(T[])
7487
tab1contents.softInteract:SetScript("OnClick", function(self)

translations/enUS.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,15 @@ T["Range Indicator"] = "Range Indicator"
567567
T["Shows a visual range indicator when the bobber lands too far for the soft interact system to capture."] = "Shows a visual range indicator when the bobber lands too far for the soft interact system to capture."
568568

569569
T["Warning Sound"] = "Warning Sound"
570-
T["Plays a warning sound when the bobber lands too far for the soft interact system to capture."] = "Plays a warning sound when the bobber lands too far for the soft interact system to capture."
570+
T["Plays a warning sound when the bobber lands too far for the soft interact system to capture."] = "Plays a " .. colorYello:WrapTextInColorCode("warning sound ") .. "when the bobber lands too far for the soft interact system to capture."
571571

572572
T["Recast When OOB"] = "Recast When OOB"
573-
T["Sets the OneKey/Double-Click to Recast when the bobber lands too far for the soft interact system to capture."] = "Sets the OneKey/Double-Click to Recast when the bobber lands too far for the soft interact system to capture."
573+
T["Sets the OneKey/Double-Click to Recast when the bobber lands too far for the soft interact system to capture."] = "Sets the "
574+
.. colorRed:WrapTextInColorCode("OneKey") .. " / " .. colorRed:WrapTextInColorCode("Double-Click ") .. "to " .. colorYello:WrapTextInColorCode("Recast ") .. "when the bobber lands too far for the soft interact system to capture."
575+
576+
T["Soft Interact in Classic:"] = "Soft Interact in Classic:"
577+
578+
T["Due to a limitation in Classic, the \'soft interact system\' can sometimes fail to catch the bobber when it lands too far.(Demonstrated in the picture)"
579+
.. "\n\nAngleur is designed to provide workarounds for this. Once enabled, please check out the options that appear below."] = "Due to a limitation in Classic,\nthe " .. colorYello:WrapTextInColorCode("\'soft interact system\' ")
580+
.. "can sometimes fail to catch the bobber when it lands too far." .. colorGrae:WrapTextInColorCode("\n(Demonstrated in the picture)") .. colorBlu:WrapTextInColorCode("\n\nAngleur ")
581+
.. "is designed to provide workarounds for this. Once enabled, please check out the " .. colorYello:WrapTextInColorCode("options that appear below.")

0 commit comments

Comments
 (0)