Changeset 266 for trunk/Forms/UFormNew.pas
- Timestamp:
- Jan 15, 2019, 8:41:53 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r265 r266 67 67 OpenPictureDialog1: TOpenPictureDialog; 68 68 PageControl1: TPageControl; 69 PageControl 2: TPageControl;69 PageControlWinObjective: TPageControl; 70 70 Panel1: TPanel; 71 71 Panel2: TPanel; … … 91 91 SpinEditVoidPercent: TSpinEdit; 92 92 Splitter1: TSplitter; 93 TabSheetCaptureEntireMap: TTabSheet; 94 TabSheetNone: TTabSheet; 93 95 TabSheetCaptureCells: TTabSheet; 94 96 TabSheetCaptureCities: TTabSheet; … … 330 332 331 333 procedure TFormNew.UpdateInterface; 334 var 335 WinObjective: TWinObjective; 332 336 begin 333 337 APlayerRemove.Enabled := Assigned(ListViewPlayers.Selected) and (Players.Count > MinPlayerCount); … … 344 348 AServerAdd.Enabled := RadioButtonModeNetworkClient.Checked; 345 349 AServerModify.Enabled := RadioButtonModeNetworkClient.Checked; 346 PageControl2.TabIndex := ComboBoxWinObjective.ItemIndex; 350 WinObjective := TWinObjective(ComboBoxWinObjective.ItemIndex); 351 case WinObjective of 352 woNone: PageControlWinObjective.TabIndex := PageControlWinObjective.IndexOf(TabSheetNone); 353 woDefeatAllOponents: PageControlWinObjective.TabIndex := PageControlWinObjective.IndexOf(TabSheetDefeatEnemies); 354 woDefeatAllOponentsCities: PageControlWinObjective.TabIndex := PageControlWinObjective.IndexOf(TabSheetCaptureCities); 355 woSpecialCaptureCell: PageControlWinObjective.TabIndex := PageControlWinObjective.IndexOf(TabSheetCaptureCells); 356 woStayAliveForDefinedTurns: PageControlWinObjective.TabIndex := PageControlWinObjective.IndexOf(TabSheetStayAliveTurns); 357 woCaptureEntireMap: PageControlWinObjective.TabIndex := PageControlWinObjective.IndexOf(TabSheetCaptureEntireMap); 358 end; 347 359 end; 348 360
Note:
See TracChangeset
for help on using the changeset viewer.