}
document.getElementById("help").disabled = false;
if (this.mode.name == 'play' || this.mode.name == 'study' || this.mode.name == 'control_tile_draw') {
- document.getElementById("move_left").disabled = false;
- document.getElementById("move_right").disabled = false;
- if (game.map_geometry == 'Hex') {
- document.getElementById("move_upleft").disabled = false;
- document.getElementById("move_upright").disabled = false;
- document.getElementById("move_downleft").disabled = false;
- document.getElementById("move_downright").disabled = false;
- } else {
- document.getElementById("move_up").disabled = false;
- document.getElementById("move_down").disabled = false;
+ for (const move_key of document.querySelectorAll('[id^="move_"]')) {
+ move_key.disabled = false;
}
}
if (!this.mode.is_intro && this.mode.name != 'play') {