2012-05-24 13:57:23 +00:00
|
|
|
#ifndef MWGUI_ALCHEMY_H
|
|
|
|
#define MWGUI_ALCHEMY_H
|
|
|
|
|
2012-09-30 17:05:45 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2012-09-27 09:59:40 +00:00
|
|
|
#include "../mwmechanics/alchemy.hpp"
|
|
|
|
|
2012-05-24 13:57:23 +00:00
|
|
|
#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 14:20:57 +00:00
|
|
|
MyGUI::Widget* mEffectsBox;
|
|
|
|
|
2012-05-25 16:00:13 +00:00
|
|
|
MyGUI::EditBox* mNameEdit;
|
|
|
|
|
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-09-27 09:59:40 +00:00
|
|
|
|
2012-10-18 20:21:39 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
MWMechanics::Alchemy mAlchemy;
|
2012-09-30 17:05:45 +00:00
|
|
|
|
2012-10-18 20:21:39 +00:00
|
|
|
std::vector<MyGUI::ImageBox *> mApparatus;
|
|
|
|
std::vector<MyGUI::ImageBox *> mIngredients;
|
2012-05-24 13:57:23 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|