Scripting:Problem when trying to Use Dialog()

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
bbrraayyaann
Posts: 69
Joined: Wed Jan 23, 2019 6:52 pm

Scripting:Problem when trying to Use Dialog()

Post 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?
bbrraayyaann
Posts: 69
Joined: Wed Jan 23, 2019 6:52 pm

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

Post 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.
Post Reply