Changeset 64 for trunk/Start.pas


Ignore:
Timestamp:
Jan 14, 2017, 12:52:41 AM (7 years ago)
Author:
chronos
Message:
  • Added: New configuration dialog for selecting interface language.
  • Added: Czech and Deutch language recoded to UTF-8.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r53 r64  
    107107
    108108uses
    109   Directories, Protocol, Direct, ScreenTools, Inp, Back;
     109  Directories, Protocol, Direct, ScreenTools, Inp, Back, Locale;
    110110
    111111{$R *.lfm}
     
    249249
    250250  ActionsOffered := [maManual, maCredits, maWeb];
    251   if FileExists(HomeDir + 'Configurator.exe') then
    252     Include(ActionsOffered, maConfig);
     251  Include(ActionsOffered, maConfig);
    253252  if FileExists(HomeDir + 'AI Template' + DirectorySeparator + 'AI development manual.html') then
    254253    Include(ActionsOffered, maAIDev);
     
    404403  i: integer;
    405404begin
    406   FormerGames.Free;
    407   Maps.Free;
    408   Mini.Free;
    409   EmptyPicture.Free;
    410   LogoBuffer.Free;
     405  FreeAndNil(FormerGames);
     406  FreeAndNil(Maps);
     407  FreeAndNil(Mini);
     408  FreeAndNil(EmptyPicture);
     409  FreeAndNil(LogoBuffer);
    411410  for i := 0 to nBrain - 1 do
    412     BrainPicture[i].Free;
     411    FreeAndNil(BrainPicture[i]);
    413412end;
    414413
     
    15651564      maConfig:
    15661565        begin
    1567            OpenDocument(pchar(HomeDir + 'Configurator.exe'));
    1568           Close
     1566          LocaleDlg := TLocaleDlg.Create(nil);
     1567          if LocaleDlg.ShowModal = mrOk then begin
     1568            LoadPhrases;
     1569            Invalidate;
     1570          end;
     1571          FreeAndNil(LocaleDlg);
    15691572        end;
    15701573      maManual:
     
    15731576        DirectHelp(cStartCredits);
    15741577      maAIDev:
    1575          OpenDocument(pchar(HomeDir + 'AI Template' + DirectorySeparator + 'AI development manual.html'));
     1578        OpenDocument(pchar(HomeDir + 'AI Template' + DirectorySeparator + 'AI development manual.html'));
    15761579      maWeb:
    15771580        OpenURL('http://c-evo.org')
Note: See TracChangeset for help on using the changeset viewer.