mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-10-08 18:56:42 +02:00
This commit is contained in:
parent
d9e17cd348
commit
e50c4a5eef
7 changed files with 479 additions and 146 deletions
16
src/tek.rs
16
src/tek.rs
|
|
@ -13,7 +13,9 @@ pub fn show_version () {
|
|||
}
|
||||
|
||||
/// Command-line entrypoint.
|
||||
#[allow(unused)] fn main () -> Usually<()> {
|
||||
#[allow(unused)]
|
||||
#[hotpath::main]
|
||||
fn main () -> Usually<()> {
|
||||
tengri::Tui::setup_panic();
|
||||
#[cfg(feature = "cli")] {
|
||||
Config::watched(crate::cli::run_with_config)?;
|
||||
|
|
@ -1326,14 +1328,14 @@ mod draw {
|
|||
/// Then, every top-level form of the DSL description is rendered.
|
||||
impl View<Tui> for App {
|
||||
fn view (&self) -> impl Draw<Tui> {
|
||||
self.perf.cycle(&mut |_|{
|
||||
//self.perf.cycle(&mut |_|{
|
||||
draw(|to: &mut Tui|{
|
||||
self.draw_error(to)?;
|
||||
self.draw_mode(to)?;
|
||||
self.draw_debug(to)?;
|
||||
//self.draw_debug(to)?;
|
||||
Ok(Some(to.area().into()))
|
||||
})
|
||||
})
|
||||
//})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1404,9 +1406,9 @@ mod draw {
|
|||
Some("outputs") => self.project.view_track_outputs(self.color.clone(), 0).draw(to),
|
||||
_ => panic!()
|
||||
},
|
||||
Some(":scenes") => match frags.next() {
|
||||
None => "TODO Scenes".draw(to),
|
||||
Some(":scenes/names") => "TODO Scene Names".draw(to),
|
||||
Some(":scenes") => match frags.next() {
|
||||
None => self.view_scenes_clips().draw(to),
|
||||
Some("names") => self.view_scenes_names().draw(to),
|
||||
_ => panic!()
|
||||
},
|
||||
Some(":dialog") => draw_dialog(to, frags, self, lang),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue