This commit is contained in:
i do not exist 2026-08-22 14:06:50 +03:00
parent 816150125d
commit 4fcbcdda86
5 changed files with 607 additions and 566 deletions

View file

@ -1,8 +1,8 @@
use crate::{*, device::*};
pub fn draw_dialog <'a, L: Language + ?Sized> (
to: &mut Tui, mut frags: std::str::Split<&str>, state: &App, dsl: &'a L
) -> Drawn<'a, u16> {
pub fn draw_dialog <'a> (to: &mut Tui, mut frags: std::str::Split<&str>, state: &App)
-> Drawn<'a, u16>
{
match frags.next() {
Some("menu") => if let Dialog::Menu(selected, items) = &state.dialog {
//Some(iter_south(move||items.0.iter().enumerate().map(move|(index, MenuItem(item, _))|{
@ -28,7 +28,7 @@ pub fn draw_dialog <'a, L: Language + ?Sized> (
} else {
None
}.draw(to),
_ => unimplemented!("App::interpret_word: {dsl:?} ({frags:?})"),
_ => unimplemented!("draw_dialog: ({frags:?})"),
}
}