<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<GUI onOpen="onOpen" onClose="onClose" onCreate="onCreate">
    <GuiElement profile="newLayer" />
    <Bitmap profile="dialogFullscreenBg" id="dialogBg" />

    <GuiElement profile="fs25_dialogBg" id="dialogElement" size="1200px 600px" >
        <ThreePartBitmap profile="fs25_dialogBgMiddleSmall" />
        <ThreePartBitmap profile="fs25_dialogBgTopSmall" />
        <ThreePartBitmap profile="fs25_dialogBgBottom" />

        <GuiElement profile="fs25_dialogContentContainer" >
            <Text profile="fs25_dialogTitle" id="titleText" text="$l10n_ui_tramlines" position="0px -30px" />
            <Text profile="fs25_dialogTitle" id="titleText" text="$l10n_ui_tramlineDescription" textSize="15px" textMaxNumLines="2" position="0px -70px" />

            <GuiElement profile="fs25_aiSettingsBoxContainer" >
                <ScrollingLayout profile="fs25_aiSettingsBox" id="settingsBox">
                    <Bitmap profile="fs25_aiSettingsContainer">
                        <Text profile="fs25_aiSettingsTemplateText" text="$l10n_ui_tramlineWidth" />
                        <MultiTextOption profile="fs25_aiSettingsMultiTextOption" id="implementWidthOption" onClick="onClickImplementWidth" focusInit="onOpen"/>
                    </Bitmap>

                    <Bitmap profile="fs25_aiSettingsContainer">
                        <Text profile="fs25_aiSettingsTemplateText" text="$l10n_ai_settingWorkDirection" />
                        <MultiTextOption profile="fs25_aiSettingsMultiTextOption" id="workDirectionOption" onClick="onClickWorkDirection" />
                    </Bitmap>

                    <Bitmap profile="fs25_aiSettingsContainer">
                        <Text profile="fs25_aiSettingsTemplateText" text="$l10n_ui_tramlineSpacing" />
                        <MultiTextOption profile="fs25_aiSettingsMultiTextOption" id="spacingOption" onClick="onClickSpacing" />
                    </Bitmap>
                </ScrollingLayout>
            </GuiElement>

            <GuiElement profile="fs25_aiSettingsMapContainer" id="mapBox">
                <InGameMapPreview profile="fs25_aiSettingsIngameMap" id="ingameMapElement" onDrawPostIngameMapHotspots="onDrawPostIngameMapHotspots"/>
                <Text profile="fs25_aiSettingsNoFieldFound" id="noFieldFoundText" text="$l10n_ui_aiSettingsFieldNotFound" />
                <Text profile="fs25_aiSettingsNoFieldFound" id="tramlinesDisabledText" text="$l10n_ui_tramlinesDisabled" />
                <Text profile="fs25_aiSettingsNoFieldFound" id="fieldNotSupportedText" text="$l10n_ui_aiSettingsFieldNotSupported" />
                <Animation profile="fs25_aiSettingsLoadingAnimation" id="loadingAnimation" visible="false" />
                <Bitmap profile="fs25_aiSettingsWorkDirection" id="workDirectionArrow"/>
            </GuiElement>

            <ThreePartBitmap profile="fs25_lineSeparatorTop" absoluteSizeOffset="100px 0px" position="0px -120px" />
        </GuiElement>

        <BoxLayout profile="fs25_dialogButtonBox" >
            <Button profile="buttonBack" id="backButton" onClick="onClickBack" text="$l10n_button_back" />
            <Bitmap profile="fs25_dialogButtonBoxSeparator" />
            <Button profile="buttonOK" id="okButton" onClick="onClickOk" text="$l10n_button_ok" />
        </BoxLayout>
    </GuiElement>
</GUI>
