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

helpFont = {
    titleFont,
    18,
    StandarColor
}

helpFont2 = {
    titleFont,
    20,
    Color(255, 254, 249, 255)
};

MakeDialog {
    name = "HelpScreen";

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

        --maxScreens = 8;
---[[
        -- Help 1
        Bitmap {
            name = "bmpHelp1";
            image = gLocalizedPath.."images/help/ae_help1";

            Text {
                name = "txtHelp01_01";
                label = "lblHelp01_01";
                font = helpFont;
                x = 71; y = 122;
                w = 660; h = 55;
            };
            Text {
                name = "txtHelp01_02";
                label = "lblHelp01_02";
                font = helpFont;
                x = 71; y = 290;
                w = 660; h = 55;
            };
            Text {
                name = "txtHelp01_03";
                label = "lblHelp01_03";
                font = helpFont;
                x = 143; y = 381;
                w = 330; h = 110;
            };
        };
--]]
---[[
        -- Help 2
        Bitmap {
            name = "bmpHelp2";
            image = gLocalizedPath.."images/help/ae_help2";

            Text {
                name = "txtHelp02_01";
                label = "lblHelp02_01";
                font = helpFont;
                x = 328; y = 132;
                w = 407; h = 70;
            };

            Text {
                name = "txtHelp02_01_02";
                label = "lblHelp02_01_02";
                font = helpFont2;
                x = 328; y = 202;
                w = 407; h = 40;
            };

            Text {
                name = "txtHelp02_02";
                label = "lblHelp02_02";
                font = helpFont;
                x = 78; y = 255;
                w = 650; h = 60;
            };
            Text {
                name = "txtHelp02_03";
                label = "lblHelp02_03";
                flags = kHAlignCenter;
                font = helpFont;
                x = 116; y = 482;
                w = 260; h = 40;
            };
            Text {
                name = "txtHelp02_04";
                label = "lblHelp02_04";
                flags = kHAlignCenter;
                font = helpFont;
                x = 408; y = 482;
                w = 260; h = 40;
            };
        };
--]]
---[[
        -- Help 3
        Bitmap {
            name = "bmpHelp3";
            image = gLocalizedPath.."images/help/ae_help3";

            Text {
                name = "txtHelp03_01";
                label = "lblHelp03_01";
                font = helpFont;
                x = 88; y = 137;
                w = 440; h = 85;
            };
            Text {
                name = "txtHelp03_02";
                label = "lblHelp03_02";
                font = helpFont;
                x = 260; y = 305;
                w = 450; h = 80;
            };
            Text {
                name = "txtHelp03_03";
                label = "lblHelp03_03";
                font = helpFont;
                x = 88; y = 450;
                w = 610; h = 55;
            };
        };
--]]
---[[
        -- Help 4
        Bitmap {
            name = "bmpHelp4";
            image = gLocalizedPath.."images/help/ae_help4";

            Text {
                name = "txtHelp04_01";
                label = "lblHelp04_01";
                font = helpFont;
                x = 250; y = 190;
                w = 450; h = 90;
            };
            Text {
                name = "txtHelp04_02";
                label = "lblHelp04_02";
                font = helpFont;
                x = 109; y = 367;
                w = 440; h = 95;
            };
        };
--]]
---[[
        -- Help 5
        Bitmap {
            name = "bmpHelp5";
            image = gLocalizedPath.."images/help/ae_help5";

            Text {
                name = "txtHelp05_01";
                label = "lblHelp05_01";
                font = helpFont;
                x = 87; y = 132;
                w = 420; h = 85;
            };
            Text {
                name = "txtHelp05_02";
                label = "lblHelp05_02";
                font = helpFont;
                x = 336; y = 270;
                w = 380; h = 85;
            };
            Text {
                name = "txtHelp05_03";
                label = "lblHelp05_03";
                font = helpFont;
                x = 87; y = 415;
                w = 370; h = 90;
            };
        };
--]]
---[[
        -- Help 6
        Bitmap {
            name = "bmpHelp6";
            image = gLocalizedPath.."images/help/ae_help6";

            Text {
                name = "txtHelp06_01";
                label = "lblHelp06_01";
                font = helpFont;
                x = 260; y = 179;
                w = 450; h = 120;
            };
            Text {
                name = "txtHelp06_02";
                label = "lblHelp06_02";
                font = helpFont;
                x = 101; y = 358;
                w = 395; h = 100;
            };
        };
--]]
---[[
        -- Help 7
        Bitmap {
            name = "bmpHelp7";
            image = gLocalizedPath.."images/help/ae_help7";

            Text {
                name = "txtHelp07_01";
                label = "lblHelp07_01";
                font = helpFont;
                x = 64; y = 124;
                w = 670; h = 55;
            };
            Text {
                name = "txtHelp07_02";
                label = "lblHelp07_02";
                font = helpFont;
                x = 64; y = 460;
                w = 670; h = 60;
            };
        };
--]]
---[[
        -- Help 8
        Bitmap {
            name = "bmpHelp8";
            image = gLocalizedPath.."images/help/ae_help8";

            Text {
                name = "txtHelp08_01";
                label = "lblHelp08_01";
                font = helpFont;
                x = 65; y = 121;
                w = 670; h = 70;
            };
            Text {
                name = "txtHelp08_03";
                label = "lblHelp08_03";
                font = helpFont;
                x = 68; y = 407;
                w = 410; h = 120;
            };
        };
--]]
---[[
        -- Help 9
        Bitmap {
            name = "bmpHelp9";
            image = gLocalizedPath.."images/help/ae_help9";

            Text {
                name = "txtHelp09_01";
                label = "lblHelp09_01";
                font = helpFont;
                x = 65; y = 125;
                w = 670; h = 50;
            };
            Text {
                name = "txtHelp09_02";
                label = "lblHelp09_02";
                font = helpFont;
                x = 391; y = 172;
                w = 340; h = 100;
            };
            Text {
                name = "txtHelp09_03";
                label = "lblHelp09_03";
                font = helpFont;
                x = 65; y = 403;
                w = 340; h = 140;
            };
        };
--]]

        SetStyle(ButtonStyle);
        Button {
            x = 96;
            y = 541;
            name = "btnBack";
            graphics = BackButtonGraphics;
            command = 
                function()
                    local processed = onPressedBackHelp();
                    if processed == false then
                        PopModal("HelpScreen");
                    end
                end
        };

        Button {
            x = 525;
            y = 541;
            name = "btnContinue";
            graphics = ContinueButtonGraphics;
            command = 
                function()
                    local processed = onPressedContinueHelp();
                    if processed == false then
                        PopModal("HelpScreen");
                    end
                end
        };
    };
---[[
    FadeWindow {
        w = 800;
        h = 600;
        name = "FadeWindow";
        Bitmap {
            image = "images/panelblack";
            name = "bmpPanelBlack";
            x = 0;
            y = 0;
        };
    };
--]]
}
