mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 10:26:02 +00:00
skin: align requiretext in proffession window
This commit is contained in:
@@ -41,6 +41,7 @@ pfUI:RegisterSkin("Profession", function ()
|
||||
local close = _G[frame.."CloseButton"]
|
||||
local title = _G[frame.."TitleText"]
|
||||
local points = _G[frame.."PointsText"]
|
||||
local requiretext = _G[name .. "RequirementText"]
|
||||
|
||||
local frame = _G[frame]
|
||||
|
||||
@@ -190,7 +191,6 @@ pfUI:RegisterSkin("Profession", function ()
|
||||
|
||||
reagentlabel:ClearAllPoints()
|
||||
reagentlabel:SetTextColor(1,1,1,1)
|
||||
reagentlabel:SetPoint("TOPLEFT", seltitle, "BOTTOMLEFT", -45, -15)
|
||||
|
||||
local scanner = libtipscan:GetScanner(name)
|
||||
hooksecurefunc(SetSelection, function(id)
|
||||
@@ -198,6 +198,9 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user