1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00
OpenMW/apps/openmw/mwgui/jailscreen.hpp

34 lines
583 B
C++
Raw Normal View History

#ifndef MWGUI_JAILSCREEN_H
#define MWGUI_JAILSCREEN_H
#include "timeadvancer.hpp"
2022-09-22 21:26:05 +03:00
#include "windowbase.hpp"
namespace MWGui
{
class JailScreen : public WindowBase
{
2022-09-22 21:26:05 +03:00
public:
JailScreen();
void goToJail(int days);
2022-09-22 21:26:05 +03:00
void onFrame(float dt) override;
2022-09-22 21:26:05 +03:00
bool exit() override { return false; }
2017-09-23 12:18:39 +02:00
2022-09-22 21:26:05 +03:00
private:
int mDays;
2022-09-22 21:26:05 +03:00
float mFadeTimeRemaining;
2022-09-22 21:26:05 +03:00
MyGUI::ScrollBar* mProgressBar;
2022-09-22 21:26:05 +03:00
void onJailProgressChanged(int cur, int total);
void onJailFinished();
2022-09-22 21:26:05 +03:00
TimeAdvancer mTimeAdvancer;
};
}
#endif