<Dialog width = "1024" height = "768" template = "PDVDCox/__init__.xml">

    <LayerPanel name = "layer">
        <rect> 0, 0, 782, 436 </rect>
        <depth> 100 </depth>

    <Text name = "textMovieCollection" style = "MovieCollection.Title">
        <text> LANG('Movie Collection') </text>
        <rect> 20, 0, 300, 40</rect>
        <align> 'L' </align>
        <autoRoll> False </autoRoll>
        <dock_side> 'LEFT', </dock_side>
    </Text>

    <Text name = "textTotal" style = "MovieCollection.Text">
        <rect> 20, 40, 100, 22</rect>
        <align> 'R' </align>
        <autoRoll> False </autoRoll>
        <dock_side> 'LEFT', </dock_side>
    </Text>

    <Text name = "textMovieCount" style = "MovieCollection.Text">
        <rect> 130, 40, 150, 22</rect>
        <align> 'L' </align>
        <autoRoll> False </autoRoll>
        <dock_side> 'LEFT', </dock_side>
    </Text>

    <Text name = "textUser" style = "MovieCollection.Text">
        <rect> 20, 60, 100, 22</rect>
        <align> 'R' </align>
        <autoRoll> False </autoRoll>
        <dock_side> 'LEFT', </dock_side>
    </Text>

    <Text name = "textUserName" style = "MovieCollection.Text">
        <rect> 130, 60, 150, 22</rect>
        <align> 'L' </align>
        <autoRoll> False </autoRoll>
        <dock_side> 'LEFT', </dock_side>  
    </Text>

    <MultiTextureImage name = "mtiMovieResume">
        <rect> 380, 0, 400, 300 </rect>
        <Item name = "imgMovieCover">
            <alphaFileName> PATH(r'MovieLibrary\Mask.png') </alphaFileName>
            <effectFileName> PATH(r'fx\mask.fx') </effectFileName>
            <rect> 0, 0, 400, 300 </rect>
            <showCenterPart> True </showCenterPart>
        </Item>
        <dock_side> 'RIGHT', 'TOP' </dock_side>  
    </MultiTextureImage>
        
    <ImageTextButton name = "btnMovieHyperLink">
        <rect> 198, 40, 400, 30 </rect>
        <txNoFocus> PATH(r'Theme\Button\Btn_normal.png') </txNoFocus>
        <txFocus> PATH(r'Theme\Button\Btn_normal.png') </txFocus>
        <txPress> PATH(r'Theme\Button\Btn_normal.png') </txPress>
        <txDisable> PATH(r'Theme\Button\Btn_normal.png') </txDisable>
        <bind event = "Click"> onUIHyperLink </bind>
        <font> 'Segoe UI' </font>
        <fontsize> 18 </fontsize>
        <align> 'C' </align>
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <color> 255, 255, 255, 255 </color>
        <visible> False </visible>
    </ImageTextButton>

    <Rating name = "ratGlobalRating">
        <rect> 326, 70, 143, 27 </rect>
        <backgroundImagePath> PATH(r'Moviecollection\StarNone.png') </backgroundImagePath>
        <foregroundImagePath> PATH(r'Moviecollection\Star.png') </foregroundImagePath>
        <imageGap> 0 </imageGap>
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <visible> False </visible>
    </Rating>

    <ImageTextButton name = "btnBack">
        <rect> 710, 10, 69, 26</rect>
        <text_padding> 2, 0, 2, 0 </text_padding>
        <txNoFocus> PATH(r'Theme\Button\btn_close_n.png') </txNoFocus>
        <txFocus> PATH(r'Theme\Button\btn_close_h.png') </txFocus>
        <txPress> PATH(r'Theme\Button\btn_close_p.png') </txPress>
        <txDisable> PATH(r'Theme\Button\btn_close_d.png') </txDisable>
        <txMouseOver> PATH(r'Theme\Button\btn_close_f.PNG') </txMouseOver>         
        <caption> LANG('Back') </caption>
        <color> 255, 255, 255, 255 </color>
        <fontsize> 14 </fontsize>
        <bind event = "Click"> onUIBack </bind>
        <dock_side> 'RIGHT', 'TOP' </dock_side>        
        <tipText> LANG('Tooltip Exit Movie Collection FanView') </tipText>
    </ImageTextButton>

    <ImageRiverFlow name = "RiverFlow">
        <rect> -50, 160, 896, 600 </rect>
        <dock_side> 'HORZ', 'VERT' </dock_side>
    </ImageRiverFlow>    

    <MovieFanView name = "FanBrowser">
        <rect> -580, 100, 2000, 1200</rect>
        <fanPos> 580+398, 1950 </fanPos>
        <nShowItems> 25 </nShowItems>
        <radius> 1824 </radius>
        <showAngle> 70.0/360 </showAngle>
        <animDuration> 0.5 </animDuration>
        <cellSize> 52, 74 </cellSize>
        <focusScaleRatio> 1.4 </focusScaleRatio>
        <angleThreshold> 0.10 </angleThreshold>
        <leftShadowOffset> 4, 3 </leftShadowOffset>
        <rightShadowOffset> 4, 3 </rightShadowOffset>
        <focusShadowOffset> 16, 16 </focusShadowOffset>
        <dock_side> 'HORZ', 'VERT' </dock_side>
    </MovieFanView> 

    <Text name = "textWarning" style = "WarningText">
        <rect> 0, 100, 782, 400 </rect>
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <text> LANG('FancyView not support in 2D mode') </text>
        <visible> False </visible>
    </Text>

    </LayerPanel>

    <dirmap from = "btnBack" down = "FanBrowser"/>
    <dirmap from = "FanBrowser" up = "btnBack"/>
</Dialog>
