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!)
Cannot change plugin icon on configuration screen
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="bushbrother" data-source="post: 821821" data-attributes="member: 67545"><p>OK, this has had me stumped for a while, I am only trying to add an Icon <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>It keeps telling me that "The type or namespace name 'PluginIcons' could not be found (are you missing a using directive or an assembly reference?)"</p><p></p><p>I have the following code (I am just copy pasting the first section):</p><p></p><p>[CODE]</p><p>using System;</p><p>using System.Windows.Forms;</p><p>using MediaPortal.GUI.Library;</p><p>using MediaPortal.Dialogs;</p><p>using MediaPortal.Configuration;</p><p></p><p>namespace mptransmission</p><p>{</p><p> [PluginIcons("mptransmission.Icon.png", "mptransmission.Icon_Disabled.png")]</p><p> public class mptransmission : GUIWindow, ISetupForm, IPlugin</p><p> {</p><p> [SkinControlAttribute(2)]</p><p> protected GUIButtonControl buttonOne = null;</p><p> [SkinControlAttribute(3)]</p><p> protected GUIButtonControl buttonTwo = null;</p><p></p><p> public mptransmission()</p><p> {</p><p></p><p> }[/CODE]</p><p></p><p>But I cannot see any PluginIcons inside MediaPortal.Configuration <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> Am I doing something stupid? Sorry, new to all this and learning!</p></blockquote><p></p>
[QUOTE="bushbrother, post: 821821, member: 67545"] OK, this has had me stumped for a while, I am only trying to add an Icon :( It keeps telling me that "The type or namespace name 'PluginIcons' could not be found (are you missing a using directive or an assembly reference?)" I have the following code (I am just copy pasting the first section): [CODE] using System; using System.Windows.Forms; using MediaPortal.GUI.Library; using MediaPortal.Dialogs; using MediaPortal.Configuration; namespace mptransmission { [PluginIcons("mptransmission.Icon.png", "mptransmission.Icon_Disabled.png")] public class mptransmission : GUIWindow, ISetupForm, IPlugin { [SkinControlAttribute(2)] protected GUIButtonControl buttonOne = null; [SkinControlAttribute(3)] protected GUIButtonControl buttonTwo = null; public mptransmission() { }[/CODE] But I cannot see any PluginIcons inside MediaPortal.Configuration :( Am I doing something stupid? Sorry, new to all this and learning! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Cannot change plugin icon on configuration screen
Contact us
RSS
Top
Bottom