Changeset 68 for trunk/Forms


Ignore:
Timestamp:
Sep 28, 2014, 2:36:03 PM (10 years ago)
Author:
chronos
Message:
  • Added: Option to change animation speed.
  • Fixed: Shifted view during computer turn.
Location:
trunk/Forms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormSettings.lfm

    r55 r68  
    2929  object Label1: TLabel
    3030    Left = 20
    31     Height = 25
     31    Height = 22
    3232    Top = 26
    33     Width = 95
     33    Width = 80
    3434    Caption = 'Language:'
    3535    ParentColor = False
     
    3737  object ComboBoxLanguage: TComboBox
    3838    Left = 178
    39     Height = 37
     39    Height = 34
    4040    Top = 24
    4141    Width = 196
     
    4646  object CheckBoxDevelMode: TCheckBox
    4747    Left = 16
    48     Height = 27
     48    Height = 24
    4949    Top = 80
    50     Width = 176
     50    Width = 157
    5151    Caption = 'Developer mode'
    5252    TabOrder = 3
    5353  end
     54  object SpinEditAnimSpeed: TSpinEdit
     55    Left = 184
     56    Height = 32
     57    Top = 120
     58    Width = 122
     59    TabOrder = 4
     60  end
     61  object Label2: TLabel
     62    Left = 19
     63    Height = 22
     64    Top = 126
     65    Width = 140
     66    Caption = 'Animation speed:'
     67    ParentColor = False
     68  end
     69  object Label3: TLabel
     70    Left = 311
     71    Height = 22
     72    Top = 128
     73    Width = 15
     74    Caption = '%'
     75    ParentColor = False
     76  end
    5477end
  • trunk/Forms/UFormSettings.lrt

    r55 r68  
    44TFORMSETTINGS.LABEL1.CAPTION=Language:
    55TFORMSETTINGS.CHECKBOXDEVELMODE.CAPTION=Developer mode
     6TFORMSETTINGS.LABEL2.CAPTION=Animation speed:
     7TFORMSETTINGS.LABEL3.CAPTION=%
  • trunk/Forms/UFormSettings.pas

    r55 r68  
    66
    77uses
    8   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
     8  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
     9  Spin;
    910
    1011type
     
    1819    ComboBoxLanguage: TComboBox;
    1920    Label1: TLabel;
     21    Label2: TLabel;
     22    Label3: TLabel;
     23    SpinEditAnimSpeed: TSpinEdit;
    2024  private
    2125    { private declarations }
     
    4044begin
    4145  Core.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);
    42    ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language);
    43    if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0;
    44    CheckBoxDevelMode.Checked := Core.DevelMode;
     46  ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language);
     47  if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0;
     48  CheckBoxDevelMode.Checked := Core.DevelMode;
     49  SpinEditAnimSpeed.Value := Core.AnimationSpeed;
    4550end;
    4651
     
    5055    Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);
    5156  Core.DevelMode := CheckBoxDevelMode.Checked;
     57  Core.AnimationSpeed := SpinEditAnimSpeed.Value;
    5258end;
    5359
Note: See TracChangeset for help on using the changeset viewer.