videoFullScreen.xml OSD transparency (1 Viewer)

mironto

Portal Pro
March 15, 2010
71
6
Home Country
Slovakia Slovakia
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?

pause.png
osd.png

videoFullScreen.xml vs. videoOSD.xml
 

aj1405

Portal Pro
September 30, 2007
443
302
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.
 

mironto

Portal Pro
March 15, 2010
71
6
Home Country
Slovakia Slovakia
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.
 

mironto

Portal Pro
March 15, 2010
71
6
Home Country
Slovakia Slovakia
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.

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
110106.png
 

FCB38

Portal Member
May 5, 2010
24
0
Grenoble
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.
 

mironto

Portal Pro
March 15, 2010
71
6
Home Country
Slovakia Slovakia
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:
		<control>
			<description>Background</description>
			<type>image</type>
			<id>104</id>
			<posX>0</posX>
			<colordiffuse>90ffffff</colordiffuse>
			<posY>0</posY>
			<width>1920</width>
			<height>80</height>
			<texture>topbar_background.png</texture>
		</control>

The same with the bottom bacground, it's under <!-- *********************** Pause OSD *********************** -->

Code:
		<control>
			<description>background</description>
			<type>image</type>
			<id>901</id>
			<colordiffuse>90ffffff</colordiffuse>
			<posX>0</posX>
			<posY>700</posY>
			<width>1920</width>
			<height>380</height>
			<texture>osd_background.png</texture>
			<visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</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:
		<control>
			<description>background</description>
			<type>image</type>
			<id>901</id>
			<colordiffuse>90ffffff</colordiffuse>
			<posX>0</posX>
			<posY>700</posY>
			<width>1920</width>
			<height>380</height>
			<texture>osd_background.png</texture>
			<visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</control>
		<control>
			<description>Thumb</description>
			<type>image</type>
			<id>902</id>
			<posX>20</posX>
			<posY>680</posY>
			<width>320</width>
			<height>320</height>
			<texture flipY="true" diffuse="diffusemirrorwide.png">#Play.Current.Thumb</texture>
			<keepaspectratio>yes</keepaspectratio>
			<centered>yes</centered>
			<visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</control>
		<control>
			<description>Movie Name</description>
			<id>903</id>
			<type>fadelabel</type>
			<posX>380</posX>
			<posY>735</posY>
			<width>1000</width>
			<label>#Play.Current.Title</label>
			<font>font18</font>
			<textcolor>ffffffff</textcolor>
			<visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</control>
		<control>
			<description>Plot</description>
			<type>textboxscrollup</type>
			<id>1</id>
			<posX>380</posX>
			<posY>820</posY>
			<width>1520</width>
			<height>240</height>
			<label>#Play.Current.Plot</label>
			<font>font14</font>
			<textcolor>ffffffff</textcolor>
			<visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</control>
		<control>
			<description>Current Time Info</description>
			<type>label</type>
			<id>905</id>
			<posX>1900</posX>
			<posY>745</posY>
			<label>#time</label>
			<align>right</align>
			<font>font18</font>
			<textcolor>ffffffff</textcolor>
			<visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</control>
		<control>
			<description>Video Logo</description>
			<type>image</type>
			<id>0</id>
			<posX>1410</posX>
			<posY>740</posY>
			<width>120</width>
			<height>60</height>
			<texture>Logos\#Play.Current.VideoCodec.Texture.png</texture>
			<visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</control>
		<control>
			<description>Audio Logo</description>
			<type>image</type>
			<id>0</id>
			<posX>1550</posX>
			<posY>740</posY>
			<width>120</width>
			<height>60</height>
			<texture>Logos\#Play.Current.AudioCodec.Texture.png</texture>
			<visible>[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</control>
		<control>
			<description>Subtitle Logo</description>
			<type>image</type>
			<id>0</id>
			<posX>1690</posX>
			<posY>740</posY>
			<width>60</width>
			<height>60</height>
			<texture>Logos\SUBTITLES.png</texture>
			<visible>string.equals(#Play.Current.HasSubtitles, True)+[player.rewinding|Control.IsVisible(10)|player.forwarding|player.paused]+!window.isosdvisible</visible>
		</control>
 

Users who are viewing this thread

Top Bottom