mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 07:56:45 +00:00 
			
		
		
		
	- Removed duplicate code - Fixed missing magic backgrounds during item drag&drop - Change background texture used for HUD icons
		
			
				
	
	
		
			53 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef MWGUI_ALCHEMY_H
 | 
						|
#define MWGUI_ALCHEMY_H
 | 
						|
 | 
						|
#include <vector>
 | 
						|
 | 
						|
#include "../mwmechanics/alchemy.hpp"
 | 
						|
 | 
						|
#include "widgets.hpp"
 | 
						|
#include "windowbase.hpp"
 | 
						|
 | 
						|
namespace MWGui
 | 
						|
{
 | 
						|
    class ItemView;
 | 
						|
    class ItemWidget;
 | 
						|
    class SortFilterItemModel;
 | 
						|
 | 
						|
    class AlchemyWindow : public WindowBase
 | 
						|
    {
 | 
						|
    public:
 | 
						|
        AlchemyWindow();
 | 
						|
 | 
						|
        virtual void open();
 | 
						|
        virtual void exit();
 | 
						|
 | 
						|
    private:
 | 
						|
        ItemView* mItemView;
 | 
						|
        SortFilterItemModel* mSortModel;
 | 
						|
 | 
						|
        MyGUI::Button* mCreateButton;
 | 
						|
        MyGUI::Button* mCancelButton;
 | 
						|
 | 
						|
        MyGUI::Widget* mEffectsBox;
 | 
						|
 | 
						|
        MyGUI::EditBox* mNameEdit;
 | 
						|
 | 
						|
        void onCancelButtonClicked(MyGUI::Widget* _sender);
 | 
						|
        void onCreateButtonClicked(MyGUI::Widget* _sender);
 | 
						|
        void onIngredientSelected(MyGUI::Widget* _sender);
 | 
						|
 | 
						|
        void onSelectedItem(int index);
 | 
						|
 | 
						|
        void removeIngredient(MyGUI::Widget* ingredient);
 | 
						|
 | 
						|
        void update();
 | 
						|
 | 
						|
        MWMechanics::Alchemy mAlchemy;
 | 
						|
 | 
						|
        std::vector<ItemWidget*> mApparatus;
 | 
						|
        std::vector<ItemWidget*> mIngredients;
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |