ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Hide map pen icons (https://www.esoui.com/forums/showthread.php?t=8326)

OlafVeschiy 02/09/19 04:58 AM

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)


Schaf92 02/09/19 05:17 AM

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:

Baertram 02/09/19 08:39 AM

FCOChangeStuff provides an extra checkbox to enable/disable all map filters with 1 click, maybe this helps too.

OlafVeschiy 02/11/19 03:08 AM

Quote:

Originally Posted by Schaf92 (Post 37051)
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

OlafVeschiy 02/12/19 02:34 PM

Quote:

Originally Posted by Baertram (Post 37053)
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

Baertram 02/13/19 09:59 AM

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

OlafVeschiy 02/13/19 06:01 PM

Quote:

Originally Posted by Baertram (Post 37083)
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

OlafVeschiy 02/14/19 08:46 PM

may be anybody know script for it?

Baertram 02/15/19 10:05 AM

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.

Baertram 02/15/19 10:43 AM

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?

sirinsidiator 02/15/19 10:54 AM

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_


OlafVeschiy 02/18/19 02:28 AM

Quote:

Originally Posted by sirinsidiator (Post 37107)
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?

Baertram 02/18/19 03:28 AM

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

Laicus 02/18/19 05:42 AM

Quote:

Originally Posted by Baertram (Post 37145)
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.

Baertram 02/18/19 06:17 AM

Nothing, just disable them in the ESO base game settings? There should be an option to turn quest giver pins off.

Laicus 02/18/19 06:49 AM

Quote:

Originally Posted by Baertram (Post 37150)
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).

OlafVeschiy 02/18/19 07:17 AM

Quote:

Originally Posted by Laicus (Post 37151)
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

Laicus 02/18/19 07:56 AM

Quote:

Originally Posted by OlafVeschiy (Post 37152)
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.

OlafVeschiy 02/18/19 08:15 AM

Quote:

Originally Posted by Laicus (Post 37154)
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

Baertram 02/18/19 08:33 AM

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 :p


All times are GMT -6. The time now is 09:04 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI