additional watch toasts

This commit is contained in:
galister
2024-02-21 21:35:58 +01:00
parent ddba450475
commit 3e3ee490e8

View File

@@ -745,6 +745,9 @@ fn overlay_button_up(control: &mut Control<(), ElemState>, _: &mut (), app: &mut
"Right-click again to toggle.".into(), "Right-click again to toggle.".into(),
) )
.submit(app); .submit(app);
} else {
Toast::new(format!("{} is now unlocked!", o.name).into(), "".into())
.submit(app);
} }
}), }),
)); ));
@@ -761,6 +764,12 @@ fn overlay_button_up(control: &mut Control<(), ElemState>, _: &mut (), app: &mut
"Middle-click again to toggle.".into(), "Middle-click again to toggle.".into(),
) )
.submit(app); .submit(app);
} else {
Toast::new(
format!("{} is now interactable!", o.name).into(),
"".into(),
)
.submit(app);
} }
}), }),
)); ));