Changeset 298 for trunk/Forms/UFormNew.pas
- Timestamp:
- Jul 10, 2019, 5:35:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r288 r298 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 9 ComCtrls, Spin, ExtCtrls, ActnList, ExtDlgs, Menus, UGame, UGeometry, UPlayer, 10 UGameServer, UServerList, UMap, U FormPlayers, UGameSystem;10 UGameServer, UServerList, UMap, UGameSystem, UFormList; 11 11 12 12 type … … 144 144 MapPreviewRedrawPending: Boolean; 145 145 NewRandSeed: Cardinal; 146 FormPlayers: TForm Players;146 FormPlayers: TFormList; 147 147 procedure LoadGame(Game: TGame); 148 148 procedure SaveGame(Game: TGame); … … 385 385 if Assigned(FServer) then begin 386 386 Load(FServer); 387 FormPlayers. Players:= FServer.Game.Players;387 FormPlayers.List := FServer.Game.Players; 388 388 end else begin 389 FormPlayers. Players:= nil;389 FormPlayers.List := nil; 390 390 end; 391 391 end; … … 402 402 GamePreview.GeneratePlayers := False; 403 403 GamePreview.New; 404 GamePreview.CurrentPlayer := GamePreview.Players.First;404 GamePreview.CurrentPlayer := TPlayer(GamePreview.Players.First); 405 405 Bitmap := Image1.Picture.Bitmap; 406 406 Bitmap.SetSize(Image1.Width, Image1.Height); … … 534 534 FormChat.Align := alClient; 535 535 FormChat.Show; 536 FormPlayers := TForm Players.Create(nil);536 FormPlayers := TFormList.Create(nil); 537 537 FormPlayers.MinItemCount := MinPlayerCount; 538 538 FormPlayers.MaxItemCount := MaxPlayerCount;
Note:
See TracChangeset
for help on using the changeset viewer.