clean up ui, more upgrades
This commit is contained in:
parent
12f48497ae
commit
2a4f92c9b3
6 changed files with 132 additions and 175 deletions
|
|
@ -1,5 +1,4 @@
|
|||
use servicepoint::{CharGridMutExt, Grid, GridMut, TILE_SIZE, WindowMut};
|
||||
use std::io::BufRead;
|
||||
use servicepoint::{CharGridMutExt, GridMut, TILE_SIZE, WindowMut};
|
||||
|
||||
pub type BorderPattern = [bool; TILE_SIZE];
|
||||
|
||||
|
|
@ -9,7 +8,7 @@ pub const INNER_BORDER: BorderPattern = [false, false, false, true, true, false,
|
|||
pub fn draw_border_panel<'t, C: GridMut<char>, P: GridMut<bool>>(
|
||||
mut chars: WindowMut<'t, char, C>,
|
||||
mut bitmap: WindowMut<'t, bool, P>,
|
||||
label: &'static str,
|
||||
label: &str,
|
||||
border_pattern: BorderPattern,
|
||||
) -> (WindowMut<'t, char, C>, WindowMut<'t, bool, P>) {
|
||||
let tile_width = chars.width();
|
||||
|
|
|
|||
Loading…
Reference in a new issue