Skip to content

Commit

Permalink
Added explanatory text on 'Return to Lobby' confirmation screen
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 committed Mar 27, 2021
1 parent 7552813 commit ede0ad7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dialog/English.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ collabutils2_returntolobby= Return to Lobby
collabutils2_restartspeedberry= Restart Speed Berry

collabutils2_returntolobby_confirm_title= RETURN TO LOBBY?
collabutils2_returntolobby_confirm_note1= If you choose "Save", you will be able to resume from where you left off
collabutils2_returntolobby_confirm_note2= by coming back to the map in the lobby and choosing "Continue".
collabutils2_returntolobby_confirm_save= Save
collabutils2_returntolobby_confirm_donotsave= Do Not Save
collabutils2_returntolobby_confirm_cancel= Cancel
Expand Down
5 changes: 5 additions & 0 deletions UI/ReturnToLobbyHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ private static void openReturnToLobbyConfirmMenu(Level level, int returnIndex) {

// Save
if (CollabModule.Instance.Session.SaveAndReturnToLobbyAllowed) {
// add some explanatory text on the "Save" and "Do Not Save" options
menu.Add(new TextMenu.SubHeader(Dialog.Clean("collabutils2_returntolobby_confirm_note1")));
menu.Add(new TextMenuExt.SubHeaderExt(Dialog.Clean("collabutils2_returntolobby_confirm_note2")) { HeightExtra = 0f });
menu.Add(new TextMenu.SubHeader(""));

menu.Add(new TextMenu.Button(Dialog.Clean("collabutils2_returntolobby_confirm_save")).Pressed(() => {
Engine.TimeRate = 1f;
menu.Focused = false;
Expand Down

0 comments on commit ede0ad7

Please sign in to comment.