From 99c17f85213c3f5fbaa8d369bdc6bed75bfab696 Mon Sep 17 00:00:00 2001 From: Llywelwyn Date: Mon, 17 Jun 2024 23:22:30 +0100 Subject: [PATCH] draw hunger uses Point --- src/gui/mod.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/gui/mod.rs b/src/gui/mod.rs index bde2cf0..7604527 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -154,8 +154,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) { match hunger.state { HungerState::Satiated => { ctx.print_color_right( - 70, - 53, + pt.x, + pt.y, get_hunger_colour(hunger.state), RGB::named(BLACK), "Satiated" @@ -164,8 +164,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) { HungerState::Normal => {} HungerState::Hungry => { ctx.print_color_right( - 70, - 53, + pt.x, + pt.y, get_hunger_colour(hunger.state), RGB::named(BLACK), "Hungry" @@ -173,8 +173,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) { } HungerState::Weak => { ctx.print_color_right( - 70, - 53, + pt.x, + pt.y, get_hunger_colour(hunger.state), RGB::named(BLACK), "Weak" @@ -182,8 +182,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) { } HungerState::Fainting => { ctx.print_color_right( - 70, - 53, + pt.x, + pt.y, get_hunger_colour(hunger.state), RGB::named(BLACK), "Fainting" @@ -191,8 +191,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) { } HungerState::Starving => { ctx.print_color_right( - 70, - 53, + pt.x, + pt.y, get_hunger_colour(hunger.state), RGB::named(BLACK), "Starving"