Skip to content

Commit

Permalink
update to use id instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
Spooky-Firefox committed Jul 1, 2024
1 parent ea706d5 commit 07efe77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui_egui/components/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl EguiComponent for Constant {
let mut offset = offset;
offset.x += self.pos.0 * scale;
offset.y += self.pos.1 * scale;
let area = Area::new(self.id.to_string())
let area = Area::new(egui::Id::from(self.id.to_string()))
.order(Order::Middle)
.current_pos(offset.to_pos2())
.movable(false)
Expand Down
2 changes: 1 addition & 1 deletion src/gui_egui/components/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl EguiComponent for Probe {
Some(s) => s.get_input_value(&input),
None => SignalValue::Uninitialized,
};
let area = Area::new(self.id.to_string())
let area = Area::new(egui::Id::from(self.id.to_string()))
.order(Order::Middle)
.current_pos(offset.to_pos2())
.movable(false)
Expand Down
2 changes: 1 addition & 1 deletion src/gui_egui/components/probe_edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl EguiComponent for ProbeEdit {
offset.x += self.pos.0 * scale;
offset.y += self.pos.1 * scale;
let interact = matches!(editor_mode, EditorMode::Simulator);
let area = Area::new(self.id.to_string())
let area = Area::new(egui::Id::from(self.id.to_string()))
.order(Order::Middle)
.current_pos(offset.to_pos2())
.movable(false)
Expand Down

0 comments on commit 07efe77

Please sign in to comment.