View Single Post
09-16-14, 03:34 PM   #2
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
1. You need to hide these frames:

Lua Code:
  1. PaperDollInnerBorderTopLeft:Hide()
  2. PaperDollInnerBorderTopRight:Hide()
  3. PaperDollInnerBorderBottomLeft:Hide()
  4. PaperDollInnerBorderBottomRight:Hide()
  5. PaperDollInnerBorderLeft:Hide()
  6. PaperDollInnerBorderRight:Hide()
  7. PaperDollInnerBorderTop:Hide()
  8. PaperDollInnerBorderBottom:Hide()
  9. PaperDollInnerBorderBottom2:Hide()

2. You can remove the border from every slot frame like this, not sure how can you override this yet:

Lua Code:
  1. CharacterHeadSlot:DisableDrawLayer("Background")
  2. CharacterNeckSlot:DisableDrawLayer("Background")
  3. CharacterShoulderSlot:DisableDrawLayer("Background")
  4. CharacterBackSlot:DisableDrawLayer("Background")
  5. CharacterChestSlot:DisableDrawLayer("Background")
  6. CharacterShirtSlot:DisableDrawLayer("Background")
  7. CharacterTabardSlot:DisableDrawLayer("Background")
  8. CharacterWristSlot:DisableDrawLayer("Background")
  9. CharacterHandsSlot:DisableDrawLayer("Background")
  10. CharacterWaistSlot:DisableDrawLayer("Background")
  11. CharacterLegsSlot:DisableDrawLayer("Background")
  12. CharacterFeetSlot:DisableDrawLayer("Background")
  13. CharacterFinger0Slot:DisableDrawLayer("Background")
  14. CharacterFinger1Slot:DisableDrawLayer("Background")
  15. CharacterTrinket0Slot:DisableDrawLayer("Background")
  16. CharacterTrinket1Slot:DisableDrawLayer("Background")
  17. CharacterMainHandSlot:DisableDrawLayer("Background")
  18. CharacterSecondaryHandSlot:DisableDrawLayer("Background")

3. Easiest way to do that is to extract the "Data/interface.MPQ/Interface/PaperDoll" folder with an MPQ extractor (I would suggest to use the MPQ Plugin for Total Commander), then copy this into your "Interface" folder, than just edit the images, but keep the names.

4. Use this code:

Lua Code:
  1. if ShowUIPanel then
  2.     hooksecurefunc("ShowUIPanel", function(self)
  3.         if self == CharacterFrame then
  4.             CharacterFrame:ClearAllPoints()
  5.             CharacterFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
  6.         end
  7.     end)
  8. end
  9. if CharacterFrame_Collapse then
  10.     hooksecurefunc("CharacterFrame_Collapse", function(self)
  11.         CharacterFrame:ClearAllPoints()
  12.         CharacterFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
  13.     end)
  14. end
  15. if CharacterFrame_Expand then
  16.     hooksecurefunc("CharacterFrame_Expand", function(self)
  17.         CharacterFrame:ClearAllPoints()
  18.         CharacterFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
  19.     end)
  20. end

Last edited by Resike : 09-16-14 at 04:14 PM.
  Reply With Quote