WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   WorldMapFrame.UIElementsFrame ... nil? (https://www.wowinterface.com/forums/showthread.php?t=56403)

eoblaed 07-20-18 06:52 PM

WorldMapFrame.UIElementsFrame ... nil?
 
I'm generally unfamiliar with the global structs/assets that are available. Attempting to do a local fix of PetTracker just to get it working again. I've fixed the map related API things, but I'm not sure where to look to fix the following ... google has been of no help, nor has searches through the various forums :(
Code:

Date: 2018-07-20 18:38:00
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\PetTracker\Features\WorldMap.lua line 22:
  attempt to index field 'UIElementsFrame' (a nil value)
Debug:
  PetTracker\Features\WorldMap.lua:22: in main chunk


The line in question:
Code:

local FilterButton = WorldMapFrame.UIElementsFrame.TrackingOptionsButton.Button
Looking through the rest of the code, that FilterButton is important, but I'm not sure how to instantiate it now.

Any ideas? Thanks in advance!

Miiru 07-21-18 03:36 AM

There is probably a nicer way but local _,_,_,_,_,FilterButton=WorldMapFrame:GetChildren().


All times are GMT -6. The time now is 12:06 AM.

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