Changeset 317 for trunk/Forms/FormPlayersStats.pas
- Timestamp:
- Jun 21, 2024, 12:44:53 PM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormPlayersStats.pas
r316 r317 1 unit UFormPlayersStats;1 unit FormPlayersStats; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 7 Menus, ActnList, UGame, ListViewSort;7 Menus, ActnList, Game, ListViewSort, FormEx; 8 8 9 9 type … … 11 11 { TFormPlayersStats } 12 12 13 TFormPlayersStats = class(TForm )13 TFormPlayersStats = class(TFormEx) 14 14 ASpectate: TAction; 15 15 ActionList1: TActionList; … … 19 19 PopupMenu1: TPopupMenu; 20 20 procedure ASpectateExecute(Sender: TObject); 21 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);22 21 procedure FormShow(Sender: TObject); 23 22 procedure ListView1Data(Sender: TObject; Item: TListItem); … … 28 27 end; 29 28 30 var31 FormPlayersStats: TFormPlayersStats;32 33 29 34 30 implementation 35 31 36 32 uses 37 UCore, UPlayer;33 Core, Player; 38 34 39 35 {$R *.lfm} … … 43 39 procedure TFormPlayersStats.ListView1Data(Sender: TObject; Item: TListItem); 44 40 begin 45 with Core. Game do41 with Core.Core.Game do 46 42 if Item.Index < ListViewSort1.List.Count then 47 43 with TPlayer(ListViewSort1.List[Item.Index]) do begin … … 81 77 begin 82 78 ListViewSort1.List.Clear; 83 for I := 0 to Core. Game.Players.Count - 1 do begin84 ListViewSort1.List.Add(Core. Game.Players[I]);79 for I := 0 to Core.Core.Game.Players.Count - 1 do begin 80 ListViewSort1.List.Add(Core.Core.Game.Players[I]); 85 81 end; 86 82 end; … … 88 84 procedure TFormPlayersStats.FormShow(Sender: TObject); 89 85 begin 90 Core.PersistentForm.Load(Self);91 Core.ThemeManager1.UseTheme(Self);92 Core.CoolTranslator1.TranslateComponentRecursive(Self);93 86 ReloadList; 94 end;95 96 procedure TFormPlayersStats.FormClose(Sender: TObject;97 var CloseAction: TCloseAction);98 begin99 Core.PersistentForm.Save(Self);100 87 end; 101 88 … … 103 90 begin 104 91 if Assigned(ListView1.Selected) then 105 Core. Spectate(TPlayer(ListView1.Selected.Data));92 Core.Core.Spectate(TPlayer(ListView1.Selected.Data)); 106 93 end; 107 94
Note:
See TracChangeset
for help on using the changeset viewer.