Changeset 74 for trunk/UCore.pas


Ignore:
Timestamp:
Oct 4, 2014, 9:19:27 PM (10 years ago)
Author:
chronos
Message:
  • Added: Show player color in player list.
  • Added: Confirmation dialog for game restart action.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r72 r74  
    7575  SEndGame = 'End game?';
    7676  SEndGameQuestion = 'Do you want to end current game?';
     77  SRestartGame = 'Restart game?';
     78  SRestartGameQuestion = 'Do you want to restart current game?';
    7779
    7880
     
    203205procedure TCore.AGameRestartExecute(Sender: TObject);
    204206begin
    205   Game.New;
    206   Game.Running := True;
    207   FormMain.AZoomAll.Execute;
    208   FormMain.Redraw;
    209   UpdateActions;
     207  if MessageDlg(SRestartGame, SRestartGameQuestion, mtConfirmation, mbYesNo, 0) = mrYes then begin
     208    Game.New;
     209    Game.Running := True;
     210    FormMain.AZoomAll.Execute;
     211    FormMain.Redraw;
     212    UpdateActions;
     213  end;
    210214end;
    211215
Note: See TracChangeset for help on using the changeset viewer.