From 69ed781ee4c348aec832da7c4ee403c7c598f16c Mon Sep 17 00:00:00 2001 From: Ackis Date: Mon, 3 Nov 2008 22:49:03 +0000 Subject: [PATCH] Ackis Recipe List: - Add the recipe link to the tooltip in addition to the acquire information. - Dry-coded (Compiles with luac -p) --- ARLFrame.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/ARLFrame.lua b/ARLFrame.lua index 23f2fdb..8e8d22e 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -1623,11 +1623,28 @@ function SetRecipeButtonTooltip (bIndex) end + -- Spacer gttAdd(0, 0, 0, 0, ".", addon:hexcolor("BLACK")) + + clr1 = addon:hexcolor("NORMAL") + + local spelllink = recipeDB[rIndex]["RecipeLink"] + + if (spelllink) then + + gttAdd(0, 0, 0, 0, spelllink, clr1) + + end + + -- Spacer + gttAdd(0, 0, 0, 0, ".", addon:hexcolor("BLACK")) + clr1 = addon:hexcolor("NORMAL") + gttAdd(0, -1, 0, 0, L["ALT_CLICK"], clr1) gttAdd(0, -1, 0, 1, L["CTRL_CLICK"], clr1) gttAdd(0, -1, 0, 1, L["SHIFT_CLICK"], clr1) + arlTooltip:Show() end @@ -1936,8 +1953,24 @@ function SetRecipeButtonTooltip (bIndex) end + -- Spacer gttAdd(0, 0, 0, 0, ".", addon:hexcolor("BLACK")) + clr1 = addon:hexcolor("NORMAL") + + local spelllink = recipeDB[rIndex]["RecipeLink"] + + if (spelllink) then + + gttAdd(0, 0, 0, 0, spelllink, clr1) + + end + + -- Spacer + gttAdd(0, 0, 0, 0, ".", addon:hexcolor("BLACK")) + + clr1 = addon:hexcolor("NORMAL") + gttAdd(0, -1, 0, 0, L["ALT_CLICK"], clr1) gttAdd(0, -1, 0, 1, L["CTRL_CLICK"], clr1) gttAdd(0, -1, 0, 1, L["SHIFT_CLICK"], clr1) -- 1.7.9.5