mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-08-28 21:06:56 +02:00
3e...
This commit is contained in:
parent
816150125d
commit
4fcbcdda86
5 changed files with 607 additions and 566 deletions
|
|
@ -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:?})"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue