phase 1 removing tbc

This commit is contained in:
Brues
2026-05-25 18:16:02 -05:00
parent 199842e220
commit 58609b8c5c
19 changed files with 3 additions and 3054 deletions
+1 -2
View File
@@ -169,7 +169,6 @@ function pfUI.api.RunOOC(func)
if not frame then
frame = CreateFrame("Frame")
frame:SetScript("OnUpdate", function()
if InCombatLockdown and InCombatLockdown() then return end
for key, func in pairs(queue) do func(); queue[key] = nil end
end)
end
@@ -1115,7 +1114,7 @@ function pfUI.api.CreateBackdrop(f, inset, legacy, transp, backdropSetting)
f:SetBackdropBorderColor(er, eg, eb , ea)
else
-- increase clickable area if available
if f.SetHitRectInsets and ( not InCombatLockdown or not InCombatLockdown()) then
if f.SetHitRectInsets then
f:SetHitRectInsets(-border,-border,-border,-border)
end
-16
View File
@@ -2,17 +2,7 @@
setfenv(1, pfUI:GetEnvironment())
pfUI.uf = CreateFrame("Frame", nil, UIParent)
pfUI.uf:SetScript("OnUpdate", function()
if InCombatLockdown and not InCombatLockdown() then
for frame in pairs(pfUI.uf.delayed) do
frame:UpdateVisibility()
pfUI.uf.delayed[frame] = nil
end
end
end)
pfUI.uf.frames = {}
pfUI.uf.delayed = {}
-- ============================================================================
-- GUID-based Roster Tracking for Smart Updates
@@ -307,12 +297,6 @@ end
function pfUI.uf:UpdateVisibility()
local self = self or this
-- we're infight, delay the update
if InCombatLockdown and InCombatLockdown() then
pfUI.uf.delayed[self] = true
return
end
-- cache result of strsub to avoid repeating calls
if not self.cache_raid then
if strsub(self:GetName(),0,6) == "pfRaid" then
-1960
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -1,4 +1,3 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Include file="..\compat\vanilla.lua"/>
<Include file="..\compat\tbc.lua"/>
</Ui>
-1
View File
@@ -68,7 +68,6 @@
<Include file="..\modules\afkcam.lua"/>
<Include file="..\modules\screenshot.lua"/>
<Include file="..\modules\addoncompat.lua"/>
<Include file="..\modules\combatlogfix.lua"/>
<Include file="..\modules\energytick.lua"/>
<Include file="..\modules\totems.lua"/>
<Include file="..\modules\macrotweak.lua"/>
-15
View File
@@ -3,7 +3,6 @@
<Include file="..\skins\blizzard\spellbook.lua"/>
<Include file="..\skins\blizzard\friends.lua"/>
<Include file="..\skins\blizzard\talents.lua"/>
<Include file="..\skins\blizzard\inspect.lua"/>
<Include file="..\skins\blizzard\macro.lua"/>
<Include file="..\skins\blizzard\miscellaneous.lua"/>
<Include file="..\skins\blizzard\gossipquest.lua"/>
@@ -27,7 +26,6 @@
<Include file="..\skins\blizzard\game_menu.lua"/>
<Include file="..\skins\blizzard\guild_registrar.lua"/>
<Include file="..\skins\blizzard\help.lua"/>
<Include file="..\skins\blizzard\options-interface.lua"/>
<Include file="..\skins\blizzard\options-sound.lua"/>
<Include file="..\skins\blizzard\options-video.lua"/>
<Include file="..\skins\blizzard\options-new.lua"/>
@@ -46,17 +44,4 @@
<Include file="..\skins\blizzard\arena_score.lua"/>
<Include file="..\skins\blizzard\ebc.lua"/>
<!-- Turtle WoW -->
<Include file="..\skins\blizzard\barbershop.lua"/>
<Include file="..\skins\blizzard\transmog.lua"/>
<Include file="..\skins\blizzard\ebc.lua"/>
<!-- TBC -->
<Include file="..\skins\blizzard\tracking.lua"/>
<Include file="..\skins\blizzard\guildbank.lua"/>
<Include file="..\skins\blizzard\socket.lua"/>
<Include file="..\skins\blizzard\arena_registrar.lua"/>
<Include file="..\skins\blizzard\arena.lua"/>
<Include file="..\skins\blizzard\time_manager.lua"/>
<Include file="..\skins\blizzard\lfg.lua"/>
</Ui>
-9
View File
@@ -21,9 +21,6 @@ pfUI:RegisterModule("actionbar", "vanilla", function ()
local drag_await
local drag_active
local function AssumeButtonDrag()
-- skip during combat
if InCombatLockdown and InCombatLockdown() then return end
-- skip if keydown press is not enabled
if C.bars.keydown ~= "1" then return end
@@ -285,9 +282,6 @@ pfUI:RegisterModule("actionbar", "vanilla", function ()
end
local function ButtonDrag(self)
-- skip during combat
if InCombatLockdown and InCombatLockdown() then return end
local self = self or this
if _G.LOCK_ACTIONBAR == "1" and not (pfUI_config.bars.shiftdrag == "1" and IsShiftKeyDown()) then return end
@@ -300,9 +294,6 @@ pfUI:RegisterModule("actionbar", "vanilla", function ()
end
local function ButtonDragStop(self)
-- skip during combat
if InCombatLockdown and InCombatLockdown() then return end
local self = self or this
if MacroFrame_SaveMacro then
-7
View File
@@ -1,7 +0,0 @@
pfUI:RegisterModule("combatlogfix", "tbc", function ()
-- Fixes the combatlog break bugs that exist since patch 2.4 by simply clearing the whole log
-- on every update. This is required in order to receive new log events. Otherwise, addons like
-- Omen or Recount won't work and simply don't receive any new data at a given time.
local combatlog = CreateFrame("Frame", "pfCombatLogFix", UIParent)
combatlog:SetScript("OnUpdate", CombatLogClearEntries)
end)
+2 -2
View File
@@ -105,8 +105,8 @@ pfUI:RegisterModule("raid", "vanilla:tbc", function ()
this.tick = GetTime() + 1.0
this.pendingUpdate = nil
-- don't proceed without raid or during combat
if not UnitInRaid("player") or (InCombatLockdown and InCombatLockdown()) then return end
-- don't proceed without raid
if not UnitInRaid("player") then return end
-- clear all existing frames
for i=1, maxraid do SetRaidIndex(pfUI.uf.raid[i], 0) end
-11
View File
@@ -484,12 +484,6 @@ pfUI:RegisterModule("unlock", "vanilla:tbc", function ()
pfUI.unlock:SetScript("OnShow", function()
if this.skip then this.skip = nil return end
if InCombatLockdown and InCombatLockdown() then
DEFAULT_CHAT_FRAME:AddMessage(ERR_NOT_IN_COMBAT, 1, .2, .2)
this.skip = true
this:Hide()
return
end
this.grid = this.grid or DrawGrid()
@@ -510,11 +504,6 @@ pfUI:RegisterModule("unlock", "vanilla:tbc", function ()
pfUI.unlock:SetScript("OnHide", function()
if this.skip then this.skip = nil return end
if InCombatLockdown and InCombatLockdown() then
this.skip = true
this:Show()
return
end
for name, frame in pairs(pfUI.movables) do
local frame = frame or _G[name]
-55
View File
@@ -1,55 +0,0 @@
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
@@ -1,119 +0,0 @@
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)
-131
View File
@@ -1,131 +0,0 @@
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)
-302
View File
@@ -1,302 +0,0 @@
local slots = {
"HeadSlot",
"NeckSlot",
"ShoulderSlot",
"BackSlot",
"ChestSlot",
"ShirtSlot",
"TabardSlot",
"WristSlot",
"HandsSlot",
"WaistSlot",
"LegsSlot",
"FeetSlot",
"Finger0Slot",
"Finger1Slot",
"Trinket0Slot",
"Trinket1Slot",
"MainHandSlot",
"SecondaryHandSlot",
"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)
local rotL = InspectModelRotateLeftButton or InspectModelFrameRotateLeftButton
if rotL then rotL:Hide() end
local rotR = InspectModelRotateRightButton or InspectModelFrameRotateRightButton
if rotR then rotR:Hide() end
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()
updateRetries = 0
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
-- NOTE: Old "InspectTalentFrame" block removed - Turtle WoW replaced it with
-- InspectTalentsFrame + TWTalentFrame (handled below in "Turtle WoW Talent Tab")
end)
end)
pfUI:RegisterSkin("Inspect", "vanilla", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
HookAddonOrVariable("Blizzard_InspectUI", function()
local cache = {}
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)
-- Turtle WoW has 4 inspect tabs: Character, Honor, Arena, Talents
for i = 1, 4 do
local tab = _G["InspectFrameTab"..i]
if tab then
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
end
do -- Character Tab
StripTextures(InspectPaperDollFrame)
EnableClickRotate(InspectModelFrame)
local rotL = InspectModelRotateLeftButton or InspectModelFrameRotateLeftButton
if rotL then rotL:Hide() end
local rotR = InspectModelRotateRightButton or InspectModelFrameRotateRightButton
if rotR then rotR:Hide() end
for _, slot in pairs(slots) do
local frame = _G["Inspect"..slot]
StripTextures(frame)
CreateBackdrop(frame)
SetAllPointsOffset(frame.backdrop, frame, 0)
HandleIcon(frame.backdrop, _G["Inspect"..slot.."IconTexture"])
local funce = frame:GetScript("OnEnter")
frame:SetScript("OnEnter", function()
local bid = this:GetID()
if not GetInventoryItemLink(InspectFrame.unit, this:GetID()) and this.hasItem then
GameTooltip:SetOwner(this, "ANCHOR_TOPRIGHT")
GameTooltip:SetHyperlink("item:"..cache[bid]["id"])
GameTooltip:Show()
else
funce()
end
end)
end
local updateRetries = 0
local MAX_RETRIES = 3
local function UpdateSlots()
if not InspectFrame.unit then updateRetries = 0; return end
local guild, title, rank = GetGuildInfo(InspectFrame.unit)
if guild then
InspectGuildText:SetPoint("TOP", InspectLevelText, "BOTTOM", 0, -1)
InspectGuildText:SetText(format(TEXT(GUILD_TITLE_TEMPLATE), title, guild))
InspectGuildText:Show()
else
InspectGuildText:SetText("")
InspectGuildText:Hide()
end
for i, vslot in pairs(slots) do
local id = GetInventorySlotInfo(vslot)
local link = GetInventoryItemLink(InspectFrame.unit, id)
local slot = _G["Inspect" .. vslot]
local retry = false
if link and slot.hasItem then
local _, _, link = string.find(link, "(item:%d+:%d+:%d+:%d+)")
local _, _, quality = GetItemInfo(link)
if not quality then
retry = true
else
slot.backdrop:SetBackdropBorderColor(GetItemQualityColor(quality))
if ShaguScore then
if not slot.scoreText then
slot.scoreText = slot:CreateFontString(nil, "OVERLAY", "GameFontNormal")
slot.scoreText:SetFont(pfUI.font_default, 12, "OUTLINE")
slot.scoreText:SetPoint("TOPRIGHT", 0, 0)
end
local r,g,b = GetItemQualityColor(quality)
local _, _, itemID = string.find(link, "item:(%d+):%d+:%d+:%d+")
local itemLevel = ShaguScore.Database[tonumber(itemID)] or 0
local score = ShaguScore:Calculate(vslot, quality, itemLevel)
if score and score > 0 then
slot.scoreText:SetText(score)
slot.scoreText:SetTextColor(r, g, b)
else
slot.scoreText:SetText("")
end
end
end
elseif slot.hasItem then
retry = true
else
CreateBackdrop(slot)
SetAllPointsOffset(slot.backdrop, slot, 0)
if slot.scoreText then
slot.scoreText:SetText("")
end
end
if retry == true and InspectFrame.unit then
if updateRetries < MAX_RETRIES then
updateRetries = updateRetries + 1
QueueFunction(UpdateSlots)
end
else
updateRetries = 0
end
end
end
hooksecurefunc("InspectPaperDollItemSlotButton_Update", function(button)
local bid = button:GetID()
local link = GetInventoryItemLink(InspectFrame.unit, bid)
if link then
local _,_,itemID = string.find(link, 'item:(%d+)')
cache[bid] = cache[bid] or {}
cache[bid]["id"] = itemID
cache[bid]["tex"] = GetInventoryItemTexture(InspectFrame.unit, button:GetID())
cache[bid]["count"] = GetInventoryItemCount(InspectFrame.unit, button:GetID())
cache[bid]["name"] = UnitName(InspectFrame.unit)
elseif cache[bid] and UnitName(InspectFrame.unit) == cache[bid].name then
-- restore cache information
SetItemButtonTexture(button, cache[bid]["tex"])
SetItemButtonCount(button, cache[bid]["count"])
button.hasItem = 1
end
UpdateSlots()
end)
end
do -- Honor Tab
StripTextures(InspectHonorFrame)
CreateBackdrop(InspectHonorFrameProgressBar)
InspectHonorFrameProgressBar:SetStatusBarTexture(pfUI.media["img:bar"])
InspectHonorFrameProgressBar:SetHeight(24)
end
do -- Turtle WoW Talent Tab (TWTalentFrame)
if TWTalentFrame then
StripTextures(TWTalentFrame)
StripTextures(TWTalentFrameScrollFrame)
SkinScrollbar(TWTalentFrameScrollFrameScrollBar)
for i = 1, (MAX_NUM_TALENTS or 100) do
local talent = _G["TWTalentFrameTalent"..i]
if talent then
StripTextures(talent)
SkinButton(talent, nil, nil, nil, _G["TWTalentFrameTalent"..i.."IconTexture"])
local rank = _G["TWTalentFrameTalent"..i.."Rank"]
if rank then
rank:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE")
end
end
end
for i = 1, 3 do
local tab = _G["TWTalentFrameTab"..i]
if tab then
SkinTab(tab)
tab:ClearAllPoints()
local lastTab = _G["TWTalentFrameTab"..(i-1)]
if lastTab then
tab:SetPoint("LEFT", lastTab, "RIGHT", border*2 + 1, 0)
else
tab:SetPoint("TOPLEFT", TWTalentFrame, "TOPLEFT", 70, -3)
end
end
end
end
end
end)
end)
-75
View File
@@ -1,75 +0,0 @@
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)
-176
View File
@@ -1,176 +0,0 @@
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 ()
if OptionsFrameCategoryList then return end
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)
-39
View File
@@ -1,39 +0,0 @@
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)
-122
View File
@@ -1,122 +0,0 @@
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)
-11
View File
@@ -1,11 +0,0 @@
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)