Question editing TVOSD.xml (1 Viewer)

Dachkennel

Portal Member
November 11, 2010
25
11
Home Country
Germany Germany
Hi there all,

im new to this forum so this is my first post. I have done several modification in StreamedMP before but now ive an really big problem. Today i have spent several hours to understand the TVOSD.xml.

I like to add a new togglebutton beside the three buttons Sbutitels, Video and Audio. This isnt a problem but:

For example the "subtiles button" (id 218) corresponded with the section right unter
<!-- :::::::::: SUBTITLES MENU :::::::::: -->
<control>
<description>Sub Menu Background (subtitles)</description>
<type>image</type>
<id>302</id>
<posX>909</posX>
<posY>0</posY>
<width>371</width>
<height>473</height>
<texture>osdmenubg.png</texture>
<visible>control.isvisible(800)</visible>
<animation effect="slide" start="1300,0" end="0,0" tween="quadratic" time="300" delay="0">visible</animation>
</control>
...
and so on. My Question is how the "subtitels button" ist linked to this section in code? Because i have to do such a section for my new button. Why does the "subtitels button" act whit espacially this code and not perhaps whits the code from the video area? Please help and sorry fpr my bad english.

Greetings,
Dachkennel
 

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    well, the tv plugin will show control 800 when subtitles button is clicked...the code above is just reacting to that control visibility.
     

    Dachkennel

    Portal Member
    November 11, 2010
    25
    11
    Home Country
    Germany Germany
    Thank a lot for your answer. I knew the the second part is just reactin on (800).

    only for my understnding: If I push any button with id 218 the tv plugin will react and give 800 back?

    So is ist posible to defne an id xxx and the tv tv plugin will give mit yyy back? Or is there another possibility to get a new submenu in the TVOSD.xml?

    .......................................

    Another question by the way: If I create a button and give it the <hyperlink>-tag f.e. 1000001, can i easily make a new xxx.xml with <id>1000001</id> and the button will link to this xml? Has the new xxx.xml anywhere to be specified? Is there a list of free id's that are unused? I dont find anything in the MP skin acitecture guide.


    best regards,
    Dachkennel
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    only for my understnding: If I push any button with id 218 the tv plugin will react and give 800 back?
    Yes, the tv plugin knows where the button is toggled and one of the actions is to toggle visibility of some controls e.g. control 800.

    So is ist posible to defne an id xxx and the tv tv plugin will give mit yyy back?
    No, it only knows about what it's coded for.

    Or is there another possibility to get a new submenu in the TVOSD.xml?
    well you can react to a focus event e.g. control.hasfocus(9398393) then you can show something on focus of a button. You cant react to a button press though from the skin engine. For that you need to have a plugin.

    Another question by the way: If I create a button and give it the <hyperlink>-tag f.e. 1000001, can i easily make a new xxx.xml with <id>1000001</id> and the button will link to this xml? Has the new xxx.xml anywhere to be specified?
    You can make it load the window...but for anything to actually happen there needs to be a plugin to load it.

    Is there a list of free id's that are unused? I dont find anything in the MP skin acitecture guide.
    Probably Not.
     

    Users who are viewing this thread

    Top Bottom