mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 22:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			56 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MWGUI_BIRTH_H
 | |
| #define MWGUI_BIRTH_H
 | |
| 
 | |
| #include "windowbase.hpp"
 | |
| 
 | |
| /*
 | |
|   This file contains the dialog for choosing a birth sign.
 | |
|   Layout is defined by resources/mygui/openmw_chargen_race.layout.
 | |
|  */
 | |
| 
 | |
| namespace MWGui
 | |
| {
 | |
|     class BirthDialog : public WindowModal
 | |
|     {
 | |
|     public:
 | |
|         BirthDialog();
 | |
| 
 | |
|         enum Gender
 | |
|         {
 | |
|             GM_Male,
 | |
|             GM_Female
 | |
|         };
 | |
| 
 | |
|         const std::string &getBirthId() const { return mCurrentBirthId; }
 | |
|         void setBirthId(const std::string &raceId);
 | |
| 
 | |
|         void setNextButtonShow(bool shown);
 | |
|         virtual void open();
 | |
| 
 | |
|         // Events
 | |
|         typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
 | |
| 
 | |
|         /** Event : Back button clicked.\n
 | |
|             signature : void method()\n
 | |
|         */
 | |
|         EventHandle_Void eventBack;
 | |
| 
 | |
|     protected:
 | |
|         void onSelectBirth(MyGUI::ListBox* _sender, size_t _index);
 | |
| 
 | |
|         void onOkClicked(MyGUI::Widget* _sender);
 | |
|         void onBackClicked(MyGUI::Widget* _sender);
 | |
| 
 | |
|     private:
 | |
|         void updateBirths();
 | |
|         void updateSpells();
 | |
| 
 | |
|         MyGUI::ListBox* mBirthList;
 | |
|         MyGUI::Widget*  mSpellArea;
 | |
|         MyGUI::ImageBox* mBirthImage;
 | |
|         std::vector<MyGUI::Widget*> mSpellItems;
 | |
| 
 | |
|         std::string mCurrentBirthId;
 | |
|     };
 | |
| }
 | |
| #endif
 |