View Single Post
07/17/18, 06:57 PM   #3
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 409
Rhyono is correct: You should use WhichSetAddonIndicatorLabel.
If you look at the XML, you have name="WhichSetIndicator". So the game makes a TopLevelControl called WhichSetIndicator. WhichSetIndicator is then added to the global table, allowing you to call it using WhichSetIndicator in Lua code. Next, you have name="$(parent)Label". This tells the game to take the name of the parent (WhichSetIndicator:GetName()) and append Label to it (WhichSetIndicator:GetName().."Label") and make that the name of the Label. So then you can call it as WhichSetIndicatorLabel in Lua code. You can also do WhichSetIndicator:GetNamedChild("Label") which might be more readable. I'd also suggest zgoo (specifically, when you have it, do /zgoo WhichSetIndicator) which could help you in the future if you run into problems with UI design.
  Reply With Quote