From 29b948e6fac076b569601b093b05514307fc7fa6 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sun, 28 Jun 2026 00:14:40 -0500 Subject: [PATCH] character cleanup --- skins/blizzard/character.lua | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/skins/blizzard/character.lua b/skins/blizzard/character.lua index cfeea38b..cb509e13 100644 --- a/skins/blizzard/character.lua +++ b/skins/blizzard/character.lua @@ -136,22 +136,19 @@ pfUI:RegisterSkin("Character", function () end end - HookScript(CharacterFrame, "OnShow", function() + hooksecurefunc("CharacterFrame_OnShow", function() RefreshCharacterSlots() RefreshPetPosition() + end) - if not this.hooked then - hooksecurefunc("PaperDollItemSlotButton_Update", function() - -- update only character slots! - if string.find(this:GetName(), "^Character.-Slot$") then - RefreshCharacterSlot(this) - end - end) - hooksecurefunc("PetTab_Update", RefreshPetPosition) - this.hooked = true + hooksecurefunc("PaperDollItemSlotButton_Update", function() + if this:GetParent() == PaperDollFrame then + RefreshCharacterSlot(this) end end) + hooksecurefunc("PetTab_Update", RefreshPetPosition) + StripTextures(PaperDollFrame) StripTextures(CharacterAttributesFrame) StripTextures(CharacterResistanceFrame)