mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 22:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MWGUI_TravelWINDOW_H
 | |
| #define MWGUI_TravelWINDOW_H
 | |
| 
 | |
| #include "container.hpp"
 | |
| 
 | |
| namespace MyGUI
 | |
| {
 | |
|   class Gui;
 | |
|   class Widget;
 | |
| }
 | |
| 
 | |
| namespace MWGui
 | |
| {
 | |
|     class WindowManager;
 | |
| }
 | |
| 
 | |
| 
 | |
| namespace MWGui
 | |
| {
 | |
|     class TravelWindow : public ReferenceInterface, public WindowBase
 | |
|     {
 | |
|         public:
 | |
|             TravelWindow();
 | |
| 
 | |
|             void startTravel(const MWWorld::Ptr& actor);
 | |
| 
 | |
|         protected:
 | |
|             MyGUI::Button* mCancelButton;
 | |
|             MyGUI::TextBox* mPlayerGold;
 | |
|             MyGUI::TextBox* mDestinations;
 | |
|             MyGUI::TextBox* mSelect;
 | |
| 
 | |
|             MyGUI::ScrollView* mDestinationsView;
 | |
| 
 | |
|             std::map<MyGUI::Widget*, std::string> mDestinationsWidgetMap;
 | |
| 
 | |
|             void onCancelButtonClicked(MyGUI::Widget* _sender);
 | |
|             void onTravelButtonClick(MyGUI::Widget* _sender);
 | |
|             void onMouseWheel(MyGUI::Widget* _sender, int _rel);
 | |
|             void addDestination(const std::string& destinationID,ESM::Position pos,bool interior);
 | |
|             void clearDestinations();
 | |
|             int mLastPos,mCurrentY;
 | |
| 
 | |
|             static const int sLineHeight;
 | |
| 
 | |
|             void updateLabels();
 | |
| 
 | |
|             virtual void onReferenceUnavailable();
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |