2012-05-24 15:57:23 +02:00
|
|
|
#ifndef MWGUI_ALCHEMY_H
|
|
|
|
#define MWGUI_ALCHEMY_H
|
|
|
|
|
2012-09-30 19:05:45 +02:00
|
|
|
#include <vector>
|
|
|
|
|
2012-09-27 11:59:40 +02:00
|
|
|
#include "../mwmechanics/alchemy.hpp"
|
|
|
|
|
2013-04-10 00:32:05 -04:00
|
|
|
#include "windowbase.hpp"
|
2012-05-25 15:24:33 +02:00
|
|
|
#include "container.hpp"
|
2012-07-03 13:15:20 +02:00
|
|
|
#include "widgets.hpp"
|
2012-05-24 15:57:23 +02:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
2012-05-25 15:24:33 +02:00
|
|
|
class AlchemyWindow : public WindowBase, public ContainerBase
|
2012-05-24 15:57:23 +02:00
|
|
|
{
|
|
|
|
public:
|
2012-08-12 18:11:09 +02:00
|
|
|
AlchemyWindow(MWBase::WindowManager& parWindowManager);
|
2012-05-25 12:58:28 +02:00
|
|
|
|
2012-05-25 15:24:33 +02:00
|
|
|
virtual void open();
|
|
|
|
|
2012-05-25 12:58:28 +02:00
|
|
|
protected:
|
|
|
|
MyGUI::Button* mCreateButton;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
|
2012-05-25 16:20:57 +02:00
|
|
|
MyGUI::Widget* mEffectsBox;
|
|
|
|
|
2012-05-25 18:00:13 +02:00
|
|
|
MyGUI::EditBox* mNameEdit;
|
|
|
|
|
2012-05-25 12:58:28 +02:00
|
|
|
void onCancelButtonClicked(MyGUI::Widget* _sender);
|
|
|
|
void onCreateButtonClicked(MyGUI::Widget* _sender);
|
2012-05-25 15:24:33 +02:00
|
|
|
void onIngredientSelected(MyGUI::Widget* _sender);
|
|
|
|
|
|
|
|
virtual void onSelectedItemImpl(MWWorld::Ptr item);
|
|
|
|
virtual std::vector<MWWorld::Ptr> itemsToIgnore();
|
|
|
|
|
2012-05-25 18:00:13 +02:00
|
|
|
void removeIngredient(MyGUI::Widget* ingredient);
|
|
|
|
|
2012-05-27 01:14:33 +02:00
|
|
|
virtual void onReferenceUnavailable() { ; }
|
|
|
|
|
2012-05-25 15:24:33 +02:00
|
|
|
void update();
|
2013-04-10 00:32:05 -04:00
|
|
|
|
2012-10-18 22:21:39 +02:00
|
|
|
private:
|
|
|
|
|
|
|
|
MWMechanics::Alchemy mAlchemy;
|
2012-09-30 19:05:45 +02:00
|
|
|
|
2012-10-18 22:21:39 +02:00
|
|
|
std::vector<MyGUI::ImageBox *> mApparatus;
|
|
|
|
std::vector<MyGUI::ImageBox *> mIngredients;
|
2012-05-24 15:57:23 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|