Thread Tools Display Modes
02/09/19, 04:58 AM   #1
OlafVeschiy
Join Date: Feb 2019
Posts: 18
Hide map pen icons

Hello.
I need mod for my roleplay
I need hide all map pens
also in city(bank, sellers)

Is possible to create this mod?
I need it very mutch!
Thank you)

  Reply With Quote
02/09/19, 05:17 AM   #2
Schaf92
Join Date: Jul 2018
Posts: 4
I think you can disable map pins without an extra addon. There is a filter menu on the right side of the map, where you can disable pins:
  Reply With Quote
02/09/19, 08:39 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
FCOChangeStuff provides an extra checkbox to enable/disable all map filters with 1 click, maybe this helps too.
  Reply With Quote
02/11/19, 03:08 AM   #4
OlafVeschiy
Join Date: Feb 2019
Posts: 18
Originally Posted by Schaf92 View Post
I think you can disable map pins without an extra addon. There is a filter menu on the right side of the map, where you can disable pins:
I tried all map mods-does not work for city`s pins
  Reply With Quote
02/12/19, 02:34 PM   #5
OlafVeschiy
Join Date: Feb 2019
Posts: 18
Originally Posted by Baertram View Post
FCOChangeStuff provides an extra checkbox to enable/disable all map filters with 1 click, maybe this helps too.
I Tried this. But does not work-does not hide city`s pins

I don`t want see theuse pins- I want find it myself
  Reply With Quote
02/13/19, 09:59 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Did you try to search for addons having "pin" in their name and did you find and try this addon then?
https://www.esoui.com/downloads/info190-PinKiller.html
  Reply With Quote
02/13/19, 06:01 PM   #7
OlafVeschiy
Join Date: Feb 2019
Posts: 18
Originally Posted by Baertram View Post
Did you try to search for addons having "pin" in their name and did you find and try this addon then?
https://www.esoui.com/downloads/info190-PinKiller.html
yes, I tried
Also I tried all map mods-does not work for city`s pins.
https://yadi.sk/i/I7jN9MYUdZwsTA

Last edited by OlafVeschiy : 02/13/19 at 07:18 PM.
  Reply With Quote
02/14/19, 08:46 PM   #8
OlafVeschiy
Join Date: Feb 2019
Posts: 18
may be anybody know script for it?
  Reply With Quote
02/15/19, 10:05 AM   #9
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
If the citties got their own map pin type (MapDisplayPinType) one could identify and hide them. But I think they don't have an onw pintype. At least I cant find it.
  Reply With Quote
02/15/19, 10:43 AM   #10
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
hm just tested the map filters.
If I'm in Shadowfen e.g. and disable all map filters there are only the guild trader icons left on the map:


Even on other maps there is not shown anything.

And on the worldmap there are no cities or whatever shown:


So what icons are shown on your map, and where, if you disable ALL map filter icons?

MAybe its another addon which causes this for you then?
  Reply With Quote
02/15/19, 10:54 AM   #11
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
I believe he's talking about the map pins inside a city that show the bank, merchant, crafting hubs, etc.
They don't use the POI API which those filters and addons likely use. Instead they are called "MapLocations" and use a different set of APIs:
Code:
* GetNumMapLocations()
** _Returns:_ *integer* _numMapLocations_

* IsMapLocationVisible(*luaindex* _locationIndex_)
** _Returns:_ *bool* _isVisible_

* GetMapLocationIcon(*luaindex* _locationIndex_)
** _Returns:_ *string* _icon_, *number* _normalizedX_, *number* _normalizedZ_
  Reply With Quote
02/18/19, 02:28 AM   #12
OlafVeschiy
Join Date: Feb 2019
Posts: 18
Originally Posted by sirinsidiator View Post
I believe he's talking about the map pins inside a city that show the bank, merchant, crafting hubs, etc.
They don't use the POI API which those filters and addons likely use. Instead they are called "MapLocations" and use a different set of APIs:
Code:
* GetNumMapLocations()
** _Returns:_ *integer* _numMapLocations_

* IsMapLocationVisible(*luaindex* _locationIndex_)
** _Returns:_ *bool* _isVisible_

* GetMapLocationIcon(*luaindex* _locationIndex_)
** _Returns:_ *string* _icon_, *number* _normalizedX_, *number* _normalizedZ_
yes! Do you know how hide it?
  Reply With Quote
02/18/19, 03:28 AM   #13
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
From the API functions sirinsidiator provided one should iterate over all map locations, check if it is visible, and get the icon name. Check if the icon name contains something like city and then hide it I assume.

