From 8f0fa1194a126674d4a587255693416c20884258 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Tue, 2 Sep 2008 15:17:33 +0000 Subject: [PATCH] Changed the movement API usage git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@16 ae24c21f-2f0c-4c94-9256-0092abe71e0d --- pMinimap/pMinimapConfig.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pMinimap/pMinimapConfig.lua b/pMinimap/pMinimapConfig.lua index c3a6134..e6ea5f7 100644 --- a/pMinimap/pMinimapConfig.lua +++ b/pMinimap/pMinimapConfig.lua @@ -18,11 +18,11 @@ local function Options(self, anchor, db) db.x = x db.y = y anchor:SetAlpha(0) - anchor:SetMovable(value) + anchor:EnableMouse(false) anchor:SetFrameStrata('BACKGROUND') else anchor:SetAlpha(1) - anchor:SetMovable(value) + anchor:EnableMouse(true) anchor:SetFrameStrata('DIALOG') end end) @@ -92,16 +92,16 @@ local function OnEvent(self, name) db.locked = true local anchor = CreateFrame('Frame', nil, UIParent) - anchor:SetFrameStrata('BACKGROUND') + anchor:SetPoint(db.p1, UIParent, db.p2, db.x, db.y) anchor:SetWidth(Minimap:GetWidth() * db.scale) anchor:SetHeight(Minimap:GetHeight() * db.scale) - anchor:SetAlpha(0) anchor:SetBackdrop({bgFile='Interface\\ChatFrame\\ChatFrameBackground'}) anchor:SetBackdropColor(0, 1, 0, 0.5) + anchor:SetAlpha(0) + anchor:SetMovable(true) + anchor:EnableMouse(false) anchor:SetScript('OnMouseDown', function(self) self:StartMoving() end) anchor:SetScript('OnMouseUp', function(self) self:StopMovingOrSizing() end) - anchor:SetPoint(db.p1, UIParent, db.p2, db.x, db.y) - anchor:EnableMouse(db.locked and false or true) Minimap:ClearAllPoints() Minimap:SetPoint('CENTER', anchor) -- 1.7.9.5