mirror of
https://github.com/eliasstepanik/egui_node_graph.git
synced 2026-01-11 05:48:27 +00:00
Add AnyParameterId argument to NodeDataTrait::separator
This commit is contained in:
parent
2976153046
commit
02e625ccd7
@ -603,6 +603,7 @@ where
|
||||
self.graph[self.node_id].user_data.separator(
|
||||
ui,
|
||||
self.node_id,
|
||||
AnyParameterId::Input(param_id),
|
||||
self.graph,
|
||||
user_state,
|
||||
);
|
||||
@ -615,7 +616,7 @@ where
|
||||
}
|
||||
|
||||
let outputs = self.graph[self.node_id].outputs.clone();
|
||||
for (param_name, _param) in outputs {
|
||||
for (param_name, param_id) in outputs {
|
||||
let height_before = ui.min_rect().bottom();
|
||||
responses.extend(
|
||||
self.graph[self.node_id]
|
||||
@ -627,6 +628,7 @@ where
|
||||
self.graph[self.node_id].user_data.separator(
|
||||
ui,
|
||||
self.node_id,
|
||||
AnyParameterId::Output(param_id),
|
||||
self.graph,
|
||||
user_state,
|
||||
);
|
||||
|
||||
@ -162,13 +162,15 @@ where
|
||||
///
|
||||
/// Invoked between inputs, outputs and bottom UI. Useful for
|
||||
/// complicated UIs that start to lose structure without explicit
|
||||
/// separators.
|
||||
/// separators. The `param_id` argument is the id of input or output
|
||||
/// *preceeding* the separator.
|
||||
///
|
||||
/// Default implementation does nothing.
|
||||
fn separator(
|
||||
&self,
|
||||
_ui: &mut egui::Ui,
|
||||
_node_id: NodeId,
|
||||
_param_id: AnyParameterId,
|
||||
_graph: &Graph<Self, Self::DataType, Self::ValueType>,
|
||||
_user_state: &mut Self::UserState,
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user