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

    <LayerPanel name = "layer">
        <rect> 0, 0, 646, 504 </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>

    <MultiTextureImage name = "mtiMovieResume">
        <rect> 70, 50, 300, 300 </rect>
        
        <Item name = "imgMovieBox">
            <imageFileName> PATH(r'ResumPage\Border.PNG') </imageFileName>
            <rect> 0, 0, 316, 196 </rect>
        </Item>
        <Item name = "imgMovieBoxReflection">
            <imageFileName> PATH(r'ResumPage\Border.PNG') </imageFileName>
            <alphaFileName> PATH(r'MovieLibrary\MovieCover_Mask.png') </alphaFileName>
            <effectFileName> PATH(r'fx\mask.fx') </effectFileName>
            <rect> 0, 392, 316, -196 </rect> <!-- negative height for drawing upside down -->
        </Item>
        <Item name = "imgMovieCover">
            <imageFileName> PATH(r'Chapterview\NoChapter_bg.PNG') </imageFileName>
            <rect> 8, 8, 300, 180 </rect>
        </Item>
        <Item name = "imgMovieCoverReflection">
            <imageFileName> PATH(r'Chapterview\NoChapter_bg.PNG') </imageFileName>
            <alphaFileName> PATH(r'MovieLibrary\MovieCover_Mask.png') </alphaFileName>
            <effectFileName> PATH(r'fx\mask.fx') </effectFileName>
            <rect> 8, 384, 300, -180 </rect> <!-- negative height for drawing upside down -->
        </Item>
        <Item name = "imgHighlight">
            <imageFileName> PATH(r'ResumPage\Border_lighting.png') </imageFileName>
            <rect> 0, 0, 316, 196 </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> 195, 115, 67, 67 </rect>
        <bind event = "Click"> onUIResume </bind>
        <dock_side> 'HORZ', 'VERT' </dock_side>
    </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> 400, 80, 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> 0, 0, 0, 10 </text_padding>
        <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> 400, 80+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> 0, 0, 0, 10 </text_padding>
        <isFocusMouseEnter> True </isFocusMouseEnter>
    </ImageTextButton>

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

    <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>
    </Text>

    <Text name = "textChapterIndex" style = "ResumePage.ChapterText">
        <rect> 223, 460, 200, 40 </rect>
        <dock_side> 'HORZ', 'VERT' </dock_side>
    </Text>
    <AutoResizeText name = "textChapterName" style = "ResumePage.ChapterText">
        <rect> 223, 500, 200, 40 </rect>
        <sizeDefault> 320, 40 </sizeDefault>
        <sizeMax> 320, 60 </sizeMax>
        <multiline> True </multiline>
        <autoHeight> True </autoHeight>
        <dock_side> 'HORZ', 'VERT' </dock_side>
    </AutoResizeText>
        
    </LayerPanel>

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