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

MakeDialog {
    name = "MemoryWizModal";

    Bitmap {
        name = "bmpBgAlpha";
        image = "gpx/screens/transparent_background";
        x = 0; y = 0;
    };

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

			Bitmap {
				image = "gpx/screens/trophy_icon_01";
				x = 33;
				y = 26;
			};

			Bitmap {
				image = "gpx/screens/trophy_icon_02";
				x = 492;
				y = 26;
			};

			Bitmap {
				image = "gpx/screens/score_text_bg";
				x = 33;
				y = 148;
			};

			clsText {
				x = kCenter; y = 40; w = 627; h = 50;
				label = "bonus level";
				font = Font48;
				flags = kHAlignCenter + kVAlignCenter;
				Scale = 0.6;
				Space = -10;
			};

			Text {
				x = 49; y = 165; w = 550; h = 40;
				label = "bonus completed";
				font = Font22;
				flags = kHAlignLeft + kVAlignTop;
			};

			Text {
				x = 268; y = 151; w = 249; h = 42;
				label = gDialogTable.complete;
				font = Font40;
				flags = kHAlignRight + kVAlignTop;
			};

			Bitmap {
				x = 51; y = 205;
				image = gDialogTable.tile;
			};

			Text {
				x = 107; y = 219; w = 100; h = 41;
				label = "#x    " .. gDialogTable.numberTiles;
				font = Font22;
				flags = kHAlignLeft + kVAlignTop;
			};

			Text {
				x = 268; y = 207; w = 249; h = 42;
				label = gDialogTable.score;
				font = Font40;
				flags = kHAlignRight + kVAlignTop;
			};

			Text {
				x = 50; y = 270; w = 150; h = 50;
				label = "bonus high score";
				font = Font22;
				flags = kHAlignLeft + kVAlignTop;
			};

			Text {
				x = 268; y = 255; w = 249; h = 42;
				label = gDialogTable.highScore;
				font = Font40;
				flags = kHAlignRight + kVAlignCenter;
			};

			SetStyle(PanelButtonStyle);
			Button {
				x = 239; y = 319;
				label = "continue";
				command =
					function()
						onEndLevel();
					end
			};
		};
	}
}
