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
Popular Plugins
My Emulators
<id> number consistency
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="rkooten" data-source="post: 359408" data-attributes="member: 81039"><p>Would it be possible to attach two <id> numbers? That way existing skins will still be compatible and My Emulators would become consistent with other "plugins". </p><p></p><p>The sourcecode from the My Music plugin shows why I started this thread:</p><p></p><p>[code]</p><p> #region SkinControls</p><p></p><p> [SkinControlAttribute(50)] protected GUIFacadeControl facadeView = null;</p><p> [SkinControlAttribute(2)] protected GUIButtonControl btnViewAs = null;</p><p> [SkinControlAttribute(3)] protected GUISortButtonControl btnSortBy = null;</p><p> [SkinControlAttribute(6)] protected GUIButtonControl btnViews = null;</p><p></p><p> [SkinControlAttribute(8)] protected GUIButtonControl btnSearch = null;</p><p> [SkinControlAttribute(12)] protected GUIButtonControl btnPlayCd = null;</p><p> [SkinControlAttribute(10)] protected GUIButtonControl btnSavedPlaylists = null;</p><p></p><p> #endregion</p><p>[/code]</p><p></p><p>The facadeviews (which I have built one common.facade.xml skinfile for) always use <id> number 50. This is usually set as the default control of a page. The facadeviews all have a onright attribute that points to the view-as button (id=2) because it is a consistent element. For example:</p><p></p><p>[code]</p><p> <!-- This defines the various types of filebrowsing that are used: lists, thumbnail panels, filmstrips and playlists --></p><p> <control></p><p> <type>facadeview</type></p><p> <id>50</id></p><p> </p><p> <!-- list of filenames and pagecounter. Position and layout are defined in references.xml --></p><p> <control></p><p> <description>listcontrol</description></p><p> <type>listcontrol</type></p><p> <onright>2</onright></p><p> </control> </p><p> </p><p> <!-- thumbnails. Position and layout are defined in references.xml --> </p><p> <control></p><p> <description>Thumbnail Panel</description></p><p> <type>thumbnailpanel</type></p><p> <onright>2</onright></p><p> </control></p><p> </p><p> <!-- This is the row of thumbs in filmstrip view. Position and layout are defined in references.xml --></p><p> <control></p><p> <description>Filmstrip view</description></p><p> <type>filmstrip</type></p><p> <onup>2</onup></p><p> <thumbs flipY="true" diffuse="Thumb_Mask.png"></thumbs></p><p> </control></p><p> </p><p> <!-- list of filenames and pagecounter. Supports extra buttons for editting playlist. Position and layout are defined in references.xml --></p><p> <control></p><p> <description>playlist listcontrol</description></p><p> <type>playlistcontrol</type></p><p> <onright>2</onright></p><p> </control></p><p> </p><p> </control></p><p>[/code]</p><p></p><p>I have found out that id numbers are not global, but are hardcoded and can be different for each plugin. However, since My Emulators is very similar in appearance to My Videos, My Music and My Radio it might be an idea to follow the same numbering.</p><p></p><p>This is just something I ran into, so I wanted to share it with you.</p></blockquote><p></p>
[QUOTE="rkooten, post: 359408, member: 81039"] Would it be possible to attach two <id> numbers? That way existing skins will still be compatible and My Emulators would become consistent with other "plugins". The sourcecode from the My Music plugin shows why I started this thread: [code] #region SkinControls [SkinControlAttribute(50)] protected GUIFacadeControl facadeView = null; [SkinControlAttribute(2)] protected GUIButtonControl btnViewAs = null; [SkinControlAttribute(3)] protected GUISortButtonControl btnSortBy = null; [SkinControlAttribute(6)] protected GUIButtonControl btnViews = null; [SkinControlAttribute(8)] protected GUIButtonControl btnSearch = null; [SkinControlAttribute(12)] protected GUIButtonControl btnPlayCd = null; [SkinControlAttribute(10)] protected GUIButtonControl btnSavedPlaylists = null; #endregion [/code] The facadeviews (which I have built one common.facade.xml skinfile for) always use <id> number 50. This is usually set as the default control of a page. The facadeviews all have a onright attribute that points to the view-as button (id=2) because it is a consistent element. For example: [code] <!-- This defines the various types of filebrowsing that are used: lists, thumbnail panels, filmstrips and playlists --> <control> <type>facadeview</type> <id>50</id> <!-- list of filenames and pagecounter. Position and layout are defined in references.xml --> <control> <description>listcontrol</description> <type>listcontrol</type> <onright>2</onright> </control> <!-- thumbnails. Position and layout are defined in references.xml --> <control> <description>Thumbnail Panel</description> <type>thumbnailpanel</type> <onright>2</onright> </control> <!-- This is the row of thumbs in filmstrip view. Position and layout are defined in references.xml --> <control> <description>Filmstrip view</description> <type>filmstrip</type> <onup>2</onup> <thumbs flipY="true" diffuse="Thumb_Mask.png"></thumbs> </control> <!-- list of filenames and pagecounter. Supports extra buttons for editting playlist. Position and layout are defined in references.xml --> <control> <description>playlist listcontrol</description> <type>playlistcontrol</type> <onright>2</onright> </control> </control> [/code] I have found out that id numbers are not global, but are hardcoded and can be different for each plugin. However, since My Emulators is very similar in appearance to My Videos, My Music and My Radio it might be an idea to follow the same numbering. This is just something I ran into, so I wanted to share it with you. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Emulators
<id> number consistency
Contact us
RSS
Top
Bottom