Ignore:
Timestamp:
Dec 20, 2021, 6:45:12 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
  • Removed: CoolTranslator merged into Common package.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.pas

    r47 r51  
    88  XMLConf, Classes, SysUtils, FileUtil, Forms, Controls, Graphics,
    99  Dialogs, ExtCtrls, ComCtrls, Menus, ActnList, UEngine, UPlatform, Math,
    10   DateUtils, GraphType, UPersistentForm, UApplicationInfo, UCoolTranslator,
    11   LCLType, URegistry;
     10  DateUtils, GraphType, UPersistentForm, UApplicationInfo, UTranslator,
     11  LCLType, URegistry, UAboutDialog;
    1212
    1313type
     
    1717  TMainForm = class(TForm)
    1818    AAbout: TAction;
     19    AboutDialog1: TAboutDialog;
    1920    AShowRawImageDesc: TAction;
    2021    AShowMap: TAction;
     
    143144  Engine := TEngine.Create;
    144145  Engine.Bitmap := Image1.Picture.Bitmap;
    145   Core.CoolTranslator1.Language := Core.CoolTranslator1.Languages.SearchByCode('cs');
     146  Core.Translator1.Language := Core.Translator1.Languages.SearchByCode('cs');
    146147  LoadConfig;
    147148  Engine.NewGame;
     
    221222procedure TMainForm.AAboutExecute(Sender: TObject);
    222223begin
    223   FormAbout := TFormAbout.Create(nil);
    224   FormAbout.ShowModal;
    225   FreeAndNil(FormAbout);
     224  AboutDialog1.Show;
    226225end;
    227226
Note: See TracChangeset for help on using the changeset viewer.