Ignore:
Timestamp:
Sep 27, 2011, 11:01:18 PM (13 years ago)
Author:
george
Message:
  • Moved: Forms to subdirectory.
  • Added: Preliminary multi language support.
  • Added: New game customization form.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.pas

    r19 r21  
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
    99  ComCtrls, Menus, ActnList, UCore, UPlatform, Math, DateUtils, GraphType,
    10   UPersistentForm, UApplicationInfo;
     10  UPersistentForm, UApplicationInfo, UCoolTranslator;
    1111
    1212type
     
    2222    AFullScreen: TAction;
    2323    ActionList1: TActionList;
     24    CoolTranslator1: TCoolTranslator;
    2425    Image1: TImage;
    2526    MainMenu1: TMainMenu;
     
    6970
    7071uses
    71   UMapForm;
     72  UMapForm, UNewGameForm;
    7273
    7374{ TMainForm }
     
    186187procedure TMainForm.ANewGameExecute(Sender: TObject);
    187188begin
    188   Engine.NewGame;
     189  if NewGameForm.ShowModal = mrOk then Engine.NewGame;
    189190end;
    190191
     
    225226begin
    226227  PersistentForm.Load(Self);
     228  CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode('cs');
    227229end;
    228230
Note: See TracChangeset for help on using the changeset viewer.