From 4051775bef8aaff07b1b84e1570ebcc34ba98dc8 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 31 Mar 2019 12:41:24 +0200 Subject: [PATCH] skin: fix craft-ui description alignment --- skins/blizzard/professions.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/skins/blizzard/professions.lua b/skins/blizzard/professions.lua index b3b8f271..fcdc1adb 100644 --- a/skins/blizzard/professions.lua +++ b/skins/blizzard/professions.lua @@ -190,6 +190,7 @@ pfUI:RegisterSkin("Profession", function () seltitle:SetTextColor(.8,.8,.8,1) reagentlabel:ClearAllPoints() + reagentlabel:SetPoint("TOPLEFT", seltitle, "BOTTOMLEFT", -45, -15) reagentlabel:SetTextColor(1,1,1,1) local scanner = libtipscan:GetScanner(name) @@ -198,14 +199,14 @@ pfUI:RegisterSkin("Profession", function () detailscroll:Show() HandleIcon(icon, icon:GetNormalTexture()) - local off = requiretext and requiretext:GetHeight() or 1 - reagentlabel:SetPoint("TOPLEFT", seltitle, "BOTTOMLEFT", -45, -15-off) - if name == "TradeSkill" then local itemlink = GetTradeSkillItemLink(id) if not itemlink then return end local _, _, link = string.find(itemlink, "(item:%d+:%d+:%d+:%d+)") + local off = requiretext and requiretext:GetHeight() or 1 + reagentlabel:SetPoint("TOPLEFT", seltitle, "BOTTOMLEFT", -45, -15-off) + if link then scanner:SetHyperlink(link) seltitle:SetHeight(0)