ingame/map/worldmap.lua:6033 -- GAMEPAD_WORLD_MAP_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if(newState == SCENE_SHOWING) then
GAMEPAD_WORLD_MAP_SCENE:RemoveFragment(GAMEPAD_WORLD_MAP_INFO_FRAGMENT)
ZO_WorldMap_SetGamepadKeybindsShown(true)
if(g_pendingKeepInfo) then
GAMEPAD_WORLD_MAP_KEEP_INFO:ShowKeep(g_pendingKeepInfo)
g_pendingKeepInfo = nil
end
if ZO_WorldMapButtonsToggleSize then
ZO_WorldMapButtonsToggleSize:SetHidden(true)
end
elseif(newState == SCENE_HIDING) then
DIRECTIONAL_INPUT:Deactivate(g_gamepadMap)
elseif(newState == SCENE_HIDDEN) then
KEYBIND_STRIP:RemoveKeybindButtonGroup(g_keybindStrips.gamepad:GetDescriptor())
KEYBIND_STRIP:RemoveKeybindButtonGroup(g_keybindStrips.gamepadCloseOptions:GetDescriptor())
g_gamepadMap:StopMotion()
if ZO_WorldMapButtonsToggleSize then
ZO_WorldMapButtonsToggleSize:SetHidden(false)
end
end
end)