mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#ifndef MWGUI_TravelWINDOW_H
|
|
#define MWGUI_TravelWINDOW_H
|
|
|
|
#include "referenceinterface.hpp"
|
|
#include "windowbase.hpp"
|
|
|
|
namespace MyGUI
|
|
{
|
|
class Gui;
|
|
class Widget;
|
|
}
|
|
|
|
namespace MWGui
|
|
{
|
|
class TravelWindow : public ReferenceInterface, public WindowBase
|
|
{
|
|
public:
|
|
TravelWindow();
|
|
|
|
void setPtr(const MWWorld::Ptr& actor) override;
|
|
|
|
std::string_view getWindowIdForLua() const override { return "Travel"; }
|
|
|
|
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 ESM::RefId& name, const ESM::Position& pos, bool interior);
|
|
void clearDestinations();
|
|
int mCurrentY;
|
|
|
|
void updateLabels();
|
|
|
|
void onReferenceUnavailable() override;
|
|
};
|
|
}
|
|
|
|
#endif
|