Stub out functions for gizmo planes and fly camera

For next session...
attempt/001
Elijah C. Voigt 1 year ago
parent 5c71f55363
commit 2153cba9fa

@ -11,22 +11,17 @@ impl Plugin for EditorPlugin {
toggle_editor_state.run_if(input_just_pressed(KeyCode::F3)),
)
.add_systems(
OnTransition {
from: EditorState::Open,
to: EditorState::Closed,
},
toggle_editor_window,
)
.add_systems(
OnTransition {
from: EditorState::Closed,
to: EditorState::Open,
},
toggle_editor_window,
Update,
toggle_editor_window.run_if(state_changed::<EditorState>),
)
.add_systems(
Update,
handle_window_close.run_if(on_event::<WindowCloseRequested>()),
(
handle_window_close.run_if(on_event::<WindowCloseRequested>()),
// plane_gizmos,
// fly_camera,
)
.run_if(in_state(EditorState::Open)),
);
}
}
@ -161,3 +156,12 @@ fn handle_window_close(
editor_state.set(EditorState::Closed);
});
}
fn _plane_gizmos(mut _gizmos: Gizmos) {
todo!()
// gizmos.line(Vec3::ZERO, Vec3::X, Color::GREEN);
}
fn _fly_camera(mut _camera: Query<&mut Transform, (With<Camera>, With<EditorTag>)>) {
todo!()
}

Loading…
Cancel
Save