--============================================================================
--  credits.lua
--  Copyright (c) 2010, Bamtang Games. All Rights Reserved.
------------------------------------------------------------------------------
require "scripts/style.lua"

function removeCredits()
    PopModal("creditswindow");
end

MakeDialog {
    name = "creditswindow";

    wndCreditsFade {
        w = kMax; h = kMax;

        Bitmap {
            name = "bmpContent";
            image="gpx/screens/credits";
            alpha = true;

        clsText {
            name = "lblTitle";
            font = Font82White;
			flags = kHAlignCenter + kVAlignCenter;
            label = "lblCredits";
            x = kCenter; y = 65;
            w = 1024; h = 90; --h = 55;
            Scale = 0.9;
            Space = -10;
        };
        
            Bitmap {
                x = 0, y = 140,
                w = 1024, h = 540,
                alpha = true;

                wndCredits {
                    slotheight = 500,
                    x = 0, y = slotheight,
                    w = 1024, h = 500*4.5;
                    font = TextFont,
                    fontsize = 20,
                    fontcolor = Color(255, 255, 255, 255),
                    headercolor = Color(254, 255, 149, 255),
                    headersize = 24,
                    sectioncolor = Color(254, 255, 149, 255),
                    sectionsize = 40,
                    columngap = 50,
                    columnwidth = 462; --325,
                    time = 7000,
                    file = "credits/credits.txt",
                };
            };

            SetStyle(OptionButtonStyle);
            Button {
                x = kCenter;
                y = 700;
                name = "back";
                label = "btnBack";
                default = true;
                cancel = true;
                command =
                    function()
                        gfn_OnBackCredits();
                        --PopModal("creditswindow");
                    end
            };
        };

        Bitmap {
            image = "gpx/screens/panel_background";
            name = "bmpPanelBlack";
            x = 0; y = 0;
            alpha = true;
        };
    };
}
