let start_x = 0;
for (let span of tui.links[y]) {
chunks.push(escapeHTML(line.slice(start_x, span[0])));
- chunks.push('<a href="');
+ chunks.push('<a target="_blank" href="');
chunks.push(escapeHTML(span[2]));
chunks.push('">');
chunks.push(escapeHTML(line.slice(span[0], span[1])));
if (this.mode.name == 'control_tile_draw') {
tui.log_msg('@ finished tile protection drawing.')
}
- this.inputEl.focus();
this.map_mode = 'terrain + things';
this.tile_draw = false;
if (mode_name == 'admin_enter' && this.is_admin) {
mode_name = 'admin';
};
this.mode = this['mode_' + mode_name];
+ if (this.mode.has_input_prompt || this.mode.is_single_char_entry) {
+ this.inputEl.focus();
+ }
if (game.player_id in game.things && (this.mode.shows_info || this.mode.name == 'control_tile_draw')) {
explorer.position = game.things[game.player_id].position;
if (this.mode.shows_info) {
content += '\n';
} else if (this.mode.name == 'edit') {
content += "Available actions:\n";
+ if (game.tasks.includes('MOVE')) {
+ content += "[" + movement_keys_desc + "] – move player\n";
+ }
if (game.tasks.includes('FLATTEN_SURROUNDINGS')) {
content += "[" + tui.keys.flatten + "] – flatten surroundings\n";
}