gdjs._1042_1093_1086_1076Code = {};
gdjs._1042_1093_1086_1076Code.GDNewTextInputObjects1= [];
gdjs._1042_1093_1086_1076Code.GDNewTextInputObjects2= [];
gdjs._1042_1093_1086_1076Code.GDNewTiledSpriteObjects1= [];
gdjs._1042_1093_1086_1076Code.GDNewTiledSpriteObjects2= [];
gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects1= [];
gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects2= [];
gdjs._1042_1093_1086_1076Code.GDNewTextObjects1= [];
gdjs._1042_1093_1086_1076Code.GDNewTextObjects2= [];
gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects1= [];
gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects2= [];


gdjs._1042_1093_1086_1076Code.eventsList0 = function(runtimeScene) {

{

gdjs.copyArray(runtimeScene.getObjects("BlackSquareDecoratedButton"), gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects1);

let isConditionTrue_0 = false;
isConditionTrue_0 = false;
for (var i = 0, k = 0, l = gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects1.length;i<l;++i) {
    if ( gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects1[i].IsClicked((typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined)) ) {
        isConditionTrue_0 = true;
        gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects1[k] = gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects1[i];
        ++k;
    }
}
gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects1.length = k;
if (isConditionTrue_0) {
gdjs.copyArray(runtimeScene.getObjects("NewTextInput"), gdjs._1042_1093_1086_1076Code.GDNewTextInputObjects1);
{runtimeScene.getGame().getVariables().get("вход").setString((( gdjs._1042_1093_1086_1076Code.GDNewTextInputObjects1.length === 0 ) ? "" :gdjs._1042_1093_1086_1076Code.GDNewTextInputObjects1[0].getString()));
}{runtimeScene.getGame().getVariables().get("вход").setString(gdjs.evtTools.string.strAt(gdjs.evtTools.common.toString(gdjs.evtTools.variable.getVariableNumber(runtimeScene.getGame().getVariables().get("вход"))), 4) + gdjs.evtTools.string.strAt(gdjs.evtTools.common.toString(gdjs.evtTools.variable.getVariableNumber(runtimeScene.getGame().getVariables().get("вход"))), 5) + gdjs.evtTools.string.strAt(gdjs.evtTools.common.toString(gdjs.evtTools.variable.getVariableNumber(runtimeScene.getGame().getVariables().get("вход"))), 6));
}}

}


{


let isConditionTrue_0 = false;
{
gdjs.copyArray(runtimeScene.getObjects("NewText"), gdjs._1042_1093_1086_1076Code.GDNewTextObjects1);
{for(var i = 0, len = gdjs._1042_1093_1086_1076Code.GDNewTextObjects1.length ;i < len;++i) {
    gdjs._1042_1093_1086_1076Code.GDNewTextObjects1[i].setString(gdjs.evtTools.common.toString(gdjs.evtTools.variable.getVariableNumber(runtimeScene.getGame().getVariables().get("вход"))));
}
}}

}


{


let isConditionTrue_0 = false;
{
gdjs.copyArray(runtimeScene.getObjects("NewText"), gdjs._1042_1093_1086_1076Code.GDNewTextObjects1);
{runtimeScene.getGame().getVariables().get("моней").setString((( gdjs._1042_1093_1086_1076Code.GDNewTextObjects1.length === 0 ) ? "" :gdjs._1042_1093_1086_1076Code.GDNewTextObjects1[0].getString()));
}}

}


{

gdjs.copyArray(runtimeScene.getObjects("GreenButtonWithStoneFrame"), gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects1);

let isConditionTrue_0 = false;
isConditionTrue_0 = false;
for (var i = 0, k = 0, l = gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects1.length;i<l;++i) {
    if ( gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects1[i].IsClicked((typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined)) ) {
        isConditionTrue_0 = true;
        gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects1[k] = gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects1[i];
        ++k;
    }
}
gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects1.length = k;
if (isConditionTrue_0) {
{gdjs.evtTools.runtimeScene.pushScene(runtimeScene, "Кухня");
}}

}


};

gdjs._1042_1093_1086_1076Code.func = function(runtimeScene) {
runtimeScene.getOnceTriggers().startNewFrame();

gdjs._1042_1093_1086_1076Code.GDNewTextInputObjects1.length = 0;
gdjs._1042_1093_1086_1076Code.GDNewTextInputObjects2.length = 0;
gdjs._1042_1093_1086_1076Code.GDNewTiledSpriteObjects1.length = 0;
gdjs._1042_1093_1086_1076Code.GDNewTiledSpriteObjects2.length = 0;
gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects1.length = 0;
gdjs._1042_1093_1086_1076Code.GDBlackSquareDecoratedButtonObjects2.length = 0;
gdjs._1042_1093_1086_1076Code.GDNewTextObjects1.length = 0;
gdjs._1042_1093_1086_1076Code.GDNewTextObjects2.length = 0;
gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects1.length = 0;
gdjs._1042_1093_1086_1076Code.GDGreenButtonWithStoneFrameObjects2.length = 0;

gdjs._1042_1093_1086_1076Code.eventsList0(runtimeScene);

return;

}

gdjs['_1042_1093_1086_1076Code'] = gdjs._1042_1093_1086_1076Code;
