gdjs.Param__4524tresCode = {};


gdjs.Param__4524tresCode.GDToolbarObjects1= [];
gdjs.Param__4524tresCode.GDToolbarObjects2= [];
gdjs.Param__4524tresCode.GDTitreObjects1= [];
gdjs.Param__4524tresCode.GDTitreObjects2= [];
gdjs.Param__4524tresCode.GDMenuObjects1= [];
gdjs.Param__4524tresCode.GDMenuObjects2= [];
gdjs.Param__4524tresCode.GDSliderObjects1= [];
gdjs.Param__4524tresCode.GDSliderObjects2= [];
gdjs.Param__4524tresCode.GDSlideObjects1= [];
gdjs.Param__4524tresCode.GDSlideObjects2= [];
gdjs.Param__4524tresCode.GDSorryObjects1= [];
gdjs.Param__4524tresCode.GDSorryObjects2= [];
gdjs.Param__4524tresCode.GDLanguesObjects1= [];
gdjs.Param__4524tresCode.GDLanguesObjects2= [];
gdjs.Param__4524tresCode.GDLangueObjects1= [];
gdjs.Param__4524tresCode.GDLangueObjects2= [];
gdjs.Param__4524tresCode.GDSonOnOffObjects1= [];
gdjs.Param__4524tresCode.GDSonOnOffObjects2= [];
gdjs.Param__4524tresCode.GDBandeParametresObjects1= [];
gdjs.Param__4524tresCode.GDBandeParametresObjects2= [];
gdjs.Param__4524tresCode.GDSonsObjects1= [];
gdjs.Param__4524tresCode.GDSonsObjects2= [];
gdjs.Param__4524tresCode.GDNouvelObjetObjects1= [];
gdjs.Param__4524tresCode.GDNouvelObjetObjects2= [];
gdjs.Param__4524tresCode.GDTextObjects1= [];
gdjs.Param__4524tresCode.GDTextObjects2= [];

gdjs.Param__4524tresCode.conditionTrue_0 = {val:false};
gdjs.Param__4524tresCode.condition0IsTrue_0 = {val:false};
gdjs.Param__4524tresCode.condition1IsTrue_0 = {val:false};
gdjs.Param__4524tresCode.condition2IsTrue_0 = {val:false};
gdjs.Param__4524tresCode.condition3IsTrue_0 = {val:false};
gdjs.Param__4524tresCode.condition4IsTrue_0 = {val:false};
gdjs.Param__4524tresCode.condition5IsTrue_0 = {val:false};
gdjs.Param__4524tresCode.conditionTrue_1 = {val:false};
gdjs.Param__4524tresCode.condition0IsTrue_1 = {val:false};
gdjs.Param__4524tresCode.condition1IsTrue_1 = {val:false};
gdjs.Param__4524tresCode.condition2IsTrue_1 = {val:false};
gdjs.Param__4524tresCode.condition3IsTrue_1 = {val:false};
gdjs.Param__4524tresCode.condition4IsTrue_1 = {val:false};
gdjs.Param__4524tresCode.condition5IsTrue_1 = {val:false};

