Changeset 182 for trunk/Forms/UFormPlayersStats.pas
- Timestamp:
- Feb 9, 2018, 10:06:13 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormPlayersStats.pas
r181 r182 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 UGame;9 Menus, ActnList, UGame; 10 10 11 11 type … … 14 14 15 15 TFormPlayersStats = class(TForm) 16 ASpectate: TAction; 17 ActionList1: TActionList; 16 18 ListView1: TListView; 19 MenuItem1: TMenuItem; 20 PopupMenu1: TPopupMenu; 21 procedure ASpectateExecute(Sender: TObject); 17 22 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 18 23 procedure FormShow(Sender: TObject); … … 43 48 with TPlayer(Players[Item.Index]) do begin 44 49 Item.Caption := Name; 50 Item.Data := Players[Item.Index]; 51 Item.SubItems.Add(PlayerModeText[Mode]); 45 52 Item.SubItems.Add(IntToStr(TotalCells)); 46 53 Item.SubItems.Add(IntToStr(TotalDiscovered)); … … 63 70 end; 64 71 72 procedure TFormPlayersStats.ASpectateExecute(Sender: TObject); 73 begin 74 if Assigned(ListView1.Selected) then 75 Core.Spectate(TPlayer(ListView1.Selected.Data)); 76 end; 77 65 78 procedure TFormPlayersStats.ReloadList; 66 79 begin
Note:
See TracChangeset
for help on using the changeset viewer.