mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-28 08:58:07 +00:00
Expand gizmos module
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
mod model;
|
||||||
|
mod view;
|
||||||
|
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
use super::{InteractionMode, InteractionTransform, Selected, TransformSpace};
|
||||||
|
|
||||||
|
pub(super) struct StudioGizmosPlugin;
|
||||||
|
|
||||||
|
impl Plugin for StudioGizmosPlugin {
|
||||||
|
fn build(&self, app: &mut App) {
|
||||||
|
app.add_systems(Update, view::draw);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,8 @@ use bevy::prelude::*;
|
|||||||
use bitflags::bitflags;
|
use bitflags::bitflags;
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
|
use self::gizmos::StudioGizmosPlugin;
|
||||||
|
|
||||||
mod gizmos;
|
mod gizmos;
|
||||||
|
|
||||||
pub struct InteractionPlugin;
|
pub struct InteractionPlugin;
|
||||||
@@ -10,7 +12,7 @@ impl Plugin for InteractionPlugin {
|
|||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.insert_resource(SelectionMode::default())
|
app.insert_resource(SelectionMode::default())
|
||||||
.insert_resource(InteractionMode::default())
|
.insert_resource(InteractionMode::default())
|
||||||
.add_systems(Update, gizmos::draw);
|
.add_plugins(StudioGizmosPlugin);
|
||||||
|
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
PreUpdate,
|
PreUpdate,
|
||||||
|
|||||||
Reference in New Issue
Block a user