D2BS
Public Member Functions | Public Attributes

Control Class Reference

This class represents out of game (OOG) Control s. More...

List of all members.

Public Member Functions

Control getNext ()
 Gets the next Control from the linked list.
void click ()
 Click Control in the center of the Control.
void click (uint32_t x, uint32_t y)
 Click Control at the given location.
void setText (String text)
 Set the Control's text.
String[] getText ()
 Get the texts from a label Control.

Public Attributes

String text
 The text of the Control.
double x
 The x coordinate of the Control.
double y
 The y coordinate of the Control.
double xsize
 The xsize (width) of the Control.
double ysize
 The ysize (height) of the Control.
double state
 The state (?) of the Control.
bool password
 Return whether or not the Control holds a password (starred out text).
double type
 The type of control.
double cursorPos
 Something...
double selectstart
 Someting...
double selectend
 Something...
double disabled
 Whether the Control is disabled or not.

Detailed Description

This class represents out of game (OOG) Control s.


Member Function Documentation

void Control::click ( uint32_t  x,
uint32_t  y 
)

Click Control at the given location.

This is equivalent with clicking at the given location.

Parameters:
xThe x coordinate of the point to click.
yThe y coordinate of the point to click.
Control Control::getNext ( )

Gets the next Control from the linked list.

This is done by finding the old Control based on type, location and size.

String [] Control::getText ( )

Get the texts from a label Control.

Only works for labels.

Returns:
An array of all the Control's texts.
void Control::setText ( String  text)

Set the Control's text.

Parameters:
textThe text to set the Control's text field to.

Member Data Documentation

Something...

Todo:
Determine what this is.

Something...

Todo:
Determine what this is.

Someting...

Todo:
Determine what this is.

The state (?) of the Control.

Todo:
Find a reference for these values.
double Control::type

The type of control.

1 - TextBox

2 - Image

3 - Image2

4 - LabelBox

5 - ScrollBar

6 - Button

7 - List

8 - Timer

9 - Smack

10 - ProgressBar

11 - Popup

12 - AccountList