Changeset 266 for trunk/Forms
- Timestamp:
- Jan 15, 2019, 8:41:53 AM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.lfm
r265 r266 1 1 object FormNew: TFormNew 2 Left = 3652 Left = 546 3 3 Height = 748 4 Top = 1 674 Top = 181 5 5 Width = 1154 6 6 Caption = 'New game' … … 596 596 TabOrder = 3 597 597 end 598 object PageControl 2: TPageControl598 object PageControlWinObjective: TPageControl 599 599 Left = 12 600 600 Height = 78 601 601 Top = 290 602 602 Width = 716 603 ActivePage = TabSheetCapture Cities603 ActivePage = TabSheetCaptureEntireMap 604 604 Anchors = [akTop, akLeft, akRight] 605 605 ShowTabs = False 606 TabIndex = 1606 TabIndex = 5 607 607 TabOrder = 4 608 608 object TabSheetDefeatEnemies: TTabSheet … … 654 654 end 655 655 end 656 object TabSheetNone: TTabSheet 657 end 658 object TabSheetCaptureEntireMap: TTabSheet 659 end 656 660 end 657 661 object CheckBoxEmptyCellsNeutral: TCheckBox -
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.