setzer22 / egui_node_graph

Build your node graph applications in Rust, using egui
MIT License
718 stars 134 forks source link

Add top bar UI #88

Closed kamirr closed 1 year ago

kamirr commented 1 year ago

Users can specify UI that will be added to the top bar of a node via the new top_bar_ui method in NodeDataTrait. A default definition is provided because it's not core to the functionality and so as to avoid unnecessarily breaking existing programs.

katopz commented 1 year ago

Adding some example would be nice. 🤔

kamirr commented 1 year ago

@katopz I'm trying to figure out the best way to provide examples of the features from my recent PRs. I don't want to overload the main example by dumping even more stuff into it, as it's already a little daunting when starting out with egui_node_graph. On the other hand only adding code snippets to docs is limiting and the user won't have a runnable, tweakable example to fiddle with. tl;dr I'll make a separate PR for that.

setzer22 commented 1 year ago

I concur. The example is meant to be used as a way to get started with the library, so I have avoided using some of the more complex features there. I'm not against adding more examples or docs (on the contrary!) but there should be at least one minimal example that people can use as a guide to get started.

tl;dr I'll make a separate PR for that.

Yup, sounds good. Let's keep PRs focused :+1: