Check file exist?
#1
I need check if a file exist or not, I want to made visible a image with this check.

Anybody know how can i do it ?

thanks in advance
Reply
#2
With skinning only, You can't.

what you wish to achieve?
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#3
Well, I want to put a country flag (image) but the system don't find it (don't have or any) The system would put the acronimous of country.

for example:

Code:
<!-- put the image flag -->
<control type="image" id="777101">
    <width>46</width>
    <height>44</height>
        <aspectratio>keep</aspectratio>
    <texture>$INFO[Window(2003).Property(AudioLanguage.2),images/flags/subtitles/flags/,.png]</texture>
    <visible>!IsEmpty(Window(2003).Property(AudioLanguage.2))</visible>
</control>
<!-- Separator -->
<control type="label">
    <width>10</width>
    <height>44</height>
    <font>Font_18A</font>
    <label>/</label>
    <textcolor>FFFFFAF0</textcolor>
    <visible>!IsEmpty(Window(2003).Property(AudioLanguage.3))</visible>
</control>
<!-- don't have image put text -->
<control type="label">
    <width>50</width>
    <height>44</height>
    <font>Font_18A</font>
    <label>$INFO[Window(2003).Property(AudioLanguage.2)]</label>
    <textcolor>FFFFFAF0</textcolor>
    <visible>IsEmpty(Control.GetLabel(777101))</visible>
</control>

This work fine, when it don't find a image put a space between the separator and text.

Normaly put:

flag / flag / flag

when don't find image

flag / (space) eng / flag

I want

flag / eng / flag

Thanks in advance for your help
Reply
#4
Use
Code:
<visible>!IsEmpty(Control.GetLabel(777101))</visible>
as the condition for the separator.
Reply
#5
I put the separator if you have another subtitles.
I try to explain. I put the image for subtitle 1, if I have subtitle 2, I put the separator and flag for subtitle 2 if don't , I don't put the separtor.
Reply
#6
Make the itemgap 0 then.
Reply
#7
This isn't te solution.

I have <visible>!IsEmpty(Window(2003).Property(AudioLanguage.2))</visible> it's true then is visible, But the image don't exist then I have a void space width 46 and height 44.

I need that this check take a lock if exist the file with the image
Reply
#8
First time trying to help with support for skinning stuff so apologies if I am off-base here...

It looks like you are trying to add an image to movieinformation (ie DialogVideoInfo) that is supposed to match a language flag located in images/flags/subtitles/flags/ to the Window(2003)property you are using.

First, I suggest trying !IsEmpty(Window(movieinformation).Property(AudioLanguage.x)) and not the window id, cause it is less confusing, but may not be helpful Wink

Then if you can, post the code used for AudioLanguage.1 which may be having an effect on #2 since there is the same dimensions equal to what you have given for #2 so it could possibly be part of #1 Huh
Are you using different image ids for all language flags (ie 777100, 777101, 777102)?

Hard to decipher things like this since the full code used is not apparent, like if you are using a grouplist or not, so hopefully it is helpful Smile
Reply
#9
@TE

If "<visible>!sEmpty(Control.GetLabel(777101))</visible>", like suggested by Hitcher, dont work on the image control with the ID you ckeck for, Try to use <width min="0" max"64">auto< /width> on the Image Controll.

Guess this should do the Trick. (ur using a Grouplist, right?)
Reply
#10
Don't go, I have the same,

Image
Reply
#11
Full code please.
Reply
#12
The code is here

Code:
    <include name="audiomio">
<!-- aqui tengo que poner las banderas -->        
        <control type="image" id="777100">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.1),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.1))</visible>
        </control>

        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.2))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.1)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777100))</visible>
        </control>


        <control type="image" id="777101">
            <width min="0" max="46">auto</width>
            <height min="0" max="44">auto</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.2),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.2))</visible>
        </control>

        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.3))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.2)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777101))</visible>
