You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
12 years ago
|
#ifndef MWGUI_TravelWINDOW_H
|
||
|
#define MWGUI_TravelWINDOW_H
|
||
|
|
||
|
#include "container.hpp"
|
||
|
#include "window_base.hpp"
|
||
|
|
||
|
#include "../mwworld/ptr.hpp"
|
||
|
|
||
|
namespace MyGUI
|
||
|
{
|
||
|
class Gui;
|
||
|
class Widget;
|
||
|
}
|
||
|
|
||
|
namespace MWGui
|
||
|
{
|
||
|
class WindowManager;
|
||
|
}
|
||
|
|
||
|
|
||
|
namespace MWGui
|
||
|
{
|
||
|
class TravelWindow : public ContainerBase, public WindowBase
|
||
|
{
|
||
|
public:
|
||
|
TravelWindow(MWBase::WindowManager& parWindowManager);
|
||
|
|
||
|
void startTravel(const MWWorld::Ptr& actor);
|
||
|
|
||
|
protected:
|
||
|
MyGUI::Button* mCancelButton;
|
||
|
MyGUI::TextBox* mPlayerGold;
|
||
|
MyGUI::TextBox* mDestinations;
|
||
|
MyGUI::TextBox* mSelect;
|
||
|
|
||
|
MyGUI::ScrollView* mDestinationsView;
|
||
|
|
||
|
MWWorld::Ptr mActor;
|
||
|
|
||
|
std::map<MyGUI::Widget*, std::string> mDestinationsWidgetMap;
|
||
|
|
||
|
void onCancelButtonClicked(MyGUI::Widget* _sender);
|
||
|
void onTravelButtonClick(MyGUI::Widget* _sender);
|
||
|
void onMouseWheel(MyGUI::Widget* _sender, int _rel);
|
||
|
void addDestination(const std::string& destinationID);
|
||
|
void clearDestinations();
|
||
|
int mLastPos,mCurrentY;
|
||
|
|
||
|
static const int sLineHeight;
|
||
|
|
||
|
void updateLabels();
|
||
|
|
||
|
virtual void onReferenceUnavailable();
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|