private void initMenuItems() {
        menuItemFileOpen.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                var fileChooser = new FileChooser();
                var selected = fileChooser.showOpenDialog(null);
                if (selected != null) {
                    //TODO: file was choosen;
                    ifmlEngine.loadStory(selected);
                }
            }
        });
        menuItemFileRestart.setDisable(true);
        menuItemFileRestart.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                //TODO: Ask You are sure ?
                ifmlEngine.restart();
            }
        });
        menuItemFileSave.setDisable(true);
        menuItemFileLoad.setDisable(true);
        menuItemFileExit.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                //TODO: Add question: You are really want to exit.
                Platform.exit();
            }
        });
        menuItemLibraryCatalog.setDisable(true);
        menuItemLibraryImport.setDisable(true);
        menuItemSettingsCheat.setDisable(true);
        menuItemSettingsSettings.setDisable(true);
    }
private void initMenuItems() {
        menuItemFileOpen.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                var fileChooser = new FileChooser();
                var selected = fileChooser.showOpenDialog(null);
                if (selected != null) {
                   
                    ifmlEngine.loadStory(selected);
                }
            }
        });
        menuItemFileRestart.setDisable(true);
        menuItemFileRestart.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
               
                ifmlEngine.restart();
            }
        });
        menuItemFileSave.setDisable(true);
        menuItemFileLoad.setDisable(true);
        menuItemFileExit.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
               
                Platform.exit();
            }
        });
        menuItemLibraryCatalog.setDisable(true);
        menuItemLibraryImport.setDisable(true);
        menuItemSettingsCheat.setDisable(true);
        menuItemSettingsSettings.setDisable(true);
    }
private void initmenuitems() { menuitemfileopen.setonaction(new eventhandler<actionevent>() { @override public void handle(actionevent event) { var filechooser = new filechooser(); var selected = filechooser.showopendialog(null); if (selected != null) { ifmlengine.loadstory(selected); } } }); menuitemfilerestart.setdisable(true); menuitemfilerestart.setonaction(new eventhandler<actionevent>() { @override public void handle(actionevent event) { ifmlengine.restart(); } }); menuitemfilesave.setdisable(true); menuitemfileload.setdisable(true); menuitemfileexit.setonaction(new eventhandler<actionevent>() { @override public void handle(actionevent event) { platform.exit(); } }); menuitemlibrarycatalog.setdisable(true); menuitemlibraryimport.setdisable(true); menuitemsettingscheat.setdisable(true); menuitemsettingssettings.setdisable(true); }