Skip to content

Commit c7e341c

Browse files
committedDec 23, 2024·
Adjust text and font sizes in examples that show coordinates
1 parent e5319b1 commit c7e341c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎examples/hex_neighbors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ fn spawn_tile_labels(
9292

9393
let label_entity = commands
9494
.spawn((
95-
Text2d::new(format!("{}, {}", tile_pos.x, tile_pos.y)),
95+
Text2d::new(format!("{},{}", tile_pos.x, tile_pos.y)),
9696
TextFont {
97-
font_size: 20.0,
97+
font_size: 14.0,
9898
..default()
9999
},
100100
TextColor(Color::BLACK),

‎examples/hex_neighbors_radius_chunks.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ fn swap_map_type(
300300
&map_type,
301301
&map_transform,
302302
);
303-
tile_label_text.0 = format!("{}, {}", hex_pos.x, hex_pos.y);
303+
tile_label_text.0 = format!("{},{}", hex_pos.x, hex_pos.y);
304304
}
305305
}
306306
}
@@ -327,9 +327,9 @@ fn spawn_tile_labels(
327327

328328
let label_entity = commands
329329
.spawn((
330-
Text2d(format!("{}, {}", hex_pos.x, hex_pos.y)),
330+
Text2d(format!("{},{}", hex_pos.x, hex_pos.y)),
331331
TextFont {
332-
font_size: 20.0,
332+
font_size: 14.0,
333333
..default()
334334
},
335335
TextColor(Color::BLACK),

‎examples/mouse_to_tile.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ fn spawn_tile_labels(
115115

116116
let label_entity = commands
117117
.spawn((
118-
Text2d::new(format!("{}, {}", tile_pos.x, tile_pos.y)),
118+
Text2d::new(format!("{},{}", tile_pos.x, tile_pos.y)),
119119
TextFont {
120-
font_size: 20.0,
120+
font_size: 14.0,
121121
..default()
122122
},
123123
TextColor(Color::BLACK),

0 commit comments

Comments
 (0)
Please sign in to comment.