]> icculus.org git repositories - taylor/freespace2.git/blob - include/optionsmenu.h
Initial revision
[taylor/freespace2.git] / include / optionsmenu.h
1 /*
2  * $Logfile: /Freespace2/code/MenuUI/OptionsMenu.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Header file for code that controls the Options menu
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 3     6/25/99 11:59a Dave
15  * Multi options screen.
16  * 
17  * 2     10/07/98 10:53a Dave
18  * Initial checkin.
19  * 
20  * 1     10/07/98 10:49a Dave
21  * 
22  * 10    1/28/98 6:21p Dave
23  * Made the standalone use ~8 megs less memory. Fixed multiplayer submenu
24  * endgame problem.
25  * 
26  * 9     12/27/97 8:07p Lawrance
27  * remove old code
28  * 
29  * 8     8/31/97 6:38p Lawrance
30  * pass in frametime to do_frame loop
31  * 
32  * 7     1/09/97 12:57p Lawrance
33  * supporting a new state where the player picks to either save or restore
34  * 
35  * 6     11/21/96 7:14p Lawrance
36  * converted menu code to use a file (menu.tbl) to get the data for the
37  * menu
38  * 
39  * 5     11/13/96 4:02p Lawrance
40  * complete over-haul of the menu system and the states associated with
41  * them
42  * 
43  * 4     11/13/96 8:32a Lawrance
44  * streamlined menu code
45  * 
46  * 3     11/06/96 8:54a Lawrance
47  * added revision templates, made more efficient
48  *
49  * $NoKeywords: $
50  *
51 */
52
53 #ifndef _OPTIONSMENU_H
54 #define _OPTIONSMENU_H
55
56 #include "ui.h"
57
58 struct op_sliders {
59         // base slider
60         char *filename;
61         int x, y, xt, yt;
62         int hotspot;
63         int dot_w;
64         int dots;
65
66         // left and right buttons
67         char *left_filename;
68         int left_mask, left_x, left_y;
69         char *right_filename;
70         int right_mask, right_x, right_y;
71
72         // slider control
73         UI_DOT_SLIDER_NEW slider;  // because we have a class inside this struct, we need the constructor below..
74
75         op_sliders(char *name, int x1, int y1, int xt1, int yt1, int h, int _dot_w, int _dots, char *_left_filename, int _left_mask, int _left_x, int _left_y, char *_right_filename, int _right_mask, int _right_x, int _right_y) : 
76                                  filename(name), x(x1), y(y1), xt(xt1), yt(yt1), hotspot(h), dot_w(_dot_w), dots(_dots), left_filename(_left_filename), left_mask(_left_mask), left_x(_left_x), left_y(_left_y), right_filename(_right_filename), right_mask(_right_mask), right_x(_right_x), right_y(_right_y) {}
77 };
78
79 void options_menu_init();
80 void options_menu_close();
81 void options_menu_do_frame(float frametime);
82
83 // kill the options menu
84 void options_cancel_exit();
85
86 #endif
87