videoFullScreen.xml OSD transparency

Discussion in 'Black & White 1080p' started by mironto, July 26, 2010.

  1. mironto

    mironto Portal Pro

    Joined:
    March 15, 2010
    Messages:
    71
    Likes Received:
    3
    Ratings:
    +6 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Hello,

    Currently I am using B&W 1.6, but I want to have media info displayed when I pause/forward/rewind/step in video as it was back in 1.4 (I guess) so I modified videoFullScreen.xml similar to videoOSD.xml. Howver, I noticed, that when I bring up OSD, the backround is much more transparent as it is during pause (see the screenshots) and I would like to have it the same during pausing/rewinding. I do not see anywhere in videoOSD.xml or videoFullScreen.xml where is the opacity set for the background, can anyone please help me?



    [​IMG] [​IMG]
    videoFullScreen.xml vs. videoOSD.xml
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. aj1405

    aj1405 Portal Pro

    Joined:
    September 30, 2007
    Messages:
    443
    Likes Received:
    151
    Gender:
    Male
    Ratings:
    +154 / 0
    Home Country:
    Norway Norway
    The graphic opacity is set in the graphic file itself. In this instance media\osd_background.png. I think you could also use the XML tag <colordiffuse> to create different opacities, but this isn’t used in this skin at all.

    I’ve seen/see the same opacity difference in the OSD and pause screen as you. I believe this due to MediaPortal handling the opacity different in the two screens. Skin wise there aren’t any reason for the two screens to be different.
     
  4. mironto

    mironto Portal Pro

    Joined:
    March 15, 2010
    Messages:
    71
    Likes Received:
    3
    Ratings:
    +6 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Maybe during pause the background is drawn twice over one another? I will try to create osd_background.png with different opacity and use it for pause screen.
     
  5. aj1405

    aj1405 Portal Pro

    Joined:
    September 30, 2007
    Messages:
    443
    Likes Received:
    151
    Gender:
    Male
    Ratings:
    +154 / 0
    Home Country:
    Norway Norway
    I don't think so since the original v1.6 has two different OSD and pause screens, and MP only draws one of them at a time.
     
  6. mironto

    mironto Portal Pro

    Joined:
    March 15, 2010
    Messages:
    71
    Likes Received:
    3
    Ratings:
    +6 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    I meant the png image may be for some reason drawn twice thus the opacity difference.

    edit: I managed to get about the same transparency by using <colordiffuse>90ffffff</colordiffuse> on progress bar and osd_background
    [​IMG]
     
  7. FCB38

    FCB38 Portal Member

    Joined:
    May 5, 2010
    Messages:
    24
    Likes Received:
    0
    Location:
    Grenoble
    Ratings:
    +0 / 0
    Home Country:
    France France
    Re : videoFullScreen.xml OSD transparency

    Hello,

    I'm sorry but i don't understand the way to solve the problem. Can you help me?

    Thank'x.
     
  8. mironto

    mironto Portal Pro

    Joined:
    March 15, 2010
    Messages:
    71
    Likes Received:
    3
    Ratings:
    +6 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Go to c:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\skin\Black & White 1080\ (this is on winxp, not sure where are the skin files stored under vista or 7) and edid file videoFullScreen.xml

    There are two sections you have to add <colordiffuse>90ffffff</colordiffuse>

    First is the progress bar, it's right under <!-- *********************** Progressbar *********************** -->

    Add the colordiffuse tag so it looks like this:

    Code (Text):
    1.         <control>
    2.             <description>Background</description>
    3.             <type>image</type>
    4.             <id>104</id>
    5.             <posX>0</posX>
    6.             <colordiffuse>90ffffff</colordiffuse>
    7.             <posY>0</posY>
    8.             <width>1920</width>
    9.             <height>80</height>
    10.             <texture>topbar_background.png</texture>
    11.         </control>
    The same with the bottom bacground, it's under <!-- *********************** Pause OSD *********************** -->

    Code (Text):
    1.         <control>
    2.             <description>background</description>
    3.             <type>image</type>
    4.             <id>901</id>
    5.             <colordiffuse>90ffffff</colordiffuse>
    6.             <posX>0</posX>
    7.             <posY>700</posY>
    8.             <width>1920</width>
    9.             <height>380</height>
    10.             <texture>osd_background.png</texture>
    11.             <visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    12.         </control>
    Mind that I undocked the bottom OSD as I want to see it during pause, so if you want to keep it as you have it, don't change <posY></posY> value.

    If you want to have it visible, you have to change the position so it should look like this:

    Code (Text):
    1.         <control>
    2.             <description>background</description>
    3.             <type>image</type>
    4.             <id>901</id>
    5.             <colordiffuse>90ffffff</colordiffuse>
    6.             <posX>0</posX>
    7.             <posY>700</posY>
    8.             <width>1920</width>
    9.             <height>380</height>
    10.             <texture>osd_background.png</texture>
    11.             <visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    12.         </control>
    13.         <control>
    14.             <description>Thumb</description>
    15.             <type>image</type>
    16.             <id>902</id>
    17.             <posX>20</posX>
    18.             <posY>680</posY>
    19.             <width>320</width>
    20.             <height>320</height>
    21.             <texture flipY="true" diffuse="diffusemirrorwide.png">#Play.Current.Thumb</texture>
    22.             <keepaspectratio>yes</keepaspectratio>
    23.             <centered>yes</centered>
    24.             <visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    25.         </control>
    26.         <control>
    27.             <description>Movie Name</description>
    28.             <id>903</id>
    29.             <type>fadelabel</type>
    30.             <posX>380</posX>
    31.             <posY>735</posY>
    32.             <width>1000</width>
    33.             <label>#Play.Current.Title</label>
    34.             <font>font18</font>
    35.             <textcolor>ffffffff</textcolor>
    36.             <visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    37.         </control>
    38.         <control>
    39.             <description>Plot</description>
    40.             <type>textboxscrollup</type>
    41.             <id>1</id>
    42.             <posX>380</posX>
    43.             <posY>820</posY>
    44.             <width>1520</width>
    45.             <height>240</height>
    46.             <label>#Play.Current.Plot</label>
    47.             <font>font14</font>
    48.             <textcolor>ffffffff</textcolor>
    49.             <visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    50.         </control>
    51.         <control>
    52.             <description>Current Time Info</description>
    53.             <type>label</type>
    54.             <id>905</id>
    55.             <posX>1900</posX>
    56.             <posY>745</posY>
    57.             <label>#time</label>
    58.             <align>right</align>
    59.             <font>font18</font>
    60.             <textcolor>ffffffff</textcolor>
    61.             <visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    62.         </control>
    63.         <control>
    64.             <description>Video Logo</description>
    65.             <type>image</type>
    66.             <id>0</id>
    67.             <posX>1410</posX>
    68.             <posY>740</posY>
    69.             <width>120</width>
    70.             <height>60</height>
    71.             <texture>Logos\#Play.Current.VideoCodec.Texture.png</texture>
    72.             <visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    73.         </control>
    74.         <control>
    75.             <description>Audio Logo</description>
    76.             <type>image</type>
    77.             <id>0</id>
    78.             <posX>1550</posX>
    79.             <posY>740</posY>
    80.             <width>120</width>
    81.             <height>60</height>
    82.             <texture>Logos\#Play.Current.AudioCodec.Texture.png</texture>
    83.             <visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    84.         </control>
    85.         <control>
    86.             <description>Subtitle Logo</description>
    87.             <type>image</type>
    88.             <id>0</id>
    89.             <posX>1690</posX>
    90.             <posY>740</posY>
    91.             <width>60</width>
    92.             <height>60</height>
    93.             <texture>Logos\SUBTITLES.png</texture>
    94.             <visible>string.equals(#Play.Current.HasSubtitles, True)+[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
    95.         </control>
     
  9. FCB38

    FCB38 Portal Member

    Joined:
    May 5, 2010
    Messages:
    24
    Likes Received:
    0
    Location:
    Grenoble
    Ratings:
    +0 / 0
    Home Country:
    France France
    Re : videoFullScreen.xml OSD transparency

    Thank's a lot!!!
    Good job.
    Bye.
     
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!