<!--            <animation effect="slide" end="-44,0" time="0" tween="sine" easing="out" condition="IsEmpty(Control.GetLabel(777101))">Conditional</animation>-->
        </control>

        <control type="image" id="777102">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.3),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.3))</visible>
        </control>
        
        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.4))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.3)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777102))</visible>
        </control>

        <control type="image" id="777103">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.4),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.4))</visible>
        </control>
        
        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.5))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.4)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777103))</visible>
        </control>
        
        <control type="image" id="777104">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.5),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.5))</visible>
        </control>

        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.6))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.5)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777104))</visible>
        </control>


        <control type="image" id="777105">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.6),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.6))</visible>
        </control>
        
        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.7))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.6)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777105))</visible>
        </control>
        
        
        <control type="image" id="777106">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.7),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.7))</visible>
        </control>
        
        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.8))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.7)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777106))</visible>
        </control>
        
        
        <control type="image" id="777107">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.8),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.8))</visible>
        </control>
        
        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.9))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.8)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777107))</visible>
        </control>
        
        <control type="image" id="777108">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.9),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.9))</visible>
        </control>
        
        <control type="label">
            <width>10</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>/</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.10))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.9)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777108))</visible>
        </control>

        
        <control type="image" id="777109">
            <width>46</width>
            <height>44</height>
            <aspectratio>keep</aspectratio>
            <texture>$INFO[Window(2003).Property(AudioLanguage.10),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.10))</visible>
        </control>

        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.10)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>IsEmpty(Control.GetLabel(777109))</visible>
        </control>
        
    </include>
    
    <include name="AudioandSub">
        <control type="image">
            <left>-45</left>
            <top>-60</top>
            <height>225</height>
            <width>2025</width>
            <texture flipy="true" diffuse="shadow_mask.png">darkgrey.png</texture>
            <colordiffuse>$VAR[value_texturecolor]</colordiffuse>
            <animation effect="fade" end="85" condition="true">Conditional</animation>
            <animation effect="slide" end="-45,-22" time="0" condition="Control.IsVisible(55)">Conditional</animation>
            <animation effect="slide" end="-540,-22" time="0" condition="Control.IsVisible(57)">Conditional</animation>
            <animation effect="slide" end="-45,-22" time="0" condition="Control.IsVisible(59)">Conditional</animation>
            <visible>Control.IsVisible(51) |Control.IsVisible(55) | Control.IsVisible(57)</visible>
        </control>
        <control type="image">
            <left>-975</left>
            <top>-60</top>
            <height>225</height>
            <width>1800</width>
            <texture flipy="true">shadow_mask.png</texture>
            <colordiffuse>85000000</colordiffuse>
            <animation effect="slide" end="-45,-22" time="0" condition="Control.IsVisible(55)">Conditional</animation>
            <animation effect="slide" end="-540,-22" time="0" condition="Control.IsVisible(57)">Conditional</animation>
            <animation effect="slide" end="-45,-22" time="0" condition="Control.IsVisible(59)">Conditional</animation>
            <visible>Control.IsVisible(70)</visible>
        </control>
        <control type="image">
            <left>-22</left>
            <top>0</top>
            <width>3</width>
            <height>90</height>
            <texture>line_v.png</texture>
            <colordiffuse>FFFFFAF0</colordiffuse>
            <visible>![Control.IsVisible(51) | Control.IsVisible(55) | Control.IsVisible(57) | Control.IsVisible(59) | Control.IsVisible(70)]</visible>
        </control>
        <control type="image">
            <!-- Audio -->
            <left>0</left>
            <top>0</top>
            <width>38</width>
            <height>38</height>
            <texture>osd_audio.png</texture>
            <colordiffuse>FFFFFAF0</colordiffuse>
            <aspectratio>keep</aspectratio>
            <fadetime>FanartCrossFadeTime</fadetime>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.1))</visible>
        </control>

        <control  type="grouplist">
<!--        <animation effect="fade" start="100" end="80" time="40" condition="true">Conditional</animation>-->
            <left>60</left>
            <top>-4</top>
            <width>650</width>
            <height>44</height>
            <align>left</align>
            <itemgap>5</itemgap>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.1))</visible>
            <orientation>horizontal</orientation>
            <include>audiomio</include>
        </control>
Reply
#13
The trick is to use some dummy fallback and check against it. So use i.e. <texture fallback=".">$INFO[Window(2003).Property(AudioLanguage.1),images/flags/subtitles/flags/,.png]</texture> and then then use StringCompare(Control.GetLabel(id),.) to check if the image file doesn't exist.
Image
Reply
#14
I do not usually post things to help in this section for fear I might lead others astray and two respected skinners responding makes me think I might have given some crappy help or advice... Sad

I hope mentioning this based on 'Blacks remarks is helpful...

I, in the past, have seen code that used an empty.png image as a fallback... like for missing logo.png for artists in MusicVisualization.xml so it might help.

Here is an example:
<texture background="true" fallback="empty.png">$INFO[Skin.String(pathlogosartists)]$INFO[MusicPlayer.Artist,,/logo.png]</texture>

So the visible would be something like <visible>Substring(Control.GetLabel(xxx),empty.png)</visible>
Reply
#15
Great!!! I have it !!!!!

Code:
    <include name="audiomio">
<!-- aqui tengo que poner las banderas -->        
        <control type="image" id="777100">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.1),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.1))</visible>
        </control>

        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.2))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.1)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777100),"grey.png")</visible>
        </control>


        <control type="image" id="777101">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.2),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.2))</visible>
        </control>

        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.3))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.2)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777101),"grey.png")</visible>
        </control>

        <control type="image" id="777102">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.3),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.3))</visible>
        </control>
        
        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.4))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.3)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777102),"grey.png")</visible>
        </control>
        
        
        <control type="image" id="777103">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.4),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.4))</visible>
        </control>
        
        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.5))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.4)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777103),"grey.png")</visible>
        </control>
        
        
        <control type="image" id="777104">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.5),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.5))</visible>
        </control>

        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.6))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.5)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777104),"grey.png")</visible>
        </control>


        <control type="image" id="777105">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.6),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.6))</visible>
        </control>
        
        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.7))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.6)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777105),"grey.png")</visible>
        </control>
        
        
        <control type="image" id="777106">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.7),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.7))</visible>
        </control>
        
        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.8))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.7)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777106),"grey.png")</visible>
        </control>
        
        
        <control type="image" id="777107">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.8),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.8))</visible>
        </control>
        
        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.9))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.8)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777107),"grey.png")</visible>
        </control>
        
        <control type="image" id="777108">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.9),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.9))</visible>
        </control>
        
        <control type="label">
            <width>auto</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>        /</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.10))</visible>
        </control>
        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.9)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777108),"grey.png")</visible>
        </control>

        
        <control type="image" id="777109">
            <width>auto</width>
            <height>auto</height>
            <texture fallback="grey.png">$INFO[Window(2003).Property(AudioLanguage.10),images/flags/subtitles/flags/,.png]</texture>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.10))</visible>
        </control>

        <control type="label">
            <width>50</width>
            <height>44</height>
            <font>Font_18A</font>
            <label>$INFO[Window(2003).Property(AudioLanguage.10)]</label>
            <textcolor>FFFFFAF0</textcolor>
            <visible>StringCompare(Control.GetLabel(777109),"grey.png")</visible>
        </control>
        
    </include>
    
    <include name="AudioandSub">
        <control type="image">
            <left>-45</left>
            <top>-60</top>
            <height>225</height>
            <width>2025</width>
            <texture flipy="true" diffuse="shadow_mask.png">darkgrey.png</texture>
            <colordiffuse>$VAR[value_texturecolor]</colordiffuse>
            <animation effect="fade" end="85" condition="true">Conditional</animation>
            <animation effect="slide" end="-45,-22" time="0" condition="Control.IsVisible(55)">Conditional</animation>
            <animation effect="slide" end="-540,-22" time="0" condition="Control.IsVisible(57)">Conditional</animation>
            <animation effect="slide" end="-45,-22" time="0" condition="Control.IsVisible(59)">Conditional</animation>
            <visible>Control.IsVisible(51) |Control.IsVisible(55) | Control.IsVisible(57)</visible>
        </control>
        <control type="image">
            <left>-975</left>
            <top>-60</top>
            <height>225</height>
            <width>1800</width>
            <texture flipy="true">shadow_mask.png</texture>
            <colordiffuse>85000000</colordiffuse>
            <animation effect="slide" end="-45,-22" time="0" condition="Control.IsVisible(55)">Conditional</animation>
            <animation effect="slide" end="-540,-22" time="0" condition="Control.IsVisible(57)">Conditional</animation>
            <animation effect="slide" end="-45,-22" time="0" condition="Control.IsVisible(59)">Conditional</animation>
            <visible>Control.IsVisible(70)</visible>
        </control>
        <control type="image">
            <left>-22</left>
            <top>0</top>
            <width>3</width>
            <height>90</height>
            <texture>line_v.png</texture>
            <colordiffuse>FFFFFAF0</colordiffuse>
            <visible>![Control.IsVisible(51) | Control.IsVisible(55) | Control.IsVisible(57) | Control.IsVisible(59) | Control.IsVisible(70)]</visible>
        </control>
        <control type="image">
            <!-- Audio -->
            <left>0</left>
            <top>0</top>
            <width>38</width>
            <height>38</height>
            <texture>osd_audio.png</texture>
            <colordiffuse>FFFFFAF0</colordiffuse>
            <aspectratio>keep</aspectratio>
            <fadetime>FanartCrossFadeTime</fadetime>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.1))</visible>
        </control>
        <control  type="grouplist">
<!--        <animation effect="fade" start="100" end="80" time="40" condition="true">Conditional</animation>-->
            <left>60</left>
            <top>-4</top>
            <width>650</width>
            <height>44</height>
            <align>left</align>
            <itemgap>5</itemgap>
            <visible>!IsEmpty(Window(2003).Property(AudioLanguage.1))</visible>
            <orientation>horizontal</orientation>
            <include>audiomio</include>
        </control>

I Change all my flags to 44x44 and use auto width and auto height. And use the black's idea.

Thanks for all.
Reply

Logout Mark Read Team Forum Stats Members Help
Check file exist?0