Lua Code:
  1. for mapLocationIndex=1, GetNumMapLocations(), 1 do
  2.  if IsMapLocationVisible(mapLocationIndex) then
  3.    local iconNameLower = GetMapLocationIcon(mapLocationIndex):lower()
  4.    if string.find(iconNameLower , "city") ~= nil then
  5.       --Hide the mapLocation at mapLocationIndex. I don't know how to get the "control" of that mapLocation though and so I'm not able to use :SetHidden() on it :-(
  6.    end
  7.  end
  8. end

Maybe someone else who got more map expeience is able to help here

Just talked to Votan and there does not seem to be a gogd way so here is another approach:

if we are inside any subzone of the map (which will be a city, a dungeon, whatever) we can let the function IsMapLocationVisible always return false so the pins won't be shown/added anymore. This should affect all pins hopefully.


Lua Code:
  1. ZO_PreHook("IsMapLocationVisible", function()
  2.  if GetParentZoneId ~= nil then
  3.     local zoneId, subZoneId
  4.     zoneId = GetParentZoneId ()
  5.     if zoneId ~= nil then
  6.        local zoneIndex = GetUnitZoneIndex("player")
  7.        if zoneIndex ~= nil then
  8.           subZoneId = GetZoneId(zoneIndex)
  9.           if subZoneId ~= nil then return true end
  10.        end
  11.     end
  12.  end
  13.  return false
  14. end)


Insert this function into the small addon's "HideMe v3" code via a text editor and try it. It should be placed inside the function for event_addon_loaded
"local function Addon_Loaded(eventCode, addOnName)", at the end before the closing end:

Lua Code:
  1. local function Addon_Loaded(eventCode, addOnName)
  2.         if addOnName ~= HideMe.name then return end
  3.                 ...
  4.  
  5. ZO_PreHook("IsMapLocationVisible", function()
  6.  if GetParentZoneId ~= nil then
  7.     local zoneId, subZoneId
  8.     zoneId = GetParentZoneId ()
  9.     if zoneId ~= nil then
  10.        local zoneIndex = GetUnitZoneIndex("player")
  11.        if zoneIndex ~= nil then
  12.           subZoneId = GetZoneId(zoneIndex)
  13.           if subZoneId ~= nil then return true end
  14.        end
  15.     end
  16.  end
  17.  return false
  18.  
  19. end

Last edited by Baertram : 02/18/19 at 04:33 AM.
  Reply With Quote
02/18/19, 05:42 AM   #14
Laicus
Join Date: Jan 2019
Posts: 26
Originally Posted by Baertram View Post
Insert this function
Thanks again!
Works great! This is very hardcore!
What need to write, so that in these zones quest pins are not displayed too.

Last edited by Laicus : 02/18/19 at 06:12 AM.
  Reply With Quote
02/18/19, 06:17 AM   #15
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Nothing, just disable them in the ESO base game settings? There should be an option to turn quest giver pins off.
  Reply With Quote
02/18/19, 06:49 AM   #16
Laicus
Join Date: Jan 2019
Posts: 26
Originally Posted by Baertram View Post
Nothing, just disable them in the ESO base game settings?
There is no such setting. I want the quest pins (goals) to be displayed only on the maps of the regions, and disappear in the caves and cities (or better in the caves and houses).
  Reply With Quote
02/18/19, 07:17 AM   #17
OlafVeschiy
Join Date: Feb 2019
Posts: 18
Originally Posted by Laicus View Post
There is no such setting. I want the quest pins (goals) to be displayed only on the maps of the regions, and disappear in the caves and cities (or better in the caves and houses).
Use PinKiller mod
  Reply With Quote
02/18/19, 07:56 AM   #18
Laicus
Join Date: Jan 2019
Posts: 26
Originally Posted by OlafVeschiy View Post
Use PinKiller mod
Yes, I use Pin Killer, but it would be more convenient if the quest pins disappeared into the interiors automatically.
Do you really play completely without goal pointers? I tried, but in my opinion it is impossible.

Last edited by Laicus : 02/18/19 at 07:59 AM.
  Reply With Quote
02/18/19, 08:15 AM   #19
OlafVeschiy
Join Date: Feb 2019
Posts: 18
Originally Posted by Laicus View Post
Yes, I use Pin Killer, but it would be more convenient if the quest pins disappeared into the interiors automatically.
Do you really play completely without goal pointers? I tried, but in my opinion it is impossible.
yes, and this is most of interesting for play and immersion in the world
https://www.esoui.com/forums/showthread.php?p=37153
  Reply With Quote
02/18/19, 08:33 AM   #20
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Sorry no idea about the quest pins. I've done what I was able to help with, everything else is far away from my time left
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Hide map pen icons

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