mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
almost back in commission
This commit is contained in:
parent
fa5f67f010
commit
d5865d941f
7 changed files with 219 additions and 216 deletions
|
|
@ -1,8 +1,7 @@
|
|||
use crate::*;
|
||||
|
||||
impl<'t> DslNs<'t, AppCommand> for App {
|
||||
dsl_exprs!(|app| -> AppCommand {
|
||||
});
|
||||
dsl_exprs!(|app| -> AppCommand { /* TODO */ });
|
||||
dsl_words!(|app| -> AppCommand {
|
||||
"x/inc" => todo!(),
|
||||
"x/dec" => todo!(),
|
||||
|
|
@ -11,6 +10,21 @@ impl<'t> DslNs<'t, AppCommand> for App {
|
|||
"confirm" => todo!(),
|
||||
});
|
||||
}
|
||||
#[derive(Debug)]
|
||||
pub enum AppCommand { /* TODO */ }
|
||||
|
||||
#[tengri_proc::command(Option<Dialog>)]
|
||||
impl DialogCommand {
|
||||
fn open (dialog: &mut Option<Dialog>, new: Dialog) -> Perhaps<Self> {
|
||||
*dialog = Some(new);
|
||||
Ok(None)
|
||||
}
|
||||
fn close (dialog: &mut Option<Dialog>) -> Perhaps<Self> {
|
||||
*dialog = None;
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//AppCommand => {
|
||||
//("x/inc" /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue