fix: Use button UI component in HUD
This commit is contained in:
@@ -41,17 +41,19 @@ fn setup(mut commands: Commands) {
|
|||||||
children![
|
children![
|
||||||
text_with_component(TextType::Phase, "...", 16.0, Color::WHITE),
|
text_with_component(TextType::Phase, "...", 16.0, Color::WHITE),
|
||||||
text_with_component(TextType::Timer, "...", 16.0, Color::WHITE),
|
text_with_component(TextType::Timer, "...", 16.0, Color::WHITE),
|
||||||
(
|
button(
|
||||||
Button,
|
|
||||||
inventory::components::ButtonType::InventoryOpen,
|
inventory::components::ButtonType::InventoryOpen,
|
||||||
|
ButtonVariant::Secondary,
|
||||||
Node::default(),
|
Node::default(),
|
||||||
children![text("Inventar", 16.0, Color::WHITE)]
|
"Inventar",
|
||||||
|
16.0
|
||||||
),
|
),
|
||||||
(
|
button(
|
||||||
Button,
|
|
||||||
ButtonType::SettingsOpen,
|
ButtonType::SettingsOpen,
|
||||||
|
ButtonVariant::Secondary,
|
||||||
Node::default(),
|
Node::default(),
|
||||||
children![text("Einstellungen", 16.0, Color::WHITE)]
|
"Einstellungen",
|
||||||
|
16.0
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user