Public Member Functions | Public Attributes

COSButton Class Reference

Inherits Control.

List of all members.

Public Member Functions

 COSButton (int mod, uint type, string sType, string name, int flag, string@ caption, string@ msg)
void Init ()
void OnShow ()
void OnHide ()
void OnEnabled ()
void OnDisabled ()
void SetClick (CALLBACK@ callback)
void Click ()
void MouseMove (int fromX, int fromY, int toX, int toY)
void SetCaption (string caption)
void SetColor (uint color)
void SetFormat (uint format)
void Draw ()

Public Attributes

int mod
int ID
int type
string sType
 type, used in .ini
string name
 name, used in .ini
Sprite spriteUp
Sprite spriteDown
CLabellabel
CALLBACK@ callback
 function to run when button is clicked
int page
 to which page this button belongs; 0 - always visible
int flag
string msg
 text to display in OnlineStatsWindow;:infobox or page to visit (OSB_LINK)
bool state
uint color_on
uint color_off

Constructor & Destructor Documentation

COSButton ( int  mod,
uint  type,
string  sType,
string  name,
int  flag,
string caption,
string msg 
)

Member Function Documentation

void Init (  ) 

Reimplemented from Control.

void OnShow (  ) 

Reimplemented from Control.

void OnHide (  ) 

Reimplemented from Control.

void OnEnabled (  ) 

Reimplemented from Control.

void OnDisabled (  ) 

Reimplemented from Control.

void SetClick ( CALLBACK@  callback  ) 
void Click (  ) 

Reimplemented from Control.

void MouseMove ( int  fromX,
int  fromY,
int  toX,
int  toY 
)

Reimplemented from Control.

void SetCaption ( string  caption  ) 
void SetColor ( uint  color  ) 
void SetFormat ( uint  format  ) 
void Draw (  ) 

Reimplemented from Control.


Member Data Documentation

int mod
int ID
int type

type, used in .ini

name, used in .ini

CALLBACK@ callback

function to run when button is clicked

int page

to which page this button belongs; 0 - always visible

int flag

text to display in OnlineStatsWindow;:infobox or page to visit (OSB_LINK)

bool state
uint color_on
uint color_off