2007-05-22, 22:39
gaogao, from the includes.xml:
<!-- Begin background image include -->
<include name="background">
<control type="visualisation">
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<visible>!Player.HasMedia(startup.wav)</visible>
<visible>!Skin.HasSetting(back-vis)</visible>
</control>
<control type="image">
<description>background</description>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<texture>background.png</texture>
<visible>!Skin.String(custom-background)</visible>
<visible>!Player.HasAudio</visible>
</control>
<control type="image">
<description>custom background</description>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<info>Skin.String(custom-background)</info>
<visible>!Player.HasAudio</visible>
</control>
<!-- opaque shit -->
<control type="image">
<description>background</description>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<texture>background.png</texture>
<colordiffuse>D1FFFFFF</colordiffuse>
<visible>!Skin.String(custom-background)</visible>
<visible>Player.HasAudio</visible>
</control>
<control type="image">
<description>custom background</description>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<info>Skin.String(custom-background)</info>
<colordiffuse>D1FFFFFF</colordiffuse>
<visible>Player.HasAudio</visible>
</control>
</include>
if you remove the:
<visible>!Player.HasMedia(startup.wav)</visible>
<visible>!Skin.HasSetting(back-vis)</visible>
it will ALWAYS give you a background visualzation.
but simply setting back-vis to false should make it work too, (unless the file is named startup.wav)
I don't like the background set that way so I don't know if its a problem or not, but if you are setting the skin settings to display it, and it's not, then it could have something to do with it being drawn on the screen first, then the background covering it up (from the looks of the code anyway)
if so put the :
<control type="visualisation">
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<visible>!Player.HasMedia(startup.wav)</visible>
<visible>!Skin.HasSetting(back-vis)</visible>
</control>
last, right before the final </include>
<!-- Begin background image include -->
<include name="background">
<control type="visualisation">
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<visible>!Player.HasMedia(startup.wav)</visible>
<visible>!Skin.HasSetting(back-vis)</visible>
</control>
<control type="image">
<description>background</description>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<texture>background.png</texture>
<visible>!Skin.String(custom-background)</visible>
<visible>!Player.HasAudio</visible>
</control>
<control type="image">
<description>custom background</description>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<info>Skin.String(custom-background)</info>
<visible>!Player.HasAudio</visible>
</control>
<!-- opaque shit -->
<control type="image">
<description>background</description>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<texture>background.png</texture>
<colordiffuse>D1FFFFFF</colordiffuse>
<visible>!Skin.String(custom-background)</visible>
<visible>Player.HasAudio</visible>
</control>
<control type="image">
<description>custom background</description>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<info>Skin.String(custom-background)</info>
<colordiffuse>D1FFFFFF</colordiffuse>
<visible>Player.HasAudio</visible>
</control>
</include>
if you remove the:
<visible>!Player.HasMedia(startup.wav)</visible>
<visible>!Skin.HasSetting(back-vis)</visible>
it will ALWAYS give you a background visualzation.
but simply setting back-vis to false should make it work too, (unless the file is named startup.wav)
I don't like the background set that way so I don't know if its a problem or not, but if you are setting the skin settings to display it, and it's not, then it could have something to do with it being drawn on the screen first, then the background covering it up (from the looks of the code anyway)
if so put the :
<control type="visualisation">
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<visible>!Player.HasMedia(startup.wav)</visible>
<visible>!Skin.HasSetting(back-vis)</visible>
</control>
last, right before the final </include>