mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Rename text_layout
example to flex_layout
(#7943)
# Objective - Rename `text_layout` example to `flex_layout` to better reflect the example purpose - `AlignItems`/`JustifyContent` is not related to text layout, it's about child nodes positioning ## Solution - Rename the example --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
This commit is contained in:
parent
6dda873ddc
commit
47be369e41
3 changed files with 7 additions and 7 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -1780,12 +1780,12 @@ category = "UI (User Interface)"
|
|||
wasm = true
|
||||
|
||||
[[example]]
|
||||
name = "text_layout"
|
||||
path = "examples/ui/text_layout.rs"
|
||||
name = "flex_layout"
|
||||
path = "examples/ui/flex_layout.rs"
|
||||
|
||||
[package.metadata.example.text_layout]
|
||||
name = "Text Layout"
|
||||
description = "Demonstrates how the AlignItems and JustifyContent properties can be composed to layout text"
|
||||
[package.metadata.example.flex_layout]
|
||||
name = "Flex Layout"
|
||||
description = "Demonstrates how the AlignItems and JustifyContent properties can be composed to layout nodes and position text"
|
||||
category = "UI (User Interface)"
|
||||
wasm = false
|
||||
|
||||
|
|
|
@ -330,11 +330,11 @@ Example | Description
|
|||
Example | Description
|
||||
--- | ---
|
||||
[Button](../examples/ui/button.rs) | Illustrates creating and updating a button
|
||||
[Flex Layout](../examples/ui/flex_layout.rs) | Demonstrates how the AlignItems and JustifyContent properties can be composed to layout nodes and position text
|
||||
[Font Atlas Debug](../examples/ui/font_atlas_debug.rs) | Illustrates how FontAtlases are populated (used to optimize text rendering internally)
|
||||
[Relative Cursor Position](../examples/ui/relative_cursor_position.rs) | Showcases the RelativeCursorPosition component
|
||||
[Text](../examples/ui/text.rs) | Illustrates creating and updating text
|
||||
[Text Debug](../examples/ui/text_debug.rs) | An example for debugging text layout
|
||||
[Text Layout](../examples/ui/text_layout.rs) | Demonstrates how the AlignItems and JustifyContent properties can be composed to layout text
|
||||
[Transparency UI](../examples/ui/transparency_ui.rs) | Demonstrates transparency for UI
|
||||
[UI](../examples/ui/ui.rs) | Illustrates various features of Bevy UI
|
||||
[UI Scaling](../examples/ui/ui_scaling.rs) | Illustrates how to scale the UI
|
||||
|
|
|
@ -10,7 +10,7 @@ fn main() {
|
|||
.add_plugins(DefaultPlugins.set(WindowPlugin {
|
||||
primary_window: Some(Window {
|
||||
resolution: [870., 1066.].into(),
|
||||
title: "Bevy Text Layout Example".to_string(),
|
||||
title: "Bevy Flex Layout Example".to_string(),
|
||||
..Default::default()
|
||||
}),
|
||||
..Default::default()
|
Loading…
Reference in a new issue