Changeset 21 for trunk/Forms


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.
Location:
trunk/Forms
Files:
5 added
4 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.lfm

    r19 r21  
    9494  end
    9595  object ActionList1: TActionList
    96     left = 272
    97     top = 24
     96    left = 288
     97    top = 32
    9898    object AFullScreen: TAction
    9999      Caption = 'Fullscreen mode'
     
    124124    end
    125125  end
     126  object CoolTranslator1: TCoolTranslator
     127    POFilesFolder = 'Languages'
     128    left = 288
     129    top = 104
     130  end
    126131end
  • 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.