forked from Ravie/quice
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ItemLootUnit.pas
42 lines (33 loc) · 860 Bytes
/
ItemLootUnit.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
unit ItemLootUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls, ExtCtrls, DB,
JvExComCtrls, JvListView,
ZAbstractRODataset, ZAbstractDataset, ZDataset;
type
TItemLootForm = class(TForm)
Panel1: TPanel;
btClose: TButton;
PageControl1: TPageControl;
tsLoot: TTabSheet;
lvItemLoot: TJvListView;
MyQuery: TZQuery;
procedure FormCreate(Sender: TObject);
public
procedure Prepare(key: string);
end;
implementation
uses MainUnit, MyDataModule;
{$R *.dfm}
procedure TItemLootForm.Prepare(key: string);
begin
// load creature loot
MainForm.LoadLoot(lvItemLoot, key);
end;
procedure TItemLootForm.FormCreate(Sender: TObject);
begin
dmMain.Translate.CreateDefaultTranslation(TForm(Self));
dmMain.Translate.TranslateForm(TForm(Self));
end;
end.