better font support

This commit is contained in:
Llywelwyn 2023-10-03 01:56:38 +01:00
parent 71576f36c3
commit a7b4f621fb
36 changed files with 129 additions and 78 deletions

View file

@ -2,8 +2,9 @@ use notan::prelude::*;
use notan::draw::{ Draw, Font };
use specs::prelude::*;
use super::TILESIZE;
use crate::Fonts;
pub fn draw_inventory(ecs: &World, draw: &mut Draw, font: &Font) {
pub fn draw_inventory(ecs: &World, draw: &mut Draw, font: &Fonts) {
let inv = super::get_player_inventory(ecs);
let offsets = crate::camera::get_offset();
super::print_options(