<?xml version="1.0" encoding="UTF-8"?>
<window id="1152" type="dialog">
    <modality>modal</modality>
    <defaultcontrol always="true">5000</defaultcontrol>
    <coordinates>
        <left>160</left>
        <top>100</top>
        <width>1600</width>
        <height>880</height>
    </coordinates>
    <onload>ClearProperty(WCS.Similar.Title,Home)</onload>
    <onload>ClearProperty(WCS.Similar.Poster,Home)</onload>
    <onload>ClearProperty(WCS.Similar.Plot,Home)</onload>
    <onload>ClearProperty(WCS.SelectedItem.Plot,self)</onload>
    <animation effect="slide" start="0,1080" end="0,0" time="400" tween="cubic" easing="out">WindowOpen</animation>
    <animation effect="slide" start="0,0" end="0,1080" time="400" tween="cubic" easing="out">WindowClose</animation>
    <controls>
        <!-- Pozadí dialogu (ztmavení) -->
        <control type="image">
            <left>-160</left>
            <top>-100</top>
            <width>1920</width>
            <height>1080</height>
            <texture colordiffuse="F0121212">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            <animation effect="fade" start="0" end="100" time="300">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>
        <control type="image">
            <left>0</left>
            <top>0</top>
            <width>1600</width>
            <height>880</height>
            <texture border="10" colordiffuse="DD232323">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
        </control>
        <!-- Nadpis a ikona -->
        <!-- Nadpis pro filmy -->
        <control type="label">
            <left>20</left>
            <top>0</top>
            <width>1500</width>
            <height>50</height>
            <font>font30</font>
            <textcolor>white</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>Podobné filmy k: $INFO[Window.Property(WCS.Similar.Title)]</label>
            <align>left</align>
            <aligny>center</aligny>
            <visible>String.IsEqual(Window.Property(WCS.Similar.MediaType),movie) | String.IsEmpty(Window.Property(WCS.Similar.MediaType))</visible>
        </control>
        <!-- Nadpis pro seriály -->
        <control type="label">
            <left>20</left>
            <top>0</top>
            <width>1500</width>
            <height>50</height>
            <font>font30</font>
            <textcolor>white</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>Podobné seriály k: $INFO[Window.Property(WCS.Similar.Title)]</label>
            <align>left</align>
            <aligny>center</aligny>
            <visible>String.IsEqual(Window.Property(WCS.Similar.MediaType),tv)</visible>
        </control>

        <control type="image">
            <left>1540</left>
            <top>5</top>
            <width>40</width>
            <height>40</height>
            <texture>icons/infodialogs/similar.png</texture>
        </control>
        <!-- Spodní část: seznam podobných filmů a detail filmu -->
        <control type="group">
            <left>20</left>
            <top>60</top>
            <width>1560</width>
            <height>800</height>
            <!-- Levá část: seznam filmů -->
            <control type="group">
                <left>0</left>
                <top>0</top>
                <width>600</width>
                <height>800</height>
                <control type="list" id="5000">
                    <left>0</left>
                    <top>0</top>
                    <width>600</width>
                    <height>796</height>
                    <onleft>noop</onleft>
                    <onright>6000</onright>
                    <onup>5000</onup>
                    <ondown>5000</ondown>
                    <orientation>vertical</orientation>
                    <scrolltime tween="cubic" easing="out">200</scrolltime>
                    <preloaditems>2</preloaditems>
                    <itemgap>5</itemgap>
                    <pagecontrol>5001</pagecontrol>
                    <itemlayout height="100" width="600">
                        <control type="image">
                            <left>10</left><top>5</top><width>60</width><height>90</height>
                            <texture background="true" fallback="DefaultVideo.png">$INFO[ListItem.Art(thumb)]</texture>
                            <aspectratio>keep</aspectratio>
                        </control>
                        <control type="label">
                            <left>85</left><top>15</top><width>495</width><height>40</height>
                            <font>font13</font><textcolor>white</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="label">
                            <left>85</left><top>55</top><width>495</width><height>30</height>
                            <font>font12</font><textcolor>grey</textcolor>
                            <label>$INFO[ListItem.Property(year)]</label>
                        </control>
                        <control type="button" id="5010">
                            <left>0</left><top>0</top><width>100%</width><height>100%</height>
                            <texturefocus>-</texturefocus><texturenofocus>-</texturenofocus>
                        </control>
                    </itemlayout>
                    <focusedlayout height="100" width="600">
                        <control type="image">
                            <width>100%</width><height>100%</height>
                            <texture colordiffuse="button_focus">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
                        </control>
                        <control type="image">
                            <left>10</left><top>5</top><width>60</width><height>90</height>
                            <texture background="true" fallback="DefaultVideo.png">$INFO[ListItem.Art(thumb)]</texture>
                            <aspectratio>keep</aspectratio>
                        </control>
                        <control type="label">
                            <left>85</left><top>15</top><width>495</width><height>40</height>
                            <font>font13</font><textcolor>white</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="label">
                            <left>85</left><top>55</top><width>495</width><height>30</height>
                            <font>font12</font><textcolor>white</textcolor>
                            <label>$INFO[ListItem.Property(year)]</label>
                        </control>
                        <control type="button" id="5010">
                            <left>0</left><top>0</top><width>100%</width><height>100%</height>
                            <texturefocus>-</texturefocus><texturenofocus>-</texturenofocus>
                        </control>
                    </focusedlayout>
                </control>
                <control type="scrollbar" id="5001">
                    <left>585</left>
                    <top>0</top>
                    <width>15</width>
                    <height>586</height>
                    <onleft>5000</onleft><onright>noop</onright>
                    <orientation>vertical</orientation>
                    <showonepage>false</showonepage>
                    <texturesliderbackground colordiffuse="40FFFFFF">...</texturesliderbackground>
                    <texturesliderbar colordiffuse="button_focus">...</texturesliderbar>
                    <texturesliderbarfocus colordiffuse="button_focus">...</texturesliderbarfocus>
                </control>
            </control>
            <!-- Pravá část: Detaily vybraného filmu -->
            <control type="group" id="6000">
                <left>620</left>
                <top>0</top>
                <width>940</width>
                <height>800</height>
                <visible>!String.IsEmpty(Container(5000).ListItem.Label)</visible>
                <control type="image">
                    <left>0</left><top>0</top>
                    <width>380</width>
                    <height>586</height>
                    <texture background="true" fallback="DefaultVideo.png">$INFO[Container(5000).ListItem.Art(poster)]</texture>
                    <aspectratio>keep</aspectratio>
                    <bordertexture border="5" colordiffuse="30FFFFFF">special://home/addons/plugin.video.milionar/resources/media/white.png</bordertexture>
                    <bordersize>5</bordersize>
                </control>
                <control type="group">
                    <left>400</left>
                    <top>0</top>
                    <width>540</width>
                    <height>590</height>
                    <control type="label" id="6001">
                        <left>0</left><top>10</top><width>100%</width><height>40</height>
                        <font>font16_bold</font><textcolor>white</textcolor><shadowcolor>black</shadowcolor>
                        <label>$INFO[Container(5000).ListItem.Label]</label>
                        <wrapmultiline>true</wrapmultiline>
                        <onleft>5000</onleft>
                    </control>
                    <control type="label">
                        <left>0</left><top>55</top><width>100%</width><height>25</height>
                        <font>font12</font><textcolor>grey</textcolor>
                        <label>$INFO[Container(5000).ListItem.Property(year)]</label>
                    </control>
                    <control type="label">
                        <left>0</left><top>85</top><width>100%</width><height>25</height>
                        <font>font12</font><textcolor>grey</textcolor>
                        <label>Hodnocení: $INFO[Container(5000).ListItem.Rating] / 10</label>
                        <visible>!String.IsEmpty(Container(5000).ListItem.Rating)</visible>
                    </control>
                    <control type="textbox" id="6002">
                        <left>0</left><top>115</top><width>100%</width><height>670</height>
                        <font>font12</font><textcolor>FFDDDDDD</textcolor>
                        <label>$INFO[Container(5000).ListItem.Plot]</label>
                        <align>justify</align>
                        <autoscroll delay="10000" time="5000" repeat="10000">true</autoscroll>
                        <pagecontrol>6003</pagecontrol>
                    </control>
                </control>
            </control>
        </control>
    </controls>
</window> 