MoI discussion forum
MoI discussion forum

Full Version: API PointPicker without HTML UI

Show messages: All  1-2  3-6

From: Joe (CTKJOSE)
23 Jan 2023   [#3] In reply to [#2]
Michael

I appreciate your help.

My UI is running on a separate dialog outside the scope of `moi.command.execCommand()`.

For now, I'm gonna use `Esc`/`cancel`, albeit that was my actual cue to cancel...
From: Michael Gibson
23 Jan 2023   [#4] In reply to [#3]
Hi Joe, if you want to have a "done" type button on your dialog you can have it trigger a UI event itself like this:

onclick="moi.ui.fireUIEvent( 'done' );"

This is done automatically for controls inside of the command UI (they generate a UI event using their id="" value) but you can also trigger it directly as well.

- Michael
From: Joe (CTKJOSE)
23 Jan 2023   [#5] In reply to [#4]
Thanks...

That will work really well.

PS:

I know you must be super busy and appreciate your help, still trying to learn and still digging and finding a treasure of information in the forums. So just to add my grain of sand I started to document things in GitHub. It is still in its early stages, I'm mainly just dumping stuff, but hopefully, it will take form.

https://github.com/ctkjose/moi3d
From: Michael Gibson
23 Jan 2023   [#6] In reply to [#5]
Hi Joe, thanks for collecting info on GitHub, I have added a link to there from https://moi3d.com/wiki/Scripting

Thanks, - Michael

Show messages: All  1-2  3-6