25 char *bm_left,
int left_mask,
int left_x,
int left_y,
26 char *bm_right,
int right_mask,
int right_x,
int right_y,
33 if((bm_left != NULL) || (left_mask != -1) || (bm_right != NULL) || (right_mask != -1)){
34 Assert((bm_left != NULL) && (left_mask >= 0) && (bm_right != NULL) && (right_mask >= 0));
35 if((bm_left == NULL) || (left_mask < 0) || (bm_right == NULL) || (right_mask < 0)){
47 dot_width = _dot_width;
50 button.
create( wnd,
"", _x, _y, 0, 0, 0, 1 );
57 if ( has_end_buttons ) {
59 up_button.
create( wnd,
"", right_x, right_y, 0, 0, 1, 1 );
66 down_button.
create( wnd,
"", left_x, left_y, 0, 0, 1, 1 );
77 if ( has_end_buttons ) {
118 button.process(focus);
129 if (
pos >= num_pos ) {
136 if ( has_end_buttons ) {
137 up_button.process(focus);
139 if (
pos < num_pos-1){
146 down_button.process(focus);
165 int bx,
by, bw, hotspot;
167 has_end_buttons = end_buttons;
169 if ( has_end_buttons ) {
183 sprintf(filename,
"%s%.2d", bm, hotspot);
185 if (first_frame < 0) {
200 button.
create( wnd,
"", bx, by, bw, 20, 0, 1 );
205 if ( has_end_buttons ) {
207 sprintf(filename,
"%s%.2d", bm,
id + 2);
208 up_button.
create( wnd,
"", _x + 216, _y, 22, 24, 1, 1 );
215 sprintf(filename,
"%s%.2d", bm,
id);
216 down_button.
create( wnd,
"", _x, _y, 22, 24, 1, 1 );
234 if ( has_end_buttons ) {
253 button.process(focus);
257 if ( has_end_buttons ) {
267 if (
pos > num_pos ){
274 if ( has_end_buttons ) {
275 up_button.process(focus);
284 down_button.process(focus);
void create(UI_WINDOW *wnd, int _x, int _y, int _num_pos, char *bm_slider, int slider_mask, char *bm_left=NULL, int left_mask=-1, int left_x=-1, int left_y=-1, char *bm_right=NULL, int right_mask=-1, int right_x=-1, int right_y=-1, int _dot_width=19)
DOT_SLIDER class down here.
void set_highlight_action(void(*_user_function)(void))
int mouse_captured(UI_GADGET *gadget=NULL)
general failure sound for any event
void base_create(UI_WINDOW *wnd, int _kind, int _x, int _y, int _w, int _h)
#define UI_KIND_DOT_SLIDER_NEW
void gr_set_bitmap(int bitmap_num, int alphablend_mode, int bitblt_mode, float alpha)
virtual void process(int focus=0)
int bm_release(int handle, int clear_render_targets)
Frees both a bitmap's data and it's associated slot.
int bm_load_animation(const char *real_filename, int *nframes, int *fps, int *keyframe, int can_drop_frames, int dir_type)
Loads a bitmap sequance so we can draw with it.
void draw_forced(int frame_num)
int set_bmaps(char *ani_filename, int nframes=3, int start_frame=1)
void create(UI_WINDOW *wnd, int _x, int _y, char *bm, int id, int end_buttons=1, int _num_pos=10)
DOT_SLIDER class down here.
sprintf(buf,"(%f,%f,%f)", v3->xyz.x, v3->xyz.y, v3->xyz.z)
int use_hack_to_get_around_stupid_problem_flag
GLint GLint GLint GLint GLint x
void _cdecl void void _cdecl Error(const char *filename, int line, SCP_FORMAT_STRING const char *format,...) SCP_FORMAT_STRING_ARGS(3
void set_parent(UI_GADGET *_parent)
void link_hotspot(int num)
void create(UI_WINDOW *wnd, char *_text, int _x, int _y, int _w, int _h, int do_repeat=0, int ignore_focus=0)
void common_play_highlight_sound()
#define UI_KIND_DOT_SLIDER
void gr_bitmap(int _x, int _y, int resize_mode)
virtual void process(int focus=0)
void gamesnd_play_iface(int n)
UI_GADGET * selected_gadget