Skip to content

Commit

Permalink
Make text_debug work with new default_plugin pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisCode committed Nov 3, 2020
1 parent 468132b commit 3e6b3b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/ui/text_debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern crate rand;
/// This example is for debugging text layout
fn main() {
App::build()
.add_default_plugins()
.add_plugins(DefaultPlugins)
.add_startup_system(infotext_system.system())
.add_system(change_text_system.system())
.run();
Expand Down Expand Up @@ -57,7 +57,7 @@ fn infotext_system(mut commands: Commands, asset_server: Res<AssetServer>) {
},
text: Text {
value:
"This is very long text with limited width in the top right and is also pink"
"This is very long text with limited width in the top right and is also pink"
.to_string(),
font: font.clone(),
style: TextStyle {
Expand All @@ -66,7 +66,7 @@ fn infotext_system(mut commands: Commands, asset_server: Res<AssetServer>) {
alignment: TextAlignment {
horizontal: HorizontalAlign::Center,
vertical: VerticalAlign::Center,
}
},
},
},
..Default::default()
Expand Down

0 comments on commit 3e6b3b1

Please sign in to comment.