-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Expand file tree
/
Copy pathmod.rs
More file actions
64 lines (59 loc) · 1.46 KB
/
Copy pathmod.rs
File metadata and controls
64 lines (59 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! Meta-module containing all feathers controls (widgets that are interactive).
#![expect(deprecated, reason = "deprecated control bundles are exported here")]
mod button;
mod checkbox;
mod color_plane;
mod color_slider;
mod color_swatch;
mod dialog;
mod disclosure_toggle;
mod listview;
mod menu;
mod number_input;
mod radio;
mod scrollbar;
mod slider;
mod text_input;
mod toggle_switch;
mod virtual_keyboard;
pub use button::*;
pub use checkbox::*;
pub use color_plane::*;
pub use color_slider::*;
pub use color_swatch::*;
pub use dialog::*;
pub use disclosure_toggle::*;
pub use listview::*;
pub use menu::*;
pub use number_input::*;
pub use radio::*;
pub use scrollbar::*;
pub use slider::*;
pub use text_input::*;
pub use toggle_switch::*;
pub use virtual_keyboard::*;
use crate::alpha_pattern::AlphaPatternPlugin;
use bevy_app::Plugin;
/// Plugin which registers all `bevy_feathers` controls.
pub struct ControlsPlugin;
impl Plugin for ControlsPlugin {
fn build(&self, app: &mut bevy_app::App) {
app.add_plugins((
AlphaPatternPlugin,
ButtonPlugin,
CheckboxPlugin,
ColorPlanePlugin,
ColorSliderPlugin,
ColorSwatchPlugin,
DisclosureTogglePlugin,
ListViewPlugin,
MenuPlugin,
NumberInputPlugin,
RadioPlugin,
ScrollbarPlugin,
SliderPlugin,
TextInputPlugin,
ToggleSwitchPlugin,
));
}
}