tree view update + highlihgt hovered dot
This commit is contained in:
parent
db8657bb96
commit
c59621e43d
6 changed files with 184 additions and 32 deletions
14
src/lib.rs
14
src/lib.rs
|
@ -1,14 +1,13 @@
|
|||
#![feature(let_chains)]
|
||||
|
||||
|
||||
use bevy::prelude::*;
|
||||
use bevy_egui::egui;
|
||||
|
||||
mod create;
|
||||
mod helpers;
|
||||
mod modify;
|
||||
mod rotate;
|
||||
mod ui;
|
||||
pub mod create;
|
||||
pub mod helpers;
|
||||
pub mod modify;
|
||||
pub mod rotate;
|
||||
pub mod ui;
|
||||
pub use ui::{action_bar_sys, shape_tree_sys};
|
||||
pub use modify::modify_sys;
|
||||
pub use create::create_sys;
|
||||
|
@ -21,6 +20,7 @@ pub struct PointSize(pub f32);
|
|||
|
||||
#[derive(Component, Debug)]
|
||||
pub struct ShapeData {
|
||||
pub name: Option<String>,
|
||||
pub shape: CreateShape,
|
||||
pub main_shape: Entity,
|
||||
pub edges: Vec<Entity>,
|
||||
|
@ -36,7 +36,7 @@ pub enum CreateShape {
|
|||
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
pub enum Action {
|
||||
Create, Modify, Delete, Rotate
|
||||
Create, Modify, Rotate
|
||||
}
|
||||
pub struct UiState {
|
||||
pub current_action: Action,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue