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
MediaPortal 1 Plugins
How to show a menu picture?
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="xavier" data-source="post: 29657" data-attributes="member: 10592"><p>Hello STSC,</p><p></p><p></p><p></p><p>Try this in the SetupForm.cs of your plugin:</p><p></p><p>[code]</p><p>/// <summary></p><p>/// If the plugin should have its own button on the home screen then it</p><p>/// should return true to this method, otherwise if it should not be on home</p><p>/// it should return false</p><p>/// </summary></p><p>/// <param name="strButtonText">text the button should have</param></p><p>/// <param name="strButtonImage">image for the button, or empty for default</param></p><p>/// <param name="strButtonImageFocus">image for the button, or empty for default</param></p><p>/// <param name="strPictureImage">subpicture for the button or empty for none</param></p><p>/// <returns>true : plugin needs its own button on home</p><p>/// false : plugin does not need its own button on home</returns></p><p></p><p>public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) </p><p> {</p><p> strButtonText = GUILocalizeStrings.Get(nnn); //Put your button string here</p><p> strButtonImage = "";</p><p> strButtonImageFocus = "";</p><p> strPictureImage = "hover_my alarm.png"; //Put your hover image here</p><p> return true;</p><p> }[/code]</p><p>Best regards,</p><p>xavier.</p></blockquote><p></p>
[QUOTE="xavier, post: 29657, member: 10592"] Hello STSC, Try this in the SetupForm.cs of your plugin: [code] /// <summary> /// If the plugin should have its own button on the home screen then it /// should return true to this method, otherwise if it should not be on home /// it should return false /// </summary> /// <param name="strButtonText">text the button should have</param> /// <param name="strButtonImage">image for the button, or empty for default</param> /// <param name="strButtonImageFocus">image for the button, or empty for default</param> /// <param name="strPictureImage">subpicture for the button or empty for none</param> /// <returns>true : plugin needs its own button on home /// false : plugin does not need its own button on home</returns> public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) { strButtonText = GUILocalizeStrings.Get(nnn); //Put your button string here strButtonImage = ""; strButtonImageFocus = ""; strPictureImage = "hover_my alarm.png"; //Put your hover image here return true; }[/code] Best regards, xavier. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
How to show a menu picture?
Contact us
RSS
Top
Bottom