Ignore:
Timestamp:
Jul 10, 2019, 5:35:15 PM (5 years ago)
Author:
chronos
Message:
  • Added: New item list type reference. Used in players for reference to selected nation.
  • Modified: New game players selection migrated to dynamic item/list forms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r288 r298  
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    99  ComCtrls, Spin, ExtCtrls, ActnList, ExtDlgs, Menus, UGame, UGeometry, UPlayer,
    10   UGameServer, UServerList, UMap, UFormPlayers, UGameSystem;
     10  UGameServer, UServerList, UMap, UGameSystem, UFormList;
    1111
    1212type
     
    144144    MapPreviewRedrawPending: Boolean;
    145145    NewRandSeed: Cardinal;
    146     FormPlayers: TFormPlayers;
     146    FormPlayers: TFormList;
    147147    procedure LoadGame(Game: TGame);
    148148    procedure SaveGame(Game: TGame);
     
    385385  if Assigned(FServer) then begin
    386386    Load(FServer);
    387     FormPlayers.Players := FServer.Game.Players;
     387    FormPlayers.List := FServer.Game.Players;
    388388  end else begin
    389     FormPlayers.Players := nil;
     389    FormPlayers.List := nil;
    390390  end;
    391391end;
     
    402402  GamePreview.GeneratePlayers := False;
    403403  GamePreview.New;
    404   GamePreview.CurrentPlayer := GamePreview.Players.First;
     404  GamePreview.CurrentPlayer := TPlayer(GamePreview.Players.First);
    405405  Bitmap := Image1.Picture.Bitmap;
    406406  Bitmap.SetSize(Image1.Width, Image1.Height);
     
    534534  FormChat.Align := alClient;
    535535  FormChat.Show;
    536   FormPlayers := TFormPlayers.Create(nil);
     536  FormPlayers := TFormList.Create(nil);
    537537  FormPlayers.MinItemCount := MinPlayerCount;
    538538  FormPlayers.MaxItemCount := MaxPlayerCount;
Note: See TracChangeset for help on using the changeset viewer.