fix: Improve button/pill_button UI element to allow any child
This commit is contained in:
@@ -34,8 +34,7 @@ fn setup(mut commands: Commands) {
|
||||
padding: UiRect::all(px(10)),
|
||||
..default()
|
||||
},
|
||||
"Spiel laden",
|
||||
33.0
|
||||
|color| text("Spiel laden", 33.0, color)
|
||||
),
|
||||
button(
|
||||
ButtonType::NewGame,
|
||||
@@ -45,8 +44,7 @@ fn setup(mut commands: Commands) {
|
||||
padding: UiRect::all(px(10)),
|
||||
..default()
|
||||
},
|
||||
"Neues Spiel",
|
||||
33.0,
|
||||
|color| text("Neues Spiel", 33.0, color)
|
||||
),
|
||||
button(
|
||||
ButtonType::Settings,
|
||||
@@ -56,8 +54,7 @@ fn setup(mut commands: Commands) {
|
||||
padding: UiRect::all(px(10)),
|
||||
..default()
|
||||
},
|
||||
"Einstellungen",
|
||||
33.0
|
||||
|color| text("Einstellungen", 33.0, color)
|
||||
),
|
||||
],
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user