Version 6.1.0 - Raid/Party Frame Fixes

Bugfixes:
- Fixed 40-yard range check not working for raid/party frames
- Fixed aggro indicator not displaying properly on raid/party frames
- Improved aggro cache to only cache positive results for instant detection
- Fixed HP/Mana not updating with "Use Raid Frames for group" enabled
- Added SuperWoW nil-check for SpellInfo
- Added missing events: PARTY_MEMBER_ENABLE, PARTY_MEMBER_DISABLE, PLAYER_UPDATE_RESTING

UI Improvements:
- Share/Hoverbind buttons now show warning when module is disabled
This commit is contained in:
Meow
2026-01-08 12:25:18 +01:00
parent 5d0e195d1e
commit 34f5c3eb02
111 changed files with 4424 additions and 2308 deletions
+55
View File
@@ -0,0 +1,55 @@
pfUI:RegisterSkin("Arena", "tbc", function ()
StripTextures(ArenaFrame)
CreateBackdrop(ArenaFrame, nil, nil, .75)
CreateBackdropShadow(ArenaFrame)
ArenaFrame.backdrop:SetPoint("TOPLEFT", 10, -10)
ArenaFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 72)
ArenaFrame:SetHitRectInsets(10,32,10,72)
EnableMovable(ArenaFrame)
SkinCloseButton(ArenaFrameCloseButton, ArenaFrame.backdrop, -6, -6)
ArenaFrame:DisableDrawLayer("BACKGROUND")
ArenaFrameFrameLabel:ClearAllPoints()
ArenaFrameFrameLabel:SetPoint("TOP", TabardFrame.backdrop, "TOP", 0, -10)
ArenaFrame.zones_bg = CreateFrame("Frame", "ArenaFrameZonesBackground", ArenaFrame)
CreateBackdrop(ArenaFrame.zones_bg, nil, nil, .7)
ArenaFrame.zones_bg:SetWidth(324)
ArenaFrame.zones_bg:SetHeight(204)
ArenaFrame.zones_bg:SetPoint("TOPLEFT", ArenaFrame.backdrop, "TOPLEFT", 9, -62)
ArenaFrame.tex1 = ArenaFrame.backdrop:CreateTexture("ArenaFrameWorldMap1", "ARTWORK")
ArenaFrame.tex1:SetTexture("Interface\\BattlefieldFrame\\UI-Battlefield-WorldMap1")
ArenaFrame.tex1:SetPoint("TOPLEFT", 11, -64)
ArenaFrame.tex1:SetHeight(240)
ArenaFrame.tex2 = ArenaFrame.backdrop:CreateTexture("ArenaFrameWorldMap2", "ARTWORK")
ArenaFrame.tex2:SetTexture("Interface\\BattlefieldFrame\\UI-Battlefield-WorldMap2")
ArenaFrame.tex2:SetPoint("LEFT", ArenaFrame.tex1, "RIGHT", 0, 0)
ArenaFrame.tex2:SetHeight(240)
ArenaFrameNameHeader:ClearAllPoints()
ArenaFrameNameHeader:SetPoint("BOTTOMLEFT", ArenaFrameDivider, "TOPLEFT", 14, 70)
local shift = 28
ArenaZone1:ClearAllPoints()
ArenaZone1:SetPoint("TOPLEFT", ArenaFrame, "TOPLEFT", 23, -79 - shift)
ArenaZone4:ClearAllPoints()
ArenaZone4:SetPoint("TOPLEFT", ArenaZone3, "TOPLEFT", 0, -85 + shift)
ArenaFrame.textbox = CreateFrame("Frame", "ArenaFrameTextBox", ArenaFrame)
ArenaFrame.textbox:SetWidth(324)
ArenaFrame.textbox:SetHeight(110)
CreateBackdrop(ArenaFrame.textbox)
ArenaFrame.textbox:SetPoint("BOTTOM", ArenaFrame.backdrop, "BOTTOM", 0, 36)
ArenaFrameZoneDescription:SetFontObject(GameFontWhite)
ArenaFrameZoneDescription:ClearAllPoints()
ArenaFrameZoneDescription:SetPoint("TOPLEFT", ArenaFrame.textbox, "TOPLEFT", 4, -4)
ArenaFrameZoneDescription:SetPoint("BOTTOMRIGHT", ArenaFrame.textbox, "BOTTOMRIGHT", -4, 4)
SkinButton(ArenaFrameCancelButton)
SkinButton(ArenaFrameJoinButton)
SkinButton(ArenaFrameGroupJoinButton)
end)
+119
View File
@@ -0,0 +1,119 @@
pfUI:RegisterSkin("Arena Registrar", "tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
do -- ArenaRegistrarFrame
StripTextures(ArenaRegistrarFrame)
StripTextures(ArenaRegistrarGreetingFrame)
CreateBackdrop(ArenaRegistrarFrame, nil, nil, .75)
CreateBackdropShadow(ArenaRegistrarFrame)
ArenaRegistrarFrame.backdrop:SetPoint("TOPLEFT", 14, -18)
ArenaRegistrarFrame.backdrop:SetPoint("BOTTOMRIGHT", -28, 66)
ArenaRegistrarFrame:SetHitRectInsets(14,28,18,66)
EnableMovable(ArenaRegistrarFrame)
SkinCloseButton(ArenaRegistrarFrameCloseButton, ArenaRegistrarFrame.backdrop, -6, -6)
ArenaRegistrarFrame:DisableDrawLayer("BACKGROUND")
ArenaRegistrarFrameNpcNameText:ClearAllPoints()
ArenaRegistrarFrameNpcNameText:SetPoint("TOP", ArenaRegistrarFrame.backdrop, "TOP", 0, -10)
SkinButton(ArenaRegistrarFrameGoodbyeButton)
SkinButton(ArenaRegistrarFrameCancelButton)
SkinButton(ArenaRegistrarFramePurchaseButton)
ArenaRegistrarCostLabel:SetFontObject("GameFontWhite")
ArenaRegistrarFrameEditBox:DisableDrawLayer("BACKGROUND")
CreateBackdrop(ArenaRegistrarFrameEditBox, nil, nil, 1)
ArenaRegistrarFrameEditBox:SetHeight(16)
local bg = ArenaRegistrarFrame:CreateTexture(nil, "LOW")
bg:SetTexCoord(.1,1,0,1)
bg:SetTexture("Interface\\Stationery\\StationeryTest1")
bg:SetPoint("TOPLEFT", 23, -81)
bg:SetPoint("BOTTOMRIGHT", -40, 100)
end
do -- PVPBannerFrame
StripTextures(PVPBannerFrame)
CreateBackdrop(PVPBannerFrame, nil, nil, .75)
CreateBackdropShadow(PVPBannerFrame)
PVPBannerFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
PVPBannerFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 72)
PVPBannerFrame:SetHitRectInsets(10,32,12,72)
EnableMovable(PVPBannerFrame)
SkinCloseButton(PVPBannerFrameCloseButton, PVPBannerFrame.backdrop, -6, -6)
PVPBannerFrame:DisableDrawLayer("BACKGROUND")
PVPBannerFrameNameText:ClearAllPoints()
PVPBannerFrameNameText:SetPoint("TOP", ArenaRegistrarFrame.backdrop, "TOP", 0, -10)
PVPBannerFrameGreetingText:ClearAllPoints()
PVPBannerFrameGreetingText:SetPoint("TOP", PVPBannerFrameNameText, "TOP", 0, -10)
PVPBannerFrameCustomizationBorder:Hide()
PVPBannerFrameCustomization1:ClearAllPoints()
PVPBannerFrameCustomization1:SetPoint("TOPLEFT", PVPBannerFrameCustomizationBorder, "TOPLEFT", 48, -45)
for i = 1, 2 do
local frame = _G["PVPBannerFrameCustomization"..i]
StripTextures(frame)
CreateBackdrop(frame, nil, true)
frame:SetHeight(25)
local left = _G["PVPBannerFrameCustomization"..i.."LeftButton"]
StripTextures(left)
SkinArrowButton(left, "left", 25)
left:ClearAllPoints()
left:SetPoint("LEFT", 0, 0)
local right = _G["PVPBannerFrameCustomization"..i.."RightButton"]
StripTextures(right)
SkinArrowButton(right, "right", 25)
right:ClearAllPoints()
right:SetPoint("RIGHT", 0, 0)
local text = _G["PVPBannerFrameCustomization"..i.."Text"]
text:ClearAllPoints()
text:SetPoint("CENTER", 0, 0)
end
local width = PVPBannerFrameCustomization2:GetWidth()
for i = 1, 3 do
local btn = _G["PVPColorPickerButton"..i]
local prev = _G["PVPColorPickerButton"..(i-1)]
SkinButton(btn)
btn:SetWidth(width)
btn:ClearAllPoints()
if prev then
btn:SetPoint("TOPLEFT", prev, "BOTTOMLEFT", 0, -5)
else
btn:SetPoint("TOPLEFT", PVPBannerFrameCustomization2, "BOTTOMLEFT", 0, -5)
end
end
local PVPBannerFrameCancelButton
do -- fix Blizzard bug. A button with the same name is created twice.
for k,v in ipairs({PVPBannerFrameCustomizationFrame:GetChildren()}) do
if v:GetName() == "PVPBannerFrameCancelButton" then v:Hide() end -- This is the wrong and broken button.
end
for k,v in ipairs({PVPBannerFrame:GetChildren()}) do
if v:GetName() == "PVPBannerFrameCancelButton" then PVPBannerFrameCancelButton = v end
end
end
SkinButton(PVPBannerFrameSaveButton)
SkinButton(PVPBannerFrameCancelButton)
PVPBannerFrameCancelButton:ClearAllPoints()
PVPBannerFrameCancelButton:SetPoint("TOPRIGHT", PVPColorPickerButton3, "BOTTOMRIGHT", 0, -10)
SkinButton(PVPBannerFrameAcceptButton)
PVPBannerFrameAcceptButton:ClearAllPoints()
PVPBannerFrameAcceptButton:SetPoint("RIGHT", PVPBannerFrameCancelButton, "LEFT", -2*bpad, 0)
end
end)
+10 -5
View File
@@ -1,11 +1,16 @@
pfUI:RegisterSkin("Auctionhouse", "vanilla", function ()
pfUI:RegisterSkin("Auctionhouse", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
HookAddonOrVariable("Blizzard_AuctionUI", function()
SkinArrowButton(BidPrevPageButton, "left", 18)
SkinArrowButton(BidNextPageButton, "right", 18)
SkinArrowButton(AuctionsPrevPageButton, "left", 18)
SkinArrowButton(AuctionsNextPageButton, "right", 18)
-- Compatibility
if BrowseResetButton then -- tbc
SkinButton(BrowseResetButton)
else -- vanilla
SkinArrowButton(BidPrevPageButton, "left", 18)
SkinArrowButton(BidNextPageButton, "right", 18)
SkinArrowButton(AuctionsPrevPageButton, "left", 18)
SkinArrowButton(AuctionsNextPageButton, "right", 18)
end
hooksecurefunc("AuctionFrame_OnShow", function()
AuctionFrame:ClearAllPoints()
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Battlefield", "vanilla", function ()
pfUI:RegisterSkin("Battlefield", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Battlefield Minimap", "vanilla", function ()
pfUI:RegisterSkin("Battlefield Minimap", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
HookAddonOrVariable("Blizzard_BattlefieldMinimap", function()
+19 -6
View File
@@ -1,13 +1,26 @@
pfUI:RegisterSkin("Character", "vanilla", function ()
pfUI:RegisterSkin("Character", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
-- Honor Tab
StripTextures(HonorFrame)
-- Compatibility
if PlayerTitleDropDown then -- tbc, wotlk
-- Character Tab
SkinDropDown(PlayerTitleDropDown)
PlayerTitleDropDown:SetPoint("TOP", CharacterLevelText, "BOTTOM", 0, -2)
PlayerTitleDropDownText:SetPoint("LEFT", PlayerTitleDropDown.backdrop, "LEFT", 6, 2)
SkinDropDown(PlayerStatFrameLeftDropDown)
SkinDropDown(PlayerStatFrameRightDropDown)
HonorFrameProgressBar:SetStatusBarTexture(pfUI.media["img:bar"])
CreateBackdrop(HonorFrameProgressBar)
HonorFrameProgressBar:SetHeight(24)
-- Honor Tab
StripTextures(PVPFrame)
else -- vanilla
-- Honor Tab
StripTextures(HonorFrame)
HonorFrameProgressBar:SetStatusBarTexture(pfUI.media["img:bar"])
CreateBackdrop(HonorFrameProgressBar)
HonorFrameProgressBar:SetHeight(24)
end
local magicResTextureCords = {
{0.21875, 0.78125, 0.25, 0.3203125},
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Dress Up Frame", "vanilla", function ()
pfUI:RegisterSkin("Dress Up Frame", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
+59 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Friends", "vanilla", function ()
pfUI:RegisterSkin("Friends", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
local maxtab = pfUI.expansion == "vanilla" and 4 or 5
@@ -336,6 +336,24 @@ pfUI:RegisterSkin("Friends", "vanilla", function ()
GuildInfoCancelButton:ClearAllPoints()
GuildInfoCancelButton:SetPoint("BOTTOMRIGHT", GuildInfoFrame, "BOTTOMRIGHT", -10, 8)
if GuildInfoGuildEventButton then -- log button (tbc+)
SkinButton(GuildInfoGuildEventButton)
GuildInfoGuildEventButton:ClearAllPoints()
GuildInfoGuildEventButton:SetPoint("BOTTOM", GuildInfoFrame, "BOTTOM", 0, 8)
end
if GuildEventLogFrame then -- guild log frame (tbc+)
StripTextures(GuildEventFrame)
CreateBackdrop(GuildEventFrame, nil, true, .75)
StripTextures(GuildEventLogFrame)
CreateBackdrop(GuildEventLogFrame, nil, true, .75)
StripTextures(GuildEventLogScrollFrame)
SkinScrollbar(GuildEventLogScrollFrameScrollBar)
SkinCloseButton(GuildEventLogCloseButton)
GuildEventLogCancelButton:SetPoint("BOTTOMRIGHT", -9, 8)
SkinButton(GuildEventLogCancelButton)
end
-- guild control
StripTextures(GuildControlPopupFrame)
CreateBackdrop(GuildControlPopupFrame, nil, true, .75)
@@ -374,6 +392,46 @@ pfUI:RegisterSkin("Friends", "vanilla", function ()
GuildControlPopupAcceptButton:SetPoint("RIGHT", GuildControlPopupFrameCancelButton, "LEFT", -2*bpad, 0)
end
if ChannelFrameVerticalBar then -- Channel Tab (TBC+)
StripTextures(ChannelFrameVerticalBar)
SkinButton(ChannelFrameNewButton)
ChannelFrameNewButton:SetPoint("BOTTOMRIGHT", -15, 82)
StripTextures(ChannelListScrollFrame)
SkinScrollbar(ChannelListScrollFrameScrollBar)
for i = 1, MAX_DISPLAY_CHANNEL_BUTTONS do
StripTextures(_G["ChannelButton"..i])
SkinButton(_G["ChannelButton"..i])
end
for i = 1, 22 do
StripTextures(_G["ChannelMemberButton"..i])
end
CreateBackdrop(ChannelMemberButton1)
ChannelMemberButton1.backdrop:SetPoint("BOTTOMRIGHT", ChannelMemberButton22, "BOTTOMRIGHT", -1, 0)
StripTextures(ChannelRosterScrollFrame)
SkinScrollbar(ChannelRosterScrollFrameScrollBar)
StripTextures(ChannelFrameDaughterFrame)
CreateBackdrop(ChannelFrameDaughterFrame)
StripTextures(ChannelFrameDaughterFrameChannelName)
CreateBackdrop(ChannelFrameDaughterFrameChannelName, nil, true)
ChannelFrameDaughterFrameChannelName:SetTextInsets(5,5,5,5)
StripTextures(ChannelFrameDaughterFrameChannelPassword)
CreateBackdrop(ChannelFrameDaughterFrameChannelPassword, nil, true)
ChannelFrameDaughterFrameChannelPassword:SetTextInsets(5,5,5,5)
SkinCloseButton(ChannelFrameDaughterFrameDetailCloseButton)
SkinButton(ChannelFrameDaughterFrameCancelButton)
SkinButton(ChannelFrameDaughterFrameOkayButton)
end
do -- Raid Tab
StripTextures(RaidInfoFrame)
CreateBackdrop(RaidInfoFrame, nil, true, .75)
+6 -2
View File
@@ -1,10 +1,14 @@
pfUI:RegisterSkin("Game Menu", "vanilla", function ()
pfUI:RegisterSkin("Game Menu", "vanilla:tbc", function ()
StripTextures(GameMenuFrame)
CreateBackdrop(GameMenuFrame, nil, true, .75)
CreateBackdropShadow(GameMenuFrame)
GameMenuFrame:SetWidth(GameMenuFrame:GetWidth() - 30)
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 6)
if pfUI.expansion == 'tbc' then
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 10)
elseif pfUI.expansion == 'vanilla' then
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 6)
end
local title = GetNoNameObject(GameMenuFrame, "FontString", "ARTWORK", MAIN_MENU)
title:SetTextColor(1,1,1,1)
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Gossip and Quest", "vanilla", function ()
pfUI:RegisterSkin("Gossip and Quest", "vanilla:tbc", function ()
local frames = {'Quest', 'Gossip'}
local panels = {'Greeting', 'Detail', 'Progress', 'Reward'}
local buttons = {
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Guild Registrar", "vanilla", function ()
pfUI:RegisterSkin("Guild Registrar", "vanilla:tbc", function ()
StripTextures(GuildRegistrarFrame)
StripTextures(GuildRegistrarGreetingFrame)
CreateBackdrop(GuildRegistrarFrame, nil, nil, .75)
+131
View File
@@ -0,0 +1,131 @@
pfUI:RegisterSkin("Guild Bank", "tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
HookAddonOrVariable("Blizzard_GuildBankUI", function()
do -- GuildBankFrame
StripTextures(GuildBankFrame)
CreateBackdrop(GuildBankFrame, nil, nil, .75)
CreateBackdropShadow(GuildBankFrame)
GuildBankFrame.backdrop:SetPoint("TOPLEFT", 10, -30)
GuildBankFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, 4)
GuildBankFrame:SetHitRectInsets(10,0,30,4)
EnableMovable(GuildBankFrame)
SkinCloseButton(GetNoNameObject(GuildBankFrame, "Button", nil, "UI-Panel-MinimizeButton-Up"), GuildBankFrame.backdrop, -6, -6)
GuildBankEmblemFrame:ClearAllPoints()
GuildBankEmblemFrame:SetPoint("BOTTOM", GuildBankFrame.backdrop, "TOP", -70, 0)
for i = 1, 4 do
local tab = _G["GuildBankFrameTab"..i]
local lastTab = _G["GuildBankFrameTab"..(i-1)]
tab:ClearAllPoints()
if lastTab then
tab:SetPoint("LEFT", lastTab, "RIGHT", border*2 + 1, 0)
else
tab:SetPoint("TOPLEFT", GuildBankFrame.backdrop, "BOTTOMLEFT", bpad, -(border + (border == 1 and 1 or 2)))
end
SkinTab(tab)
end
for i = 1, 6 do
local frame = _G["GuildBankTab"..i]
local button = _G["GuildBankTab"..i.."Button"]
local lastbutton = _G["GuildBankTab"..(i-1).."Button"]
local texture = _G["GuildBankTab"..i.."ButtonIconTexture"]
StripTextures(frame)
SkinButton(button, nil, nil, nil, texture)
button:ClearAllPoints()
if lastbutton then
button:SetPoint("TOP", lastbutton, "BOTTOM", 0, - (border + (border == 1 and 1 or 2) + bpad))
else
button:SetPoint("TOPLEFT", 6, -60)
end
function button.SetChecked(self, checked)
if checked then
self.locked = true
self:SetBackdropBorderColor(1,1,1)
else
self.locked = false
self:SetBackdropBorderColor(GetStringColor(pfUI_config.appearance.border.color))
end
end
end
for i = 1, NUM_GUILDBANK_COLUMNS do
local column = _G["GuildBankColumn"..i]
StripTextures(column)
for j = 1, NUM_SLOTS_PER_GUILDBANK_GROUP do
local slot = _G["GuildBankColumn"..i.."Button"..j]
SkinButton(slot, nil, nil, nil, _G[slot:GetName().."IconTexture"], true)
end
end
hooksecurefunc("GuildBankFrame_Update", function()
if GuildBankFrame.mode ~= "bank" then return end
for i = 1, MAX_GUILDBANK_SLOTS_PER_TAB do
local index = math.fmod(i, NUM_SLOTS_PER_GUILDBANK_GROUP)
if index == 0 then index = NUM_SLOTS_PER_GUILDBANK_GROUP end
local column = ceil((i-.5)/NUM_SLOTS_PER_GUILDBANK_GROUP)
local slot = _G["GuildBankColumn"..column.."Button"..index]
local tab = GetCurrentGuildBankTab()
local link = GetGuildBankItemLink(tab, i)
if link then
local r,g,b = GetItemQualityColor(select(3, GetItemInfo(link)))
slot:SetBackdropBorderColor(r,g,b,1)
else
slot:SetBackdropBorderColor(GetStringColor(pfUI_config.appearance.border.color))
end
end
end)
SkinButton(GuildBankFrameDepositButton)
SkinButton(GuildBankFrameWithdrawButton)
GuildBankFrameWithdrawButton:ClearAllPoints()
GuildBankFrameWithdrawButton:SetPoint("RIGHT", GuildBankFrameDepositButton, "LEFT", -2*bpad, 0)
SkinButton(GuildBankInfoSaveButton)
GuildBankInfoScrollFrameScrollBar:Hide()
end
do -- GuildBankPopupFrame
StripTextures(GuildBankPopupFrame)
CreateBackdrop(GuildBankPopupFrame, nil, nil, .75)
CreateBackdropShadow(GuildBankPopupFrame)
GuildBankPopupFrame.backdrop:SetPoint("TOPLEFT", 0, -6)
GuildBankPopupFrame.backdrop:SetPoint("BOTTOMRIGHT", -26, 26)
GuildBankPopupFrame:SetHitRectInsets(0,26,6,26)
GuildBankPopupFrame.backdrop:SetPoint("TOPLEFT", GuildBankFrame.backdrop, "TOPRIGHT", 2*border, 0)
GuildBankPopupEditBox:DisableDrawLayer("BACKGROUND")
CreateBackdrop(GuildBankPopupEditBox)
StripTextures(GuildBankPopupScrollFrame)
CreateBackdrop(GuildBankPopupScrollFrame)
SkinScrollbar(GuildBankPopupScrollFrameScrollBar)
GuildBankPopupScrollFrame:ClearAllPoints()
GuildBankPopupScrollFrame:SetPoint("TOPLEFT", GuildBankPopupEditBox, "BOTTOMLEFT", -11, -14)
GuildBankPopupScrollFrame:SetWidth(182)
GuildBankPopupScrollFrame:SetHeight(178)
for i = 1, 16 do
local slot = _G["GuildBankPopupButton"..i]
StripTextures(slot)
SkinButton(slot, nil, nil, nil, _G["GuildBankPopupButton"..i.."Icon"], true)
end
GuildBankPopupButton1:ClearAllPoints()
GuildBankPopupButton1:SetPoint("TOPLEFT", GuildBankPopupScrollFrame, "TOPLEFT", 4, -4)
SkinButton(GuildBankPopupCancelButton)
SkinButton(GuildBankPopupOkayButton)
GuildBankPopupOkayButton:ClearAllPoints()
GuildBankPopupOkayButton:SetPoint("RIGHT", GuildBankPopupCancelButton, "LEFT", -2*bpad, 0)
end
end)
end)
+13 -1
View File
@@ -1,7 +1,19 @@
pfUI:RegisterSkin("Help", "vanilla", function ()
pfUI:RegisterSkin("Help", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
-- not much here for tbc yet
if pfUI.client > 11200 then
local ticket, background = TicketStatusFrame:GetChildren()
CreateBackdrop(background, nil, true, .75)
TicketStatusFrame:SetHeight(40)
TicketStatusFrame:ClearAllPoints()
TicketStatusFrame:SetPoint("TOP", 0, -5)
UpdateMovable(TicketStatusFrame)
return
end
StripTextures(HelpFrame)
CreateBackdrop(HelpFrame, nil, nil, .75)
CreateBackdropShadow(HelpFrame)
+105
View File
@@ -20,6 +20,111 @@ local slots = {
"RangedSlot",
}
pfUI:RegisterSkin("Inspect", "tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
HookAddonOrVariable("Blizzard_InspectUI", function()
CreateBackdrop(InspectFrame, nil, nil, .75)
CreateBackdropShadow(InspectFrame)
InspectFrame.backdrop:SetPoint("TOPLEFT", 10, -10)
InspectFrame.backdrop:SetPoint("BOTTOMRIGHT", -30, 72)
InspectFrame:SetHitRectInsets(10,30,10,72)
EnableMovable("InspectFrame", "Blizzard_InspectUI", INSPECTFRAME_SUBFRAMES)
SkinCloseButton(InspectFrameCloseButton, InspectFrame.backdrop, -6, -6)
InspectFrame:DisableDrawLayer("ARTWORK")
InspectNameText:ClearAllPoints()
InspectNameText:SetPoint("TOP", InspectFrame.backdrop, "TOP", 0, -10)
InspectGuildText:Show()
InspectGuildText:ClearAllPoints()
InspectGuildText:SetPoint("TOP", InspectLevelText, "BOTTOM", 0, -1)
for i = 1, 3 do
local tab = _G["InspectFrameTab"..i]
local lastTab = _G["InspectFrameTab"..(i-1)]
tab:ClearAllPoints()
if lastTab then
tab:SetPoint("LEFT", lastTab, "RIGHT", border*2 + 1, 0)
else
tab:SetPoint("TOPLEFT", InspectFrame.backdrop, "BOTTOMLEFT", bpad, -(border + (border == 1 and 1 or 2)))
end
SkinTab(tab)
end
do -- Character Tab
StripTextures(InspectPaperDollFrame)
EnableClickRotate(InspectModelFrame)
InspectModelRotateLeftButton:Hide()
InspectModelRotateRightButton:Hide()
for _, slot in pairs(slots) do
local frame = _G["Inspect"..slot]
SkinButton(frame, nil, nil, nil, _G["Inspect"..slot.."IconTexture"], true)
end
hooksecurefunc("InspectPaperDollFrame_OnShow", function()
local guild, title = GetGuildInfo(InspectFrame.unit)
local text = guild and format(TEXT(GUILD_TITLE_TEMPLATE), title, guild) or ""
InspectGuildText:SetText(text)
end)
hooksecurefunc("InspectPaperDollItemSlotButton_Update", function(button)
local unit = InspectFrame.unit
local link = GetInventoryItemLink(unit, button:GetID())
if link then
local quality = select(3, GetItemInfo(link))
button:SetBackdropBorderColor(GetItemQualityColor(quality))
else
button:SetBackdropBorderColor(pfUI.cache.er, pfUI.cache.eg, pfUI.cache.eb, pfUI.cache.ea)
end
end)
end
do -- PVP Tab
StripTextures(InspectPVPFrame)
end
do -- Talent Tab
StripTextures(InspectTalentFrame)
InspectTalentFrameCancelButton:Hide()
InspectTalentFrameCloseButton:Hide()
InspectTalentFrameSpentPoints:ClearAllPoints()
InspectTalentFrameSpentPoints:SetPoint("BOTTOMRIGHT", InspectTalentFrame, "BOTTOMRIGHT", 0, 83)
StripTextures(InspectTalentFrameScrollFrame)
SkinScrollbar(InspectTalentFrameScrollFrameScrollBar)
for i = 1, MAX_NUM_TALENTS do
local talent = _G["InspectTalentFrameTalent"..i]
if talent then
StripTextures(talent)
SkinButton(talent, nil, nil, nil, _G["InspectTalentFrameTalent"..i.."IconTexture"])
_G["InspectTalentFrameTalent"..i.."Rank"]:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE")
end
end
for i = 1, 3 do
local tab = _G["InspectTalentFrameTab"..i]
local lastTab = _G["InspectTalentFrameTab"..(i-1)]
tab:ClearAllPoints()
if lastTab then
tab:SetPoint("LEFT", lastTab, "RIGHT", border*2 + 1, 0)
else
tab:SetPoint("TOPLEFT", 70, -50)
end
SkinTab(tab)
end
end
end)
end)
pfUI:RegisterSkin("Inspect", "vanilla", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Books", "vanilla", function ()
pfUI:RegisterSkin("Books", "vanilla:tbc", function ()
StripTextures(ItemTextFrame)
CreateBackdrop(ItemTextFrame, nil, nil, .75)
CreateBackdropShadow(ItemTextFrame)
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("KeyBindings", "vanilla", function ()
pfUI:RegisterSkin("KeyBindings", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
+75
View File
@@ -0,0 +1,75 @@
pfUI:RegisterSkin("Looking for group", "tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
StripTextures(LFGParentFrame)
CreateBackdrop(LFGParentFrame, nil, nil, .75)
CreateBackdropShadow(LFGParentFrame)
LFGParentFrame.backdrop:SetPoint("TOPLEFT", 14, -10)
LFGParentFrame.backdrop:SetPoint("BOTTOMRIGHT", -26, 72)
LFGParentFrame:SetHitRectInsets(14,26,10,72)
EnableMovable(LFGParentFrame)
SkinCloseButton(GetNoNameObject(LFGParentFrame, 'Button', nil, "UI-Panel-MinimizeButton-Up"), LFGParentFrame.backdrop, -6, -6)
LFGParentFrame:DisableDrawLayer("BACKGROUND")
LFGParentFrameTitle:ClearAllPoints()
LFGParentFrameTitle:SetPoint("TOP", LFGParentFrame.backdrop, "TOP", 0, -10)
SkinTab(LFGParentFrameTab1)
LFGParentFrameTab1:ClearAllPoints()
LFGParentFrameTab1:SetPoint("TOPLEFT", LFGParentFrame.backdrop, "BOTTOMLEFT", bpad, -(border + (border == 1 and 1 or 2)))
SkinTab(LFGParentFrameTab2)
LFGParentFrameTab2:ClearAllPoints()
LFGParentFrameTab2:SetPoint("LEFT", LFGParentFrameTab1, "RIGHT", border*2 + 1, 0)
LFGParentFrameBackground:Hide()
LFGFrameClearAllButton:ClearAllPoints()
LFGFrameClearAllButton:SetPoint("RIGHT", LFGFrameDoneButton, "LEFT", -2*bpad, 0)
StripTextures(AutoJoinBackground)
SkinCheckbox(AutoJoinCheckButton)
StripTextures(AddMemberBackground)
SkinCheckbox(AutoAddMembersCheckButton)
CreateBackdrop(LFGComment)
-- skin buttons
local buttons = {
"LFGWizardFrameLFGButton",
"LFGWizardFrameLFMButton",
"LFGFrameDoneButton",
"LFGFrameClearAllButton",
"LFMFrameGroupInviteButton",
"LFMFrameSendMessageButton",
"LFMFrameSearchButton",
"LFMFrameColumnHeader1",
"LFMFrameColumnHeader2",
"LFMFrameColumnHeader3",
"LFMFrameColumnHeader4",
}
for _, name in pairs(buttons) do
SkinButton(_G[name])
end
-- skin dropdowns
local dropdowns = {
"LFGFrameTypeDropDown1",
"LFGFrameNameDropDown1",
"LFGFrameTypeDropDown2",
"LFGFrameNameDropDown2",
"LFGFrameTypeDropDown3",
"LFGFrameNameDropDown3",
}
for _, name in pairs(dropdowns) do
SkinDropDown(_G[name])
end
SkinDropDown(LFMFrameTypeDropDown, nil, nil, nil, true)
SkinDropDown(LFMFrameNameDropDown, nil, nil, nil, true)
end)
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Macro", "vanilla", function ()
pfUI:RegisterSkin("Macro", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
+46 -2
View File
@@ -1,10 +1,53 @@
pfUI:RegisterSkin("Mailbox", "vanilla", function ()
pfUI:RegisterSkin("Mailbox", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
-- Compatibility
local StationeryBackgroundLeft, StationeryBackgroundRight
if ATTACHMENTS_MAX_SEND then -- tbc
do -- SendMailFrame
for i = 1, ATTACHMENTS_MAX_SEND do
local btn = _G["SendMailAttachment"..i]
StripTextures(btn)
SkinButton(btn, nil, nil, nil, nil, true)
end
do -- SendMailFrame
hooksecurefunc("SendMailFrame_Update", function()
for i = 1, ATTACHMENTS_MAX_SEND do
local btn = _G["SendMailAttachment"..i]
HandleIcon(btn, btn:GetNormalTexture())
local link = GetSendMailItemLink(i)
if link then
local r,g,b = GetItemQualityColor(select(3, GetItemInfo(link)))
btn:SetBackdropBorderColor(r,g,b,1)
else
btn:SetBackdropBorderColor(GetStringColor(pfUI_config.appearance.border.color))
end
end
end)
StationeryBackgroundLeft, StationeryBackgroundRight = SendStationeryBackgroundLeft, SendStationeryBackgroundRight
end
do -- OpenMailFrame
for i = 1, ATTACHMENTS_MAX_RECEIVE do
SkinButton(_G["OpenMailAttachmentButton"..i], nil, nil, nil, _G["OpenMailAttachmentButton"..i.."IconTexture"], true)
end
hooksecurefunc("InboxFrame_OnClick", function(index)
for i=1, ATTACHMENTS_MAX_RECEIVE do
local link = GetInboxItemLink(index, i)
if not link then return end
local r,g,b = GetItemQualityColor(select(3, GetItemInfo(link)))
_G["OpenMailAttachmentButton"..i]:SetBackdropBorderColor(r,g,b,1)
end
end)
SkinButton(OpenMailReportSpamButton)
end
else -- vanilla
do -- SendMailFrame
local skin = CreateFrame("Frame")
skin:SetScript("OnEvent", function()
this:UnregisterEvent("MAIL_SHOW")
@@ -79,6 +122,7 @@ pfUI:RegisterSkin("Mailbox", "vanilla", function ()
end
end)
end
end
StripTextures(MailFrame, true)
CreateBackdrop(MailFrame, nil, nil, .75)
+15 -3
View File
@@ -1,9 +1,21 @@
pfUI:RegisterSkin("Merchant", "vanilla", function ()
pfUI:RegisterSkin("Merchant", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
MerchantRepairAllButton:ClearAllPoints()
MerchantRepairAllButton:SetPoint("RIGHT", MerchantBuyBackItemItemButton, "LEFT", -6, 0)
-- Compatibility
if MerchantGuildBankRepairButton then -- tbc
SkinButton(MerchantGuildBankRepairButton, nil, nil, nil, MerchantGuildBankRepairButtonIcon)
MerchantGuildBankRepairButtonIcon:SetTexCoord(.59, .82, .06, .54)
hooksecurefunc("MerchantFrame_UpdateRepairButtons", function()
MerchantGuildBankRepairButton:ClearAllPoints()
MerchantGuildBankRepairButton:SetPoint("RIGHT", MerchantBuyBackItemItemButton, "LEFT", -14, 0)
MerchantRepairAllButton:ClearAllPoints()
MerchantRepairAllButton:SetPoint("RIGHT", MerchantGuildBankRepairButton, "LEFT", -6, 0)
end)
else -- vanilla
MerchantRepairAllButton:ClearAllPoints()
MerchantRepairAllButton:SetPoint("RIGHT", MerchantBuyBackItemItemButton, "LEFT", -6, 0)
end
StripTextures(MerchantFrame)
CreateBackdrop(MerchantFrame, nil, nil, .75)
+6 -6
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Stack Split", "vanilla", function ()
pfUI:RegisterSkin("Stack Split", "vanilla:tbc", function ()
StripTextures(StackSplitFrame)
CreateBackdrop(StackSplitFrame, nil, nil, .75)
CreateBackdropShadow(StackSplitFrame)
@@ -7,7 +7,7 @@ pfUI:RegisterSkin("Stack Split", "vanilla", function ()
SkinButton(StackSplitCancelButton)
end)
pfUI:RegisterSkin("Coin Pickup", "vanilla", function ()
pfUI:RegisterSkin("Coin Pickup", "vanilla:tbc", function ()
StripTextures(CoinPickupFrame)
CreateBackdrop(CoinPickupFrame, nil, nil, .75)
CreateBackdropShadow(CoinPickupFrame)
@@ -16,7 +16,7 @@ pfUI:RegisterSkin("Coin Pickup", "vanilla", function ()
SkinButton(CoinPickupCancelButton)
end)
pfUI:RegisterSkin("Color Picker", "vanilla", function ()
pfUI:RegisterSkin("Color Picker", "vanilla:tbc", function ()
CreateBackdrop(ColorPickerFrame)
CreateBackdropShadow(ColorPickerFrame)
@@ -32,7 +32,7 @@ pfUI:RegisterSkin("Color Picker", "vanilla", function ()
SkinSlider(OpacitySliderFrame)
end)
pfUI:RegisterSkin("Opacity", "vanilla", function ()
pfUI:RegisterSkin("Opacity", "vanilla:tbc", function ()
CreateBackdrop(OpacityFrame, nil, true, .75)
CreateBackdropShadow(OpacityFrame)
@@ -41,7 +41,7 @@ pfUI:RegisterSkin("Opacity", "vanilla", function ()
OpacityFrameSlider:SetPoint("CENTER", 0, 0)
end)
pfUI:RegisterSkin("Tutorial", "vanilla", function ()
pfUI:RegisterSkin("Tutorial", "vanilla:tbc", function ()
CreateBackdrop(TutorialFrame, nil, true, .75)
CreateBackdropShadow(TutorialFrame)
@@ -49,7 +49,7 @@ pfUI:RegisterSkin("Tutorial", "vanilla", function ()
SkinButton(TutorialFrameOkayButton)
end)
pfUI:RegisterSkin("Quest Timer", "vanilla", function ()
pfUI:RegisterSkin("Quest Timer", "vanilla:tbc", function ()
CreateBackdrop(QuestTimerFrame, nil, nil, .75)
CreateBackdropShadow(QuestTimerFrame)
UpdateMovable(QuestTimerFrame, true)
+175
View File
@@ -0,0 +1,175 @@
pfUI:RegisterSkin("Options - Interface", "tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
StripTextures(InterfaceOptionsFrame)
CreateBackdrop(InterfaceOptionsFrame, nil, nil, .75)
CreateBackdropShadow(InterfaceOptionsFrame)
EnableMovable(InterfaceOptionsFrame)
InterfaceOptionsFrameHeaderText:ClearAllPoints()
InterfaceOptionsFrameHeaderText:SetPoint("TOP", InterfaceOptionsFrame.backdrop, "TOP", 0, -10)
StripTextures(InterfaceOptionsFrameCategories)
CreateBackdrop(InterfaceOptionsFrameCategories, nil, true, .75)
StripTextures(InterfaceOptionsFrameAddOns)
CreateBackdrop(InterfaceOptionsFrameAddOns, nil, true, .75)
CreateBackdrop(InterfaceOptionsFramePanelContainer, nil, true, .75)
SkinTab(InterfaceOptionsFrameTab1)
InterfaceOptionsFrameTab1:ClearAllPoints()
InterfaceOptionsFrameTab1:SetPoint("BOTTOMLEFT", InterfaceOptionsFrameCategories, "TOPLEFT", bpad, border + (border == 1 and 1 or 2))
SkinTab(InterfaceOptionsFrameTab2)
InterfaceOptionsFrameTab2:ClearAllPoints()
InterfaceOptionsFrameTab2:SetPoint("LEFT", InterfaceOptionsFrameTab1, "RIGHT", border*2 + 1, 0)
SkinButton(InterfaceOptionsFrameDefaults)
InterfaceOptionsFrameDefaults:ClearAllPoints()
InterfaceOptionsFrameDefaults:SetPoint("TOPLEFT", InterfaceOptionsFrameCategories, "BOTTOMLEFT", 0, -10)
SkinButton(InterfaceOptionsFrameCancel)
InterfaceOptionsFrameCancel:ClearAllPoints()
InterfaceOptionsFrameCancel:SetPoint("TOPRIGHT", InterfaceOptionsFramePanelContainer, "BOTTOMRIGHT", 0, -10)
SkinButton(InterfaceOptionsFrameOkay)
InterfaceOptionsFrameOkay:ClearAllPoints()
InterfaceOptionsFrameOkay:SetPoint("RIGHT", InterfaceOptionsFrameCancel, "LEFT", -2*bpad, 0)
-- universal code for handling any frames!
local function SkinAllObjects(frame)
for _,obj in ipairs({frame:GetChildren()}) do
local obj_type = obj:GetObjectType()
if obj_type == "CheckButton" then
local size = obj:GetHeight()
if size > 26 then size = 26 end
SkinCheckbox(obj, size)
elseif obj_type == "Button" then
SkinButton(obj)
elseif obj_type == "Slider" then
SkinSlider(obj)
elseif obj_type == "Frame" then
local name = obj.GetName and obj:GetName()
if name and _G[name.."Button"] then
SkinDropDown(obj)
else
SkinAllObjects(obj)
end
end
end
end
local blizzardCategories = {
InterfaceOptionsControlsPanel, InterfaceOptionsCombatPanel, InterfaceOptionsDisplayPanel,
InterfaceOptionsQuestsPanel, InterfaceOptionsSocialPanel, InterfaceOptionsActionBarsPanel,
InterfaceOptionsNamesPanel, InterfaceOptionsCombatTextPanel, InterfaceOptionsStatusTextPanel,
InterfaceOptionsPartyRaidPanel, InterfaceOptionsCameraPanel, InterfaceOptionsMousePanel,
InterfaceOptionsHelpPanel, InterfaceOptionsLanguagesPanel
}
for _,frame in ipairs(blizzardCategories) do
SkinAllObjects(frame)
end
-- skin the option panel of any addon
for _,frame in pairs(INTERFACEOPTIONS_ADDONCATEGORIES) do
SkinAllObjects(frame)
end
end)
pfUI:RegisterSkin("Options - Interface", "vanilla", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
UIOptionsFrame:SetParent(UIParent)
UIOptionsFrame:SetWidth(1024)
UIOptionsFrame:SetHeight(700)
StripTextures(UIOptionsFrame)
CreateBackdrop(UIOptionsFrame, nil, nil, .75)
CreateBackdropShadow(UIOptionsFrame)
EnableMovable(UIOptionsFrame)
HookScript(UIOptionsFrame, "OnShow", function()
this:ClearAllPoints()
this:SetPoint("CENTER", 0, 0)
end)
UIOptionsFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, 50)
UIOptionsFrame:SetHitRectInsets(0,0,0,50)
-- increase button layer
UIOptionsFrameTab1:SetFrameLevel(8)
UIOptionsFrameTab2:SetFrameLevel(8)
UIOptionsFrameDefaults:SetFrameLevel(8)
UIOptionsFrameCancel:SetFrameLevel(8)
UIOptionsFrameOkay:SetFrameLevel(8)
local close = GetNoNameObject(UIOptionsFrame, "Button", nil, "UI-Panel-MinimizeButton-Up")
if close then
close:SetFrameLevel(8)
SkinCloseButton(close, UIOptionsFrame.backdrop, -6, -6)
end
if UIOptionsFrameTitle then
UIOptionsFrameTitle:ClearAllPoints()
UIOptionsFrameTitle:SetPoint("TOP", UIOptionsFrame.backdrop, "TOP", 0, -10)
end
SkinTab(UIOptionsFrameTab1)
UIOptionsFrameTab1:ClearAllPoints()
UIOptionsFrameTab1:SetPoint("TOPLEFT", UIOptionsFrame.backdrop, "TOPLEFT", 20, -20)
UIOptionsFrameTab1:SetScript("OnClick", function()
PanelTemplates_Tab_OnClick(UIOptionsFrame)
BasicOptions:Show()
AdvancedOptions:Hide()
PlaySound("igCharacterInfoTab")
end)
SkinTab(UIOptionsFrameTab2)
UIOptionsFrameTab2:ClearAllPoints()
UIOptionsFrameTab2:SetPoint("LEFT", UIOptionsFrameTab1, "RIGHT", border*2 + 1, 0)
UIOptionsFrameTab2:SetScript("OnClick", function()
PanelTemplates_Tab_OnClick(UIOptionsFrame)
BasicOptions:Hide()
AdvancedOptions:Show()
PlaySound("igCharacterInfoTab")
end)
UIOptionsFrameCheckButton1:ClearAllPoints() -- Invert Mouse button
UIOptionsFrameCheckButton1:SetPoint("TOPLEFT", UIOptionsFrameSlider1, "TOPRIGHT", 38, 14)
for i=1, 69 do
local buton = _G["UIOptionsFrameCheckButton"..i]
if buton then
SkinCheckbox(buton)
end
end
for i=1, 4 do
SkinSlider(_G["UIOptionsFrameSlider"..i])
end
CreateBackdrop(BasicOptionsGeneral, nil, true, .75)
CreateBackdrop(BasicOptionsDisplay, nil, true, .75)
CreateBackdrop(BasicOptionsCamera, nil, true, .75)
CreateBackdrop(BasicOptionsHelp, nil, true, .75)
CreateBackdrop(AdvancedOptionsActionBars, nil, true, .75)
CreateBackdrop(AdvancedOptionsChat, nil, true, .75)
CreateBackdrop(AdvancedOptionsRaid, nil, true, .75)
CreateBackdrop(AdvancedOptionsCombatText, nil, true, .75)
SkinDropDown(UIOptionsFrameClickCameraDropDown)
SkinDropDown(UIOptionsFrameCameraDropDown)
SkinDropDown(UIOptionsFrameTargetofTargetDropDown)
SkinDropDown(UIOptionsFrameCombatTextDropDown)
SkinButton(UIOptionsFrameResetTutorials)
SkinButton(UIOptionsFrameDefaults)
UIOptionsFrameDefaults:ClearAllPoints()
UIOptionsFrameDefaults:SetPoint("BOTTOMLEFT", UIOptionsFrame.backdrop, "BOTTOMLEFT", 14, 14)
SkinButton(UIOptionsFrameCancel)
UIOptionsFrameCancel:ClearAllPoints()
UIOptionsFrameCancel:SetPoint("BOTTOMRIGHT", UIOptionsFrame.backdrop, "BOTTOMRIGHT", -14, 14)
SkinButton(UIOptionsFrameOkay)
UIOptionsFrameOkay:ClearAllPoints()
UIOptionsFrameOkay:SetPoint("RIGHT", UIOptionsFrameCancel, "LEFT", -2*bpad, 0)
end)
+33 -11
View File
@@ -1,18 +1,40 @@
pfUI:RegisterSkin("Options - Sound", "vanilla", function ()
pfUI:RegisterSkin("Options - Sound", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
local SoundOptionsFrameHeaderText = GetNoNameObject(SoundOptionsFrame, "FontString", "ARTWORK", SOUNDOPTIONS_MENU)
local NUM_CHECKBOXES = 8
local NUM_SLIDERS = 4
-- Compatibility
local SoundOptionsFrameHeaderText, NUM_CHECKBOXES, NUM_SLIDERS
if SOUND_OPTIONS then -- tbc
SoundOptionsFrameHeaderText = GetNoNameObject(SoundOptionsFrame, "FontString", "BACKGROUND", SOUND_OPTIONS)
NUM_CHECKBOXES = 11
NUM_SLIDERS = 6
SoundOptionsFrameOkay:ClearAllPoints()
SoundOptionsFrameOkay:SetPoint("RIGHT", SoundOptionsFrameCancel, "LEFT", -2*bpad, 0)
SoundOptionsFrameSlider1:ClearAllPoints()
SoundOptionsFrameSlider1:SetPoint("TOPRIGHT", SoundOptionsFrame, "TOPRIGHT", -18, -43)
for i=2, NUM_SLIDERS do
_G["SoundOptionsFrameSlider"..i]:ClearAllPoints()
_G["SoundOptionsFrameSlider"..i]:SetPoint("TOP", _G["SoundOptionsFrameSlider"..i-1], "BOTTOM", 0, -30)
StripTextures(AudioOptionsFrame)
CreateBackdrop(SoundOptionsFramePlayback, nil, true, .75)
CreateBackdrop(SoundOptionsFrameHardware, nil, true, .75)
CreateBackdrop(SoundOptionsFrameVolume, nil, true, .75)
SkinDropDown(SoundOptionsOutputDropDown)
SoundOptionsFrameDefaults:ClearAllPoints()
SoundOptionsFrameDefaults:SetPoint("TOPLEFT", SoundOptionsFramePlayback, "BOTTOMLEFT", 0, -10)
SoundOptionsFrameCancel:ClearAllPoints()
SoundOptionsFrameCancel:SetPoint("TOPRIGHT", SoundOptionsFrameVolume, "BOTTOMRIGHT", 0, -10)
SoundOptionsFrameOkay:ClearAllPoints()
SoundOptionsFrameOkay:SetPoint("RIGHT", SoundOptionsFrameCancel, "LEFT", -2*bpad, 0)
else -- vanilla
SoundOptionsFrameHeaderText = GetNoNameObject(SoundOptionsFrame, "FontString", "ARTWORK", SOUNDOPTIONS_MENU)
NUM_CHECKBOXES = 8
NUM_SLIDERS = 4
SoundOptionsFrameOkay:ClearAllPoints()
SoundOptionsFrameOkay:SetPoint("RIGHT", SoundOptionsFrameCancel, "LEFT", -2*bpad, 0)
SoundOptionsFrameSlider1:ClearAllPoints()
SoundOptionsFrameSlider1:SetPoint("TOPRIGHT", SoundOptionsFrame, "TOPRIGHT", -18, -43)
for i=2, NUM_SLIDERS do
_G["SoundOptionsFrameSlider"..i]:ClearAllPoints()
_G["SoundOptionsFrameSlider"..i]:SetPoint("TOP", _G["SoundOptionsFrameSlider"..i-1], "BOTTOM", 0, -30)
end
end
StripTextures(SoundOptionsFrame)
+37 -11
View File
@@ -1,19 +1,45 @@
pfUI:RegisterSkin("Options - Video", "vanilla", function ()
pfUI:RegisterSkin("Options - Video", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
local MAX_SLIDERS = 9
local MAX_CHECKBOXES = 18
-- Compatibility
local MAX_SLIDERS, MAX_CHECKBOXES
if OptionsFrameSlider10 then -- tbc
MAX_SLIDERS = 11
MAX_CHECKBOXES = 19
for i=1, MAX_SLIDERS do
local slider = _G["OptionsFrameSlider"..i]
local shift = 0
if i == 1 or i == 6 then shift = 4
elseif i == 4 or i == 8 then shift = 10
for i=1, MAX_SLIDERS do
local slider = _G["OptionsFrameSlider"..i]
local shift = 0
if i == 4 or i == 5 or i == 7 or i == 8 or i == 10 or i == 11 then shift = 10 end
local point, anchor, anchorPoint, x, y = slider:GetPoint()
slider:ClearAllPoints()
slider:SetPoint(point, anchor, anchorPoint, x, y - shift)
end
hooksecurefunc("OptionsFrame_Load", function()
OptionsFramePixelShaders:SetWidth(230)
OptionsFrameMiscellaneous:ClearAllPoints()
OptionsFrameMiscellaneous:SetPoint("LEFT", OptionsFramePixelShaders, "RIGHT", 6, 0)
end)
OptionsFrameDefaults:ClearAllPoints()
OptionsFrameDefaults:SetPoint("TOPLEFT", OptionsFramePixelShaders, "BOTTOMLEFT", 0, -10)
OptionsFrameCancel:ClearAllPoints()
OptionsFrameCancel:SetPoint("TOPRIGHT", OptionsFrameMiscellaneous, "BOTTOMRIGHT", 0, -10)
else -- vanilla
MAX_SLIDERS = 9
MAX_CHECKBOXES = 18
for i=1, MAX_SLIDERS do
local slider = _G["OptionsFrameSlider"..i]
local shift = 0
if i == 1 or i == 6 then shift = 4
elseif i == 4 or i == 8 then shift = 10
end
local point, anchor, anchorPoint, x, y = slider:GetPoint()
slider:ClearAllPoints()
slider:SetPoint(point, anchor, anchorPoint, x, y - shift)
end
local point, anchor, anchorPoint, x, y = slider:GetPoint()
slider:ClearAllPoints()
slider:SetPoint(point, anchor, anchorPoint, x, y - shift)
end
CreateBackdrop(OptionsFrame, nil, nil, .75)
+8 -1
View File
@@ -1,5 +1,12 @@
pfUI:RegisterSkin("Popup Dialogs", "vanilla", function ()
pfUI:RegisterSkin("Popup Dialogs", "vanilla:tbc", function ()
for i = 1, STATICPOPUP_NUMDIALOGS do
-- Compatibility
local money = _G["StaticPopup"..i.."MoneyInputFrame"]
if money then -- tbc
SkinMoneyInputFrame(money)
end
local dialog = _G["StaticPopup"..i]
CreateBackdrop(dialog, nil, true, .75)
CreateBackdropShadow(dialog)
+32 -2
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Profession", "vanilla", function ()
pfUI:RegisterSkin("Profession", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
@@ -219,7 +219,37 @@ pfUI:RegisterSkin("Profession", "vanilla", function ()
end)
end
_G[displayed] = 23
-- Compatibility
if search then -- tbc
_G[displayed] = 21
scrollframe:SetHeight(338)
local rank = _G[name.."RankFrameSkillRank"]
rank:ClearAllPoints()
rank:SetPoint("CENTER", rankbar, "CENTER", 0, 0)
local available = _G[frame:GetName().."AvailableFilterCheckButton"]
SkinCheckbox(available)
available:ClearAllPoints()
available:SetPoint("TOPLEFT", scrollframe.backdrop, "BOTTOMLEFT", -4, -5)
search:DisableDrawLayer("BACKGROUND")
CreateBackdrop(search, nil, nil, 1)
search.backdrop:SetAllPoints(search)
search:SetTextInsets(5, 5, 5, 5)
search:SetHeight(22)
search:ClearAllPoints()
search:SetPoint("TOPRIGHT", scrollframe.backdrop, "BOTTOMRIGHT", 0, -5)
local craft_filter = CraftFrameFilterDropDown
if craft_filter then
SkinDropDown(craft_filter)
craft_filter:ClearAllPoints()
craft_filter:SetPoint("BOTTOMRIGHT", scrollframe.backdrop, "TOPRIGHT", 15, 0)
end
else -- vanilla
_G[displayed] = 23
end
-- build remaining tradeskills
for i = 9, _G[displayed] do
local button = _G[template..i] or CreateFrame("Button", template..i, frame, template.."ButtonTemplate")
+17 -4
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Quest Log", "vanilla", function ()
pfUI:RegisterSkin("Quest Log", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
@@ -6,10 +6,23 @@ pfUI:RegisterSkin("Quest Log", "vanilla", function ()
_G.MAX_WATCHABLE_QUESTS = 20 -- TODO
do -- quest log frame
local QUEST_COUNT = QuestLogQuestCount
-- Compatibility
local QUEST_COUNT
if QuestLogCount then -- tbc
QUEST_COUNT = QuestLogCount
QUEST_COUNT:ClearAllPoints()
QUEST_COUNT:SetPoint("TOPRIGHT", -10, -30)
StripTextures(QUEST_COUNT)
QUEST_COUNT:ClearAllPoints()
hooksecurefunc("QuestLogUpdateQuestCount", function(numQuests)
QUEST_COUNT:ClearAllPoints()
QUEST_COUNT:SetPoint("BOTTOMRIGHT", QuestLogFrame, "TOPRIGHT", 0, -50)
end)
else -- vanilla
QUEST_COUNT = QuestLogQuestCount
QUEST_COUNT:ClearAllPoints()
QUEST_COUNT:SetPoint("TOPRIGHT", -10, -30)
end
hooksecurefunc("QuestLog_OnShow", function()
QuestLogFrame:ClearAllPoints()
+8 -2
View File
@@ -1,6 +1,12 @@
pfUI:RegisterSkin("Readycheck", "vanilla", function ()
pfUI:RegisterSkin("Readycheck", "vanilla:tbc", function ()
HookAddonOrVariable("Blizzard_RaidUI", function()
local update_func = "ReadyCheck_OnUpdate"
-- Compatibility
local update_func
if ReadyCheckFrame_OnUpdate then -- tbc
update_func = "ReadyCheckFrame_OnUpdate"
else -- vanilla
update_func = "ReadyCheck_OnUpdate"
end
StripTextures(ReadyCheckFrame, true)
CreateBackdrop(ReadyCheckFrame, nil, nil, .75)
+39
View File
@@ -0,0 +1,39 @@
pfUI:RegisterSkin("Item Socketing", "tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
HookAddonOrVariable("Blizzard_ItemSocketingUI", function()
StripTextures(ItemSocketingFrame)
CreateBackdrop(ItemSocketingFrame, nil, nil, .75)
CreateBackdropShadow(ItemSocketingFrame)
ItemSocketingFrame.backdrop:SetPoint("TOPLEFT", 8, -14)
ItemSocketingFrame.backdrop:SetPoint("BOTTOMRIGHT", -4, 28)
ItemSocketingFrame:SetHitRectInsets(8,4,14,28)
EnableMovable(ItemSocketingFrame)
SkinCloseButton(ItemSocketingCloseButton, ItemSocketingFrame.backdrop, -6, -6)
ItemSocketingFrame:DisableDrawLayer("BACKGROUND")
StripTextures(ItemSocketingScrollFrame)
CreateBackdrop(ItemSocketingScrollFrame)
ItemSocketingScrollFrame:ClearAllPoints()
ItemSocketingScrollFrame:SetPoint("TOPLEFT", 32, -70)
ItemSocketingScrollFrame.backdrop:SetPoint("TOPLEFT", 0, 10)
ItemSocketingScrollFrame.backdrop:SetPoint("BOTTOMRIGHT", 0, -10)
SkinScrollbar(ItemSocketingScrollFrameScrollBar)
ItemSocketingScrollFrameScrollBar:ClearAllPoints()
ItemSocketingScrollFrameScrollBar:SetPoint("TOPLEFT", ItemSocketingScrollFrame.backdrop, "TOPRIGHT", 6, -16)
ItemSocketingScrollFrameScrollBar:SetPoint("BOTTOMLEFT", ItemSocketingScrollFrame.backdrop, "BOTTOMRIGHT", 6, 16)
SkinButton(ItemSocketingSocketButton)
for i = 1, MAX_NUM_SOCKETS do
local btn = _G["ItemSocketingSocket"..i]
StripTextures(btn)
SkinButton(btn, nil, nil, nil, _G["ItemSocketingSocket"..i.."IconTexture"], true)
end
local orig = ItemSocketingSocket1.SetPoint
ItemSocketingSocket1.SetPoint = function(self,a,b,c,x,y)
orig(self,a,b,c,x-10,y+15)
end
end)
end)
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Spellbook", "vanilla", function ()
pfUI:RegisterSkin("Spellbook", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Pet Stable Master", "vanilla", function ()
pfUI:RegisterSkin("Pet Stable Master", "vanilla:tbc", function ()
StripTextures(PetStableFrame)
CreateBackdrop(PetStableFrame, nil, nil, .75)
CreateBackdropShadow(PetStableFrame)
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Guild Tabard", "vanilla", function ()
pfUI:RegisterSkin("Guild Tabard", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
+9 -3
View File
@@ -1,10 +1,16 @@
pfUI:RegisterSkin("Talents", "vanilla", function ()
pfUI:RegisterSkin("Talents", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
HookAddonOrVariable("Blizzard_TalentUI", function()
local TALENT_FRAME = _G.TalentFrame
local TALENT_FRAME_NAME = TALENT_FRAME:GetName()
-- Compatibility
local TALENT_FRAME, TALENT_FRAME_NAME
if PlayerTalentFrame then -- tbc
TALENT_FRAME = _G.PlayerTalentFrame
else -- vanilla
TALENT_FRAME = _G.TalentFrame
end
TALENT_FRAME_NAME = TALENT_FRAME:GetName()
StripTextures(TALENT_FRAME)
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Flightmaster", "vanilla", function ()
pfUI:RegisterSkin("Flightmaster", "vanilla:tbc", function ()
StripTextures(TaxiFrame)
CreateBackdrop(TaxiFrame, nil, nil, .75)
CreateBackdropShadow(TaxiFrame)
+122
View File
@@ -0,0 +1,122 @@
pfUI:RegisterSkin("Time Manager", "tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
HookAddonOrVariable("Blizzard_TimeManager", function()
do -- TimeManagerFrame
StripTextures(TimeManagerFrame)
CreateBackdrop(TimeManagerFrame, nil, nil, .75)
CreateBackdropShadow(TimeManagerFrame)
TimeManagerClockButton:Hide()
TimeManagerClockButton.Show = function() return end
TimeManagerFrame.backdrop:SetPoint("TOPLEFT", 10, -10)
TimeManagerFrame.backdrop:SetPoint("BOTTOMRIGHT", -48, 1)
TimeManagerFrame:SetHitRectInsets(10,48,10,1)
EnableMovable(TimeManagerFrame)
SkinCloseButton(TimeManagerCloseButton, TimeManagerFrame.backdrop, -6, -6)
local header = GetNoNameObject(TimeManagerFrame, 'FontString', 'BORDER', TIMEMANAGER_TITLE)
header:ClearAllPoints()
header:SetPoint("TOP", TimeManagerFrame.backdrop, "TOP", 0, -10)
TimeManagerFrameTicker:ClearAllPoints()
TimeManagerFrameTicker:SetPoint("TOPLEFT", TimeManagerFrame.backdrop, "TOPLEFT", 30, -37)
StripTextures(TimeManagerStopwatchFrame)
local texture = TimeManagerStopwatchCheck:GetNormalTexture():GetTexture()
SkinButton(TimeManagerStopwatchCheck)
TimeManagerStopwatchCheck:SetNormalTexture(texture)
HandleIcon(TimeManagerStopwatchCheck, TimeManagerStopwatchCheck:GetNormalTexture())
local frames = {
[TimeManagerAlarmHourDropDown] = '0',
[TimeManagerAlarmMinuteDropDown] = '1',
[TimeManagerAlarmAMPMDropDown] = '-4'
}
for frame,Xoffset in pairs(frames) do
SkinDropDown(frame, nil, nil, nil, true)
local text = _G[frame:GetName().."Text"]
local left = _G[frame:GetName().."Left"]
text:ClearAllPoints()
text:SetPoint("LEFT", left, "LEFT", Xoffset, 1)
end
TimeManagerAlarmHourDropDown:ClearAllPoints()
TimeManagerAlarmHourDropDown:SetPoint("TOPLEFT", TimeManagerAlarmTimeLabel, "BOTTOMLEFT", -4, -4)
TimeManagerAlarmMessageFrame:ClearAllPoints()
TimeManagerAlarmMessageFrame:SetPoint("TOPLEFT", TimeManagerAlarmTimeFrame, "BOTTOMLEFT", 0, 0)
TimeManagerAlarmMessageEditBox:DisableDrawLayer("BACKGROUND")
CreateBackdrop(TimeManagerAlarmMessageEditBox)
TimeManagerAlarmMessageEditBox:ClearAllPoints()
TimeManagerAlarmMessageEditBox:SetWidth(142)
TimeManagerAlarmMessageEditBox:SetPoint("TOPLEFT", TimeManagerAlarmMessageLabel, "BOTTOMLEFT", 13, -5)
SkinButton(TimeManagerAlarmEnabledButton)
TimeManagerAlarmEnabledButton.SetNormalTexture = function() end
TimeManagerAlarmEnabledButton.SetPushedTexture = function() end
hooksecurefunc("TimeManagerAlarmEnabledButton_Update", function()
if TimeManagerAlarmEnabledButton:GetText() == TIMEMANAGER_ALARM_ENABLED then
TimeManagerAlarmEnabledButton:LockHighlight()
else
TimeManagerAlarmEnabledButton:UnlockHighlight()
end
end)
TimeManagerAlarmEnabledButton:ClearAllPoints()
TimeManagerAlarmEnabledButton:SetWidth(146)
TimeManagerAlarmEnabledButton:SetPoint("TOP", TimeManagerAlarmMessageEditBox, "BOTTOM", 0, -8)
SkinCheckbox(TimeManagerMilitaryTimeCheck)
SkinCheckbox(TimeManagerLocalTimeCheck)
end
do -- StopwatchFrame
StripTextures(StopwatchFrame)
StripTextures(StopwatchTabFrame)
CreateBackdrop(StopwatchTabFrame, nil, true)
StopwatchTabFrame:SetWidth(122)
StopwatchTabFrame:SetHeight(18)
StopwatchTitle:ClearAllPoints()
StopwatchTitle:SetPoint("CENTER", 0, 0)
SkinCloseButton(StopwatchCloseButton, StopwatchTabFrame, 0, 0)
local orig = StopwatchResetButton.SetNormalTexture
StopwatchResetButton.SetNormalTexture = function(self, tex)
orig(self, tex)
local texture = self:GetNormalTexture()
texture:SetDesaturated(1)
texture:SetTexCoord(.25, .75, .28, .78)
end
SkinButton(StopwatchResetButton, nil, nil, nil, StopwatchResetButton:GetNormalTexture())
StopwatchResetButton:SetNormalTexture("Interface\\TimeManager\\ResetButton") -- initiate update texture
StopwatchResetButton:ClearAllPoints()
StopwatchResetButton:SetWidth(20)
StopwatchResetButton:SetHeight(20)
StopwatchResetButton:SetPoint("TOPRIGHT", StopwatchTabFrame, "BOTTOMRIGHT", 0, -2*border + 1)
local orig = StopwatchPlayPauseButton.SetNormalTexture
StopwatchPlayPauseButton.SetNormalTexture = function(self, tex)
orig(self, tex)
local texture = self:GetNormalTexture()
texture:SetDesaturated(1)
texture:SetTexCoord(.25, .75, .28, .78)
end
SkinButton(StopwatchPlayPauseButton, nil, nil, nil, StopwatchPlayPauseButton:GetNormalTexture())
StopwatchPlayPauseButton:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up") -- initiate update texture
StopwatchPlayPauseButton:ClearAllPoints()
StopwatchPlayPauseButton:SetWidth(20)
StopwatchPlayPauseButton:SetHeight(20)
StopwatchPlayPauseButton:SetPoint("RIGHT", StopwatchResetButton, "LEFT", -2*bpad, 0)
CreateBackdrop(StopwatchTicker)
StopwatchTicker:ClearAllPoints()
StopwatchTicker:SetWidth(70)
StopwatchTicker:SetHeight(16)
StopwatchTicker:SetPoint("RIGHT", StopwatchPlayPauseButton, "LEFT", -2*border + 1, 0)
end
end)
end)
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Tooltips", "vanilla", function ()
pfUI:RegisterSkin("Tooltips", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local alpha = tonumber(C.tooltip.alpha)
+11
View File
@@ -0,0 +1,11 @@
pfUI:RegisterSkin("tracking", "tbc", function ()
MINIMAP_TRACKING_FRAME:DisableDrawLayer("ARTWORK") -- hide border
SkinButton(MINIMAP_TRACKING_FRAME, nil, nil, nil, MiniMapTrackingIcon, true)
MINIMAP_TRACKING_FRAME:SetHeight(tonumber(C.appearance.minimap.tracking_size) + 10)
MINIMAP_TRACKING_FRAME:SetWidth(tonumber(C.appearance.minimap.tracking_size) + 10)
MINIMAP_TRACKING_FRAME:ClearAllPoints()
MINIMAP_TRACKING_FRAME:SetPoint("TOPLEFT", pfUI.minimap, "TOPLEFT", -10, -10)
MINIMAP_TRACKING_FRAME:SetFrameStrata("LOW")
MINIMAP_TRACKING_FRAME:SetParent(UIParent)
UpdateMovable(MINIMAP_TRACKING_FRAME)
end)
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Trade", "vanilla", function ()
pfUI:RegisterSkin("Trade", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
+1 -1
View File
@@ -1,4 +1,4 @@
pfUI:RegisterSkin("Trainer", "vanilla", function ()
pfUI:RegisterSkin("Trainer", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()