2012-10-17 16:03:02 +00:00
|
|
|
#ifndef MWGUI_TRAININGWINDOW_H
|
|
|
|
#define MWGUI_TRAININGWINDOW_H
|
|
|
|
|
2013-04-10 04:32:05 +00:00
|
|
|
#include "windowbase.hpp"
|
2012-10-17 16:03:02 +00:00
|
|
|
#include "referenceinterface.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class TrainingWindow : public WindowBase, public ReferenceInterface
|
|
|
|
{
|
|
|
|
public:
|
2013-04-10 18:46:21 +00:00
|
|
|
TrainingWindow();
|
2012-10-17 16:03:02 +00:00
|
|
|
|
|
|
|
virtual void open();
|
|
|
|
|
2014-05-27 03:13:37 +00:00
|
|
|
virtual void exit();
|
|
|
|
|
2012-10-17 16:03:02 +00:00
|
|
|
void startTraining(MWWorld::Ptr actor);
|
|
|
|
|
|
|
|
void onFrame(float dt);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void onReferenceUnavailable ();
|
|
|
|
|
|
|
|
void onCancelButtonClicked (MyGUI::Widget* sender);
|
|
|
|
void onTrainingSelected(MyGUI::Widget* sender);
|
|
|
|
|
|
|
|
MyGUI::Widget* mTrainingOptions;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
MyGUI::TextBox* mPlayerGold;
|
|
|
|
|
|
|
|
float mFadeTimeRemaining;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|