source: golgotha/src/golg/options.hh

Last change on this file was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.9 KB
Line 
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
17class i4_graphical_style_class;
18class i4_event_handler_class;
19class i4_button_class;
20class i4_const_str;
21
22class 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
42public:
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
70extern i4_event_handler_reference_class<g1_option_window> g1_options_window;
71
72#endif
73
Note: See TracBrowser for help on using the repository browser.