You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
#ifndef MWGUI_BIRTH_H
|
|
#define MWGUI_BIRTH_H
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
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;
|
|
|
|
/** Event : Dialog finished, OK button clicked.\n
|
|
signature : void method()\n
|
|
*/
|
|
EventHandle_WindowBase eventDone;
|
|
|
|
protected:
|
|
void onSelectBirth(MyGUI::ListBox* _sender, size_t _index);
|
|
|
|
void onAccept(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
|