- September 12, 2009
- 798
- 577
- Home Country
- Germany
Hey,
i have the following problem.
In our plugin AtmoLight, during MP startup, AtmoLight tries to connect to other services like AtmoWin or a RaspberryPi, if this connection fails, AtmoLight displays a GUIDialogOK to tell the user that connecting failed.
If this dialog gets called before MP is ready to display it (still on splashscreen), MP just freezes. So you can see the splashscreen that is saying "Starting plugins" and thats it.
So i want to know how i can check if the MP gui is actually ready to display a dialog, so this wont happen.
I already tried:
Doesnt work, as it return true even if the splashscreen is still on.
Also doesnt work, as it returns RUNNING even if the splashscreen is still on.
Also tried some others but had no luck with any of them.
Thanks!
i have the following problem.
In our plugin AtmoLight, during MP startup, AtmoLight tries to connect to other services like AtmoWin or a RaspberryPi, if this connection fails, AtmoLight displays a GUIDialogOK to tell the user that connecting failed.
If this dialog gets called before MP is ready to display it (still on splashscreen), MP just freezes. So you can see the splashscreen that is saying "Starting plugins" and thats it.
So i want to know how i can check if the MP gui is actually ready to display a dialog, so this wont happen.
I already tried:
Code:
GUIWindowManager.Initalized
Code:
GUIGraphicsContext.CurrentState
Also tried some others but had no luck with any of them.
Thanks!