/
-- someone wanted the feature to hide the dressing rooms' backgrounds |
local function ToggleBG(notog) |
if not notog then CU_HideBG = not CU_HideBG end |
if DressUpBackgroundTopLeft then |
local f = (CU_HideBG and DressUpBackgroundTopLeft.Hide) or DressUpBackgroundTopLeft.Show |
f(DressUpBackgroundTopLeft) |
f(DressUpBackgroundTopRight) |
f(DressUpBackgroundBotLeft) |
f(DressUpBackgroundBotRight) |
if AuctionDressUpBackgroundTop then |
f(AuctionDressUpBackgroundTop) |
f(AuctionDressUpBackgroundBot) |
end |
end |
end |
local function OnUpdate(this) |
_G[model.."ControlFrame"]:SetScript("OnEnter", nada) |
_G[model.."ControlFrame"].Show = nada |
end |
if w then gmodel:SetWidth(w) end |
--[[if w then gmodel:SetWidth(w) end |
if h then gmodel:SetHeight(h) end |
if x or y then |
local p,rt,rp,px,py = gmodel:GetPoint() |
gmodel:SetPoint(p, rt, rp, x or px, y or py) |
end |
gmodel:SetModelScale(2) |
gmodel:SetModelScale(2) ]]-- |
gmodel:EnableMouse(true) |
gmodel:EnableMouseWheel(true) |
gmodel.pMouseDown = gmodel:GetScript("OnMouseDown") or nada |
do |
Apply("DressUpModel", nil, 332, nil, 104) |
local tb = DressUpFrameCancelButton |
local w, h = 40, tb:GetHeight() |
local w, h = 50, tb:GetHeight() |
local m = DressUpModel |
-- since 2.1 dressup models doesn't apply properly to NPCs, make a substitute |
end |
end) |
local a,b,c,d,e = tb:GetPoint() |
tb:SetPoint(a, b, c, d - (w/2), e) |
tb:SetPoint(a, b, c, d - w, e) |
newbutton("CloseUpUndressButton", DressUpFrame, "Und", w, h, nil, "Undress", function() m:Undress() end):SetPoint("LEFT", tb, "RIGHT", -2, 0) |
end |
## Title: CloseUp |
## Notes: Adds model viewing flexibility |
## Author: TotalPackage |
## Version: 7.3.002 |
## Version: 7.3.003 |
## X-Category: Interface Enhancements |
## SavedVariables: CU_HideBG |