This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUI.Minimap.UI = {} local LMP = LibStub('LibMediaProvider-1.0') local isLoaded = false local lastLocName = nil local function AUI_UI_OnMouseDown(button, ctrl, alt, shift) if not AUI.Settings.Minimap.lock_window then AUI_Minimap_MainWindow:SetMovable(true) AUI_Minimap_MainWindow:StartMoving() end end local function AUI_UI_OnMouseUp(button, ctrl, alt, shift) if not AUI.Settings.Minimap.lock_window then AUI_Minimap_MainWindow:SetMovable(false) _, AUI.Settings.Minimap.anchor.point, _, AUI.Settings.Minimap.anchor.relativePoint, AUI.Settings.Minimap.anchor.offsetX, AUI.Settings.Minimap.anchor.offsetY = AUI_Minimap_MainWindow:GetAnchor() end end local function AUI_UI_OnMouseWheel(self, delta, ctrl, alt, shift) if delta > 0 then AUI.Minimap.Map.ZoomOut() elseif delta < 0 then AUI.Minimap.Map.ZoomIn() end end local function AUI_UI_GetLocationAnchorPoints() local point = TOP local rPoint = TOP if AUI.Settings.Minimap.location_Position == "bottom" then point = BOTTOM rPoint = BOTTOM elseif AUI.Settings.Minimap.location_ |