Files
pfUI/skins/blizzard/tabard.lua
T
Brues 70cc994a97 Zoom, pan and per-slot undress in the dressing room
EnableClickRotate becomes EnableModelControls, the controls of 4.3.4's
ModelWithControlsTemplate: left-drag turns the model without ClassicAPI's
step animation, the mouse wheel moves the camera toward the face with
SetPortraitZoom, and right-drag pans with 4.3.4's per-race pan speed and
bounds. Showing the frame resets zoom and pan. Every model frame pfUI
skins gets them.

The dressing room gains an Undress button and a column of slot buttons
on each side, in the paperdoll's order; clicking one calls UndressSlot.
2026-10-30 23:11:09 -05:00

58 lines
1.8 KiB
Lua

pfUI:RegisterSkin("Guild Tabard", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
StripTextures(TabardFrame)
CreateBackdrop(TabardFrame, nil, nil, .75)
CreateBackdropShadow(TabardFrame)
TabardFrame.backdrop:SetPoint("TOPLEFT", 10, -10)
TabardFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 72)
TabardFrame:SetHitRectInsets(10,32,10,72)
EnableMovable(TabardFrame)
SkinCloseButton(TabardFrameCloseButton, TabardFrame.backdrop, -6, -6)
TabardFrame:DisableDrawLayer("BACKGROUND")
TabardFrameNameText:ClearAllPoints()
TabardFrameNameText:SetPoint("TOP", TabardFrame.backdrop, "TOP", 0, -10)
TabardFrameGreetingText:ClearAllPoints()
TabardFrameGreetingText:SetPoint("TOP", TabardFrame.backdrop, "TOP", 0, -39)
StripTextures(TabardFrameCostFrame)
EnableModelControls(TabardModel)
TabardCharacterModelRotateLeftButton:Hide()
TabardCharacterModelRotateRightButton:Hide()
StripTextures(TabardFrameCustomizationFrame)
for i = 1, 5 do
local button = _G["TabardFrameCustomization"..i]
StripTextures(button)
CreateBackdrop(button, nil, true)
local left = _G["TabardFrameCustomization"..i.."LeftButton"]
StripTextures(left)
SkinArrowButton(left, "left", 20)
left:ClearAllPoints()
left:SetPoint("LEFT", 0, 0)
local right = _G["TabardFrameCustomization"..i.."RightButton"]
StripTextures(right)
SkinArrowButton(right, "right", 20)
right:ClearAllPoints()
right:SetPoint("RIGHT", 0, 0)
local text = _G["TabardFrameCustomization"..i.."Text"]
text:ClearAllPoints()
text:SetPoint("CENTER", 0, 0)
end
SkinButton(TabardFrameCancelButton)
SkinButton(TabardFrameAcceptButton)
TabardFrameAcceptButton:ClearAllPoints()
TabardFrameAcceptButton:SetPoint("RIGHT", TabardFrameCancelButton, "LEFT", -2*bpad, 0)
end)