require "scripts/style"

kTutorNum = 1;

MakeDialog
{
	-- Name the modal dialog
	name="tutorGamePlay_"..kTutorNum,
	Bitmap
	{
		image="backgrounds/largedialog",
		x = kCenter,
		y = kCenter,

        Text
        {
            font = StandardButtonFontFour,
            name = "tutorGamePlay"..kTutorNum.."Title",
            x=kCenter,y=40,
            w=335,h=30,
            flags = kHAlignCenter + kVAlignCenter,
            label = "tutorGameplay0"..kTutorNum.."Title"
        };

        Text
        {
            font = StandardButtonFont,
            name = "tutorGamePlay"..kTutorNum.."Description1",
            x=kCenter,y=80,w=335,h=100,
            flags = kHAlignCenter + kVAlignCenter,
            label = "tutorGameplay0"..kTutorNum.."Description1"
        };
        Bitmap
        {
            name="swapAnim1",
            image="pics/onetime_dialog_gfx/swap1",
            x=kCenter-100,
            y=190,
        },
        Bitmap
        {
            name="swapAnim2",
            image="pics/onetime_dialog_gfx/swap2",
            x=kCenter+100,
            y=190,
        },
-- Types
        Text
        {
            font = StandardButtonFont,
            name = "tutorGamePlay"..kTutorNum.."Description2",
            x=kCenter,y=320,w=335,h=30,
            flags = kHAlignCenter + kVAlignCenter,
            label = "tutorGameplay0"..kTutorNum.."Description2"
        };
-- match3
        Bitmap
        {
            name="match3Pic",
            image="pics/matchimages/match3",
            x=kCenter-82,
            y=340,
            scale=0.7
        },
        Text
        {
            font = StandardButtonFont,
            name = "tutorGamePlay"..kTutorNum.."Description3",
            x=kCenter+75,y=345,w=185,h=30,
            flags = kHAlignLeft + kVAlignCenter,
            label = "tutorGameplay0"..kTutorNum.."Description3"
        };
-- match4
        Bitmap
        {
            name="match4Pic",
            image="pics/matchimages/match4",
            x=kCenter-82,
            y=375,
            scale=0.7
        },
        Text
        {
            font = StandardButtonFont,
            name = "tutorGamePlay"..kTutorNum.."Description4",
            x=kCenter+75,y=380,w=185,h=30,
            flags = kHAlignLeft + kVAlignCenter,
            label = "tutorGameplay0"..kTutorNum.."Description4"
        };
-- match5
        Bitmap
        {
            name="match5Pic",
            image="pics/matchimages/match5p",
            x=kCenter-75,
            y=410,
            scale=0.7
        },
        Text
        {
            font = StandardButtonFont,
            name = "tutorGamePlay"..kTutorNum.."Description5",
            x=kCenter+75,y=415,w=185,h=30,
            flags = kHAlignLeft + kVAlignCenter,
            label = "tutorGameplay0"..kTutorNum.."Description5"
        };
        SetStyle(SmallEmptyRoundButtonStyle),
        Button
        {
            x = kCenter+70,
            y = kMax-80,
            name="tutorGamePlay"..kTutorNum.."Next",
            label="next",
            --close=true,
            default=true,
            type = kPush,
            command=
                function()
                    PopModal("tutorGamePlay_"..kTutorNum);
                    DoModal("scripts/tutor_GamePlay_"..(kTutorNum+1)..".lua");
                end            
        },
        Button
        {
            x = kCenter-70,
            y = kMax-80,
            name="tutorGamePlay"..kTutorNum.."Quit",
            label="close",
            close=true,
            cancel=true,
            --default=true,
            type = kPush,
        },        
	},
}
