Page 1 of 1

Scripting:Problem when trying to Use Dialog()

Posted: Thu Nov 17, 2022 12:47 pm
by bbrraayyaann



Hi, I am trying to create a PopUp in Moho.
But when I use the Bone selection tool,
and then using the pop up of my script in Moho it closes.

Here is the Lua file : https://www.mediafire.com/file/tl4vdmy5 ... g.lua/file

Could someone please test if the same thing happens to you?

Re: Scripting:Problem when trying to Use Dialog()

Posted: Thu Nov 17, 2022 2:55 pm
by bbrraayyaann
bbrraayyaann wrote: Thu Nov 17, 2022 12:47 pm
Hi, I am trying to create a PopUp in Moho.
But when I use the Bone selection tool,
and then using the pop up of my script in Moho it closes.

Here is the Lua file : https://www.mediafire.com/file/tl4vdmy5 ... g.lua/file

Could someone please test if the same thing happens to you?
Well, I found the solution:
If I create a new dialog, it must go in order and it must have
UpdateWidgets , HandleMessage.
In the order Dolayout , UpdateWidgets(Dialog) ,HandleMessage(Dialog)
And finally the main HandleMessage.

I did it in that order and it finally worked.