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

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

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

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

            SetStyle(ButtonStyle),
            Button {
                graphics = OkButtonGraphics;
                close = true;
                cancel = true;
                flags = 5;
                name = "ok";
                x = 147;
                y = 226;
            },

            Text {
                font = DialogTitleFont;
                name = "oktitle";
                x = 71; y = 25;
                w = 340; h = 40;
                flags = kVAlignCenter + kHAlignLeft;
                label= gDialogTable.title;
            };

            Text {
                font = DialogBodyFont;
                name = "okbody";
                x = 70; y = 79;
                w = 340; h = 100;
                flags = kVAlignCenter + kHAlignCenter;
                label= gDialogTable.body;
            };
        },
    }
} -- MakeDialog
