Changeset 42 for trunk/Forms
- Timestamp:
- Mar 18, 2014, 12:16:04 AM (11 years ago)
- Location:
- trunk/Forms
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMove.lfm
r40 r42 1 1 object FormMove: TFormMove 2 2 Left = 770 3 Height = 2 403 Height = 257 4 4 Top = 484 5 5 Width = 320 6 6 ActiveControl = ButtonOk 7 7 Caption = 'Move' 8 ClientHeight = 2 408 ClientHeight = 257 9 9 ClientWidth = 320 10 10 OnShow = FormShow … … 27 27 end 28 28 object ButtonOk: TButton 29 Left = 1 9229 Left = 184 30 30 Height = 25 31 Top = 20 031 Top = 208 32 32 Width = 75 33 33 Caption = 'Ok' … … 39 39 Left = 72 40 40 Height = 25 41 Top = 20 041 Top = 208 42 42 Width = 75 43 43 Caption = 'Cancel' … … 62 62 end 63 63 object TrackBarOnce: TTrackBar 64 Left = 864 Left = 56 65 65 Height = 43 66 66 Top = 55 67 Width = 2 9667 Width = 208 68 68 OnChange = TrackBarOnceChange 69 69 PageSize = 1 … … 74 74 end 75 75 object TrackBarRepeat: TTrackBar 76 Left = 876 Left = 56 77 77 Height = 43 78 78 Top = 152 79 Width = 30479 Width = 208 80 80 OnChange = TrackBarRepeatChange 81 81 PageSize = 1 … … 85 85 TabOrder = 5 86 86 end 87 object ButtonOnceMin: TButton 88 Left = 8 89 Height = 25 90 Top = 64 91 Width = 48 92 Caption = 'Min' 93 OnClick = uttonOnceMinClick 94 TabOrder = 6 95 end 96 object ButtonOnceMax: TButton 97 Left = 264 98 Height = 25 99 Top = 64 100 Width = 48 101 Anchors = [akTop, akRight] 102 Caption = 'Max' 103 OnClick = ButtonOnceMaxClick 104 TabOrder = 7 105 end 106 object ButtonRepeatMin: TButton 107 Left = 8 108 Height = 25 109 Top = 160 110 Width = 48 111 Caption = 'Min' 112 OnClick = ButtonRepeatMinClick 113 TabOrder = 8 114 end 115 object ButtonRepeatMax: TButton 116 Left = 264 117 Height = 25 118 Top = 160 119 Width = 48 120 Anchors = [akTop, akRight] 121 Caption = 'Max' 122 OnClick = ButtonRepeatMaxClick 123 TabOrder = 9 124 end 87 125 end -
trunk/Forms/UFormMove.lrt
r34 r42 4 4 TFORMMOVE.BUTTONCANCEL.CAPTION=Cancel 5 5 TFORMMOVE.LABEL2.CAPTION=Every turn: 6 TFORMMOVE.BUTTONONCEMIN.CAPTION=Min 7 TFORMMOVE.BUTTONONCEMAX.CAPTION=Max 8 TFORMMOVE.BUTTONREPEATMIN.CAPTION=Min 9 TFORMMOVE.BUTTONREPEATMAX.CAPTION=Max -
trunk/Forms/UFormMove.pas
r40 r42 14 14 15 15 TFormMove = class(TForm) 16 ButtonRepeatMax: TButton; 17 ButtonOnceMin: TButton; 18 ButtonOnceMax: TButton; 16 19 ButtonOk: TButton; 17 20 ButtonCancel: TButton; 21 ButtonRepeatMin: TButton; 18 22 Label1: TLabel; 19 23 Label2: TLabel; … … 22 26 TrackBarOnce: TTrackBar; 23 27 TrackBarRepeat: TTrackBar; 28 procedure ButtonOnceMaxClick(Sender: TObject); 29 procedure ButtonRepeatMinClick(Sender: TObject); 30 procedure uttonOnceMinClick(Sender: TObject); 31 procedure ButtonRepeatMaxClick(Sender: TObject); 24 32 procedure FormShow(Sender: TObject); 25 33 procedure SpinEditOnceChange(Sender: TObject); … … 65 73 end; 66 74 75 procedure TFormMove.ButtonOnceMaxClick(Sender: TObject); 76 begin 77 TrackBarOnce.Position := TrackBarRepeat.Max; 78 end; 79 80 procedure TFormMove.ButtonRepeatMinClick(Sender: TObject); 81 begin 82 TrackBarRepeat.Position := TrackBarRepeat.Min; 83 end; 84 85 procedure TFormMove.uttonOnceMinClick(Sender: TObject); 86 begin 87 TrackBarOnce.Position := TrackBarOnce.Min; 88 end; 89 90 procedure TFormMove.ButtonRepeatMaxClick(Sender: TObject); 91 begin 92 TrackBarRepeat.Position := TrackBarRepeat.Max; 93 end; 94 67 95 procedure TFormMove.SpinEditRepeatChange(Sender: TObject); 68 96 begin -
trunk/Forms/UFormNew.lfm
r41 r42 1 1 object FormNew: TFormNew 2 2 Left = 706 3 Height = 5053 Height = 614 4 4 Top = 455 5 5 Width = 716 6 6 Caption = 'New game' 7 ClientHeight = 5057 ClientHeight = 614 8 8 ClientWidth = 716 9 9 OnCreate = FormCreate … … 97 97 object Panel2: TPanel 98 98 Left = 0 99 Height = 33099 Height = 439 100 100 Top = 175 101 101 Width = 716 102 102 Align = alClient 103 103 BevelOuter = bvNone 104 ClientHeight = 330104 ClientHeight = 439 105 105 ClientWidth = 716 106 106 TabOrder = 2 … … 108 108 Left = 624 109 109 Height = 25 110 Top = 283110 Top = 392 111 111 Width = 75 112 112 Anchors = [akRight, akBottom] … … 118 118 Left = 535 119 119 Height = 25 120 Top = 283120 Top = 392 121 121 Width = 75 122 122 Anchors = [akBottom] … … 286 286 object ComboBoxGridType: TComboBox 287 287 Left = 312 288 Height = 3 4288 Height = 30 289 289 Top = 201 290 290 Width = 208 … … 305 305 ParentColor = False 306 306 end 307 object Label6: TLabel 308 Left = 8 309 Height = 22 310 Top = 313 311 Width = 114 312 Caption = 'Win objective:' 313 ParentColor = False 314 end 315 object ComboBoxWinObjective: TComboBox 316 Left = 160 317 Height = 30 318 Top = 305 319 Width = 208 320 ItemHeight = 0 321 Items.Strings = ( 322 'Defeat all oponents' 323 'Defeat all oponents cities' 324 'Capture position' 325 'Stay alive for number of turns' 326 ) 327 Style = csDropDownList 328 TabOrder = 13 329 end 330 object Label7: TLabel 331 Left = 8 332 Height = 22 333 Top = 348 334 Width = 211 335 Caption = 'Max random neutral units:' 336 ParentColor = False 337 end 338 object SpinEditNeutralUnits: TSpinEdit 339 Left = 272 340 Height = 32 341 Top = 343 342 Width = 98 343 MaxValue = 99 344 OnChange = SpinEditMapSizeYChange 345 TabOrder = 14 346 Value = 12 347 end 307 348 end 308 349 object ActionList1: TActionList -
trunk/Forms/UFormNew.lrt
r41 r42 18 18 TFORMNEW.RADIOGROUPGROWCELLS.CAPTION=Growing cells 19 19 TFORMNEW.LABEL5.CAPTION=Grid type: 20 TFORMNEW.LABEL6.CAPTION=Win objective: 21 TFORMNEW.LABEL7.CAPTION=Max random neutral units: 20 22 TFORMNEW.APLAYERMODIFY.CAPTION=Modify player 21 23 TFORMNEW.APLAYERADD.CAPTION=Add player -
trunk/Forms/UFormNew.pas
r41 r42 26 26 CheckBoxVoid: TCheckBox; 27 27 ComboBoxGridType: TComboBox; 28 ComboBoxWinObjective: TComboBox; 28 29 Label1: TLabel; 29 30 Label2: TLabel; … … 31 32 Label4: TLabel; 32 33 Label5: TLabel; 34 Label6: TLabel; 35 Label7: TLabel; 33 36 ListView1: TListView; 34 37 Panel1: TPanel; … … 39 42 SpinEditMapSizeX: TSpinEdit; 40 43 SpinEditMapSizeY: TSpinEdit; 44 SpinEditNeutralUnits: TSpinEdit; 41 45 SpinEditVoidPercent: TSpinEdit; 42 46 Splitter1: TSplitter; … … 228 232 RadioGroupGrowCells.ItemIndex := Integer(Game.GrowCells); 229 233 ComboBoxGridType.ItemIndex := Integer(Game.MapType) - 1; 234 ComboBoxWinObjective.ItemIndex := Integer(Game.WinObjective); 235 SpinEditNeutralUnits.Value := Game.MaxNeutralUnits; 230 236 end; 231 237 … … 250 256 Game.GrowCells := TGrowCells(RadioGroupGrowCells.ItemIndex); 251 257 Game.MapType := TMapType(ComboBoxGridType.ItemIndex + 1); 258 Game.WinObjective := TWinObjective(ComboBoxWinObjective.ItemIndex); 259 Game.MaxNeutralUnits := SpinEditNeutralUnits.Value; 252 260 end; 253 261
Note:
See TracChangeset
for help on using the changeset viewer.