You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB
Rust

pub mod actions;
pub use actions::*;
pub mod color;
use bevy::ecs::query::QueryFilter;
pub use color::*;
pub use std::time::Duration;
pub use bevy::{
asset::{AssetPath, HandleTemplate},
audio::{AudioPlayerTemplate, Volume},
color::palettes::basic::*,
feathers::{
FeathersPlugins,
constants::{fonts, size},
containers::*,
controls::*,
dark_theme::create_dark_theme,
font_styles::InheritableFont,
theme::{InheritableThemeTextColor, ThemeProps, ThemedText, UiTheme},
tokens,
},
input::{
common_conditions::*,
mouse::{AccumulatedMouseMotion, MouseMotion},
},
mesh::Mesh2dTemplate,
picking::hover::Hovered,
platform::collections::{HashMap, HashSet},
prelude::*,
sprite_render::MeshMaterial2dTemplate,
text::FontWeight,
ui::{Checked, InteractionDisabled},
ui_widgets::{
Activate, ActivateOnPress, Checkbox, SliderPrecision, SliderStep, ValueChange,
checkbox_self_update, slider_self_update,
},
};
pub fn any_component_added<C: Component>(q: Query<Entity, Added<C>>) -> bool {
!q.is_empty()
}
pub fn any_component_changed<C: Component>(q: Query<Entity, Changed<C>>) -> bool {
!q.is_empty()
}
pub fn query_condition_empty<F: QueryFilter>(q: Query<Entity, F>) -> bool {
q.is_empty()
}