2012-09-26 16:30:47 +00:00
|
|
|
#ifndef MWGUI_TravelWINDOW_H
|
|
|
|
#define MWGUI_TravelWINDOW_H
|
|
|
|
|
2015-01-10 00:00:52 +00:00
|
|
|
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
#include "referenceinterface.hpp"
|
2012-09-26 16:30:47 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void setPtr (const MWWorld::Ptr& actor) override;
|
2012-09-26 16:30:47 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
void updateLabels();
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void onReferenceUnavailable() override;
|
2012-09-26 16:30:47 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|