Planeshift

pawsconfigHPandMana.h

Go to the documentation of this file.
00001 /*
00002  * pawsconfighpandmana.h - Author: Joe Lyon
00003  *
00004  * Copyright (C) 2014 Atomic Blue ([email protected], http://www.atomicblue.org)
00005  *
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation (version 2 of the License)
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017  *
00018  */
00019 
00020 #ifndef PAWS_CONFIG_HPANDMANA_HEADER
00021 #define PAWS_CONFIG_HPANDMANA_HEADER
00022 
00023 
00024 // PAWS INCLUDES
00025 #include "paws/pawswidget.h"
00026 #include "paws/pawscombo.h"
00027 #include "pawsconfigwindow.h"
00028 #include "util/psxmlparser.h"
00029 #include "shortcutwindow.h"
00030 #include "pawsinfowindow.h"
00031 #include "pawsskillwindow.h"
00032 
00033 
00034 class pawsCheckBox;
00035 class pawsRadioButtonGroup;
00036 
00037 
00038 /*
00039  * class pawsConfigHPandMana is options screen for configuration of HPandMana Bar
00040  */
00041 class pawsConfigHPandMana : public pawsConfigSectionWindow
00042 {
00043 public:
00044     pawsConfigHPandMana();
00045 
00046     //from pawsWidget:
00047     virtual bool PostSetup();
00048     virtual bool OnScroll(int, pawsScrollBar*);
00049 
00050     // from pawsConfigSectionWindow:
00051     virtual bool Initialize();
00052     virtual bool LoadConfig();
00053     virtual bool SaveConfig();
00054     virtual void SetDefault();
00055 
00056     void PickText( const char * fontName, int size );
00057 
00058     void UpdateHPWarnLevel( );
00059     void UpdateHPDangerLevel( );
00060     void UpdateHPFlashLevel( );
00061     void UpdateManaWarnLevel( );
00062     void UpdateManaDangerLevel( );
00063     void UpdateManaFlashLevel( );
00064 
00065     bool LoadUserSharedPrefs();
00066 
00067 protected:
00068 
00069     pawsWidget*            ShortcutMenu;
00070     pawsScrollMenu*        MenuBar;
00071     pawsInfoWindow*        InfoWindow;
00072     pawsSkillWindow*       SkillWindow;
00073 
00074     pawsScrollBar*         HPWarnLevel;
00075     pawsTextBox*           HPWarnSetting;
00076 
00077     pawsScrollBar*         HPDangerLevel;
00078     pawsTextBox*           HPDangerSetting;
00079 
00080     pawsScrollBar*         HPFlashLevel;
00081     pawsTextBox*           HPFlashSetting;
00082 
00083     pawsScrollBar*         ManaWarnLevel;
00084     pawsTextBox*           ManaWarnSetting;
00085 
00086     pawsScrollBar*         ManaDangerLevel;
00087     pawsTextBox*           ManaDangerSetting;
00088 
00089     pawsScrollBar*         ManaFlashLevel;
00090     pawsTextBox*           ManaFlashSetting;
00091 
00092 
00093     bool loaded;
00094 
00095 };
00096 
00097 
00098 CREATE_PAWS_FACTORY(pawsConfigHPandMana);
00099 
00100 
00101 #endif
00102