Thread Tools Display Modes
02/14/19, 04:50 AM   #1
OlafVeschiy
Join Date: Feb 2019
Posts: 18
Request: Disallow center map on player position

I hided my position and now I want disallow center map on player position.
Becouse I need exporer my position myself
(hardcore mode for me)
  Reply With Quote
02/14/19, 06:49 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,959
This is the source code of the game for the keybind which centers the map to the plaer position:
Lua Code:
  1. -- Recenter
  2.             {
  3.                 name = GetString(SI_WORLD_MAP_CURRENT_LOCATION),
  4.                 keybind = "UI_SHORTCUT_SECONDARY",
  5.                 visible = ZO_WorldMap_IsMapChangingAllowed,
  6.                 callback = function()
  7.                     if(SetMapToPlayerLocation() == SET_MAP_RESULT_MAP_CHANGED) then
  8.                         local forceGameSelectedMap = false
  9.                         PlayerChosenMapUpdate(forceGameSelectedMap)
  10.                     end
  11.                     ZO_WorldMap_PanToPlayer()
  12.                 end,
  13.             },

Try to enter this in your chat as the map is opened:
Code:
/script origWorldMapPanToPlayer = ZO_WorldMap_PanToPlayer()  ZO_WorldMap_PanToPlayer() = function() return end
Then try to use/click on the keybind to center the map on your player. Does the map move to your current player's position?
Then try in chat the following script:
Code:
/script origWorldMapPanToPlayer()
Does it move to your position now?

As alternative try this modified version of the "Hide ME v2" addon from this forum thread: https://www.esoui.com/forums/showthr...7089#post37089
Attached Files
File Type: zip HideMe_v3.zip (1.5 KB, 245 views)

Last edited by Baertram : 02/14/19 at 06:58 AM.
  Reply With Quote
02/14/19, 08:26 AM   #3
Laicus
Join Date: Jan 2019
Posts: 26
Originally Posted by Baertram View Post
As alternative try this modified version
Thank you so much, but in lua in line 11 there is not enough "end", after adding the script began to work.
Without turning off the zoom, the location is still easily located - we zoom the map, exit / enter and the map again places us in the center.
Maybe there is a more correct and easier way to turn off the zoom than what I did with the Map Tools script?
  Reply With Quote
02/14/19, 08:45 PM   #4
OlafVeschiy
Join Date: Feb 2019
Posts: 18
thank you, works!
  Reply With Quote
02/15/19, 10:06 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,959
Ah thanks for the fix. I wasn't ingame and just writing the code offline in notepad
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Request: Disallow center map on player position

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