Is there a parent of the world map containers? e.g. is ZO_WorldMapContainer the parent of ZO_WorldMapContainer1?
local numChildren =<parentOfWorldmapContainers>:GetNumChildren()
for i=1, numChildren, 1do
local childOfParent =<parentOfWorldmapContainers>:GetChild(i)
Else do it like this:
local numWorldMapContainers =81--maybe there is a better way to ge the 81 dynamically from the active map's ID or similar?
local templateName ="ZO_WorldMapContainer"
local WM = WINDOW_MANAGER
for i=1, numWorldMapContainers , 1do
local worldMapContainer = WM:GetControlByName(templateName , i)--Will create a control with name "ZO_WorldMapContainer1" and so on
If you describe here (https://gitter.im/esoui/esoui) what you want to achieve I bet there will be even an easier/better way that devs like votan (who got a good knowledge of the worldmaps) can hep you with.
You can use the addon merTorchbug or zgoo to inspect the control below your mouse ingame.
e.g. type /tbm or /zgoo mouse into the chat box and press the return key.
An inspector should open showing you the contents of the control, like the name, some attributes like hidden (which relates to IsHidden() return value) and others.
At the bottom (at least with merTorchbug) you can see the headline "Children" or "Childs" where you can see a list of the children of that parent.
At the top you cans ee the parent and owningWindow of the control itsself.
You can click the chilrden to open an inspector for them as well.
The __index is showing the metatables of the control/object/variable so that you can see where it comes/inherits from and what functions/Attributes are given (like a combobox control inherits from ZO_ComboBox "class" and the base class got some functions that can be used on the combobox control then as well).