From 2ec29207e77edf77c80d5b2e1352b522bf6e67c8 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Wed, 6 Nov 2024 14:27:20 -0800 Subject: [PATCH] UiImage -> ImageNode, UiImageSize -> ImageNodeSize --- crates/bevy_ui/src/accessibility.rs | 7 +++-- crates/bevy_ui/src/lib.rs | 14 +++++----- crates/bevy_ui/src/node_bundles.rs | 14 +++++----- crates/bevy_ui/src/render/mod.rs | 10 +++---- crates/bevy_ui/src/render/render_pass.rs | 4 +-- .../src/render/ui_texture_slice_pipeline.rs | 4 +-- crates/bevy_ui/src/widget/image.rs | 28 +++++++++---------- examples/3d/auto_exposure.rs | 4 +-- examples/games/game_menu.rs | 8 +++--- examples/stress_tests/many_buttons.rs | 2 +- examples/testbed/ui.rs | 16 +++++------ examples/ui/font_atlas_debug.rs | 2 +- examples/ui/overflow.rs | 2 +- examples/ui/overflow_clip_margin.rs | 2 +- examples/ui/overflow_debug.rs | 2 +- examples/ui/ui_scaling.rs | 2 +- examples/ui/ui_texture_atlas.rs | 14 +++++++--- examples/ui/ui_texture_atlas_slice.rs | 4 +-- examples/ui/ui_texture_slice.rs | 9 ++++-- examples/ui/ui_texture_slice_flip_and_tile.rs | 2 +- 20 files changed, 81 insertions(+), 69 deletions(-) diff --git a/crates/bevy_ui/src/accessibility.rs b/crates/bevy_ui/src/accessibility.rs index f4d331b9ca..51fcc5be81 100644 --- a/crates/bevy_ui/src/accessibility.rs +++ b/crates/bevy_ui/src/accessibility.rs @@ -1,7 +1,7 @@ use crate::{ experimental::UiChildren, prelude::{Button, Label}, - widget::{TextUiReader, UiImage}, + widget::{ImageNode, TextUiReader}, ComputedNode, }; use bevy_a11y::{ @@ -92,7 +92,10 @@ fn button_changed( fn image_changed( mut commands: Commands, - mut query: Query<(Entity, Option<&mut AccessibilityNode>), (Changed, Without