Changeset 76 for trunk/Forms/UFormNew.pas
- Timestamp:
- Oct 5, 2014, 1:34:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r75 r76 228 228 ListView1.Items.Count := Players.Count; 229 229 ListView1.Refresh; 230 ButtonPlayerRemove.Enabled := Assigned(ListView1.Selected) ;230 ButtonPlayerRemove.Enabled := Assigned(ListView1.Selected) and (Players.Count > 1); 231 231 ButtonPlayerAdd.Enabled := Players.Count < MaxPlayerCount; 232 232 APlayerModify.Enabled := Assigned(ListView1.Selected); … … 306 306 if Players.Count <= (MaxPlayerCount - 1) then begin 307 307 NewPlayer := TPlayer.Create; 308 NewPlayer.Name := 'Player ' + IntToStr(Players.Count + 1); 308 NewPlayer.Id := Players.GetNewPlayerId; 309 NewPlayer.Name := SPlayer + ' ' + IntToStr(NewPlayer.Id); 309 310 NewPlayer.Color := PlayerColors[Players.Count]; 310 311 NewPlayer.Mode := pmComputer; … … 335 336 TPlayer(Players[I]).Assign(TPlayer(Game.Players[I])); 336 337 end; 338 Players.NewPlayerId := Game.Players.NewPlayerId; 339 337 340 CheckBoxCity.Checked := Game.CityEnabled; 338 341 SpinEditCityPercent.Value := Game.CityPercentage; … … 362 365 TPlayer(Game.Players[I]).Game := Game; 363 366 end; 367 Game.Players.NewPlayerId := Players.NewPlayerId; 364 368 Game.SymetricMap := CheckBoxSymetricMap.Checked; 365 369 Game.VoidEnabled := CheckBoxVoid.Checked;
Note:
See TracChangeset
for help on using the changeset viewer.