mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 03:54:40 +00:00
37 lines
762 B
C++
37 lines
762 B
C++
|
#ifndef MWGUI_TRAININGWINDOW_H
|
||
|
#define MWGUI_TRAININGWINDOW_H
|
||
|
|
||
|
#include "window_base.hpp"
|
||
|
#include "referenceinterface.hpp"
|
||
|
|
||
|
namespace MWGui
|
||
|
{
|
||
|
|
||
|
class TrainingWindow : public WindowBase, public ReferenceInterface
|
||
|
{
|
||
|
public:
|
||
|
TrainingWindow(MWBase::WindowManager& parWindowManager);
|
||
|
|
||
|
virtual void open();
|
||
|
|
||
|
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
|