~poddie-dev/poddie/main

« back to all changes in this revision

Viewing changes to sources/gamemenu.h

  • Committer: Niels Serup
  • Date: 2009-10-08 22:54:09 UTC
  • Revision ID: niels@gustace-20091008225409-eqzvpuvwfdleo5da
The game menu is now in a state where it _could_ be called useful. It 
does work, and there seem to be no apparent problems. For Poddie to 
work, two new files are required: config/autogen-settings.cfg and 
config/available-resolutions.list. The autogen-settings.cfg file is used 
to load and save data. It's important to note that settings.cfg is still 
read by Poddie and now actually takes precedence over 
autogen-settings.cfg. So, if a person does not want to be able to save 
something from the game menu, all that person has to do is manually 
write the key and value to settings.cfg. That's it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        CL_RadioButton *fullscreen_toggle;
115
115
        CL_RadioButton *windowed_toggle;
116
116
        
 
117
        CL_InputBox *new_max_fps;
 
118
        CL_Button *save_max_fps;
 
119
        
117
120
        // General/Audio
118
121
        CL_Label *sfx_label;
119
122
        CL_Component *sfx_volume;
144
147
        CL_TreeItem *current_item;
145
148
        bool restart_bacause_of_key_change;
146
149
        
 
150
        // Video
 
151
        vector<string> available_resolutions;
 
152
        string new_graphics_quality;
 
153
        string temp_max_fps_str;
 
154
        
147
155
        // Volume adjusters
148
156
        int mouse_start_x;
149
157
        bool move_active;
157
165
        void load_controls(char[]);
158
166
        void click_controls_item(const CL_TreeNode&);
159
167
        
 
168
        void load_available_resolutions(char[]);
 
169
        
160
170
        void enter();
161
171
        void leave();
162
172
        void change_state();
170
180
        void save_new_resolution(bool);
171
181
        void adjust_quality(int);
172
182
        
 
183
        void click_max_fps_box();
 
184
        void check_click_max_fps_box();
 
185
        void save_use_max_fps();
 
186
        
173
187
        void update_sfx_label(float);
174
188
        
175
189
        void set_fullscreen(bool);