Newer
Older
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
pub mod components;
pub(crate) mod styles;
pub mod theme;
pub mod types;
pub(crate) mod utilities;
mod __plugins {
use bevy::app::{App, Plugin, PluginGroup, PluginGroupBuilder};
use kayak_ui::prelude::KayakContextPlugin;
use kayak_ui::widgets::KayakWidgets;
pub struct CresthollowThemePlugin;
impl Plugin for CresthollowThemePlugin {
fn build(&self, app: &mut App) {
app.init_resource::<super::theme::ThemeMapping>()
// .add_system(super::components::cursor_animation_system)
;
}
}
pub struct BaseUIPlugins;
impl PluginGroup for BaseUIPlugins {
fn build(self) -> PluginGroupBuilder {
PluginGroupBuilder::start::<Self>()
.add(CresthollowThemePlugin)
.add(KayakContextPlugin)
.add(KayakWidgets)
}
}
}
pub use __plugins::BaseUIPlugins;
pub use styles::{edge_px, pct, px, stretch, val_auto, value};
pub use theme::{tokens, ThemeMapping, ThemeProvider};
pub use utilities::{
button_logic, context, remove_root_ui, remove_tagged_context, widget_update_with_resource,
EmptyProps, HasDisabledState, HasHoveredState, HasPressedState, StateUIRoot, TextSizer,
};
pub use kayak_font;
pub use kayak_ui;
pub mod prelude {
pub use super::styles::*;
pub use super::utilities::*;
pub use crate::theme::{tokens::*, ThemeMapping, ThemeProvider};
pub use kayak_ui::prelude::widgets::*;
pub use kayak_ui::prelude::*;
}