Thread Tools Display Modes
Prev Previous Post   Next Post Next
05/29/15, 09:38 PM   #1
hoydyd
Join Date: May 2015
Posts: 7
Question regarding getchildren()

Hi

I recently began learning lua and how to create addons, and have been having trouble with handling children of a ui element. I am trying to call a function on the children of ZO_CompassFrame, and rather than individually calling a function on each child, i thought i would do so through a for loop ( for k,v in pairs(ZO_CompassFrame:getchildren()) do v:function() ). I can use values from a list of numbers such as getdimensions(), however when trying to get the list of children through getchildren(), the game gives the 'expected function instead of nil stack traceback' error. I believe it is something to do with the list containing objects(?), as lists containing strings and integers etc work fine. I am new to lua, so am i just missing something?

Thanks
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Question regarding getchildren()


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