tweak merinspect pos after reskin
rawoil [12-09-21 - 09:02]
tweak merinspect pos after reskin
diff --git a/rSkin/modules/MerInspect.lua b/rSkin/modules/MerInspect.lua
index 55ff372..fe5fdac 100644
--- a/rSkin/modules/MerInspect.lua
+++ b/rSkin/modules/MerInspect.lua
@@ -26,7 +26,17 @@ local function SkinMerInspect()
if not _G.ShowInspectItemListFrame then return end
hooksecurefunc("ShowInspectItemListFrame", function(_, parent)
- SkinInspectFrame(parent.inspectFrame)
+ local frame = parent.inspectFrame
+ if not frame then return end
+
+ SkinInspectFrame(frame)
+
+ local f = parent:GetName()
+ if (f == "InspectFrame" or f == "PaperDollFrame") then
+ frame:SetPoint("TOPLEFT", parent, "TOPRIGHT", -31, -15)
+ else
+ frame:SetPoint("TOPLEFT", parent, "TOPRIGHT", 5, 0)
+ end
end)
if not _G.ClassicStatsFrameTemplate_OnShow then return end