Commit 418952a7 authored by AcidWeb's avatar AcidWeb

Fixed map position saving (close #831)

parent 2a299fc5
......@@ -64,7 +64,10 @@ local function LoadSkin()
BattlefieldMapFrame.ScrollContainer:HookScript("OnMouseUp", function(_, btn)
if btn == "LeftButton" then
if not _G.BattlefieldMapOptions.position then
_G.BattlefieldMapOptions.position = {}
_G.BattlefieldMapOptions.position.x, _G.BattlefieldMapOptions.position.y = BattlefieldMapTab:GetCenter()
elseif btn == "RightButton" then
_G.UIDropDownMenu_Initialize(BattlefieldMapTab.OptionsDropDown, InitializeOptionsDropDown, "MENU")
_G.ToggleDropDownMenu(1, nil, BattlefieldMapTab.OptionsDropDown, BattlefieldMapFrame:GetName(), 0, -4)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment