From 01067d4770e1945e2068ee959941bd0e687af3b3 Mon Sep 17 00:00:00 2001 From: demenik Date: Thu, 11 Dec 2025 20:22:31 +0100 Subject: [PATCH] fix: Change order of buttons in load save game menu --- src/features/savegame/ui/load.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/features/savegame/ui/load.rs b/src/features/savegame/ui/load.rs index a03eb7c..a9ec630 100644 --- a/src/features/savegame/ui/load.rs +++ b/src/features/savegame/ui/load.rs @@ -68,18 +68,6 @@ pub fn spawn_load_popup(commands: &mut Commands, asset_server: &AssetServer) { ), ] ), - pill_button( - ButtonType::SavegameDelete { - savegame_path: savegame.path.clone() - }, - ButtonVariant::Destructive, - Node { - width: px(40), - height: px(40), - ..default() - }, - |color| text("X", 24.0, color) - ), button( ButtonType::Achievements { savegame: savegame.clone() @@ -98,6 +86,18 @@ pub fn spawn_load_popup(commands: &mut Commands, asset_server: &AssetServer) { name: "Achievement".into() } ) + ), + pill_button( + ButtonType::SavegameDelete { + savegame_path: savegame.path.clone() + }, + ButtonVariant::Destructive, + Node { + width: px(40), + height: px(40), + ..default() + }, + |color| text("X", 24.0, color) ) ], )