From d792a07afc6ed55eaefe946f144c040caf1cb6e1 Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Sun, 19 Dec 2021 04:38:12 +0200 Subject: [PATCH] Add a bar showing crude interaction hints --- src/ui/graph.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/graph.rs b/src/ui/graph.rs index dc7f7e1..fe9b5d1 100644 --- a/src/ui/graph.rs +++ b/src/ui/graph.rs @@ -235,6 +235,14 @@ impl Graph { }); self.nodes_ctx.show(ui_nodes, links, ui); + egui::TopBottomPanel::bottom("control_hints").show_inside(ui, |ui| { + ui.horizontal(|ui| { + ui.label("[MMB] Move canvas"); + ui.label("[LMB] Move node"); + ui.label("[LMB] Connect port"); + ui.label("[ALT]+[LMB] Disconnect port"); + }) + }); for (&id, node) in self.nodes.iter_mut() { node.position = self.nodes_ctx.get_node_pos_screen_space(id as usize);