Changeset 21 for trunk/UGame.pas
- Timestamp:
- Oct 5, 2019, 2:23:25 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r20 r21 98 98 SGameOverMessage = 'Game over!'; 99 99 SWinCaption = 'Win'; 100 SWinMessage = 'You won! Do you want to continue to play?';100 SWinMessage = 'You reached %d and won! You can continue to play to get higher score.'; 101 101 SScore = 'Score'; 102 102 STopScore = 'Top score'; … … 265 265 procedure TGame.Win; 266 266 begin 267 if MessageDlg(SWinCaption, SWinMessage, mtConfirmation, 268 mbYesNo, 0) = mrNo then begin 269 Running := False; 270 end; 267 MessageDlg(SWinCaption, Format(SWinMessage, [WinScore]), mtInformation, [mbOk], 0); 271 268 end; 272 269 … … 658 655 FBoardUndo.LoadFromRegistry(TRegistryContext.Create(RegContext.RootKey, RegContext.Key + '\BoardUndo')); 659 656 Board.LoadFromRegistry(TRegistryContext.Create(RegContext.RootKey, RegContext.Key + '\Board')); 657 DoChange; 660 658 end; 661 659
Note:
See TracChangeset
for help on using the changeset viewer.