]> icculus.org git repositories - divverent/nexuiz.git/blob - menu/cursor.qh
grappling hook
[divverent/nexuiz.git] / menu / 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 var string      CF_PULSE_0 = "",
34                 CF_PULSE_1 = "",
35                 CF_PULSE_2 = "",
36                 CF_PULSE_3 = "",
37                 CF_PULSE_4 = "",
38                 CF_PULSE_5 = "",
39                 CF_PULSE_6 = "";
40
41 // global ui vars
42 vector cursor;
43 vector cursor_rel;
44 vector cursor_color;
45 float  cursor_transparency;
46 float  cursor_type;
47 float  cursor_last_frame_time;
48
49 vector cursor_speed;
50
51 // function prototypes
52
53 void(void) cursor_init;
54 void(void) cursor_reset;
55 void(void) cursor_toggle;
56 void(void) cursor_frame;
57 void(void) cursor_draw;
58 void(void) cursor_shutdown;