fix: Use button UI component in HUD

This commit is contained in:
demenik
2025-11-28 15:51:28 +01:00
parent 96c76da7f6
commit 6536d54972

View File

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