<id> number consistency (1 Viewer)

rkooten

Portal Pro
August 3, 2008
101
27
Home Country
Hello Chreekar,

I'm busy modding a skin and I noticed the following: Other "plugins" suchs as My Music and My Videos use <id> number 2 for the View button. My Emulator seems to use <id> number 10.

This makes it impossible to rely on one common.facade.xml (which contains shared properties for filmstrip, icon and listview). Changing the <id> to 2 breaks My Emulators.

Was this done intentionally for some reason? If you could change this it would break existing skinfiles, but should make the plugin more consistent with others...
 

rkooten

Portal Pro
August 3, 2008
101
27
Home Country
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

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>

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.
 

Users who are viewing this thread

Similar threads

I'm a returnee to MP after several years and want to use my CEC remote box. I have the mpe1 files but have no idea where to copy them to. Can anyone point me in the right direction as my memory of the config is hazy and probably out of date anyway.
I'm a returnee to MP after several years and want to use my CEC remote box. I have the mpe1 files but have no idea where to copy...
I just installed MP2 yesterday. Getting the digital tuner going went pretty straight forward. Right now I mainly have 2 issues as...
Replies
2
Views
1K
MP1 MP2 MediaPortal2-Buddy DE
That’s what Lehmden said. Watched flags get migrated when updating to 2.2. Also a new plugin is almost finished to backup watched flags and restore later.
That’s what Lehmden said. Watched flags get migrated when updating to 2.2. Also a new plugin is almost finished to backup watched...
Hi. And here is another "Buddy"... Today's Buddy is "MediaPortal2-Buddy" (or short, MP2-Buddy), a tool to do some work around...
Replies
4
Views
9K
MPExtended (Mobil access) for MP2 only for TV access It's available and properly working since beginning of this year... I've used it until I switched over from DVB-S to SAT>IP in Spring 2018 where such things are no longer necessary at all.
MPExtended (Mobil access) for MP2 only for TV access It's available and properly working since beginning of this year... I've used...
We are proud to present MediaPortal 2.2 Final Since the recent release of MediaPortal 2.2pre, we fixed some minor things. We now...
Replies
11
Views
6K
We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on the implementation of new features and some fundamental changes in the core of MediaPortal 2. As a result, we proudly present the next major release of MediaPortal 2 in version 2.2. MediaPortal 2.2 is a...
We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on...
We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on...
Replies
0
Views
3K
Here are a few details regarding my recent success with using EventGhost to handle the IR input from my remote and eliminate unwanted key repeats. Hopefully this will prove useful to others with a similar issue: I recently upgraded my HTPC to an i5 after an number of years using MePo v1 on a Core Duo. Although this was a fantastic...
Here are a few details regarding my recent success with using EventGhost to handle the IR input from my remote and eliminate...
Here are a few details regarding my recent success with using EventGhost to handle the IR input from my remote and eliminate...
Replies
0
Views
3K
Top Bottom