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

function removeInstructions()
    PopModal("InstructionsDialog");
end

MakeDialog {
    name = "InstructionsDialog";

    wndInstructions {
        w = kMax; h = kMax;

        Bitmap {
            image = "gpx/screens/screen_instructions";
            name = "bmpContainer";
            alpha = true;

            clsText {
                name = "lblInstructions";
                label = "lblInstructions";
                font = Font48;
                Scale = 0.5;
                Space = -10;
                w = kMax; h = 55;
                x = kCenter; y = 31;
                flags = kHAlignCenter + kVAlignTop;
            };
            Text {
                name = "lblText1";
                label = "lblInstructions_txt1";
                font = Font20;
                w = 650; h = 90;
                x = 91; y = 120;
                flags = kHAlignRight + kVAlignTop;
            };
            Text {
                name = "lblText2";
                label = "lblInstructions_txt2";
                font = Font20;
                w = 650; h = 90;
                x = 273; y = 238;
                flags = kHAlignLeft + kVAlignTop;
            };
            Text {
                name = "lblText3";
                label = "lblInstructions_txt3";
                font = Font20;
                w = 630; h = 85;
                x = 120; y = 354;
                flags = kHAlignRight + kVAlignTop;
            };
            Text {
                name = "lblText4";
                label = "lblInstructions_txt4";
                font = Font20;
                w = 630; h = 80;
                x = 291; y = 469;
                flags = kHAlignLeft + kVAlignTop;
            };
            Text {
                name = "lblText5";
                label = "lblInstructions_txt5";
                font = Font20;
                w = 600; h = 70;
                x = 150; y = 579;
                flags = kHAlignRight + kVAlignTop;
            };

            SetStyle(PanelButtonStyle);
            Button {
                x = 419; y = 710;
                name = "btnBack";
                label = "btnBack";
                command =
                    function()
                        gfn_OnBackInstructions();
                    end
            };
        };

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

    };
}
