init\item.sdb
1 _8 k, w, X' l9 M- K5 M在item.sdb添加以下代码
# T. x. {0 F3 r u应急箱,应急箱,56,,,,,,,,,FALSE,547,,,,,,,,,,1000,1000,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,TRUE,TRUE,TRUE,TRUE,TRUE,,8,,,159,,
6 n- G6 V5 S. F- r, O) a$ J6 v$ r* r2 g6 C& ], t- Z
在script文件夹内添加以下文本文件
6 Z, U9 r# @: fscript\应急箱.txt V$ C* [. t6 [% L8 j- C& \4 |- L
& c7 D! I t5 E. E; o) D
unit 应急箱;/ W; C4 L9 N# }+ i- j |
interface
. s0 J5 q$ J4 y) ^. O1 j0 xfunction GetToken (aStr, aToken, aSep : String) : String;: b0 p/ z/ r, S `) A9 E3 V: |- o
function CompareStr (aStr1, aStr2 : String) : Boolean;
$ P/ M6 C- J9 b" kfunction callfunc (aText: string): string;% ~2 E" o8 q1 X+ V8 }$ r0 w: Z* |7 C' B
procedure print (aText: string);
/ n( |# W! C. f, }function Random (aScope: integer): integer;" r* W% V* I& ^9 v
function Length (aText: string): integer;procedure Inc (aInt: integer);3 T( x+ K4 F q" z& ?. u
procedure Dec (aInt: integer);
# q b2 M* e7 \% v, Ofunction StrToInt (astr: string): integer;
% j: w5 G/ b4 P) Ufunction IntToStr (aInt: integer): string;procedure exit;0 U7 V2 b: d# B9 x
procedure OnGetResult (aStr : String);% Q# @ l4 M! J/ y9 j
procedure OnLeftClick (aStr : String);$ B# j2 _, C) N, B
* N: c! p1 M1 N6 c% Bimplementation) H- A0 @" A' H8 L, t) p
procedure OnDblClick (aStr : String);8 D2 }: ~1 _' V) L/ `
var Str : String; Race : Integer;4 A5 _' f+ s" [
begin
2 w% I, S* U( g* i1 s$ A4 D Str := 'logitemwindow';
3 w+ b! A0 _+ H( c' w: I print (Str); R3 _1 r1 u4 L: D3 I0 J- n
end;end;. m, g1 [2 r& F3 y% O- r
end.
" K. w: w+ C7 W; {& T0 g9 ^* r |