gdjs.Param__4524tresCode.func = function(runtimeScene, context) {
context.startNewFrame();
gdjs.Param__4524tresCode.GDToolbarObjects1.length = 0;
gdjs.Param__4524tresCode.GDToolbarObjects2.length = 0;
gdjs.Param__4524tresCode.GDTitreObjects1.length = 0;
gdjs.Param__4524tresCode.GDTitreObjects2.length = 0;
gdjs.Param__4524tresCode.GDMenuObjects1.length = 0;
gdjs.Param__4524tresCode.GDMenuObjects2.length = 0;
gdjs.Param__4524tresCode.GDSliderObjects1.length = 0;
gdjs.Param__4524tresCode.GDSliderObjects2.length = 0;
gdjs.Param__4524tresCode.GDSlideObjects1.length = 0;
gdjs.Param__4524tresCode.GDSlideObjects2.length = 0;
gdjs.Param__4524tresCode.GDSorryObjects1.length = 0;
gdjs.Param__4524tresCode.GDSorryObjects2.length = 0;
gdjs.Param__4524tresCode.GDLanguesObjects1.length = 0;
gdjs.Param__4524tresCode.GDLanguesObjects2.length = 0;
gdjs.Param__4524tresCode.GDLangueObjects1.length = 0;
gdjs.Param__4524tresCode.GDLangueObjects2.length = 0;
gdjs.Param__4524tresCode.GDSonOnOffObjects1.length = 0;
gdjs.Param__4524tresCode.GDSonOnOffObjects2.length = 0;
gdjs.Param__4524tresCode.GDBandeParametresObjects1.length = 0;
gdjs.Param__4524tresCode.GDBandeParametresObjects2.length = 0;
gdjs.Param__4524tresCode.GDSonsObjects1.length = 0;
gdjs.Param__4524tresCode.GDSonsObjects2.length = 0;
gdjs.Param__4524tresCode.GDNouvelObjetObjects1.length = 0;
gdjs.Param__4524tresCode.GDNouvelObjetObjects2.length = 0;
gdjs.Param__4524tresCode.GDTextObjects1.length = 0;
gdjs.Param__4524tresCode.GDTextObjects2.length = 0;


{

gdjs.Param__4524tresCode.GDMenuObjects1.createFrom(runtimeScene.getObjects("Menu"));

gdjs.Param__4524tresCode.condition0IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition1IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition2IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition3IsTrue_0.val = false;
{
gdjs.Param__4524tresCode.condition0IsTrue_0.val = gdjs.evtTools.input.isMouseButtonPressed(runtimeScene, "Left");
}if ( gdjs.Param__4524tresCode.condition0IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.Param__4524tresCode.GDMenuObjects1.length;i<l;++i) {
    if ( gdjs.Param__4524tresCode.GDMenuObjects1[i].cursorOnObject(runtimeScene, false) ) {
        gdjs.Param__4524tresCode.condition1IsTrue_0.val = true;
        gdjs.Param__4524tresCode.GDMenuObjects1[k] = gdjs.Param__4524tresCode.GDMenuObjects1[i];
        ++k;
    }
}
gdjs.Param__4524tresCode.GDMenuObjects1.length = k;}if ( gdjs.Param__4524tresCode.condition1IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.Param__4524tresCode.GDMenuObjects1.length;i<l;++i) {
    if ( gdjs.Param__4524tresCode.GDMenuObjects1[i].getAnimation() == 0 ) {
        gdjs.Param__4524tresCode.condition2IsTrue_0.val = true;
        gdjs.Param__4524tresCode.GDMenuObjects1[k] = gdjs.Param__4524tresCode.GDMenuObjects1[i];
        ++k;
    }
}
gdjs.Param__4524tresCode.GDMenuObjects1.length = k;}if ( gdjs.Param__4524tresCode.condition2IsTrue_0.val ) {
{
{gdjs.Param__4524tresCode.conditionTrue_1 = gdjs.Param__4524tresCode.condition3IsTrue_0;
gdjs.Param__4524tresCode.conditionTrue_1.val = context.triggerOnce(147532464);
}
}}
}
}
if (gdjs.Param__4524tresCode.condition3IsTrue_0.val) {
{gdjs.evtTools.runtimeScene.changeScene(runtimeScene, "Menu");
}
{ //Subevents

{


{gdjs.evtTools.storage.writeNumberInJSONFile("Settings.txt", "Langue", gdjs.evtTools.common.getVariableNumber(runtimeScene.getGame().getVariables().getFromIndex(1)));
}{gdjs.evtTools.storage.writeNumberInJSONFile("Settings.txt", "Son", gdjs.evtTools.common.getVariableNumber(runtimeScene.getGame().getVariables().getFromIndex(2)));
}
}


{



}

} //End of subevents
}

}


{

gdjs.Param__4524tresCode.GDLangueObjects1.createFrom(runtimeScene.getObjects("Langue"));

gdjs.Param__4524tresCode.condition0IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition1IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition2IsTrue_0.val = false;
{
gdjs.Param__4524tresCode.condition0IsTrue_0.val = gdjs.evtTools.input.isMouseButtonPressed(runtimeScene, "Left");
}if ( gdjs.Param__4524tresCode.condition0IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.Param__4524tresCode.GDLangueObjects1.length;i<l;++i) {
    if ( gdjs.Param__4524tresCode.GDLangueObjects1[i].cursorOnObject(runtimeScene, false) ) {
        gdjs.Param__4524tresCode.condition1IsTrue_0.val = true;
        gdjs.Param__4524tresCode.GDLangueObjects1[k] = gdjs.Param__4524tresCode.GDLangueObjects1[i];
        ++k;
    }
}
gdjs.Param__4524tresCode.GDLangueObjects1.length = k;}if ( gdjs.Param__4524tresCode.condition1IsTrue_0.val ) {
{
{gdjs.Param__4524tresCode.conditionTrue_1 = gdjs.Param__4524tresCode.condition2IsTrue_0;
gdjs.Param__4524tresCode.conditionTrue_1.val = context.triggerOnce(147776448);
}
}}
}
if (gdjs.Param__4524tresCode.condition2IsTrue_0.val) {
{runtimeScene.getGame().getVariables().getFromIndex(1).setNumber((( gdjs.Param__4524tresCode.GDLangueObjects1.length === 0 ) ? 0 :gdjs.Param__4524tresCode.GDLangueObjects1[0].getAnimation()));
}}

}


