|
use bevy::prelude::Component;
|
|
|
|
#[derive(Component)]
|
|
pub struct PropertyPane {
|
|
pub title: String,
|
|
pub closable: bool,
|
|
pub is_open: bool,
|
|
}
|
|
|
|
impl PropertyPane {
|
|
pub fn new(title: String, closable: bool) -> Self {
|
|
PropertyPane {
|
|
title,
|
|
closable,
|
|
is_open: true,
|
|
}
|
|
}
|
|
}
|