feat: Add button element (#56)

This commit is contained in:
demenik
2025-11-28 12:21:34 +01:00
parent 971cf54fa0
commit 63dae75761
5 changed files with 87 additions and 2 deletions

View File

@@ -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);
}
}