- tui.log_msg("");
- tui.log_msg("HELP", 1);
- tui.log_msg("chat mode commands:", 1);
- tui.log_msg("");
- tui.log_msg("/login USER - register as USER", 3);
- tui.log_msg("/msg USER TEXT - send TEXT to USER", 3);
- tui.log_msg("/help - show this help", 3);
- tui.log_msg("/play - switch to game mode", 3);
- tui.log_msg("");
- tui.log_msg("map mode commands:", 1);
- tui.log_msg("w, a, s, d - move avatar", 3);
- tui.log_msg("f - flatten surroundings", 3);
- tui.log_msg("e - write following ASCII character", 3);
- tui.log_msg("c - switch to chat mode", 3);
- tui.log_msg("");
+ this.log_msg("");
+ this.log_msg("HELP");
+ this.log_msg("");
+ this.log_msg("chat mode commands:");
+ this.log_msg(":nick NAME - re-name yourself to NAME");
+ this.log_msg(":msg USER TEXT - send TEXT to USER");
+ this.log_msg(":help - show this help");
+ this.log_msg(":play or :p - switch to play mode");
+ this.log_msg(":study or :s - switch to study mode");
+ this.log_msg("");
+ this.log_msg("play mode commands:");
+ this.log_msg("w, a, s, d - move avatar");
+ this.log_msg("f - flatten surroundings");
+ this.log_msg("e - write following ASCII character");
+ this.log_msg("c - switch to chat mode");
+ this.log_msg("? - switch to study mode");
+ this.log_msg("");
+ this.log_msg("study mode commands:");
+ this.log_msg("w, a, s, d - move question mark");
+ this.log_msg("A - annotate terrain");
+ this.log_msg("c - switch to chat mode");
+ this.log_msg("p - switch to play mode");
+ this.log_msg("");
+ },
+ draw_info: function() {
+ terminal.drawBox(this.height_header, this.window_width, terminal.rows - this.height_header - this.height_input, this.window_width);
+ let lines = this.msg_into_lines_of_width(explorer.get_info(), this.window_width);
+ for (let y = this.height_header, i = 0; y < terminal.rows && i < lines.length; y++, i++) {
+ terminal.write(y, this.window_width, lines[i]);
+ }