Page 1 of 1

Scripting:Problem when trying to Use Dialog()

Posted: Thu Nov 17, 2022 3:47 am
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 5:55 am
by bbrraayyaann
bbrraayyaann wrote: Thu Nov 17, 2022 3:47 am
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.