home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 February / maximum-cd-2009-02.iso / DiscContents / SMC_1.6_win32.exe / src / level / level_settings.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-09-08  |  2.8 KB  |  97 lines

  1. /***************************************************************************
  2.  * level_settings.h  -  header for the corresponding cpp file
  3.  *
  4.  * Copyright (C) 2006 - 2008 Florian Richter
  5.  ***************************************************************************/
  6. /*
  7.    This program is free software; you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 3 of the License, or
  10.    (at your option) any later version.
  11.    
  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  14. */
  15.  
  16. #ifndef SMC_LEVEL_SETTINGS_H
  17. #define SMC_LEVEL_SETTINGS_H
  18.  
  19. #include "../core/globals.h"
  20. #include "../gui/hud.h"
  21.  
  22. /* *** *** *** *** *** *** *** Level Settings *** *** *** *** *** *** *** *** *** *** */
  23. class cLevel_Settings
  24. {
  25. public:
  26.     cLevel_Settings( void );
  27.     ~cLevel_Settings( void );
  28.  
  29.     // Initializes Text Sprites and Graphics
  30.     void Init( void );
  31.     // Enter the Level Settings
  32.     void Enter( void );
  33.     // Unload and save settings
  34.     void Unload( void );
  35.  
  36.     // Update
  37.     void Update( void );
  38.     // Draw
  39.     void Draw( void );
  40.  
  41.     /* handle key down event
  42.      * returns true if the key was processed
  43.     */
  44.     bool Key_Down( SDLKey key );
  45.  
  46.     // Adds a Background image
  47.     bool Add_Background_Image( const CEGUI::EventArgs &event );
  48.     // Delete the currently selected Background image
  49.     bool Delete_Background_Image( const CEGUI::EventArgs &event );
  50.     // Set the current Background image
  51.     bool Set_Background_Image( const CEGUI::EventArgs &event );
  52.  
  53.     // Saves the Settings and exits
  54.     bool Button_Save( const CEGUI::EventArgs &event );
  55.  
  56.     // Updates the Colors
  57.     bool Update_BG_Colors( const CEGUI::EventArgs &event );
  58.     // Loads the Background image List
  59.     void Load_BG_Image_List( void );
  60.  
  61.     // Set the Background image preview
  62.     void Set_Background_Image_Preview( string filename );
  63.     // Updates the Background image
  64.     bool Update_BG_Image( const CEGUI::EventArgs &event );
  65.     // Clears the background Layer fields
  66.     void Clear_Layer_Field( void );
  67.  
  68.     // Loads the global effect data
  69.     void Load_Global_Effect( void );
  70.     // Set the global effect image preview
  71.     void Set_Global_Effect_Image_Preview( string filename );
  72.     // Updates the global effect image
  73.     bool Update_Global_Effect_Image( const CEGUI::EventArgs &event );
  74.  
  75.     // true if menu is active
  76.     bool active;
  77.  
  78.     // Background colors
  79.     Color bg_color_1, bg_color_2;
  80.  
  81.     // settings camera
  82.     cCamera *camera;
  83.     // GUI
  84.     CEGUI::Window *guiwindow;
  85.     CEGUI::TabControl *tabcontrol;
  86.  
  87.     // background image preview
  88.     cHudSprite *background_preview;
  89.  
  90.     // global effect image preview
  91.     cHudSprite *global_effect_preview;
  92. };
  93.  
  94. /* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */
  95.  
  96. #endif
  97.