-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathTESVT_ToolboxOptions.pas
More file actions
65 lines (55 loc) · 1.33 KB
/
TESVT_ToolboxOptions.pas
File metadata and controls
65 lines (55 loc) · 1.33 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
unit TESVT_ToolboxOptions;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, TESVT_Ressources, TESVT_Const, TESVT_XMLFunc;
type
TForm17 = class(TForm)
Memo1: TMemo;
Button1: TButton;
Button2: TButton;
Label1: TLabel;
Button3: TButton;
Button4: TButton;
procedure FormCreate(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
private
{ Déclarations privées }
public
{ Déclarations publiques }
end;
var
Form17: TForm17;
implementation
{$R *.dfm}
procedure TForm17.Button3Click(Sender: TObject);
begin
if authFileAccess(Game_CacheDataFolder + sDefUITagXml) then
XMLImportTag(Game_CacheDataFolder + sDefUITagXml, lDEFUIHeader);
Memo1.lines.BeginUpdate;
Memo1.text:= lDEFUIHeader.text;
Memo1.lines.endUpdate;
end;
procedure TForm17.Button4Click(Sender: TObject);
var
sl: tStringList;
begin
sl:= tStringList.Create;
try
Memo1.lines.BeginUpdate;
try
sl.Assign(Memo1.lines);
sl.Sort;
Memo1.lines.Assign(sl);
finally
Memo1.lines.endUpdate;
end;
finally
sl.Free;
end;
end;
procedure TForm17.FormCreate(Sender: TObject);
begin
Init_caption(self);
Button3.enabled:= authFileAccess(Game_CacheDataFolder + sDefUITagXml);
end;
end.