feat: Add button element (#56)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
use crate::prelude::*;
|
||||
use crate::prelude::{button::update_buttons, *};
|
||||
use bevy::{input::mouse::*, picking::hover::HoverMap};
|
||||
|
||||
pub mod components;
|
||||
pub mod consts;
|
||||
pub mod ui;
|
||||
|
||||
pub struct UiPlugin;
|
||||
|
||||
@@ -10,6 +11,8 @@ impl Plugin for UiPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(Update, scroll_events);
|
||||
app.add_observer(on_scroll_handler);
|
||||
|
||||
app.add_systems(Update, update_buttons);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user