2012-05-24 13:57:23 +00:00
|
|
|
#ifndef MWGUI_ALCHEMY_H
|
|
|
|
#define MWGUI_ALCHEMY_H
|
|
|
|
|
|
|
|
#include "window_base.hpp"
|
2012-05-25 13:24:33 +00:00
|
|
|
#include "container.hpp"
|
2012-07-03 11:15:20 +00:00
|
|
|
#include "widgets.hpp"
|
2012-05-24 13:57:23 +00:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
2012-05-25 13:24:33 +00:00
|
|
|
class AlchemyWindow : public WindowBase, public ContainerBase
|
2012-05-24 13:57:23 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-08-12 16:11:09 +00:00
|
|
|
AlchemyWindow(MWBase::WindowManager& parWindowManager);
|
2012-05-25 10:58:28 +00:00
|
|
|
|
2012-05-25 13:24:33 +00:00
|
|
|
virtual void open();
|
|
|
|
|
2012-05-25 10:58:28 +00:00
|
|
|
protected:
|
|
|
|
MyGUI::Button* mCreateButton;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
|
2012-05-25 13:24:33 +00:00
|
|
|
MyGUI::ImageBox* mIngredient1;
|
|
|
|
MyGUI::ImageBox* mIngredient2;
|
|
|
|
MyGUI::ImageBox* mIngredient3;
|
|
|
|
MyGUI::ImageBox* mIngredient4;
|
|
|
|
|
|
|
|
MyGUI::ImageBox* mApparatus1;
|
|
|
|
MyGUI::ImageBox* mApparatus2;
|
|
|
|
MyGUI::ImageBox* mApparatus3;
|
|
|
|
MyGUI::ImageBox* mApparatus4;
|
|
|
|
|
2012-05-25 14:20:57 +00:00
|
|
|
MyGUI::Widget* mEffectsBox;
|
|
|
|
|
2012-05-25 16:00:13 +00:00
|
|
|
MyGUI::EditBox* mNameEdit;
|
|
|
|
|
2012-05-25 14:20:57 +00:00
|
|
|
Widgets::SpellEffectList mEffects; // effects of created potion
|
|
|
|
|
2012-05-25 10:58:28 +00:00
|
|
|
void onCancelButtonClicked(MyGUI::Widget* _sender);
|
|
|
|
void onCreateButtonClicked(MyGUI::Widget* _sender);
|
2012-05-25 13:24:33 +00:00
|
|
|
void onIngredientSelected(MyGUI::Widget* _sender);
|
|
|
|
|
|
|
|
virtual void onSelectedItemImpl(MWWorld::Ptr item);
|
|
|
|
virtual std::vector<MWWorld::Ptr> itemsToIgnore();
|
|
|
|
|
2012-05-25 16:00:13 +00:00
|
|
|
void removeIngredient(MyGUI::Widget* ingredient);
|
|
|
|
|
2012-05-26 23:14:33 +00:00
|
|
|
virtual void onReferenceUnavailable() { ; }
|
|
|
|
|
2012-05-25 13:24:33 +00:00
|
|
|
void update();
|
2012-05-24 13:57:23 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|