Merge pull request #714 from gianlucafiore/feature/tracking-reference-tooltip
Show active tracking reference tooltip
This commit is contained in:
commit
ae24f985f0
7 changed files with 144 additions and 1 deletions
|
|
@ -809,6 +809,17 @@ impl OpenCADStudio {
|
|||
.as_ref()
|
||||
.map(|c| c.prompt())
|
||||
.unwrap_or_default();
|
||||
|
||||
let tracking_hint = match self.otrack_kind {
|
||||
Some(crate::snap::TrackingKind::Perpendicular) => {
|
||||
Some("Perpendicular".to_string())
|
||||
}
|
||||
Some(crate::snap::TrackingKind::Extension) => {
|
||||
Some("Extension".to_string())
|
||||
}
|
||||
_ => None,
|
||||
};
|
||||
|
||||
Some(crate::ui::overlay::dynamic_input_overlay(
|
||||
tab.last_cursor_screen,
|
||||
tab.last_point_screen,
|
||||
|
|
@ -816,6 +827,7 @@ impl OpenCADStudio {
|
|||
tab.dyn_guide,
|
||||
boxes,
|
||||
prompt,
|
||||
tracking_hint,
|
||||
))
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Loading…
Reference in a new issue