Need help for understanding the videoOSD.xml (Submenus)

Discussion in 'Skins and Plugins Installer (MPEI)' started by bta489, July 23, 2014.

  1. bta489

    bta489 Portal Pro

    Joined:
    March 17, 2013
    Messages:
    112
    Likes Received:
    24
    Gender:
    Male
    Ratings:
    +49 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi,

    I want to make some custom modifications to the video-OSD (Titan-Skin). I managed to move or to disable some of the existing items and to add new ones. But I just can't understand how the audio and subtitle submenus are called.
    As far as I get it the responsible checkbutton controls are id's 218 (subtitle) and 221 (audio), but there are no variables set by them, nor any conditional visibilites in the other controls (to be even more confusing visibility is set to "no"). To be honest I can't see ANY connection between the checkbuttons and the corresponding other controls



    It seems to work, but I have absolutely no clue how. Could someone please shed some light on the mechanics behind this?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Edalex
    • Premium Supporter

    Edalex Community Plugin Dev

    Joined:
    January 3, 2008
    Messages:
    2,897
    Likes Received:
    708
    Gender:
    Male
    Location:
    Saratov
    Ratings:
    +1,222 / 9
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
  4. bta489

    bta489 Portal Pro

    Joined:
    March 17, 2013
    Messages:
    112
    Likes Received:
    24
    Gender:
    Male
    Ratings:
    +49 / 0
    Home Country:
    Germany Germany
    Show System Specs
    I'm aware that seperate files are imported, but this doesn't specify when the controls (which are specified as <visible>no</visible>) are visible (or does it? In that case how?!)

    Let me put what bugs me in explicit questions:
    - what happens exactly when the checkbuttons 218 and 221 are activated?
    - how does the control (like the label, ID 550 in 'videoOSD.AudioMenu.xml for instance') 'know' that the checkbuttons are pressed?
    - how can a control have different visibility-states when it's defined as '<visible>no</visible>' ?

    When I look at these controls there is nothing that I can associate with any kind of "switching on" or off.
     
  5. Edalex
    • Premium Supporter

    Edalex Community Plugin Dev

    Joined:
    January 3, 2008
    Messages:
    2,897
    Likes Received:
    708
    Gender:
    Male
    Location:
    Saratov
    Ratings:
    +1,222 / 9
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    Probably it is handling by C# code somewhere.
     
  6. bta489

    bta489 Portal Pro

    Joined:
    March 17, 2013
    Messages:
    112
    Likes Received:
    24
    Gender:
    Male
    Ratings:
    +49 / 0
    Home Country:
    Germany Germany
    Show System Specs
    hmm, I didn't think of that. Takes away the flexibility of a skin to make things a little different.
    I guess I have to look for alternative ways. Thanks for the input, Edalex.
     
  7. Edalex
    • Premium Supporter

    Edalex Community Plugin Dev

    Joined:
    January 3, 2008
    Messages:
    2,897
    Likes Received:
    708
    Gender:
    Male
    Location:
    Saratov
    Ratings:
    +1,222 / 9
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    I'm not the right guy to ask generally. @Designers should know better
     
  8. wizard123
    • Team MediaPortal

    wizard123 Design Group

    Joined:
    January 24, 2012
    Messages:
    2,499
    Likes Received:
    1,695
    Gender:
    Male
    Occupation:
    genius
    Ratings:
    +2,919 / 11
    Home Country:
    United Kingdom United Kingdom
    The controls like id 550 are hardcoded unfortunately this is quite a wide spread problem in the current skin engine, if you don't want them visible just render them offscreen.
     
  9. bta489

    bta489 Portal Pro

    Joined:
    March 17, 2013
    Messages:
    112
    Likes Received:
    24
    Gender:
    Male
    Ratings:
    +49 / 0
    Home Country:
    Germany Germany
    Show System Specs
    @wizard123 That's it! Thank you.

    I completely ignored animations. Works perfectly.
    Btw, it wasn't the label I wanted gone, it was the three buttons (info, subtitle, audio) because I needed the space for other controls. I hid them via conditional visibility, but after I closed the submenu I was unable to set the focus to anything. With animations this problem does not occur.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!