]> icculus.org git repositories - divverent/nexuiz.git/blob - menusrc/cursor.qh
Removed old stuff
[divverent/nexuiz.git] / menusrc / cursor.qh
1 ///////////////////////////////////////////////
2 // Cursor Header File
3 ///////////////////////
4 // This file belongs to dpmod/darkplaces
5 // AK contains all cursor specific constants as the pulse initialization list
6 ////////////////////////////////
7
8 // cursor constants (cursor type)
9 const float CT_NORMAL           = 0;
10 const float CT_PULSE            = 1;
11 const float CT_FIRST_PULSE      = 1; // pulse frames 0 - 6
12 const float CT_LAST_PULSE       = 7;
13 const float CT_GLOW                     = 8;
14
15 const float     CURSOR_SCALE    = 1;
16
17 const vector CURSOR_COLOR       = '1 1 1';
18 const float      CURSOR_TRANSPARENCY = 1;
19
20 // cursor speed
21 const float CURSOR_SPEED = 0.75;
22
23 // cursor animation
24 const float CA_PULSE_SPEED = 0.14257142 ; // = 1 / 7 -> 1 secs total time
25
26 // cursor filenames
27 var string CF_NORMAL = "ui/mousepointer.tga";
28
29 // enforce loading everything else qc will break
30 const float CURSOR_ENFORCELOADING = false;
31
32 // pulse animation
33 string[7] CF_PULSE =
34         "",
35         "",
36         "",
37         "",
38         "",
39         "",
40         "";
41
42 // global ui vars
43 vector cursor;
44 vector cursor_rel;
45 vector cursor_color;
46 float  cursor_transparency;
47 float  cursor_type;
48 float  cursor_last_frame_time;
49
50 vector cursor_speed;
51
52 // function prototypes
53
54 void(void) cursor_init;
55 void(void) cursor_reset;
56 void(void) cursor_toggle;
57 void(void) cursor_frame;
58 void(void) cursor_draw;
59 void(void) cursor_shutdown;