View Single Post
08/25/22, 11:45 PM   #3
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
I workarounded that by recalling the same function 50ms later if GetMapFilterType() == 0 in two places but I don't really understand what is really going on:

Lua Code:
  1. local function ZoneCheck()
  2.     if GetMapFilterType() == 0 then zo_callLater(ZoneCheck,50) return end

Lua Code:
  1. function FyrMM.SetMapToPlayerLocation(stealth)
  2.     local changed = false
  3.     if not Stealth then
  4.         if Fyr_MM:IsHidden() then return end
  5.     end
  6.     if GetMapFilterType() == 0 and (FyrMM.SV.WorldMapRefresh or stealth) then zo_callLater(FyrMM.SetMapToPlayerLocation,50) return end

Something is apparently going on during loadscreens, some controls had SetHorizontalScroll() and SetVerticalScroll() to be set again at some point in the code in order to be displayed on screen after a loadscreen like if they were set to nil during the load screen.

Last edited by Masteroshi430 : 08/25/22 at 11:54 PM.
  Reply With Quote