Changeset 198 for trunk/Forms
- Timestamp:
- May 16, 2018, 1:38:11 PM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.lfm
r197 r198 505 505 'Stay alive for number of turns' 506 506 ) 507 OnChange = ComboBoxWinObjectiveChange 507 508 Style = csDropDownList 508 509 TabOrder = 1 … … 540 541 TabOrder = 3 541 542 end 542 object Label13: TLabel 543 Left = 8 544 Height = 20 545 Top = 280 546 Width = 111 547 Caption = 'Number of turns:' 548 ParentColor = False 549 end 550 object SpinEditTurns: TSpinEdit 551 Left = 236 552 Height = 28 553 Top = 278 554 Width = 159 555 MaxValue = 1000 556 MinValue = 1 543 object PageControl2: TPageControl 544 Left = 12 545 Height = 78 546 Top = 274 547 Width = 756 548 ActivePage = TabSheetCaptureCities 549 Anchors = [akTop, akLeft, akRight] 550 ShowTabs = False 551 TabIndex = 1 557 552 TabOrder = 4 558 Value = 1 553 object TabSheetDefeatEnemies: TTabSheet 554 end 555 object TabSheetCaptureCities: TTabSheet 556 end 557 object TabSheetCaptureCells: TTabSheet 558 ClientHeight = 70 559 ClientWidth = 748 560 object Label14: TLabel 561 Left = 8 562 Height = 20 563 Top = 16 564 Width = 125 565 Caption = 'Special cells count:' 566 ParentColor = False 567 end 568 object SpinEditSpecialCells: TSpinEdit 569 Left = 236 570 Height = 28 571 Top = 8 572 Width = 159 573 MaxValue = 1000 574 MinValue = 1 575 TabOrder = 0 576 Value = 1 577 end 578 end 579 object TabSheetStayAliveTurns: TTabSheet 580 ClientHeight = 70 581 ClientWidth = 748 582 object Label13: TLabel 583 Left = 8 584 Height = 20 585 Top = 16 586 Width = 111 587 Caption = 'Number of turns:' 588 ParentColor = False 589 end 590 object SpinEditTurns: TSpinEdit 591 Left = 236 592 Height = 28 593 Top = 8 594 Width = 159 595 MaxValue = 1000 596 MinValue = 1 597 TabOrder = 0 598 Value = 1 599 end 600 end 559 601 end 560 602 end -
trunk/Forms/UFormNew.pas
r197 r198 46 46 Label12: TLabel; 47 47 Label13: TLabel; 48 Label14: TLabel; 48 49 Label2: TLabel; 49 50 Label3: TLabel; … … 64 65 OpenPictureDialog1: TOpenPictureDialog; 65 66 PageControl1: TPageControl; 67 PageControl2: TPageControl; 66 68 PanelButtons: TPanel; 67 69 PanelChat: TPanel; … … 73 75 RadioGroupGrowAmount: TRadioGroup; 74 76 RadioGroupGrowCells: TRadioGroup; 75 SpinEditTurns: TSpinEdit;76 77 SpinEditMaxPower: TSpinEdit; 77 78 SpinEditServerPort: TSpinEdit; … … 80 81 SpinEditMapSizeY: TSpinEdit; 81 82 SpinEditNeutralUnits: TSpinEdit; 83 SpinEditSpecialCells: TSpinEdit; 84 SpinEditTurns: TSpinEdit; 82 85 SpinEditVoidPercent: TSpinEdit; 83 86 Splitter1: TSplitter; … … 85 88 TabSheet2: TTabSheet; 86 89 TabSheet3: TTabSheet; 90 TabSheetStayAliveTurns: TTabSheet; 91 TabSheetCaptureCells: TTabSheet; 92 TabSheetDefeatEnemies: TTabSheet; 93 TabSheetCaptureCities: TTabSheet; 87 94 TabSheetMode: TTabSheet; 88 95 TrackBarSizeX: TTrackBar; … … 98 105 procedure CheckBoxVoidChange(Sender: TObject); 99 106 procedure ComboBoxMapShapeChange(Sender: TObject); 107 procedure ComboBoxWinObjectiveChange(Sender: TObject); 100 108 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 101 109 procedure FormCreate(Sender: TObject); … … 151 159 SWinObjectiveDefeatAllOponents = 'Defeat all oponents'; 152 160 SWinObjectiveDefeatAllCities = 'Defeat all oponents cities'; 153 SWinObjectiveCapturePosition = 'Capture position';161 SWinObjectiveCapturePosition = 'Capture all special cells'; 154 162 SWinObjectiveStayAliveForTurns = 'Stay alive for number of turns'; 155 163 SGrowNone = 'None'; … … 371 379 begin 372 380 ReloadView; 381 end; 382 383 procedure TFormNew.ComboBoxWinObjectiveChange(Sender: TObject); 384 begin 385 PageControl2.TabIndex := ComboBoxWinObjective.ItemIndex; 373 386 end; 374 387 … … 504 517 SpinEditMaxPower.Value := Game.MaxPower; 505 518 SpinEditTurns.Value := Game.StayAliveForDefinedTurns; 519 SpinEditSpecialCells.Value := Game.SpecialCaptureCellCount; 506 520 end; 507 521 end; … … 540 554 Game.MaxPower := SpinEditMaxPower.Value; 541 555 Game.StayAliveForDefinedTurns := SpinEditTurns.Value; 556 Game.SpecialCaptureCellCount := SpinEditSpecialCells.Value; 542 557 end; 543 558 end;
Note:
See TracChangeset
for help on using the changeset viewer.