WoWInterface SVN CloseUp

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 27 to Rev 28
    Reverse comparison

Rev 27 → Rev 28

trunk/CloseUp/core.lua
6,18 → 6,7
 
-- 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)
103,13 → 92,13
_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
206,7 → 195,7
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
241,7 → 230,7
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
trunk/CloseUp/CloseUp.toc
2,7 → 2,7
## Title: CloseUp
## Notes: Adds model viewing flexibility
## Author: TotalPackage
## Version: 7.3.002
## Version: 7.3.003
## X-Category: Interface Enhancements
## SavedVariables: CU_HideBG