mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 19:50:02 +00:00
map: restore scale and position when shown
Set the scale to previous or 0.85 because the game default scripts set it to fullscreen scale each time. Additionaly, as the hook is now in place, it is no longer required to manually run the default functions when the map gets shown.
This commit is contained in:
+3
-7
@@ -48,16 +48,12 @@ pfUI:RegisterModule("map", "vanilla:tbc", function ()
|
||||
this.hooked = true
|
||||
|
||||
HookScript(WorldMapFrame, "OnShow", function()
|
||||
-- default events
|
||||
UpdateMicroButtons()
|
||||
PlaySound("igQuestLogOpen")
|
||||
CloseDropDownMenus()
|
||||
SetMapToCurrentZone()
|
||||
WorldMapFrame_PingPlayerPosition()
|
||||
|
||||
-- customize
|
||||
this:EnableKeyboard(false)
|
||||
this:EnableMouseWheel(1)
|
||||
|
||||
-- set back to default scale
|
||||
WorldMapFrame:SetScale(scale or .85)
|
||||
end)
|
||||
|
||||
HookScript(WorldMapFrame, "OnMouseWheel", function()
|
||||
|
||||
Reference in New Issue
Block a user