Changeset 276 for trunk/Forms/UFormNew.pas
- Timestamp:
- Feb 3, 2019, 11:55:30 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r275 r276 33 33 ButtonPlayerModify: TButton; 34 34 ButtonPlayerRemove: TButton; 35 CheckBoxUnitsSplitMerge: TCheckBox;36 CheckBoxEmptyCellsNeutral: TCheckBox;37 35 CheckBoxBridges: TCheckBox; 38 36 CheckBoxCity: TCheckBox; … … 40 38 CheckBoxFogOfWar: TCheckBox; 41 39 CheckBoxSymetricMap: TCheckBox; 42 CheckBoxUnitsMoveImmediately: TCheckBox;43 40 CheckBoxVoid: TCheckBox; 44 41 ComboBoxGameSystem: TComboBox; … … 192 189 uses 193 190 UFormPlayer, UFormChat, UCore, UFormServer, UClientGUI, UFormClient, 194 UFormGameSystems ;191 UFormGameSystems, UGameSystem; 195 192 196 193 resourcestring … … 367 364 SpinEditTurns.Value := StayAliveForDefinedTurns; 368 365 SpinEditSpecialCells.Value := SpecialCaptureCellCount; 369 CheckBoxEmptyCellsNeutral.Checked := GameSystem.EmptyCellsNeutral; 370 CheckBoxUnitsSplitMerge.Checked := GameSystem.UnitsSplitMerge; 371 CheckBoxUnitsMoveImmediately.Checked := GameSystem.UnitsMoveImmediately; 366 ComboBoxGameSystem.ItemIndex := ComboBoxGameSystem.Items.IndexOf(GameSystemName); 372 367 end; 373 368 end; … … 398 393 StayAliveForDefinedTurns := SpinEditTurns.Value; 399 394 SpecialCaptureCellCount := SpinEditSpecialCells.Value; 400 GameSystem.EmptyCellsNeutral := CheckBoxEmptyCellsNeutral.Checked; 401 GameSystem.UnitsSplitMerge := CheckBoxUnitsSplitMerge.Checked; 402 GameSystem.UnitsMoveImmediately := CheckBoxUnitsMoveImmediately.Checked; 395 GameSystem := TGameSystem(ComboBoxGameSystem.Items.Objects[ComboBoxGameSystem.ItemIndex]); 396 GameSystemName := GameSystem.GetName; 403 397 end; 404 398 end; … … 424 418 ComboBoxGameSystem.Items.Add(''); 425 419 for I := 0 to Core.GameSystems.Count - 1 do begin 426 ComboBoxGameSystem.Items[I] := Core.GameSystems[I]. Name;420 ComboBoxGameSystem.Items[I] := Core.GameSystems[I].GetName; 427 421 ComboBoxGameSystem.Items.Objects[I] := Core.GameSystems[I]; 428 422 end; … … 558 552 Core.PersistentForm.Load(Self); 559 553 Core.ThemeManager1.UseTheme(Self); 560 ReloadGameSystemsMenu;561 554 ReloadView; 562 555 //Height := Trunc(1.5 * Height); … … 773 766 procedure TFormNew.Load(Server: TServer); 774 767 begin 768 ReloadGameSystemsMenu; 775 769 with Server do begin 776 770 RadioButtonModeLocal.Checked := Mode = smLocal;
Note:
See TracChangeset
for help on using the changeset viewer.