Skip to content

Commit

Permalink
Merge pull request #587 from rparrett/adjust-font-sizes
Browse files Browse the repository at this point in the history
Adjust text and font sizes in examples that show coordinates
  • Loading branch information
ChristopherBiscardi authored Dec 24, 2024
2 parents 91b15da + c7e341c commit 6ff6632
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/hex_neighbors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ fn spawn_tile_labels(

let label_entity = commands
.spawn((
Text2d::new(format!("{}, {}", tile_pos.x, tile_pos.y)),
Text2d::new(format!("{},{}", tile_pos.x, tile_pos.y)),
TextFont {
font_size: 20.0,
font_size: 14.0,
..default()
},
TextColor(Color::BLACK),
Expand Down
6 changes: 3 additions & 3 deletions examples/hex_neighbors_radius_chunks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ fn swap_map_type(
&map_type,
&map_transform,
);
tile_label_text.0 = format!("{}, {}", hex_pos.x, hex_pos.y);
tile_label_text.0 = format!("{},{}", hex_pos.x, hex_pos.y);
}
}
}
Expand All @@ -327,9 +327,9 @@ fn spawn_tile_labels(

let label_entity = commands
.spawn((
Text2d(format!("{}, {}", hex_pos.x, hex_pos.y)),
Text2d(format!("{},{}", hex_pos.x, hex_pos.y)),
TextFont {
font_size: 20.0,
font_size: 14.0,
..default()
},
TextColor(Color::BLACK),
Expand Down
4 changes: 2 additions & 2 deletions examples/mouse_to_tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ fn spawn_tile_labels(

let label_entity = commands
.spawn((
Text2d::new(format!("{}, {}", tile_pos.x, tile_pos.y)),
Text2d::new(format!("{},{}", tile_pos.x, tile_pos.y)),
TextFont {
font_size: 20.0,
font_size: 14.0,
..default()
},
TextColor(Color::BLACK),
Expand Down

0 comments on commit 6ff6632

Please sign in to comment.