mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 19:30:49 +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 close = _G[frame.."CloseButton"]
|
||||||
local title = _G[frame.."TitleText"]
|
local title = _G[frame.."TitleText"]
|
||||||
local points = _G[frame.."PointsText"]
|
local points = _G[frame.."PointsText"]
|
||||||
|
local requiretext = _G[name .. "RequirementText"]
|
||||||
|
|
||||||
local frame = _G[frame]
|
local frame = _G[frame]
|
||||||
|
|
||||||
@@ -190,7 +191,6 @@ pfUI:RegisterSkin("Profession", function ()
|
|||||||
|
|
||||||
reagentlabel:ClearAllPoints()
|
reagentlabel:ClearAllPoints()
|
||||||
reagentlabel:SetTextColor(1,1,1,1)
|
reagentlabel:SetTextColor(1,1,1,1)
|
||||||
reagentlabel:SetPoint("TOPLEFT", seltitle, "BOTTOMLEFT", -45, -15)
|
|
||||||
|
|
||||||
local scanner = libtipscan:GetScanner(name)
|
local scanner = libtipscan:GetScanner(name)
|
||||||
hooksecurefunc(SetSelection, function(id)
|
hooksecurefunc(SetSelection, function(id)
|
||||||
@@ -198,6 +198,9 @@ pfUI:RegisterSkin("Profession", function ()
|
|||||||
detailscroll:Show()
|
detailscroll:Show()
|
||||||
HandleIcon(icon, icon:GetNormalTexture())
|
HandleIcon(icon, icon:GetNormalTexture())
|
||||||
|
|
||||||
|
local off = requiretext and requiretext:GetHeight() or 1
|
||||||
|
reagentlabel:SetPoint("TOPLEFT", seltitle, "BOTTOMLEFT", -45, -15-off)
|
||||||
|
|
||||||
if name == "TradeSkill" then
|
if name == "TradeSkill" then
|
||||||
local itemlink = GetTradeSkillItemLink(id)
|
local itemlink = GetTradeSkillItemLink(id)
|
||||||
if not itemlink then return end
|
if not itemlink then return end
|
||||||
|
|||||||
Reference in New Issue
Block a user