Files
asarium a13b503b83 Add more features for the new Options UI
The largest new feature is that it is now possible to include other
files into the RML by using the "include" tag. This is useful for making
markup files more modular.

Also added some more options for existing things (e.g. built-in detail
options).
2020-02-08 13:28:53 +01:00

48 lines
1.4 KiB
C

/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#ifndef _OPTIONSMENU_H
#define _OPTIONSMENU_H
#include "ui/ui.h"
struct op_sliders {
// base slider
const char *filename;
int x, y, xt, yt;
int hotspot;
int dot_w;
int dots;
// left and right buttons
const char *left_filename;
int left_mask, left_x, left_y;
const char *right_filename;
int right_mask, right_x, right_y;
// slider control
UI_DOT_SLIDER_NEW slider; // because we have a class inside this struct, we need the constructor below..
op_sliders(const char *name, int x1, int y1, int xt1, int yt1, int h, int _dot_w, int _dots, const char *_left_filename, int _left_mask, int _left_x, int _left_y, const char *_right_filename, int _right_mask, int _right_x, int _right_y) :
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) {}
};
void options_menu_init();
void options_menu_close();
void options_menu_do_frame(float frametime);
// kill the options menu
void options_cancel_exit();
void options_play_voice_clip();
#endif