x to farlook, now playable with 0 mouse input

This commit is contained in:
Llywelwyn 2023-08-30 03:13:46 +01:00
parent 81a48d5a6e
commit 7da00ed2b1
5 changed files with 82 additions and 4 deletions

View file

@ -48,6 +48,8 @@ pub use identify_menu::*;
mod tooltip;
pub use cheat_menu::*;
use crate::data::events::*;
mod farlook;
pub use farlook::*;
/// Gives a popup box with a message and a title, and waits for a keypress.
#[allow(unused)]
@ -338,7 +340,7 @@ pub fn draw_ui(ecs: &World, ctx: &mut Rltk) {
ctx.draw_hollow_box(0, 9, 70, 42, RGB::named(rltk::WHITE), RGB::named(rltk::BLACK)); // Camera box
ctx.draw_hollow_box(0, 52, 70, 3, RGB::named(rltk::WHITE), RGB::named(rltk::BLACK)); // Stats box
ctx.draw_hollow_box(71, 0, 33, 55, RGB::named(rltk::WHITE), RGB::named(rltk::BLACK)); // Side box
tooltip::draw_tooltips(ecs, ctx);
tooltip::draw_tooltips(ecs, ctx, None);
}
pub fn get_input_direction(
@ -680,7 +682,7 @@ pub fn show_help(ctx: &mut Rltk) -> YesNoResult {
y += 1;
ctx.print(x, y, "o open c close");
y += 1;
ctx.print(x, y, "f force");
ctx.print(x, y, "f force x farlook");
y += 2;
ctx.print_color(x, y, RGB::named(rltk::GREEN), RGB::named(rltk::BLACK), "MOUSE CONTROL");
y += 2;