1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-05 15:55:45 +00:00
OpenMW/apps/openmw/mwgui/travelwindow.hpp

53 lines
1.1 KiB
C++
Raw Normal View History

2012-09-26 16:30:47 +00:00
#ifndef MWGUI_TravelWINDOW_H
#define MWGUI_TravelWINDOW_H
#include "container.hpp"
namespace MyGUI
{
class Gui;
class Widget;
}
namespace MWGui
{
class WindowManager;
}
namespace MWGui
{
2012-10-06 15:52:46 +00:00
class TravelWindow : public ReferenceInterface, public WindowBase
2012-09-26 16:30:47 +00:00
{
public:
TravelWindow();
2012-09-26 16:30:47 +00:00
virtual void exit();
2012-09-26 16:30:47 +00:00
void startTravel(const MWWorld::Ptr& actor);
protected:
MyGUI::Button* mCancelButton;
MyGUI::TextBox* mPlayerGold;
MyGUI::TextBox* mDestinations;
MyGUI::TextBox* mSelect;
MyGUI::ScrollView* mDestinationsView;
void onCancelButtonClicked(MyGUI::Widget* _sender);
void onTravelButtonClick(MyGUI::Widget* _sender);
void onMouseWheel(MyGUI::Widget* _sender, int _rel);
void addDestination(const std::string& name, ESM::Position pos, bool interior);
2012-09-26 16:30:47 +00:00
void clearDestinations();
2014-09-07 00:41:27 +00:00
int mCurrentY;
2012-09-26 16:30:47 +00:00
static const int sLineHeight;
void updateLabels();
virtual void onReferenceUnavailable();
};
}
#endif