Changeset 51 for trunk/Forms


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.
Location:
trunk/Forms
Files:
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNewGame.pas

    r47 r51  
    288288procedure TFormNewGame.FormCreate(Sender: TObject);
    289289begin
    290   Core.CoolTranslator1.TranslateComponentRecursive(Self);
     290  Core.Translator1.TranslateComponentRecursive(Self);
    291291  Players := TPlayers.Create;
    292292end;
  • trunk/Forms/UMainForm.lfm

    r47 r51  
    11object MainForm: TMainForm
    2   Left = 486
    3   Height = 515
    4   Top = 258
    5   Width = 642
     2  Left = 692
     3  Height = 618
     4  Top = 479
     5  Width = 770
    66  Caption = 'Tunneler'
    7   ClientHeight = 490
    8   ClientWidth = 642
    9   DesignTimePPI = 120
     7  ClientHeight = 584
     8  ClientWidth = 770
     9  DesignTimePPI = 144
    1010  Menu = MainMenu1
    1111  OnClose = FormClose
     
    1616  OnKeyUp = FormKeyUp
    1717  OnShow = FormShow
    18   LCLVersion = '2.0.2.0'
     18  LCLVersion = '2.0.12.0'
    1919  object StatusBar1: TStatusBar
    2020    Left = 0
    21     Height = 28
    22     Top = 462
    23     Width = 642
     21    Height = 27
     22    Top = 557
     23    Width = 770
    2424    Panels = <   
    2525      item
    26         Width = 62
     26        Width = 74
    2727      end   
    2828      item
    29         Width = 62
     29        Width = 74
    3030      end   
    3131      item
    32         Width = 62
     32        Width = 74
    3333      end   
    3434      item
    35         Width = 62
     35        Width = 74
    3636      end   
    3737      item
    38         Width = 62
     38        Width = 74
    3939      end   
    4040      item
    41         Width = 62
     41        Width = 74
    4242      end   
    4343      item
    44         Width = 62
     44        Width = 74
    4545      end>
    4646    ParentFont = False
     
    4949  object Image1: TImage
    5050    Left = 0
    51     Height = 462
     51    Height = 557
    5252    Top = 0
    53     Width = 642
     53    Width = 770
    5454    Align = alClient
    5555    OnMouseLeave = Image1MouseLeave
     
    5959    Interval = 50
    6060    OnTimer = TimerDrawTimer
    61     left = 124
    62     top = 63
     61    Left = 149
     62    Top = 76
    6363  end
    6464  object MainMenu1: TMainMenu
    65     left = 230
    66     top = 20
     65    Left = 276
     66    Top = 24
    6767    object MenuItem1: TMenuItem
    6868      Caption = 'Game'
     
    9393    Interval = 20
    9494    OnTimer = TimerEngineTickTimer
    95     left = 120
    96     top = 130
     95    Left = 144
     96    Top = 156
    9797  end
    9898  object ActionList1: TActionList
    99     left = 360
    100     top = 40
     99    Left = 432
     100    Top = 48
    101101    object AFullScreen: TAction
    102102      Caption = 'Fullscreen mode'
     
    132132    RootName = 'CONFIG'
    133133    ReadOnly = False
    134     left = 124
    135     top = 300
     134    Left = 149
     135    Top = 360
     136  end
     137  object AboutDialog1: TAboutDialog
     138    CoolTranslator = Core.Translator1
     139    ThemeManager = Core.ThemeManager1
     140    ApplicationInfo = Core.ApplicationInfo
     141    Left = 308
     142    Top = 181
    136143  end
    137144end
  • 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.