Update the pack name when changing it in the editor

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-06 19:23:19 -07:00
parent aeac5c285b
commit e754e483ec

View File

@ -2099,8 +2099,6 @@ class Conductor {
}; };
} }
this.level_pack_name_el.textContent = stored_game.title;
this.player.load_game(stored_game); this.player.load_game(stored_game);
this.editor.load_game(stored_game); this.editor.load_game(stored_game);
@ -2129,6 +2127,7 @@ class Conductor {
} }
update_level_title() { update_level_title() {
this.level_pack_name_el.textContent = this.stored_game.title;
this.level_name_el.textContent = `Level ${this.stored_level.number}${this.stored_level.title}`; this.level_name_el.textContent = `Level ${this.stored_level.number}${this.stored_level.title}`;
document.title = `${this.stored_level.title} [#${this.stored_level.number}] — ${this.stored_game.title}${PAGE_TITLE}`; document.title = `${this.stored_level.title} [#${this.stored_level.number}] — ${this.stored_game.title}${PAGE_TITLE}`;