require("scripts/styles/dialogs/requestnamestyle.lua");
require("scripts/styles/dialogs/changeplayerstyle.lua")
require("scripts/styles/mainmenustyle.lua");
 
MakeDialog 
{
    WndSurveyBuildTeaser 
    {
	    x = kCenter, y = kCenter,
		w = kMax, h = kMax,
        
        Bitmap
        {
            image = "common/screens/survey_build/dialog",
            x = kCenter, y = kCenter,
        },
            
        SetStyle(SurveyBuildTitleStyle),
        
        Text 
        {
            x = kCenter + 110,
            y = kCenter - 68,
            w = 700, h = 300,
            flags = kHAlignCenter,
            label = "survey_build_message",
        },
        
        SetStyle(SurveyBuildContentStyle),
        Text 
        {
            x = kCenter - 260,
            y = kCenter + 70,
            w = 200, h = 300,
            flags = kHAlignCenter,
            label = "survey_build_features",
        },
        
        Text 
        {
            name = "txtScreenshot",
            x = kCenter - 260,
            y = kCenter + 170,
            w = 200, h = 300,
            flags = kHAlignCenter,
            label = "survey_build_minigames",
        },
        
        Bitmap
        {
            name = "screenshots",
            x = kCenter + 110,
            y = kCenter + 35,
            w = 520, h = 395,
            image = "common/screens/survey_build/1_tea",
        },
        
        -- Create the OK button
        SetStyle(OrangeButtonStyle),
        
        -- OK button
        BlgButton
        {
            name = "btnOK",
            x = 419, y = kCenter + 370,
            label = "ok",
            width = 300, height = 300,
            positionMatrix = {x = 10, y = 10},
            graphics =
            {
                "common/screens/dialog_box/confirm_red",
                "",
                "",
                "",
            },
            default = true,
            command = 
                function()
                    CloseWindow()
                    PostMessage(CreateNamedMessage(kQuitNow, "Quit"))
                end
        },
    }
}