2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/MenuUI/OptionsMenu.h $
15 * Header file for code that controls the Options menu
18 * Revision 1.2 2002/06/09 04:41:14 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 3 6/25/99 11:59a Dave
26 * Multi options screen.
28 * 2 10/07/98 10:53a Dave
31 * 1 10/07/98 10:49a Dave
33 * 10 1/28/98 6:21p Dave
34 * Made the standalone use ~8 megs less memory. Fixed multiplayer submenu
37 * 9 12/27/97 8:07p Lawrance
40 * 8 8/31/97 6:38p Lawrance
41 * pass in frametime to do_frame loop
43 * 7 1/09/97 12:57p Lawrance
44 * supporting a new state where the player picks to either save or restore
46 * 6 11/21/96 7:14p Lawrance
47 * converted menu code to use a file (menu.tbl) to get the data for the
50 * 5 11/13/96 4:02p Lawrance
51 * complete over-haul of the menu system and the states associated with
54 * 4 11/13/96 8:32a Lawrance
55 * streamlined menu code
57 * 3 11/06/96 8:54a Lawrance
58 * added revision templates, made more efficient
64 #ifndef _OPTIONSMENU_H
65 #define _OPTIONSMENU_H
77 // left and right buttons
79 int left_mask, left_x, left_y;
81 int right_mask, right_x, right_y;
84 UI_DOT_SLIDER_NEW slider; // because we have a class inside this struct, we need the constructor below..
86 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) :
87 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) {}
90 void options_menu_init();
91 void options_menu_close();
92 void options_menu_do_frame(float frametime);
94 // kill the options menu
95 void options_cancel_exit();