mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 06:00:00 +00:00
skin: less borders for icon buttons
This commit is contained in:
@@ -20,21 +20,34 @@ pfUI:RegisterSkin("Gossip and Quest", function ()
|
||||
|
||||
for _, name in pairs({ "QuestProgressItem", "QuestDetailItem" }) do
|
||||
for i = 1, 6 do
|
||||
local item = _G[name..i]
|
||||
local icon = _G[name..i.."IconTexture"]
|
||||
local count = _G[name..i.."Count"]
|
||||
local xsize = item:GetWidth() - 10
|
||||
local ysize = item:GetHeight() - 10
|
||||
local name = name .. i
|
||||
local item = _G[name]
|
||||
local icon = _G[name.."IconTexture"]
|
||||
local count = _G[name.."Count"]
|
||||
local title = _G[name.."Name"]
|
||||
|
||||
local xsize = item:GetWidth() -12
|
||||
local ysize = item:GetHeight() -12
|
||||
|
||||
StripTextures(item)
|
||||
SkinButton(item)
|
||||
item:SetWidth(xsize)
|
||||
StripTextures(item)
|
||||
CreateBackdrop(item, nil, nil, .75)
|
||||
SetAllPointsOffset(item.backdrop, item, 4)
|
||||
SetHighlight(item)
|
||||
|
||||
icon:SetWidth(ysize)
|
||||
icon:SetHeight(ysize)
|
||||
icon:ClearAllPoints()
|
||||
icon:SetPoint("LEFT", 3, 0)
|
||||
icon:SetPoint("LEFT", 6, 0)
|
||||
icon:SetTexCoord(.08, .92, .08, .92)
|
||||
icon:SetParent(item.backdrop)
|
||||
icon:SetDrawLayer("OVERLAY")
|
||||
|
||||
count:SetParent(item.backdrop)
|
||||
count:SetDrawLayer("OVERLAY")
|
||||
|
||||
title:SetParent(item.backdrop)
|
||||
title:SetDrawLayer("OVERLAY")
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -81,13 +94,6 @@ pfUI:RegisterSkin("Gossip and Quest", function ()
|
||||
num_items = MAX_NUM_ITEMS
|
||||
hook_func = "QuestFrameItems_Update"
|
||||
end
|
||||
|
||||
for i = 1, num_items do
|
||||
local button = _G[frameName..panel.."Item"..i]
|
||||
StripTextures(button)
|
||||
CreateBackdrop(button, nil, true, .5)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -24,9 +24,12 @@ pfUI:RegisterSkin("Merchant", function ()
|
||||
for i = 1, BUYBACK_ITEMS_PER_PAGE, 1 do
|
||||
local merchantButton = _G["MerchantItem"..i]
|
||||
StripTextures(merchantButton)
|
||||
CreateBackdrop(merchantButton, nil, nil, .75)
|
||||
merchantButton:SetHeight(37)
|
||||
|
||||
local bg = merchantButton:CreateTexture(nil, "LOW")
|
||||
bg:SetTexture(1,1,1,.05)
|
||||
bg:SetAllPoints()
|
||||
|
||||
local itemButton = _G["MerchantItem"..i.."ItemButton"]
|
||||
StripTextures(itemButton)
|
||||
SkinButton(itemButton, nil, nil, nil, _G[itemButton:GetName()..'IconTexture'])
|
||||
@@ -51,7 +54,9 @@ pfUI:RegisterSkin("Merchant", function ()
|
||||
SkinArrowButton(MerchantNextPageButton, "right", 18)
|
||||
|
||||
StripTextures(MerchantBuyBackItem)
|
||||
CreateBackdrop(MerchantBuyBackItem, nil, nil, .75)
|
||||
local bg = MerchantBuyBackItem:CreateTexture(nil, "LOW")
|
||||
bg:SetTexture(1,1,1,.05)
|
||||
bg:SetAllPoints()
|
||||
|
||||
StripTextures(MerchantBuyBackItemItemButton)
|
||||
SkinButton(MerchantBuyBackItemItemButton, nil, nil, nil, _G[MerchantBuyBackItemItemButton:GetName()..'IconTexture'])
|
||||
|
||||
@@ -182,18 +182,30 @@ pfUI:RegisterSkin("Quest Log", function ()
|
||||
local item = _G[name]
|
||||
local icon = _G[name.."IconTexture"]
|
||||
local count = _G[name.."Count"]
|
||||
local xsize = item:GetWidth() - 10
|
||||
local ysize = item:GetHeight() - 10
|
||||
local title = _G[name.."Name"]
|
||||
|
||||
local xsize = item:GetWidth() -12
|
||||
local ysize = item:GetHeight() -12
|
||||
|
||||
StripTextures(item)
|
||||
SkinButton(item)
|
||||
item:SetWidth(xsize)
|
||||
StripTextures(item)
|
||||
CreateBackdrop(item, nil, nil, .75)
|
||||
SetAllPointsOffset(item.backdrop, item, 4)
|
||||
SetHighlight(item)
|
||||
|
||||
icon:SetWidth(ysize)
|
||||
icon:SetHeight(ysize)
|
||||
icon:ClearAllPoints()
|
||||
icon:SetPoint("LEFT", 3, 0)
|
||||
icon:SetPoint("LEFT", 6, 0)
|
||||
icon:SetTexCoord(.08, .92, .08, .92)
|
||||
icon:SetParent(item.backdrop)
|
||||
icon:SetDrawLayer("OVERLAY")
|
||||
|
||||
count:SetParent(item.backdrop)
|
||||
count:SetDrawLayer("OVERLAY")
|
||||
|
||||
title:SetParent(item.backdrop)
|
||||
title:SetDrawLayer("OVERLAY")
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user