#1235 -- option to skip the intro dialog

This commit is contained in:
Peter Cottle 2025-03-30 09:02:20 -06:00
parent 79b5471273
commit 55fa0a4f35
3 changed files with 9 additions and 6 deletions

View file

@ -46,10 +46,12 @@ var LevelBuilder = Level.extend({
this.options = options;
var locale = LocaleStore.getLocale();
options.level.startDialog = {};
options.level.startDialog[locale] = {
childViews: intl.getDialog(require('../dialogs/levelBuilder'))
};
if (!options.skipIntro) {
options.level.startDialog = {};
options.level.startDialog[locale] = {
childViews: intl.getDialog(require('../dialogs/levelBuilder')),
};
}
// if we are editing a level our behavior is a bit different
var editLevelJSON;