Thread Tools Display Modes
06/21/16, 01:09 AM   #1
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Help to update LWMM pls

http://www.esoui.com/downloads/info3...htMinimap.html

its work like a charm

but just after change location the main map always auto-opens
and after using transit shrine, even if you not teleported
or resurrecting at the keep, etc

this is very usefull addon, even if it abandoned - we havent the good alternarive right now

thanks in advance!

i played alot with FMM but it causes perfomance issues, and fps drop, and AUI minimap is some kind of bugged

so i prefer LWMM - really top1 minimap for PVP!

Last edited by QuadroTony : 06/22/16 at 11:04 PM.
  Reply With Quote
06/23/16, 09:18 PM   #2
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
i think it must be easy fix
  Reply With Quote
06/24/16, 03:44 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,913
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
  Reply With Quote
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
06/26/16, 06:51 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,913
Ok, never coded minimaps.
So ZO_WorldMap must be visible perhaps to show the minimap as well.
Sorry, no idea how to fix this then
  Reply With Quote
06/26/16, 07:07 AM   #6
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by Baertram View Post
Ok, never coded minimaps.
So ZO_WorldMap must be visible perhaps to show the minimap as well.
Sorry, no idea how to fix this then
There is a bit more to do
The World Map has still a mini map mode. Just a little bit abandoned.
Look here: Votan's Mini Map
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Help to update LWMM pls

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off