voxel-zone/app/src/components/property_pane.rs

19 lines
336 B
Rust

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,
}
}
}