TRadar = class

Class for interacting with NexTarget and creating add. elements of interface.
Available with prefix Radar. (for example, Radar.IsWorking)

Miscellaneous

Name Result Description Code Params Examples
IsWorking boolean Is NexTarget using important functions now
function IsWorking: boolean;
There are no arguments
if (not Radar.IsWorking) then
  print('now i can use my function without conflict with NT');
IsFreeAttackable boolean Is object available for attacking in NexTarget
function IsFreeAttackable(Obj: TL2Live): boolean;

Obj - object

if (Radar.IsFreeAttackable(User.Target)) then
  print('Target available to attack');
GetChangedName string Changed object name in NexTarget-GameUtils
function GetChangedName(Name: string): string;

Name - name

print('Changed target name: ' + Radar.GetChangedName(User.Target.name));

Screen Messages

Name Result Description Code Params Examples
Notice - Show message on screen
procedure Notice(Text: string; Position: TPosition = pTopCenter; Time: integer = 3000; FontSize: integer = 24; FontColor: string = 'clWhite'; BorderColor: string = 'clBlack');

Text - text
Position - position on screen (pTopLeft / pTopCenter / pTopRight / pMiddleLeft / pMiddleCenter / pMiddleRight / pBottomLeft / pBottomCenter / pBottomRight) (default - top center)
Time - showing time in ms (default  - 3sec)
FontSize - font size (default - 24px)
FontColor -  color of text (default - white) 
BorderColor - color of text border (default - black) 

Radar.Notice('Sample text');
Radar.Notice('Target: ' + User.Target.name, pMiddleRight, 5000, 32, 'clRed', 'clBlack');

Window "History"

Name Result Description Code Params Examples
Log - Print message to window History (opens by pressing )
procedure Log(Text: string; FontColor: string = 'clWhite');

Text - text
FontColor - color of text (default - white)

Examples not found
ClearLogs - Clear messages in window History
procedure ClearLogs;
There are no arguments Examples not found

Window "Objects"

Name Result Description Code Params Examples
LoadObjs - Load list of objects to window Objects (opens by pressing )
procedure LoadObjs(ObjsList: array of TObjsListItem);

ObjsList - list of objects

Examples not found
ObjsListItem TObjsListItem Create element for list of objects
function ObjsListItem(OID: cardinal; FontColor: string = 'clWhite'): TObjsListItem;

OID - OID
FontColor - color of text (default - white)

Examples not found
ClearObjs - Clear list of objects in window Objects
procedure ClearObjs;
There are no arguments Examples not found

Widgets

Name Result Description Code Params Examples
CreateWidget - Create widget
procedure CreateWidget(Name: string; Caption: string; Width: integer = 250; Top, Left: integer = 0; Visible: boolean = true; Opacity: byte = 100);

Name - unique name
Caption - title
Width - width (default - 250px)
Top - position from top side of screen (default - 0px)
Left - position from left side of screen (default - 0px)
Visible - visibility (default - visible)
Opacity - opacity (default - 100%)

Examples not found
ChangeWidgetCaption - Edit title of widget
procedure ChangeWidgetCaption(Name: string; Caption: string);

Name - unique name
Caption - title

Examples not found
DeleteWidget - Delete widget
procedure DeleteWidget(Name: string);

Name - unique name

Examples not found
ChangeWidgetWidth - Edit width of widget
procedure ChangeWidgetWidth(Name: string; Width: integer);

Name - unique name
Width - width

Examples not found
ChangeWidgetPosition - Edit position of widget
procedure ChangeWidgetPosition(Name: string; Top, Left: integer);

Name - unique name
Top, Left - position from top, left side of screen

Examples not found
ChangeWidgetVisibility - Edit visibility of widget
procedure ChangeWidgetVisibility(Name: string; Visible: boolean);

Name - unique name
Visible - visibility

Examples not found
ChangeWidgetOpacity - Edit opacity of widget
procedure ChangeWidgetOpacity(Name: string; Opacity: byte);

Name - unique name
Opacity - opacity

Examples not found
GetWidgetPosition - Get current position of widget
procedure GetWidgetPosition(Name: string; var Top, Left: integer);

Name - unique name
Top, Left - varibles, where position will be wrote

Examples not found

Widgets - Checkboxes

