123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- #ifndef __STLIB__
- #define __STLIB__
- #include "r_defs.h"
- #include "v_video.h"
- #define BG 4
- #define FG 0
- typedef struct
- {
-
-
- int x;
- int y;
-
- int width;
-
- int oldnum;
-
- int* num;
-
-
- boolean* on;
-
- const patchnum_t* p;
-
- int data;
- } st_number_t;
- typedef struct
- {
-
- st_number_t n;
-
- const patchnum_t* p;
- } st_percent_t;
- typedef struct
- {
-
- int x;
- int y;
-
- int oldinum;
-
- int* inum;
-
-
- boolean* on;
-
- const patchnum_t* p;
-
- int data;
- } st_multicon_t;
- typedef struct
- {
-
- int x;
- int y;
-
- boolean oldval;
-
- boolean* val;
-
-
- boolean* on;
- const patchnum_t* p;
- int data;
- } st_binicon_t;
- void STlib_init(void);
- void STlib_initNum
- ( st_number_t* n,
- int x,
- int y,
- const patchnum_t* pl,
- int* num,
- boolean* on,
- int width );
- void STlib_updateNum
- ( st_number_t* n,
- int cm,
- boolean refresh );
- void STlib_initPercent
- ( st_percent_t* p,
- int x,
- int y,
- const patchnum_t* pl,
- int* num,
- boolean* on,
- const patchnum_t* percent );
- void STlib_updatePercent
- ( st_percent_t* per,
- int cm,
- int refresh );
- void STlib_initMultIcon
- ( st_multicon_t* mi,
- int x,
- int y,
- const patchnum_t* il,
- int* inum,
- boolean* on );
- void STlib_updateMultIcon
- ( st_multicon_t* mi,
- boolean refresh );
- void STlib_initBinIcon
- ( st_binicon_t* b,
- int x,
- int y,
- const patchnum_t* i,
- boolean* val,
- boolean* on );
- void STlib_updateBinIcon
- ( st_binicon_t* bi,
- boolean refresh );
- #endif
|