1
OpenEUO Scripting Chat / Unresponsible TForm with "while" cycle
« on: November 08, 2019, 05:29:10 AM »
Hello, sorry for maybe stupid question, but I'm stuck while creating menu.
I'm trying (about 14 days of trying and searching) to start and stop "while" cycle by buttons, but when I start cycle then menu stops responding.
I tried all sorts of crazy constructions, but I just couldn't. Certainly it will be related to the fact that I play it in the same thread ...I just don't know how the threads work in LUA, so if anyone would want to advise me, I'll be glad.
Please is there any way I can start and stop a "while" cycle using the form with button ?
Here is my last example of start/stop menu - that stops responding after start of course...
Thank you very much for your suggestions.
I'm trying (about 14 days of trying and searching) to start and stop "while" cycle by buttons, but when I start cycle then menu stops responding.
I tried all sorts of crazy constructions, but I just couldn't. Certainly it will be related to the fact that I play it in the same thread ...I just don't know how the threads work in LUA, so if anyone would want to advise me, I'll be glad.
Please is there any way I can start and stop a "while" cycle using the form with button ?
Here is my last example of start/stop menu - that stops responding after start of course...
Spoiler: show
Thank you very much for your suggestions.