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.
47 lines
983 B
C++
47 lines
983 B
C++
#ifndef MWGUI_TRAININGWINDOW_H
|
|
#define MWGUI_TRAININGWINDOW_H
|
|
|
|
#include "windowbase.hpp"
|
|
#include "referenceinterface.hpp"
|
|
#include "timeadvancer.hpp"
|
|
#include "waitdialog.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
|
|
class TrainingWindow : public WindowBase, public ReferenceInterface
|
|
{
|
|
public:
|
|
TrainingWindow();
|
|
|
|
virtual void open();
|
|
|
|
virtual void exit();
|
|
|
|
void startTraining(MWWorld::Ptr actor);
|
|
|
|
void onFrame(float dt);
|
|
|
|
protected:
|
|
virtual void onReferenceUnavailable ();
|
|
|
|
void onCancelButtonClicked (MyGUI::Widget* sender);
|
|
void onTrainingSelected(MyGUI::Widget* sender);
|
|
|
|
void onTrainingProgressChanged(int cur, int total);
|
|
void onTrainingFinished();
|
|
|
|
MyGUI::Widget* mTrainingOptions;
|
|
MyGUI::Button* mCancelButton;
|
|
MyGUI::TextBox* mPlayerGold;
|
|
|
|
float mFadeTimeRemaining;
|
|
|
|
WaitDialogProgressBar mProgressBar;
|
|
TimeAdvancer mTimeAdvancer;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|