FS2_Open
Open source remastering of the Freespace 2 engine
optionsmenu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
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 the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _OPTIONSMENU_H
13 #define _OPTIONSMENU_H
14 
15 #include "ui/ui.h"
16 
17 struct op_sliders {
18  // base slider
19  char *filename;
20  int x, y, xt, yt;
21  int hotspot;
22  int dot_w;
23  int dots;
24 
25  // left and right buttons
30 
31  // slider control
32  UI_DOT_SLIDER_NEW slider; // because we have a class inside this struct, we need the constructor below..
33 
34  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) :
35  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) {}
36 };
37 
38 void options_menu_init();
39 void options_menu_close();
40 void options_menu_do_frame(float frametime);
41 
42 // kill the options menu
43 void options_cancel_exit();
44 
45 #endif
void options_menu_close()
GLfloat GLfloat GLfloat GLfloat h
Definition: Glext.h:7280
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)
Definition: optionsmenu.h:34
char * right_filename
Definition: optionsmenu.h:28
char * filename
Definition: optionsmenu.h:19
void options_menu_init()
void options_menu_do_frame(float frametime)
void options_cancel_exit()
UI_DOT_SLIDER_NEW slider
Definition: optionsmenu.h:32
int right_mask
Definition: optionsmenu.h:29
int left_mask
Definition: optionsmenu.h:27
GLuint const GLchar * name
Definition: Glext.h:5608
char * left_filename
Definition: optionsmenu.h:26