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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.