home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Development Question: No Resources ??
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="steve42" data-source="post: 715372" data-attributes="member: 84399"><p>Hi,</p><p></p><p>I'm about to develop a plugin that uses more than one window (like the GuiControlsDemo plugin). When the plugin starts</p><p>up and shows its first window, everything is fine.</p><p></p><p>But when switching to the second window the first time, some graphic resources are missing (the background image, the buttons images).</p><p></p><p>The following code is used:</p><p>[CODE]</p><p>IPSWindow ipswin = new IPSWindow( id, skin );</p><p>if( ipswin.Init() ) {</p><p> GUIWindow window = (GUIWindow)ipswin;</p><p> GUIWindowManager.Add(ref window);</p><p> GUIWindowManager.ActivateWindow(id,false);</p><p>} else {</p><p> Log.Error("Error when calling init");</p><p>}</p><p>[/CODE]</p><p></p><p>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.</p><p></p><p>Any suggestions? Used MP version is 1.1.0.</p><p></p><p>Steve</p></blockquote><p></p>
[QUOTE="steve42, post: 715372, member: 84399"] 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: [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"); } [/CODE] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Development Question: No Resources ??
Contact us
RSS
Top
Bottom