X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_structured?a=blobdiff_plain;f=rogue_chat.html;h=49fdda0bc8480e7ef0bd2577d63dd6effa031625;hb=b03c50a4922dfd0017712958b8a317a7bd612c54;hp=02fb9a672aac937e4c006f20d5af7c30e5a2687e;hpb=85992bcb503cbe2a7bf7cd2d7ff54ca0ad7032d7;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index 02fb9a6..49fdda0 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -613,13 +613,15 @@ let tui = { 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) { @@ -966,6 +968,9 @@ let tui = { 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"; }