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