bevy/examples/ui
MiniaczQ f602edad09
Text Rework cleanup (#15887)
# Objective

Cleanup naming and docs, add missing migration guide after #15591 

All text root nodes now use `Text` (UI) / `Text2d`.
All text readers/writers use `Text<Type>Reader`/`Text<Type>Writer`
convention.

---

## Migration Guide

Doubles as #15591 migration guide.

Text bundles (`TextBundle` and `Text2dBundle`) were removed in favor of
`Text` and `Text2d`.
Shared configuration fields were replaced with `TextLayout`, `TextFont`
and `TextColor` components.
Just `TextBundle`'s additional field turned into `TextNodeFlags`
component,
while `Text2dBundle`'s additional fields turned into `TextBounds` and
`Anchor` components.

Text sections were removed in favor of hierarchy-based approach.
For root text entities with `Text` or `Text2d` components, child
entities with `TextSpan` will act as additional text sections.
To still access text spans by index, use the new `TextUiReader`,
`Text2dReader` and `TextUiWriter`, `Text2dWriter` system parameters.
2024-10-15 02:32:34 +00:00
..
borders.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
box_shadow.rs box shadow (#15204) 2024-10-08 16:26:17 +00:00
button.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
display_and_visibility.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
flex_layout.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
font_atlas_debug.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
ghost_nodes.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
grid.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
overflow.rs Clip to the UI node's content box (#15442) 2024-10-15 02:05:08 +00:00
overflow_debug.rs Text Rework cleanup (#15887) 2024-10-15 02:32:34 +00:00
relative_cursor_position.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
render_ui_to_texture.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
scroll.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
size_constraints.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
text.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
text_debug.rs Text Rework cleanup (#15887) 2024-10-15 02:32:34 +00:00
text_wrap_debug.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
transparency_ui.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
ui.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
ui_material.rs Replace Handle<M: UiMaterial> component with UiMaterialHandle wrapper (#15740) 2024-10-08 19:07:58 +00:00
ui_scaling.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
ui_texture_atlas.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
ui_texture_atlas_slice.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
ui_texture_slice.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
ui_texture_slice_flip_and_tile.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
viewport_debug.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
window_fallthrough.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
z_index.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00