From 8781fc72f286d38acc532410faec34b5f62ae22d Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Thu, 4 Aug 2022 20:48:38 +0200 Subject: [PATCH] Removed non existing node types from blocklang --- src/blocklang_def.rs | 50 ++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/blocklang_def.rs b/src/blocklang_def.rs index 20a35e8..6833ef9 100644 --- a/src/blocklang_def.rs +++ b/src/blocklang_def.rs @@ -12,20 +12,20 @@ pub fn setup_hxdsp_block_language( ) -> Rc> { let mut lang = BlockLanguage::new(); - lang.define(BlockType { - category: "source".to_string(), - name: "phse".to_string(), - rows: 1, - inputs: vec![Some("f".to_string())], - outputs: vec![Some("".to_string())], - area_count: 0, - user_input: BlockUserInput::None, - description: - "A phasor, returns a saw tooth wave to scan through things or use as modulator." - .to_string(), - color: 2, - }); - +// lang.define(BlockType { +// category: "source".to_string(), +// name: "phse".to_string(), +// rows: 1, +// inputs: vec![Some("f".to_string())], +// outputs: vec![Some("".to_string())], +// area_count: 0, +// user_input: BlockUserInput::None, +// description: +// "A phasor, returns a saw tooth wave to scan through things or use as modulator." +// .to_string(), +// color: 2, +// }); +// lang.define(BlockType { category: "literals".to_string(), name: "zero".to_string(), @@ -198,17 +198,17 @@ pub fn setup_hxdsp_block_language( // color: 8, // }); - lang.define(BlockType { - category: "arithmetics".to_string(), - name: "/%".to_string(), - rows: 2, - inputs: vec![Some("a".to_string()), Some("b".to_string())], - outputs: vec![Some("div".to_string()), Some("rem".to_string())], - area_count: 0, - user_input: BlockUserInput::None, - description: "Computes the integer division and remainder of a / b".to_string(), - color: 8, - }); +// lang.define(BlockType { +// category: "arithmetics".to_string(), +// name: "/%".to_string(), +// rows: 2, +// inputs: vec![Some("a".to_string()), Some("b".to_string())], +// outputs: vec![Some("div".to_string()), Some("rem".to_string())], +// area_count: 0, +// user_input: BlockUserInput::None, +// description: "Computes the integer division and remainder of a / b".to_string(), +// color: 8, +// }); for fun_name in &["+", "-", "*", "/"] { lang.define(BlockType {