_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)
self:SetText(MOVANY.SEARCH_TEXT)
self:HighlightText(0, 0)
if self:GetText() == MOVANY.SEARCH_TEXT then
self:SetText("")
end
self:HighlightText(0, 0)
if self:GetText() == "" or self:GetText() == nil then
self:SetText(MOVANY.SEARCH_TEXT)
end
MovAny:Search(self:GetText())
self:ClearFocus()
MovAny:Search(self:GetText())
self:ClearFocus()
if self:GetText() ~= MOVANY.SEARCH_TEXT then
MovAny:Search(self:GetText())
end
if self:GetText() == "" or self:GetText() == nil then
self:SetText(MOVANY.SEARCH_TEXT)
elseif self:GetText() ~= MOVANY.SEARCH_TEXT then
MovAny:Search(self:GetText())
end
self:ClearFocus()
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()