17 lines
402 B
Rust
17 lines
402 B
Rust
use bevy::prelude::*;
|
|
|
|
#[derive(SceneComponent, Clone, FromTemplate)]
|
|
pub struct BattleUIStockIcon;
|
|
|
|
impl BattleUIStockIcon {
|
|
pub fn scene() -> impl Scene {
|
|
bsn! {
|
|
Node {
|
|
width: px(32),
|
|
height: px(32),
|
|
border_radius: BorderRadius::MAX,
|
|
}
|
|
BackgroundColor({bevy::color::palettes::css::RED})
|
|
}
|
|
}
|
|
} |