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 |