[10026] | 1 | |
---|
| 2 | #ifndef _QUESTGUI_H |
---|
| 3 | #define _QUESTGUI_H |
---|
| 4 | |
---|
| 5 | #include "world_entity.h" |
---|
| 6 | #include "glgui.h" |
---|
[10069] | 7 | #include <glgui_image.h> |
---|
[10026] | 8 | #include <vector> |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | class QuestGUI : public WorldEntity |
---|
| 13 | { |
---|
| 14 | |
---|
| 15 | ObjectListDeclaration(QuestGUI); |
---|
| 16 | |
---|
| 17 | public: |
---|
| 18 | QuestGUI (const TiXmlElement* root); |
---|
| 19 | virtual ~QuestGUI (); |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | virtual void loadParams(const TiXmlElement* root = NULL); |
---|
| 23 | |
---|
| 24 | /** @param questName sets the name of this quest */ |
---|
[10069] | 25 | inline void setQuestName(const std::string& questName) { this->questName = questName; } |
---|
| 26 | inline void setQuestDescription(const std::string& questDescription) { this->questDescription = questDescription; } |
---|
| 27 | inline void setQuestPicture(const std::string& questPicture) { this->questPicture = questPicture; } |
---|
| 28 | inline void setQuestDifficulty(const std::string& questDifficulty) { this->questDifficulty = questDifficulty; } |
---|
| 29 | inline void setRewardDescription(const std::string& rewardDescription){ this->rewardDescription = rewardDescription; } |
---|
| 30 | inline void setRewardPicture(const std::string& rewardPicture) { this->rewardPicture = rewardPicture; } |
---|
[10026] | 31 | void guiInit(); |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | private: |
---|
| 35 | std::string questName; |
---|
| 36 | std::string questDescription; |
---|
[10066] | 37 | std::string questPicture; |
---|
[10069] | 38 | std::string questDifficulty; |
---|
| 39 | std::string rewardDescription; |
---|
| 40 | std::string rewardPicture; |
---|
[10031] | 41 | |
---|
[10069] | 42 | OrxGui::GLGuiBox* headerBox; |
---|
| 43 | OrxGui::GLGuiBox* outlineBox; |
---|
| 44 | OrxGui::GLGuiBox* labelBox; |
---|
[10026] | 45 | OrxGui::GLGuiBox* questBox; |
---|
[10069] | 46 | OrxGui::GLGuiImage* questImage; |
---|
| 47 | OrxGui::GLGuiBox* rewardBox; |
---|
| 48 | OrxGui::GLGuiImage* rewardImage; |
---|
| 49 | OrxGui::GLGuiBox* answerBox; |
---|
[10026] | 50 | |
---|
| 51 | OrxSound::SoundSource* selectorSource; |
---|
| 52 | }; |
---|
| 53 | |
---|
| 54 | #endif /* _QUESTGUI_H */ |
---|