Name Result Description Code Params Examples
CreateCheckbox - Create checkbox
procedure CreateCheckbox(WidgetName: string; Name: string; Caption: string; Checked: Boolean = false; FontColor: string = 'clWhite');

WidgetName - unique name of widget
Name - unique name
Caption - caption
Checked - is checked (deault - not)
FontColor - color of text (default - white)

Examples not found
DeleteCheckbox - Delete checkbox
procedure DeleteCheckbox(WidgetName: string; Name: string);

WidgetName - unique name of widget
Name - unique name

Examples not found
ChangeCheckboxValue - Edit value of checkbox
procedure ChangeCheckboxValue(WidgetName: string; Name: string; Checked: boolean);

WidgetName - unique name of widget

Name - unique name

Checked - is checked

Examples not found
ChangeCheckboxCaption - Edit caption of checkbox
procedure ChangeCheckboxCaption(WidgetName: string; Name: string; Caption: string);

WidgetName - unique name of widget
Name - unique name
Сaption - caption

Examples not found
ChangeCheckboxFontColor - Edit color of text of checkbox
procedure ChangeCheckboxFontColor(WidgetName: string; Name: string; FontColor: string);

WidgetName - unique name of widget
Name - unique name
FontColor - color of text

Examples not found
GetCheckBoxValue boolean Get state of checkbox
function GetCheckBoxValue(WidgetName: string; Name: string): boolean;

WidgetName - unique name of widget
Name - unique name

Examples not found

Widgets - Labels

Name Result Description Code Params Examples
CreateLabel - Create label
procedure CreateLabel(WidgetName: string; Name: string; Caption: string; FontColor: string = 'clWhite');

WidgetName - unique name of widget
Name - unique name
Caption - text
FontColor- color of text (default - white)

Examples not found
DeleteLabel - Delete label
procedure DeleteLabel(WidgetName: string; Name: string);

WidgetName - unique name of widget
Name - unique name

Examples not found
ChangeLabelCaption - Edit text of label
procedure ChangeLabelCaption(WidgetName: string; Name: string; Caption: string);

WidgetName - unique name of widget
Name - unique name
Caption - text

Examples not found
ChangeLabelFontColor - Edit color of text of label
procedure ChangeLabelFontColor(WidgetName: string; Name: string; FontColor: string);

WidgetName - unique name of widget
Name - unique name
FontColor - color of text

Examples not found

Widgets - Input fields

Name Result Description Code Params Examples
CreateEdit - Create input field
procedure CreateEdit(WidgetName: string; Name: string; Text: string = ''; NumbersOnly: boolean = false);

WidgetName - unique name of widget
Name - unique name
Text - text (default - empty)
NumbersOnly - allow to type only numbers (default - not)

Examples not found
DeleteEdit - Delete input field
procedure DeleteEdit(WidgetName: string; Name: string);

WidgetName - unique name of widget
Name - unique name

Examples not found
ChangeEditValue - Edit text of input field
procedure ChangeEditValue(WidgetName: string; Name: string; Text: string);

WidgetName - unique name of widget
Name - unique name
Text - text

Examples not found
GetEditValue string Get text of input field
function GetEditValue(WidgetName: string; Name: string): string;

WidgetName - unique name of widget
Name - unique name

Examples not found

Widgets - Icons

Name Result Description Code Params Examples
CreateCheckImage - Create icon
procedure CreateCheckImage(WidgetName: string; Name: string; FileName: string; Checked: Boolean = false);

WidgetName - unique name of widget
Name - unique name
FileName - name of file (in folder NTIcons)
Checked - is checked (default - not)

Examples not found
DeleteCheckImage - Delete icon
procedure DeleteCheckImage(WidgetName: string; Name: string);

WidgetName - unique name of widget
Name - unique name

Examples not found
ChangeCheckImageValue - Edit state of icon
procedure ChangeCheckImageValue(WidgetName: string; Name: string; Checked: boolean);

WidgetName - unique name of widget
Name - unique name
Checked - is checked

Examples not found
ChangeCheckImageFileName - Edit file of icon
procedure ChangeCheckImageFileName(WidgetName: string; Name: string; FileName: string);

WidgetName - unique name of widget
Name - unique name
FileName - name of file (in folder NTIcons)

Examples not found
GetCheckImageValue boolean Get state of icon
function GetCheckImageValue(WidgetName: string; Name: string): Boolean;

WidgetName - unique name of widget
Name - unique name

Examples not found