1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:49:55 +00:00
openmw-tes3mp/apps/openmw/mwgui/travelwindow.hpp

45 lines
1 KiB
C++
Raw Normal View History

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
{
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
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);
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();
void onReferenceUnavailable() override;
2012-09-26 16:30:47 +00:00
};
}
#endif