{

gdjs.Param__4524tresCode.GDSonsObjects1.createFrom(runtimeScene.getObjects("Sons"));

gdjs.Param__4524tresCode.condition0IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition1IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition2IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition3IsTrue_0.val = false;
{
gdjs.Param__4524tresCode.condition0IsTrue_0.val = gdjs.evtTools.input.isMouseButtonPressed(runtimeScene, "Left");
}if ( gdjs.Param__4524tresCode.condition0IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.Param__4524tresCode.GDSonsObjects1.length;i<l;++i) {
    if ( gdjs.Param__4524tresCode.GDSonsObjects1[i].getAnimation() <= 1 ) {
        gdjs.Param__4524tresCode.condition1IsTrue_0.val = true;
        gdjs.Param__4524tresCode.GDSonsObjects1[k] = gdjs.Param__4524tresCode.GDSonsObjects1[i];
        ++k;
    }
}
gdjs.Param__4524tresCode.GDSonsObjects1.length = k;}if ( gdjs.Param__4524tresCode.condition1IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.Param__4524tresCode.GDSonsObjects1.length;i<l;++i) {
    if ( gdjs.Param__4524tresCode.GDSonsObjects1[i].cursorOnObject(runtimeScene, false) ) {
        gdjs.Param__4524tresCode.condition2IsTrue_0.val = true;
        gdjs.Param__4524tresCode.GDSonsObjects1[k] = gdjs.Param__4524tresCode.GDSonsObjects1[i];
        ++k;
    }
}
gdjs.Param__4524tresCode.GDSonsObjects1.length = k;}if ( gdjs.Param__4524tresCode.condition2IsTrue_0.val ) {
{
{gdjs.Param__4524tresCode.conditionTrue_1 = gdjs.Param__4524tresCode.condition3IsTrue_0;
gdjs.Param__4524tresCode.conditionTrue_1.val = context.triggerOnce(147531064);
}
}}
}
}
if (gdjs.Param__4524tresCode.condition3IsTrue_0.val) {
{runtimeScene.getGame().getVariables().getFromIndex(2).setNumber((( gdjs.Param__4524tresCode.GDSonsObjects1.length === 0 ) ? 0 :gdjs.Param__4524tresCode.GDSonsObjects1[0].getAnimation()));
}}

}


{

gdjs.Param__4524tresCode.GDSlideObjects1.createFrom(runtimeScene.getObjects("Slide"));

gdjs.Param__4524tresCode.condition0IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition1IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition2IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition3IsTrue_0.val = false;
gdjs.Param__4524tresCode.condition4IsTrue_0.val = false;
{
gdjs.Param__4524tresCode.condition0IsTrue_0.val = gdjs.evtTools.input.isMouseButtonPressed(runtimeScene, "Left");
}if ( gdjs.Param__4524tresCode.condition0IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.Param__4524tresCode.GDSlideObjects1.length;i<l;++i) {
    if ( gdjs.Param__4524tresCode.GDSlideObjects1[i].cursorOnObject(runtimeScene, false) ) {
        gdjs.Param__4524tresCode.condition1IsTrue_0.val = true;
        gdjs.Param__4524tresCode.GDSlideObjects1[k] = gdjs.Param__4524tresCode.GDSlideObjects1[i];
        ++k;
    }
}
gdjs.Param__4524tresCode.GDSlideObjects1.length = k;}if ( gdjs.Param__4524tresCode.condition1IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.Param__4524tresCode.GDSlideObjects1.length;i<l;++i) {
    if ( gdjs.Param__4524tresCode.GDSlideObjects1[i].getAnimation() == 0 ) {
        gdjs.Param__4524tresCode.condition2IsTrue_0.val = true;
        gdjs.Param__4524tresCode.GDSlideObjects1[k] = gdjs.Param__4524tresCode.GDSlideObjects1[i];
        ++k;
    }
}
gdjs.Param__4524tresCode.GDSlideObjects1.length = k;}if ( gdjs.Param__4524tresCode.condition2IsTrue_0.val ) {
{
gdjs.Param__4524tresCode.condition3IsTrue_0.val = gdjs.evtTools.input.getMouseX(runtimeScene, "", 0) > 10+((( gdjs.Param__4524tresCode.GDSlideObjects1.length === 0 ) ? 0 :gdjs.Param__4524tresCode.GDSlideObjects1[0].getWidth())/2);
}if ( gdjs.Param__4524tresCode.condition3IsTrue_0.val ) {
{
gdjs.Param__4524tresCode.condition4IsTrue_0.val = gdjs.evtTools.input.getMouseX(runtimeScene, "", 0) < 300-((( gdjs.Param__4524tresCode.GDSlideObjects1.length === 0 ) ? 0 :gdjs.Param__4524tresCode.GDSlideObjects1[0].getWidth())/2);
}}
}
}
}
if (gdjs.Param__4524tresCode.condition4IsTrue_0.val) {
{for(var i = 0, len = gdjs.Param__4524tresCode.GDSlideObjects1.length ;i < len;++i) {
    gdjs.Param__4524tresCode.GDSlideObjects1[i].setX(gdjs.evtTools.input.getMouseX(runtimeScene, "", 0)-((gdjs.Param__4524tresCode.GDSlideObjects1[i].getWidth())/2));
}
}}

}


