fix: Improve button/pill_button UI element to allow any child

This commit is contained in:
demenik
2025-12-01 14:26:16 +01:00
parent 7a608516eb
commit f908192c0e
8 changed files with 86 additions and 94 deletions

View File

@@ -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)
),
],
));