D2BS
Public Member Functions | Public Attributes

Text Class Reference

A Text screen hook. More...

List of all members.

Public Member Functions

 Text (String szText="", int x=0, int y=0, int color=0, int font=0, int align=0, bool automap=false, ClickHandler click=null, HoverHandler hover=null)
 Create a Text hook with the given parameters.
void remove ()
 Remove the Text hook from the screen and destroy the corresponding object.

Public Attributes

int x
 The x coordinate (left) of the Text.
int y
 The y coordinate (top) of the Text.
bool visible
 Whether or not the Text is visible.
int align
 The horizontal alignment.
int zorder
 The z-order of the Text (what it covers up and is covered by).
ClickHandler click
 The click handler that gets called when the Text is clicked.
HoverHandler hover
 The hover handler that gets called when the Text gets hovered over.
int color
 The color of the Text.
int font
 Something that determines the font.
String text
 The string that the Text hook displays.

Detailed Description

A Text screen hook.

Todo:
Verify all the documentation in this class.

Constructor & Destructor Documentation

Text::Text ( String  szText = "",
int  x = 0,
int  y = 0,
int  color = 0,
int  font = 0,
int  align = 0,
bool  automap = false,
ClickHandler  click = null,
HoverHandler  hover = null 
)

Create a Text hook with the given parameters.

Parameters:
szTextThe string that the Text hook displays.
xThe x coordinate (left) of the Text.
yThe y coordinate (top) of the Text.
colorSee The colors of screen hooks.

See: http://forums.d2botnet.org/viewtopic.php?f=18&t=1000

Parameters:
fontSomething that determines the font.
alignThe horizontal alignment.

0 - Left

1 - Right

2 - Center

Parameters:
automapWhether the Text is in automap coordinate space (true) or screen coordinate space (false).
clickThe click handler that gets called when the Text is clicked.
hoverThe hover handler that gets called when the Text gets hovered over.

Member Data Documentation

The horizontal alignment.

0 - Left

1 - Right

2 - Center