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:
|
2013-04-10 18:46:21 +00:00
|
|
|
TravelWindow();
|
2012-09-26 16:30:47 +00:00
|
|
|
|
2014-05-27 03:13:37 +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);
|
2014-06-16 01:17:31 +00:00
|
|
|
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
|