1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #ifndef G1_OPTIONS_HH
|
---|
10 | #define G1_OPTIONS_HH
|
---|
11 |
|
---|
12 |
|
---|
13 | #include "window/colorwin.hh"
|
---|
14 | #include "device/device.hh"
|
---|
15 | #include "gui/image_win.hh"
|
---|
16 |
|
---|
17 | class i4_graphical_style_class;
|
---|
18 | class i4_event_handler_class;
|
---|
19 | class i4_button_class;
|
---|
20 | class i4_const_str;
|
---|
21 |
|
---|
22 | class g1_option_window : public i4_parent_window_class
|
---|
23 | {
|
---|
24 | i4_graphical_style_class *style;
|
---|
25 | i4_image_class *options_background;
|
---|
26 | i4_event_handler_reference_class<i4_image_window_class> shadow_image_win, sound_image_win;
|
---|
27 |
|
---|
28 | i4_button_class *create_button(const i4_const_str &help,
|
---|
29 | int im,
|
---|
30 | i4_event_handler_reference_class<i4_image_window_class> *win_ref,
|
---|
31 | int mess_id);
|
---|
32 | void add_buttons();
|
---|
33 |
|
---|
34 | enum { STOPPED,
|
---|
35 | SLIDE_RIGHT,
|
---|
36 | SLIDE_LEFT
|
---|
37 | } mode;
|
---|
38 |
|
---|
39 | int get_correction();
|
---|
40 | int slide_speed, slide_left, slide_correction;
|
---|
41 |
|
---|
42 | public:
|
---|
43 | enum
|
---|
44 | {
|
---|
45 | SLIDE_AWAY,
|
---|
46 | SLIDE,
|
---|
47 | VIS_LOW,
|
---|
48 | VIS_MEDIUM,
|
---|
49 | VIS_HIGH,
|
---|
50 |
|
---|
51 | NORMAL_PIXEL,
|
---|
52 | INTERLACE,
|
---|
53 | DOUBLE_PIXEL,
|
---|
54 | SOUND,
|
---|
55 |
|
---|
56 | SHADOWS,
|
---|
57 | GAME_SPEED
|
---|
58 | };
|
---|
59 |
|
---|
60 | ~g1_option_window();
|
---|
61 | void parent_draw(i4_draw_context_class &context);
|
---|
62 | void forget_redraw();
|
---|
63 | g1_option_window(i4_graphical_style_class *style);
|
---|
64 |
|
---|
65 | void receive_event(i4_event *ev);
|
---|
66 | char *name() { return "g1_option_window"; }
|
---|
67 | };
|
---|
68 |
|
---|
69 |
|
---|
70 | extern i4_event_handler_reference_class<g1_option_window> g1_options_window;
|
---|
71 |
|
---|
72 | #endif
|
---|
73 |
|
---|