require( "scripts/style.lua" );

DebugOut( "loading" );

MakeDialog
{
    LoadingWindow
    {
        x = kCenter,
		y = kCenter,
        w = kMax,
        h = kMax,
        
        Bitmap
        {
            name = "loading_background",
            image = "backgrounds/background_loading_1024_jpg",
            
            x = kCenter,
            y = kCenter,
            
            Dialog
            {
                name = "loading_window",
                x = 0,
                y = 0,
                w = kMax,
                h = kMax,
                
                Text
                {
                    name = "loading_title",
                    x = kCenter,
                    y = kCenter - 330,
                    w = kMax,
                    h = 40,
                    flags = kHAlignCenter,
                    font = BookAntiquaTitle36Font,
                    label = "loading_title",
                },
            
                SetStyle( LoadingSliderStyle ),
                OurSlider
                {
                    name="loading_bar",
                    x = kCenter,
                    y = kCenter + 310,
                    w = 150,
                    h = 25,
                    hslider = true,
                
                    user_modif = false,
                };
            
                Text
                {
                    name = "loading_status",
                    x = kCenter,
                    y = kCenter + 346,
                    w = kMax,
                    h = 25,
                    flags = kHAlignCenter,
                    font = UpHUDFont,
                },
            },
        },
        
        Bitmap
        {
          name = "loading_background_left",
          image = "backgrounds/background_loading_1024_left_168",
          
          x = kCenter - 596,
          y = 0,
        },
        
        Bitmap
        {
          name = "loading_background_right",
          image = "backgrounds/background_loading_1024_right_168",
          
          x = kCenter + 596,
          y = 0,
        },
    }
}