{

gdjs.Param__4524tresCode.GDLangueObjects1.createFrom(runtimeScene.getObjects("Langue"));
gdjs.Param__4524tresCode.GDSlideObjects1.createFrom(runtimeScene.getObjects("Slide"));
gdjs.Param__4524tresCode.GDSonOnOffObjects1.createFrom(runtimeScene.getObjects("SonOnOff"));
gdjs.Param__4524tresCode.GDSonsObjects1.createFrom(runtimeScene.getObjects("Sons"));
gdjs.Param__4524tresCode.GDTextObjects1.createFrom(runtimeScene.getObjects("Text"));

{gdjs.evtTools.camera.setCameraX(runtimeScene, 5*((( gdjs.Param__4524tresCode.GDSlideObjects1.length === 0 ) ? 0 :gdjs.Param__4524tresCode.GDSlideObjects1[0].getPointX(""))), "Déroulable", 0);
}{for(var i = 0, len = gdjs.Param__4524tresCode.GDTextObjects1.length ;i < len;++i) {
    gdjs.Param__4524tresCode.GDTextObjects1[i].setAnimation(gdjs.evtTools.common.getVariableNumber(runtimeScene.getGame().getVariables().getFromIndex(1)));
}
}{for(var i = 0, len = gdjs.Param__4524tresCode.GDSonOnOffObjects1.length ;i < len;++i) {
    gdjs.Param__4524tresCode.GDSonOnOffObjects1[i].setAnimation(gdjs.evtTools.common.getVariableNumber(runtimeScene.getGame().getVariables().getFromIndex(1)));
}
}{for(var i = 0, len = gdjs.Param__4524tresCode.GDSonOnOffObjects1.length ;i < len;++i) {
    gdjs.Param__4524tresCode.GDSonOnOffObjects1[i].setDirectionOrAngle(gdjs.evtTools.common.getVariableNumber(runtimeScene.getGame().getVariables().getFromIndex(2)));
}
}{for(var i = 0, len = gdjs.Param__4524tresCode.GDSonsObjects1.length ;i < len;++i) {
    gdjs.Param__4524tresCode.GDSonsObjects1[i].hide();
}
for(var i = 0, len = gdjs.Param__4524tresCode.GDLangueObjects1.length ;i < len;++i) {
    gdjs.Param__4524tresCode.GDLangueObjects1[i].hide();
}
}
}


{

gdjs.Param__4524tresCode.GDTitreObjects1.createFrom(runtimeScene.getObjects("Titre"));

gdjs.Param__4524tresCode.condition0IsTrue_0.val = false;
{
gdjs.Param__4524tresCode.condition0IsTrue_0.val = gdjs.evtTools.common.getVariableNumber(runtimeScene.getGame().getVariables().getFromIndex(1)) == 1;
}if (gdjs.Param__4524tresCode.condition0IsTrue_0.val) {
{for(var i = 0, len = gdjs.Param__4524tresCode.GDTitreObjects1.length ;i < len;++i) {
    gdjs.Param__4524tresCode.GDTitreObjects1[i].setString("parametres");
}
}}

}


{

gdjs.Param__4524tresCode.GDTitreObjects1.createFrom(runtimeScene.getObjects("Titre"));

gdjs.Param__4524tresCode.condition0IsTrue_0.val = false;
{
gdjs.Param__4524tresCode.condition0IsTrue_0.val = gdjs.evtTools.common.getVariableNumber(runtimeScene.getGame().getVariables().getFromIndex(1)) == 0;
}if (gdjs.Param__4524tresCode.condition0IsTrue_0.val) {
{for(var i = 0, len = gdjs.Param__4524tresCode.GDTitreObjects1.length ;i < len;++i) {
    gdjs.Param__4524tresCode.GDTitreObjects1[i].setString("settings");
}
}}

}


{



}

return;
}
gdjs['Param__4524tresCode']= gdjs.Param__4524tresCode;
