From 6536d54972cffbf9acbd0dd73103447c8546aa3e Mon Sep 17 00:00:00 2001 From: demenik Date: Fri, 28 Nov 2025 15:51:28 +0100 Subject: [PATCH] fix: Use button UI component in HUD --- src/features/hud/mod.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/features/hud/mod.rs b/src/features/hud/mod.rs index bafd140..27ec5b1 100644 --- a/src/features/hud/mod.rs +++ b/src/features/hud/mod.rs @@ -41,17 +41,19 @@ fn setup(mut commands: Commands) { children![ text_with_component(TextType::Phase, "...", 16.0, Color::WHITE), text_with_component(TextType::Timer, "...", 16.0, Color::WHITE), - ( - Button, + button( inventory::components::ButtonType::InventoryOpen, + ButtonVariant::Secondary, Node::default(), - children![text("Inventar", 16.0, Color::WHITE)] + "Inventar", + 16.0 ), - ( - Button, + button( ButtonType::SettingsOpen, + ButtonVariant::Secondary, Node::default(), - children![text("Einstellungen", 16.0, Color::WHITE)] + "Einstellungen", + 16.0 ) ], ));