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

    <LayerPanel name = "layer">
        <rect> 0, 0, 532, 436 </rect>
        <depth> 100 </depth>
        
    <ImageTextButton name = "btnBack">
        <rect> 567, 20, 69, 24</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>      
    </ImageTextButton>

    <Text name = "textMovieName" style = "ResumePage.ButtonText">
        <rect> 20, 0, 300, 40 </rect>
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <align> 'L' </align>
        <autoRoll> True </autoRoll>
    </Text>

    <MultiTextureImage name = "mtiMovieResume">
        <rect> 20, 30, 350, 350 </rect>
        <translate> 0, 10, 0 </translate>
        <rotate> True </rotate>
        <rotateAxis> 1, 1, 1 </rotateAxis>
        <rotateAngle> 352, 26, 0 </rotateAngle>
        <fov> 20 </fov>
        
        <Item name = "imgMovieBox">
            <imageFileName> PATH(r'ResumPage\Border.PNG') </imageFileName>
            <rect> 0, 0, 286, 176 </rect>
        </Item>
        <Item name = "imgMovieBoxReflection">
            <imageFileName> PATH(r'ResumPage\Border.PNG') </imageFileName>
            <alphaFileName> PATH(r'Moviecollection\cover-mask2.png') </alphaFileName>
            <maskFileName> PATH(r'Moviecollection\cover-mask5.png') </maskFileName>
            <effectFileName> PATH(r'fx\mask.fx') </effectFileName>
            <rect> 0, 352, 286, -176 </rect> <!-- negative height for drawing upside down -->
        </Item>
        <Item name = "imgMovieCover">
            <imageFileName> PATH(r'Chapterview\NoChapter_bg.PNG') </imageFileName>
            <rect> 8, 8, 270, 160 </rect>
            <showCenterPart> True </showCenterPart>
        </Item>
        <Item name = "imgMovieCoverReflection">
            <imageFileName> PATH(r'Chapterview\NoChapter_bg.PNG') </imageFileName>
            <alphaFileName> PATH(r'Moviecollection\cover-mask2.png') </alphaFileName>
            <maskFileName> PATH(r'Moviecollection\cover-mask5.png') </maskFileName>
            <effectFileName> PATH(r'fx\mask.fx') </effectFileName>
            <rect> 8, 344, 270, -160 </rect> <!-- negative height for drawing upside down -->
            <showCenterPart> True </showCenterPart>
        </Item>
        <Item name = "imgHighlight">
            <imageFileName> PATH(r'ResumPage\Border_lighting.png') </imageFileName>
            <rect> 0, 0, 286, 176 </rect>
        </Item>
        <dock_side> 'HORZ', 'VERT' </dock_side>
    </MultiTextureImage>

    <ImageButton name = "biResumePic">
        <txNoFocus> PATH(r'ResumPage/Play-Normal.PNG') </txNoFocus>
        <txFocus>   PATH(r'ResumPage/Play-hover.PNG') </txFocus>
        <txPress>   PATH(r'ResumPage/Play-click.PNG') </txPress>
        <txDisable> PATH(r'ResumPage/Play-disable.PNG') </txDisable>
        <txMouseOver> PATH(r'ResumPage/Play-Focus.PNG') </txMouseOver>        
        <rect> 130, 100, 67, 67 </rect>
        <bind event = "Click"> onUIResume </bind>
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <tipText> LANG('Tooltip Resume') </tipText>
    </ImageButton>
        
    <ImageTextButton name = "biResume" style="ResumePage.ButtonText">
        <txNoFocus> PATH(r'ResumPage/Resume_N.PNG') </txNoFocus>
        <txFocus>   PATH(r'ResumPage/Resume_H.PNG') </txFocus>
        <txPress>   PATH(r'ResumPage/Resume_P.PNG') </txPress>
        <txDisable> PATH(r'ResumPage/Resume_D.PNG') </txDisable>
        <txMouseOver> PATH(r'ResumPage/Resume_F.PNG') </txMouseOver>          
        <rect> 330, 50, 190, 69 </rect>
        <bind event = "Click"> onUIResume </bind>
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <caption> LANG('Resume') </caption>
        <color> 255, 255, 255, 255 </color>
        <text_padding> 17, 12, 17, 17 </text_padding>
        <tipText> LANG('Tooltip Resume') </tipText>
        <isFocusMouseEnter> True </isFocusMouseEnter>
    </ImageTextButton>

    <ImageTextButton name = "biRestart" style="ResumePage.ButtonText">
        <txNoFocus> PATH(r'ResumPage/Resume_N.PNG') </txNoFocus>
        <txFocus>   PATH(r'ResumPage/Resume_H.PNG') </txFocus>
        <txPress>   PATH(r'ResumPage/Resume_P.PNG') </txPress>
        <txDisable> PATH(r'ResumPage/Resume_D.PNG') </txDisable>
        <txMouseOver> PATH(r'ResumPage/Resume_F.PNG') </txMouseOver>         
        <rect> 330, 50+69, 190, 69 </rect>
        <bind event = "Click"> onUIRestart </bind>
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <caption> LANG('Restart') </caption>
        <color> 255, 255, 255, 255 </color>
        <text_padding> 17, 12, 17, 17 </text_padding>
        <tipText> LANG('Tooltip Play From Beginning') </tipText>
        <isFocusMouseEnter> True </isFocusMouseEnter>
    </ImageTextButton>

    <Picture name = "divideline" >
        <imageFileName> PATH(r'ResumPage/Divideline.png') </imageFileName>
        <rect> 0, 240, 532, 2 </rect>
        <dock_side> 'LEFT', 'RIGHT', 'VERT' </dock_side>
    </Picture>

    <MovieFanView name = "FanBrowser">
        <rect> -500, 240, 1920, 1200</rect>
        <fanPos> 500+273, 2500 </fanPos>
        <nShowItems> 21 </nShowItems>
        <radius> 2424 </radius>
        <showAngle> 58.0/360 </showAngle>
        <animDuration> 0.5 </animDuration>
        <cellSize> 70, 49 </cellSize>
        <focusScaleRatio> 1.3 </focusScaleRatio>
        <angleThreshold> 0.06 </angleThreshold>
        <leftShadowOffset> 6, 2 </leftShadowOffset>
        <rightShadowOffset> 6, 2 </rightShadowOffset>
        <focusShadowOffset> 8, 8 </focusShadowOffset>
        <leftShadow> '*Media/Chapterview/Shadow_left.png' </leftShadow>
        <rightShadow> '*Media/Chapterview/Shadow_right.png' </rightShadow>
        <focusShadow> '*Media/Chapterview/chapter-HL.png' </focusShadow>
        <focusShadow2> '*Media/Chapterview/chapter-HL2.png' </focusShadow2>
        <defaultImage> '*Media/Chapterview/NoChapter_bg.PNG' </defaultImage>
        <!--<reflectMask> r'*Media/Chapterview/Reflect_mask.png' </reflectMask>-->
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <showCenterPart> True </showCenterPart>
    </MovieFanView> 

    <Text name = "textWarning" style = "WarningText">
        <rect> 100, 300, 446, 200 </rect>
        <fontsize> 16 </fontsize>
        <dock_side> 'HORZ', 'VERT' </dock_side>
        <text> LANG('FancyView not support in 2D mode') </text>
        <visible> False </visible>
    </Text>

    <Text name = "textChapterIndex" style = "ResumePage.ChapterText">
        <rect> 173, 390, 200, 20 </rect>
        <dock_side> 'HORZ', 'VERT' </dock_side>
    </Text>
    <Text name = "textChapterName" style = "ResumePage.ChapterText">
        <rect> 73, 410, 400, 200 </rect>
        <multiline> True </multiline>
        <align> 'CT' </align>
        <dock_side> 'HORZ', 'VERT' </dock_side>
    </Text>
        
    </LayerPanel>

    <dirmap from = "biResume" down = "biRestart"/>
    <dirmap from = "biRestart" down = "FanBrowser" up = "biResume"/>
    <dirmap from = "FanBrowser" up = "biRestart"/>
    
</Dialog>
