D2BS
Public Member Functions | Public Attributes

Image Class Reference

This class represents a screen hook for a Image. More...

List of all members.

Public Member Functions

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

Public Attributes

int x
 The x coordinate (left) of the Image.
int y
 The y coordinate (top) of the Image.
bool visible
 Whether or not the Image is visible.
int align
 The horizontal alignment.
int zorder
 The z-order of the Image (what it covers up and is covered by).
ClickHandler click
 The click handler that gets called when the Image is clicked.
HoverHandler hover
 The hover handler that gets called when the Image gets hovered over.
String location
 Location of the file to load for display.

Detailed Description

This class represents a screen hook for a Image.

Todo:

Explain (and understand) this better.

Verify all the documentation in this class.


Constructor & Destructor Documentation

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

Create an Image hook with the given parameters.

Parameters:
szTextThe filename to load the image from.
xThe x coordinate (left) of the Image.
yThe y coordinate (top) of the Image.
colorSee The colors of screen hooks.

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

Parameters:
alignThe horizontal alignment.

0 - Left

1 - Right

2 - Center

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

Member Data Documentation

The horizontal alignment.

0 - Left

1 - Right

2 - Center