fix: Change order of buttons in load save game menu

This commit is contained in:
demenik
2025-12-11 20:22:31 +01:00
parent 2857f59a85
commit 01067d4770

View File

@@ -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( button(
ButtonType::Achievements { ButtonType::Achievements {
savegame: savegame.clone() savegame: savegame.clone()
@@ -98,6 +86,18 @@ pub fn spawn_load_popup(commands: &mut Commands, asset_server: &AssetServer) {
name: "Achievement".into() 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)
) )
], ],
) )