How could I call my function from newCustomItem()

Post Reply
ecloud
Posts: 13
Joined: Sat May 02, 2020 11:46 am

How could I call my function from newCustomItem()

Post by ecloud »

Adjustable.Container:newCustomItem()

for example I have a function aaa.bbb()
how could I call it?
I tried newCustomItem("aaa", "aaa.bbb")
it does not work.

User avatar
Vadi
Posts: 4867
Joined: Sat Mar 14, 2009 3:13 pm

Re: How could I call my function from newCustomItem()

Post by Vadi »

it would be
myAdjustableContainer:newCustomItem("aaa", aaa.bbb)

or
myAdjustableContainer:newCustomItem("aaa", function() aaa.bbb() end)


assuming aaa.bbb is a function

This is from @Edru

Post Reply