Skip to content

Commit 70ae088

Browse files
authored
inherit visibility, rename unnest_children, ignore search casing (#5)
1 parent f1d4b3c commit 70ae088

File tree

7 files changed

+123
-95
lines changed

7 files changed

+123
-95
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
44

55
## unreleased
66

7+
### added
8+
9+
- inspector root inherits `RenderLayers` of its `TargetCamera`
10+
11+
### changed
12+
13+
- **breaking:** renamed `Inspector::unnest_children` to `.flatten_descendants`
14+
- searching ignores case
15+
16+
### fixed
17+
18+
- inspector `Visibility` inherited by all descendants
19+
720
# 0.0.4 (2025-04-12)
821

922
### added

Cargo.lock

Lines changed: 63 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn main() {
2222
// style::plugin,
2323
AaloPlugin::new()
2424
.world()
25-
.unnest_children()
25+
.flatten_descendants()
2626
.with_inspector(|inspector| {
2727
inspector
2828
// .header(Some("world inspector".to_string()))

examples/world.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ fn main() {
1515
.add_systems(Startup, setup)
1616
.add_systems(
1717
Update,
18-
toggle_visibility.run_if(resource_changed::<ButtonInput<KeyCode>>),
18+
toggle_visibility.run_if(
19+
any_with_component::<InspectorMarker>.and(resource_changed::<ButtonInput<KeyCode>>),
20+
),
1921
)
2022
.run();
2123
}
@@ -56,7 +58,7 @@ fn toggle_visibility(
5658
input: Res<ButtonInput<KeyCode>>,
5759
mut commands: Commands,
5860
) {
59-
if input.just_pressed(KeyCode::Escape) {
61+
if input.just_pressed(KeyCode::Backquote) {
6062
if let Ok(visibility) = visibilities.get(*inspector) {
6163
commands.entity(*inspector).insert(match visibility {
6264
Visibility::Hidden => Visibility::Visible,

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ release *extras:
2929

3030
# TODO: https://github.com/release-plz/release-plz/issues/1773
3131
sign_tag tag:
32-
GIT_COMMITTER_DATE="$(git log -1 --format=%aD {{ tag }})" git tag {{ tag }} {{ tag }} -f -s && git push --tags --force
32+
GIT_COMMITTER_DATE="$(git log -1 --format=%aD {{ tag }})" git tag {{ tag }} {{ tag }}^{} -f -s && git push --tags --force
3333

3434
# TODO: use an actual list https://github.com/casey/just/issues/2458
3535
exclude_examples := '"test", "utils"'

0 commit comments

Comments
 (0)