Wire up the "change pack" button
This commit is contained in:
parent
06c4733e3f
commit
a43b7e1d37
@ -22,8 +22,10 @@
|
||||
<header id="header-pack">
|
||||
<h2 id="level-pack-name">Chip's Challenge Level Pack 1</h2>
|
||||
<nav>
|
||||
<button class="set-nav-return" type="button" disabled>Change pack</button>
|
||||
<button id="main-change-pack" type="button">Change pack</button>
|
||||
<!--
|
||||
<button id="player-edit" type="button">Return to editor</button>
|
||||
-->
|
||||
</nav>
|
||||
</header>
|
||||
<header id="header-level">
|
||||
|
||||
@ -1809,12 +1809,19 @@ class Conductor {
|
||||
}
|
||||
ev.target.blur();
|
||||
});
|
||||
document.querySelector('#main-change-pack').addEventListener('click', ev => {
|
||||
// TODO confirm
|
||||
this.switch_to_splash();
|
||||
});
|
||||
/*
|
||||
* FIXME restore, "return to editor" is bad text though
|
||||
document.querySelector('#player-edit').addEventListener('click', ev => {
|
||||
// TODO should be able to jump to editor if we started in the
|
||||
// player too! but should disable score tracking and have a revert
|
||||
// button
|
||||
this.switch_to_editor();
|
||||
});
|
||||
*/
|
||||
|
||||
this.update_nav_buttons();
|
||||
this.switch_to_splash();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user