Skip to content

Instantly share code, notes, and snippets.

View dryoo's full-sized avatar
😄
Where is Carmen Sandiego?

SC Yoo dryoo

😄
Where is Carmen Sandiego?
View GitHub Profile
@dryoo
dryoo / ads.lua
Last active August 31, 2016 17:01
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_