Changeset 26
- Timestamp:
- Mar 3, 2014, 12:59:49 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Languages/xtactics.cs.po
r23 r26 48 48 msgstr "." 49 49 50 #: tformmove.buttoncancel.caption 51 msgid "Cancel" 52 msgstr "" 53 54 #: tformmove.buttonok.caption 55 msgid "Ok" 56 msgstr "" 57 58 #: tformmove.caption 59 msgid "Move" 60 msgstr "" 61 62 #: tformmove.label1.caption 63 msgid "Once:" 64 msgstr "" 65 66 #: tformmove.label2.caption 67 msgid "Every turn:" 68 msgstr "" 69 50 70 #: ucore.splayerwins 51 71 msgctxt "ucore.splayerwins" -
trunk/Languages/xtactics.po
r23 r26 39 39 msgstr "" 40 40 41 #: tformmove.buttoncancel.caption 42 msgid "Cancel" 43 msgstr "" 44 45 #: tformmove.buttonok.caption 46 msgid "Ok" 47 msgstr "" 48 49 #: tformmove.caption 50 msgid "Move" 51 msgstr "" 52 53 #: tformmove.label1.caption 54 msgid "Once:" 55 msgstr "" 56 57 #: tformmove.label2.caption 58 msgid "Every turn:" 59 msgstr "" 60 41 61 #: ucore.splayerwins 42 62 msgctxt "ucore.splayerwins" -
trunk/UCore.pas
r25 r26 60 60 else FormMove.SpinEditOnce.MaxValue := CellFrom.GetAvialPower; 61 61 FormMove.SpinEditOnce.Value := CountOnce; 62 FormMove.TrackBarOnce.Max := FormMove.SpinEditOnce.MaxValue; 63 FormMove.TrackBarOnce.Position := FormMove.SpinEditOnce.Value; 62 64 FormMove.SpinEditRepeat.MaxValue := Game.Map.MaxPower; 63 65 FormMove.SpinEditRepeat.Value := CountRepeat; 66 FormMove.TrackBarRepeat.Max := FormMove.SpinEditRepeat.MaxValue; 67 FormMove.TrackBarRepeat.Position := FormMove.SpinEditRepeat.Value; 64 68 if FormMove.ShowModal = mrOk then begin 65 69 CountOnce := FormMove.SpinEditOnce.Value; -
trunk/UFormMove.lfm
r12 r26 14 14 Top = 16 15 15 Width = 98 16 OnChange = SpinEditOnceChange 16 17 TabOrder = 0 17 18 end 18 19 object Label1: TLabel 19 Left = 3220 Left = 24 20 21 Height = 22 21 Top = 3222 Top = 16 22 23 Width = 46 23 24 Caption = 'Once:' … … 27 28 Left = 192 28 29 Height = 25 29 Top = 19330 Top = 200 30 31 Width = 75 31 32 Caption = 'Ok' … … 37 38 Left = 72 38 39 Height = 25 39 Top = 19240 Top = 200 40 41 Width = 75 41 42 Caption = 'Cancel' … … 44 45 end 45 46 object Label2: TLabel 46 Left = 3247 Left = 24 47 48 Height = 22 48 Top = 1 0449 Top = 120 49 50 Width = 87 50 51 Caption = 'Every turn:' … … 54 55 Left = 208 55 56 Height = 32 56 Top = 9657 Top = 112 57 58 Width = 98 59 OnChange = SpinEditRepeatChange 58 60 TabOrder = 3 59 61 end 62 object TrackBarOnce: TTrackBar 63 Left = 8 64 Height = 43 65 Top = 55 66 Width = 296 67 OnChange = TrackBarOnceChange 68 Position = 0 69 TickStyle = tsNone 70 Anchors = [akTop, akLeft, akRight] 71 TabOrder = 4 72 end 73 object TrackBarRepeat: TTrackBar 74 Left = 8 75 Height = 43 76 Top = 152 77 Width = 304 78 OnChange = TrackBarRepeatChange 79 Position = 0 80 TickStyle = tsNone 81 Anchors = [akTop, akLeft, akRight] 82 TabOrder = 5 83 end 60 84 end -
trunk/UFormMove.pas
r12 r26 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Spin, 9 StdCtrls ;9 StdCtrls, ComCtrls; 10 10 11 11 type … … 20 20 SpinEditOnce: TSpinEdit; 21 21 SpinEditRepeat: TSpinEdit; 22 TrackBarOnce: TTrackBar; 23 TrackBarRepeat: TTrackBar; 24 procedure SpinEditOnceChange(Sender: TObject); 25 procedure SpinEditRepeatChange(Sender: TObject); 26 procedure TrackBarOnceChange(Sender: TObject); 27 procedure TrackBarRepeatChange(Sender: TObject); 22 28 private 23 29 { private declarations } … … 33 39 {$R *.lfm} 34 40 41 { TFormMove } 42 43 procedure TFormMove.TrackBarOnceChange(Sender: TObject); 44 begin 45 if SpinEditOnce.Value <> TrackBarOnce.Position then 46 SpinEditOnce.Value := TrackBarOnce.Position; 47 end; 48 49 procedure TFormMove.TrackBarRepeatChange(Sender: TObject); 50 begin 51 if SpinEditRepeat.Value <> TrackBarRepeat.Position then 52 SpinEditRepeat.Value := TrackBarRepeat.Position; 53 end; 54 55 procedure TFormMove.SpinEditOnceChange(Sender: TObject); 56 begin 57 if SpinEditOnce.Value <> TrackBarOnce.Position then 58 TrackBarOnce.Position := SpinEditOnce.Value; 59 end; 60 61 procedure TFormMove.SpinEditRepeatChange(Sender: TObject); 62 begin 63 if SpinEditRepeat.Value <> TrackBarRepeat.Position then 64 TrackBarRepeat.Position := SpinEditRepeat.Value; 65 end; 66 35 67 end. 36 68 -
trunk/UGame.pas
r25 r26 329 329 for I := 0 to Length(Cells) - 1 do 330 330 if (Cells[I].Terrain <> ttVoid) and (Cells[I].Player <> Self) then begin 331 if I = 0then begin331 if Target = nil then begin 332 332 MinPower := Cells[I].Power; 333 333 Target := Cells[I];
Note:
See TracChangeset
for help on using the changeset viewer.