going to just use the ol update and click routine
This commit is contained in:
@@ -36,8 +36,8 @@ impl<'s> Button<'s> {
|
||||
self.text.set_position(position);
|
||||
}
|
||||
|
||||
pub fn set_callback(&mut self, callback: &'s FnMut(i32)){
|
||||
self.callback = Some(callback);
|
||||
pub fn is_within(point: Vector2f, button: &Button) -> bool {
|
||||
button.body.local_bounds().contains(point)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user