bevy/examples/ui
ickshonpe f04c0ef689
tab_navigation example improvements (#19239)
# Objective

Improve the `tab_navigation` example.

## Solution

* Set different `TabIndex`s for the buttons of each group.
* Label each button with its associated `TabIndex`.
* Reduce the code duplication using a loop.

I tried to flatten it further using the new spawning APIs and
`children!` macro but not sure what the current best way to attach the
observers is.
2025-05-26 20:20:00 +00:00
..
borders.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
box_shadow.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
button.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
directional_navigation.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
display_and_visibility.rs
flex_layout.rs
font_atlas_debug.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
ghost_nodes.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
gradients.rs UI Node Gradients (#18139) 2025-05-20 14:45:22 +00:00
grid.rs
overflow_clip_margin.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
overflow_debug.rs
overflow.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
radial_gradients.rs UI Node Gradients (#18139) 2025-05-20 14:45:22 +00:00
relative_cursor_position.rs
render_ui_to_texture.rs
scroll.rs Unified picking cleanup (#18401) 2025-03-18 20:28:03 +00:00
size_constraints.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
stacked_gradients.rs UI Node Gradients (#18139) 2025-05-20 14:45:22 +00:00
tab_navigation.rs tab_navigation example improvements (#19239) 2025-05-26 20:20:00 +00:00
text_background_colors.rs Text background colors (#18892) 2025-05-04 08:18:46 +00:00
text_debug.rs Fix non-crate typos (#18219) 2025-03-11 06:17:48 +00:00
text_wrap_debug.rs
text.rs
transparency_ui.rs
ui_material.rs
ui_scaling.rs
ui_texture_atlas_slice.rs
ui_texture_atlas.rs
ui_texture_slice_flip_and_tile.rs
ui_texture_slice.rs
viewport_debug.rs separate border colors (#18682) 2025-05-26 16:57:13 +00:00
viewport_node.rs viewport_node example: Remove main world image initialization (#19098) 2025-05-26 17:20:29 +00:00
window_fallthrough.rs Fix non-crate typos (#18219) 2025-03-11 06:17:48 +00:00
z_index.rs