bReportBug.Parent := SLPSWWForm;
bReportBug.Left := 30;
bReportBug.Top := 90;
bReportBug.Width := 83;
bReportBug.Height := 25;
bReportBug.Caption := 'Report Bug';
bReportBug.TabOrder := 2;
bReportBug.OnClick := @ButtonClick;
bBestReport := TButton.Create(SLPSWWForm);
bBestReport.Parent := SLPSWWForm;
bBestReport.Left := 30;
bBestReport.Top := 125;
bBestReport.Width := 83;
bBestReport.Height := 25;
bBestReport.Caption := 'Best Report';
bBestReport.TabOrder := 3;
bBestReport.OnClick := @ButtonClick;
end;
procedure ShowFormModal;
begin
SLPSWWForm.ShowModal;
end;
procedure Signature; forward;
procedure ShowNormalForm;
var
v: TVariantArray;
begin
Signature;
SetArrayLength(V, 0);
ThreadSafeCall('LoadSLPSWWForm', v);
SetArrayLength(v, 0);
ThreadSafeCall('ShowFormModal', v);
end;
//------------------------------------------------------------------------\\
{ LoadChatArray - Loads Chat text in the memory. ||
\\------------------------------------------------------------------------//}
procedure LoadChatArray;
begin
SetArrayLength(arChatLines, 20);
//b
SetArrayLength(arChatLines[0].Question, 1);
arChatLines[0].Question[0] := 'ban';
arChatLines[0].Answer := 2;
//c
SetArrayLength(arChatLines[1].Question, 1);
arChatLines[1].Question[0] := 'cheat';
arChatLines[1].Answer := 2;
//g
SetArrayLength(arChatLines[2].Question, 1);
arChatLines[2].Question[0] := 'gf';
arChatLines[2].Answer := 3;
SetArrayLength(arChatLines[3].Question, 1);
arChatLines[3].Question[0] := 'girl friend';
arChatLines[3].Answer := 3;
//h
SetArrayLength(arChatLines[4].Question, 1);
arChatLines[4].Question[0] := 'hi';
arChatLines[4].Answer := 0;
SetArrayLength(arChatLines[5].Question, 1);
arChatLines[5].Question[0] := 'hey';
arChatLines[5].Answer := 0;
SetArrayLength(arChatLines[6].Question, 1);
arChatLines[6].Question[0] := 'hello';
arChatLines[6].Answer := 0;
SetArrayLength(arChatLines[7].Question, 1);
arChatLines[7].Question[0] := 'how are';
arChatLines[7].Answer := 1;
//r
SetArrayLength(arChatLines[8].Question, 1);
arChatLines[8].Question[0] := 'report';
arChatLines[8].Answer := 2;
//w
SetArrayLength(arChatLines[9].Question, 3);
arChatLines[9].Question[0] := 'wc';
arChatLines[9].Question[1] := '+level';
arChatLines[9].Question[2] := '+lvl';
arChatLines[9].Answer := 4;
SetArrayLength(arChatLines[10].Question, 3);
arChatLines[10].Question[0] := 'woodcut';
arChatLines[10].Question[1] := '+level';
arChatLines[10].Question[2] := '+lvl';
arChatLines[10].Answer := 4;
end;
//------------------------------------------------------------------------\\
{ LoadAnswer - Loads answers in the memory. ||
\\ 0: begin
case Random(5) of
0: Result := 'hi';
1: Result := 'hey';
2: Result := 'whats up?';
3: Result := 'hello';------------------------------------------------------------------------//}
function LoadAnswer(AnswerType: Integer): string;
begin
case AnswerType of
4: Result := 'hey you';