Hi,
I'm about to develop a plugin that uses more than one window (like the GuiControlsDemo plugin). When the plugin starts
up and shows its first window, everything is fine.
But when switching to the second window the first time, some graphic resources are missing (the background image, the buttons images).
The following code is used:
The Init method loads the skin files as usual. When the code is executed the second time (user navigates again to the second window) all graphics are loaded as expected.
Any suggestions? Used MP version is 1.1.0.
Steve
I'm about to develop a plugin that uses more than one window (like the GuiControlsDemo plugin). When the plugin starts
up and shows its first window, everything is fine.
But when switching to the second window the first time, some graphic resources are missing (the background image, the buttons images).
The following code is used:
Code:
IPSWindow ipswin = new IPSWindow( id, skin );
if( ipswin.Init() ) {
GUIWindow window = (GUIWindow)ipswin;
GUIWindowManager.Add(ref window);
GUIWindowManager.ActivateWindow(id,false);
} else {
Log.Error("Error when calling init");
}
The Init method loads the skin files as usual. When the code is executed the second time (user navigates again to the second window) all graphics are loaded as expected.
Any suggestions? Used MP version is 1.1.0.
Steve