_G[ self:GetName().."Backdrop" ]:SetBackdropColor(1,1,1,.25) _G[ self:GetName().."Backdrop" ]:SetBackdropBorderColor(1,1,1,.15) if self.tagged and self.infoShown then local f = self.tagged local str = numfor(f:GetLeft()).." , "..numfor(f:GetBottom()) local label = _G[self:GetName().."BackdropInfoLabel"] label:Show() label:SetText(str) if self == MovAny.currentMover then _G["MANudgerInfoLabel"]:Show() _G["MANudgerInfoLabel"]:SetText(str) end end local button = GetMouseButtonClicked() if self.tagged then local f = self.tagged if not MovAny:IsProtected(f) or not InCombatLockdown() then MovAny:UnlockPoint(f) f:ClearAllPoints() f:SetPoint("BOTTOMLEFT", self, "BOTTOMLEFT", 0, 0) MovAny:LockPoint(f) end if button == "LeftButton" and not MovAny.NoMove[ self.tagged:GetName() ] then local str = numfor(f:GetLeft()).." , "..numfor(f:GetBottom()) _G[self:GetName().."BackdropInfoLabel"]:SetText(str) if self == MovAny.currentMover then _G["MANudgerInfoLabel"]:SetText(str) _G["MANudgerInfoLabel"]:Show() end self.infoShown = true if f.OnMAPosition then f:OnMAPosition(f) end self:StartMoving() end end local button = GetMouseButtonClicked() if self.tagged and not MovAny.NoMove[ self.tagged:GetName() ] then if button ~= "RightButton" then MovAny:MoverUpdatePosition(self) end self:StopMovingOrSizing() end if button == "RightButton" and self.tagged and not MovAny:ErrorNotInCombat(self.tagged) then if IsShiftKeyDown() then local t = _G[self:GetName().."Backdrop"] if t:IsVisible() then t:Hide() else t:Show() end else local name = self.tagged:GetName() if IsControlKeyDown() then MovAny:FrameEditor(name) else MovAny:StopMoving(name) end end end --MovAny:TooltipHide() MovAny:MoverOnSizeChanged(self) MovAny:MoverOnShow(self) MovAny:MoverOnHide() if self == MovAny.currentMover then _G[ "MANudgerInfoLabel"]:Hide() end self:SetBackdropColor(.03, .03, .03) self:SetBackdropBorderColor(.4, .4, .4) MovAny:RowTitleClicked(self) MovAny:OnMoveCheck(self) MovAny:OnHideCheck(self) _G[self:GetName().."Text"]:SetText("FS") self.tooltipText = "Toggle Blizzard's framestack tooltip.\n\n A very helpful tool for figuring out frame names for use with /move." UIParentLoadAddOn("Blizzard_DebugTools") FrameStackTooltip_Toggle() _G[self:GetName().."Text"]:SetText("FE") self.tooltipText = "Toggle visibility on frame editors." MovAny:ToggleFrameEditors() _G[self:GetName().."Text"]:SetText("MF") self.tooltipText = "Show only modified frames" MovAny:OnCheckToggleModifiedFramesOnly(self) _G[self:GetName().."Text"]:SetText("CE") self.tooltipText = "Toggle all categories" MovAny:OnCheckToggleCategories(self) FauxScrollFrame_OnVerticalScroll(self, offset, MovAny.SCROLL_HEIGHT, MovAny.UpdateGUI) self:SetBackdropColor(.1, .1, .1) self:SetBackdropBorderColor(.4, .4, .4) self:RegisterEvent("ADDON_LOADED") self:RegisterEvent("PLAYER_LOGOUT") self:RegisterEvent("PLAYER_ENTERING_WORLD") self:RegisterEvent("PLAYER_REGEN_ENABLED") self:RegisterEvent("RAID_ROSTER_UPDATE") self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED") self:RegisterEvent("PLAYER_FOCUS_CHANGED") MovAny:OnShow() MovAny:OnHide() self:RegisterForDrag("LeftButton") self:SetBackdropColor(0,0,0,.75) self:SetBackdropBorderColor(0,0,0,.75) _G[ self:GetName().."InfoLabel"]:SetAlpha(.8) self:StartMoving() self:StopMovingOrSizing() MovAny:NudgerOnShow() self:StopMovingOrSizing() if IsControlKeyDown() then if MovAny.FrameEditor and MovAny.currentMover and MovAny.currentMover.tagged then MovAny:FrameEditor(MovAny.currentMover.tagged:GetName()) end else local button = GetMouseButtonClicked() if button == "RightButton" then self:Hide() end end if MovAny.currentMover ~= nil and MovAny.currentMover.tagged then if (MADB.tooltips and not IsShiftKeyDown()) or (not MADB.tooltips and IsShiftKeyDown()) then self.tooltipLines = MovAny:GetFrameTooltipLines(MovAny.currentMover.tagged:GetName()) MovAny:TooltipShowMultiline(self) end end GameTooltip:Hide() MovAny:NudgerOnUpdate()