tree view update + highlihgt hovered dot

This commit is contained in:
RustyStriker 2022-07-31 18:28:44 +03:00
parent db8657bb96
commit c59621e43d
6 changed files with 184 additions and 32 deletions

View file

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