Inherits Control.
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 |
CLabel@ | label |
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 |
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.
int mod |
int ID |
int type |
CALLBACK@ callback |
function to run when button is clicked
int page |
to which page this button belongs; 0 - always visible
int flag |
bool state |
uint color_on |
uint color_off |