Skip to content

Commit

Permalink
fix(pause_menu): Remove Map "Edit" button from pause menu until map
Browse files Browse the repository at this point in the history
editor restored
  • Loading branch information
MaxCWhitehead committed Jul 11, 2024
1 parent 4c9c8a6 commit d20e3d0
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/ui/pause_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,18 +248,20 @@ fn main_pause_menu(
}
});

// Re-add edit button once map editor is back in game.
//
// Edit button
ui.scope(|ui| {
if BorderedButton::themed(&meta.theme.buttons.normal, localization.get("edit"))
.min_size(vec2(width, 0.0))
.show(ui)
.clicked()
{
// TODO: show editor.
pause_session(false, *is_online, session, false);
**close_pause_menu = true;
}
});
// ui.scope(|ui| {
// if BorderedButton::themed(&meta.theme.buttons.normal, localization.get("edit"))
// .min_size(vec2(width, 0.0))
// .show(ui)
// .clicked()
// {
// // TODO: show editor.
// pause_session(false, *is_online, session, false);
// **close_pause_menu = true;
// }
// });

// Main menu button
if BorderedButton::themed(&meta.theme.buttons.normal, localization.get("main-menu"))
Expand Down

0 comments on commit d20e3d0

Please sign in to comment.