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

MakeDialog {
    name = "Bonus_Level";

    wndMove {
        x = kCenter; y = kCenter;
        w = kMax; h = kMax;
        Bitmap {
            x = kCenter; y = kCenter;
            image = "gpx/screens/panel03";

            Bitmap {
                image = "gpx/screens/bonus_icon_01";
                x = 9;
                y = 18;
            };

            Bitmap {
                image = "gpx/screens/bonus_icon_02";
                x = 338;
                y = 18;
            };

            clsText {
                x = kCenter + 5; y = 30; w = 435; h = 50;
                label = gDialogTable.title;
                font = Font50;
                flags = kHAlignCenter + kVAlignCenter;
                Scale = 0.45;
                Space = -10;
            };

            Text {
                x = kCenter; y = 119; w = 438; h = 50;
                label = gDialogTable.body;
                font = Font30;
                flags = kHAlignCenter + kVAlignTop;
            };

            Text {
                x = kCenter; y = 158; w = 438; h = 70;
                label = gDialogTable.round;
                font = Font36;
                flags = kHAlignCenter + kVAlignTop;
            };

            SetStyle(PanelButtonStyle);
            Button {
                x = 139; y = 211;
                font = Font20;
                label = "go";
                command =
                    function()
                        if gDialogTable.mode == 1 then
                            gfn_JokerGo();
                        else
                            luaBonusGo();
                        end
                    end
            };
        };
    };
}
