Changeset 40 for trunk/Forms


Ignore:
Timestamp:
Mar 11, 2014, 9:09:56 AM (11 years ago)
Author:
chronos
Message:
  • Fixed: Save game settings not only on application exit but also on new game confirmation.
  • Modified: Made moves arrows look like arrow now.
Location:
trunk/Forms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMove.lfm

    r34 r40  
    88  ClientHeight = 240
    99  ClientWidth = 320
     10  OnShow = FormShow
    1011  LCLVersion = '1.3'
    1112  object SpinEditOnce: TSpinEdit
  • trunk/Forms/UFormMove.pas

    r34 r40  
    2222    TrackBarOnce: TTrackBar;
    2323    TrackBarRepeat: TTrackBar;
     24    procedure FormShow(Sender: TObject);
    2425    procedure SpinEditOnceChange(Sender: TObject);
    2526    procedure SpinEditRepeatChange(Sender: TObject);
     
    5960end;
    6061
     62procedure TFormMove.FormShow(Sender: TObject);
     63begin
     64  ButtonOk.SetFocus;
     65end;
     66
    6167procedure TFormMove.SpinEditRepeatChange(Sender: TObject);
    6268begin
  • trunk/Forms/UFormNew.pas

    r39 r40  
    194194  SpinEditMapSizeX.Value := Game.Map.Size.X;
    195195  SpinEditMapSizeY.Value := Game.Map.Size.Y;
     196  TrackBarSizeX.Position := Game.Map.Size.X;
     197  TrackBarSizeY.Position := Game.Map.Size.Y;
    196198  RadioGroupGrowAmount.ItemIndex := Integer(Game.GrowAmount);
    197199  RadioGroupGrowCells.ItemIndex := Integer(Game.GrowCells);
Note: See TracChangeset for help on using the changeset viewer.