Changeset 91 for trunk/Core.pas


Ignore:
Timestamp:
Jun 7, 2024, 9:33:19 PM (5 months ago)
Author:
chronos
Message:
  • Added: Flatpak build files.
  • Added: Game menu restart action to start a new game without showing options dialog.
  • Fixed: Fullscreen error after another window was opened.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Core.pas

    r86 r91  
    1414    AAbout: TAction;
    1515    AComputer: TAction;
     16    ARestart: TAction;
    1617    AHistory: TAction;
    1718    AHelp: TAction;
     
    3233    procedure AHistoryExecute(Sender: TObject);
    3334    procedure ANewExecute(Sender: TObject);
     35    procedure ARestartExecute(Sender: TObject);
    3436    procedure ASettingsExecute(Sender: TObject);
    3537    procedure AUndoExecute(Sender: TObject);
     
    194196end;
    195197
     198procedure TCore.ARestartExecute(Sender: TObject);
     199begin
     200  Game.New;
     201  UpdateInterface;
     202  FormMain.FormMain.UpdateInterface;
     203end;
     204
    196205procedure TCore.DataModuleDestroy(Sender: TObject);
    197206begin
Note: See TracChangeset for help on using the changeset viewer.