| 981 | slider->SetSelectChangeCallback(fn, ptr); |
| 982 | } |
| 983 | void GetUIItemPosition(UIObject *item, int *x, int *y, int *w, int *h) { |
| 984 | if (x) |
| 985 | *x = item->X(); |
| 986 | if (y) |
| 987 | *y = item->Y(); |
| 988 | if (w) |
| 989 | *w = item->W(); |
| 990 | if (h) |
| 991 | *h = item->H(); |
| 992 | } |
| 993 | #define CDT_EVT_PLAYERKILLED 1 |
| 994 | #define CDT_EVT_CONNECT 2 |
| 995 | #define CDT_EVT_GAME_OVER 3 |