draw hunger uses Point
This commit is contained in:
parent
6324449c16
commit
99c17f8521
1 changed files with 10 additions and 10 deletions
|
|
@ -154,8 +154,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) {
|
||||||
match hunger.state {
|
match hunger.state {
|
||||||
HungerState::Satiated => {
|
HungerState::Satiated => {
|
||||||
ctx.print_color_right(
|
ctx.print_color_right(
|
||||||
70,
|
pt.x,
|
||||||
53,
|
pt.y,
|
||||||
get_hunger_colour(hunger.state),
|
get_hunger_colour(hunger.state),
|
||||||
RGB::named(BLACK),
|
RGB::named(BLACK),
|
||||||
"Satiated"
|
"Satiated"
|
||||||
|
|
@ -164,8 +164,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) {
|
||||||
HungerState::Normal => {}
|
HungerState::Normal => {}
|
||||||
HungerState::Hungry => {
|
HungerState::Hungry => {
|
||||||
ctx.print_color_right(
|
ctx.print_color_right(
|
||||||
70,
|
pt.x,
|
||||||
53,
|
pt.y,
|
||||||
get_hunger_colour(hunger.state),
|
get_hunger_colour(hunger.state),
|
||||||
RGB::named(BLACK),
|
RGB::named(BLACK),
|
||||||
"Hungry"
|
"Hungry"
|
||||||
|
|
@ -173,8 +173,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) {
|
||||||
}
|
}
|
||||||
HungerState::Weak => {
|
HungerState::Weak => {
|
||||||
ctx.print_color_right(
|
ctx.print_color_right(
|
||||||
70,
|
pt.x,
|
||||||
53,
|
pt.y,
|
||||||
get_hunger_colour(hunger.state),
|
get_hunger_colour(hunger.state),
|
||||||
RGB::named(BLACK),
|
RGB::named(BLACK),
|
||||||
"Weak"
|
"Weak"
|
||||||
|
|
@ -182,8 +182,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) {
|
||||||
}
|
}
|
||||||
HungerState::Fainting => {
|
HungerState::Fainting => {
|
||||||
ctx.print_color_right(
|
ctx.print_color_right(
|
||||||
70,
|
pt.x,
|
||||||
53,
|
pt.y,
|
||||||
get_hunger_colour(hunger.state),
|
get_hunger_colour(hunger.state),
|
||||||
RGB::named(BLACK),
|
RGB::named(BLACK),
|
||||||
"Fainting"
|
"Fainting"
|
||||||
|
|
@ -191,8 +191,8 @@ fn draw_hunger(ctx: &mut BTerm, pt: Point, hunger: &HungerClock) {
|
||||||
}
|
}
|
||||||
HungerState::Starving => {
|
HungerState::Starving => {
|
||||||
ctx.print_color_right(
|
ctx.print_color_right(
|
||||||
70,
|
pt.x,
|
||||||
53,
|
pt.y,
|
||||||
get_hunger_colour(hunger.state),
|
get_hunger_colour(hunger.state),
|
||||||
RGB::named(BLACK),
|
RGB::named(BLACK),
|
||||||
"Starving"
|
"Starving"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue