Changeset 61 for trunk/UCore.pas


Ignore:
Timestamp:
Sep 26, 2014, 12:36:53 AM (10 years ago)
Author:
chronos
Message:
  • Added: Confirmation dialog for ending game.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r60 r61  
    7272resourcestring
    7373  SPlayerWins = 'Player %s wins';
     74  SEndGame = 'End game?';
     75  SEndGameQuestion = 'Do you want to end current game?';
    7476
    7577
     
    122124procedure TCore.AGameEndExecute(Sender: TObject);
    123125begin
    124   Game.Running := False;
    125   FormMain.Redraw;
    126   UpdateActions;
     126  if MessageDlg(SEndGame, SEndGameQuestion, mtConfirmation, mbYesNo, 0) = mrYes then begin
     127    Game.Running := False;
     128    FormMain.Redraw;
     129    UpdateActions;
     130  end;
    127131end;
    128132
Note: See TracChangeset for help on using the changeset viewer.