Changeset 198 for trunk/Forms/UFormNew.pas
- Timestamp:
- May 16, 2018, 1:38:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.