![]() |
LDCad 1.6a GUI from LUA - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html) +--- Thread: LDCad 1.6a GUI from LUA (/thread-22752.html) |
LDCad 1.6a GUI from LUA - Jarema - 2018-03-12 I discover, that I can use:
![]() RE: LDCad 1.6a GUI from LUA - Roland Melkert - 2018-03-12 (2018-03-12, 8:25)Jarema Wrote: IThe question is:1: Yes but only very simple ones. runChoice takes a caption and a string table as parameters. The string table are the possible choices. It returns the index of the selected item (starting with 1). 0 will be returned upon cancel. 2: I'm not familier with IUPLua, but I figure you can use it through require if there is a precompiled dll for it. Just be sure to get the on for Lua 5.3. And maybe one that has been made using mingw, not sure if that is needed though. 3: Not unless you use a 3rd party library. RE: LDCad 1.6a GUI from LUA - Jarema - 2018-03-13 Can you make window executed via ldc.dialog.* look like other parts of LDCad interface ?!! Thanks. RE: LDCad 1.6a GUI from LUA - Roland Melkert - 2018-03-13 (2018-03-13, 18:20)Jarema Wrote: Can you make window executed via ldc.dialog.* look like other parts of LDCad interface ?!! Thanks. No, these dialogs are os depended while the main gui is OpenGL driven. they where intended as simple interaction dialogs only. RE: LDCad 1.6a GUI from LUA - Jarema - 2018-03-24 I have request for function: ldc.dialog.runMultiChoiceText (int countField, var conf)
showing up user many windows - one per parameter - is annoying and waste time. So in my humble opinion, compress this in on one dialog box is good idea, that should be accomplished. Right. RE: LDCad 1.6a GUI from LUA - Roland Melkert - 2018-03-24 (2018-03-24, 7:55)Jarema Wrote: Explanation: The dialog module was never intended to be a full blown gui api, it is only aimed at asking simple questions and single field inputs. I might add more option to 2.0 though as that will be relying much more on scripted features. Meaning many of the basic editing features as found in 1.6 will be scripted in 2.0. |