mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:49:56 +00:00
48 lines
1 KiB
C++
48 lines
1 KiB
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 onOpen();
|
|
|
|
bool exit();
|
|
|
|
void setPtr(const MWWorld::Ptr& actor);
|
|
|
|
void onFrame(float dt);
|
|
|
|
WindowBase* getProgressBar() { return &mProgressBar; }
|
|
|
|
void clear() { resetReference(); }
|
|
|
|
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;
|
|
|
|
WaitDialogProgressBar mProgressBar;
|
|
TimeAdvancer mTimeAdvancer;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|