View Single Post
06/24/16, 10:59 PM   #4
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by Baertram View Post
It seems to happen inside the function LWMinimap.ShowMinimap()

In line 32 the WorldMap is shown:
Code:
ZO_WorldMap:SetHidden(false)
Try to replace the function LWMinimap.ShowMinimap() with this code and have a look if this fixes the problem:

Lua Code:
  1. function LWMinimap.ShowMinimap()
  2.     if(SetMapToPlayerLocation() == SET_MAP_RESULT_MAP_CHANGED) then
  3.         CALLBACK_MANAGER:FireCallbacks("OnWorldMapChanged")
  4.     end
  5.  
  6.     ZO_WorldMap:SetDimensions(unpack(LWMinimap.settings.size))
  7.     ZO_WorldMapScroll:SetDimensions(ZO_WorldMap:GetDimensions())
  8.  
  9.     if LWMinimap.settings.anchor then
  10.         ZO_WorldMap:ClearAnchors()
  11.         ZO_WorldMap:SetAnchor( LWMinimap.UnpackAnchor(LWMinimap.settings.anchor) )
  12.     end
  13.     ZO_WorldMapZoom:SetHidden(true)
  14.     ZO_WorldMapZoomKeybind:SetHidden(true)
  15.     --ZO_WorldMap:SetHidden(false)
  16.     ZO_WorldMapTitle:SetHidden(true)
  17.     ZO_WorldMapTitle:ClearAnchors()
  18.     ZO_WorldMapTitle:SetAnchor(TOP, nil, TOP, 0, -30)
  19.     ZO_WorldMapTitleBar:SetHidden(false)
  20.  
  21.     ZO_WorldMapTitleBar:SetMouseEnabled(true)
  22.     ZO_WorldMapTitleBar:ClearAnchors()
  23.     ZO_WorldMapTitleBar:SetAnchor(TOPLEFT, nil, TOPLEFT, 0, -30)
  24.     ZO_WorldMapTitleBar:SetAnchor(TOPRIGHT, nil, TOPRIGHT, 0, -30)
  25.     ZO_WorldMapContainer:SetHandler("OnUpdate", LWMinimap.OnUpdate)
  26.  
  27.     LWMinimap.SetMapZoom(LWMinimap.settings.zoomout)
  28.     LWMinimap.SetToPlayer(false)
  29. end

tried this code
no errors
and no minimap at all
  Reply With Quote