Changeset 315 for trunk/UCore.pas


Ignore:
Timestamp:
Jun 19, 2024, 11:15:44 PM (5 months ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r313 r315  
    77uses
    88  Classes, SysUtils, XMLConf, FileUtil, ActnList, Controls, Dialogs, Forms,
    9   UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UTranslator, DOM,
    10   URegistry, ULastOpenedList, UTheme, UAboutDialog, Registry, Menus,
     9  UGame, ApplicationInfo, PersistentForm, ScaleDPI, Translator, DOM,
     10  RegistryEx, LastOpenedList, Theme, Registry, Menus,
    1111  UFormClient, UPlayer, UGameServer, UGameClient, fgl, UServerList, UGameSystem,
    1212  Graphics, UUnit;
     
    1818  TCore = class(TDataModule)
    1919    AAbout: TAction;
    20     AboutDialog1: TAboutDialog;
    2120    AFullscreen: TAction;
    2221    AToggleFogOfWar: TAction;
     
    131130
    132131uses
    133   UFormMain, UFormNew, UFormSettings, UClientAI, UFormKeyShortcuts, UCommon,
    134   UFormHelp, UFormCharts, UFormUnitMoves, UFormPlayersStats, UClientGUI;
     132  UFormMain, UFormNew, UFormSettings, UClientAI, UFormKeyShortcuts, Common,
     133  UFormHelp, UFormCharts, UFormUnitMoves, UFormPlayersStats, UClientGUI, FormAbout;
    135134
    136135const
     
    308307
    309308procedure TCore.AAboutExecute(Sender: TObject);
    310 begin
    311   AboutDialog1.Show;
     309var
     310  FormAbout: TFormAbout;
     311begin
     312  FormAbout := TFormAbout.Create(nil);
     313  try
     314    FormAbout.ApplicationInfo := ApplicationInfo;
     315    FormAbout.ShowModal;
     316  finally
     317    FormAbout.Free;
     318  end;
    312319end;
    313320
     
    471478    CoolTranslator1.POFilesFolder := LinuxLanguagesDir;
    472479  {$ENDIF}
    473  
     480
    474481  GameSystems := TGameSystems.Create;
    475482  Server := TServer.Create;
Note: See TracChangeset for help on using the changeset viewer.