-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: fix backend and deserialize object_info correctly for querying … #30
base: master
Are you sure you want to change the base?
Conversation
70c9ffa
to
f7a3d02
Compare
@@ -50,6 +70,8 @@ impl Mediator { | |||
|
|||
populate_available_nodes(&mut model); | |||
|
|||
model.spawn_client(tx.clone()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't this part of Backend::new
?
let _ = value.parse().map(|x| state.set_int(x)); | ||
} | ||
TY_FLOAT => { | ||
let _ = value.parse().map(|x| state.set_float(x)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use if-let instead of map if you don't care about the resulting value.
_ => {} | ||
} | ||
} | ||
Render => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a better name, it's too easy to confuse with UI rendering.
println!("\n"); | ||
println!("{:#?}", &wf); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println!("\n"); | |
println!("{:#?}", &wf); | |
println!("\n\n{:#?}", &wf); |
ui.global::<ui::NodeLogic>().on_move_node({ | ||
move |node_idx, x, y| { | ||
tx.send(Event::SetNodePosition(node_idx as usize, x, y)) | ||
// TODO: Make me a macro! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't.
@@ -0,0 +1 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this file.
@@ -0,0 +1,4 @@ | |||
imports_granularity = "Item" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hot garbage. Use this and no less.
imports_granularity = "Item" | |
imports_granularity = "Crate" |
…available nodes