--============================================================================
--  warning_penalty.lua
--  Copyright (c) 2009, Bamtang Games. All Rights Reserved.
------------------------------------------------------------------------------
require( "scripts/style.lua" );

MakeDialog {
    -- Name the modal dialog
    name = "WarningPenaltyDialog",

    WarningPenaltyWindow {
        name = "WarningPenaltyWindow";
        x = 0; y = 0;
        w = 800; h = 600;

        timedMode = IsTimedMode();

        Bitmap {
            name = "bmpPanelBlack";
            image = "images/gui/ae_background";
            alpha = true;
            x = 0; y = 0;
            w = 800; h = 600;
        };

        Bitmap {
            name = "bmpPanelContainer";
            image = "images/gui/ae_paneloptions";
            x = kCenter;
            y = 154;

            Bitmap {
                name = "bmpTitle";
                image = gLocalizedPath.."images/ae_warning";
                x = kCenter;
                y = 68;
            };

            Text {
                name = "txtPenaltyMessage",
                x = 89, y = 120,
                w = 300, h = 80,
                font = DialogBodyFont,
                label = "#[DEBUG]Doing random clicks will decrease your hints";
                flags = kHAlignCenter + kVAlignCenter,
            };

            SetStyle(ButtonStyle);
            Button {
                name = "btnContinue";
                graphics = ContinueButtonGraphics;
                x = kCenter;
                y = 226;
                command = 
                    function()
                        PopModal("WarningPenaltyDialog");
                    end
            };
        };
    };
};
