2015-02-07 03:05:28 +00: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 18:18:54 +00:00
|
|
|
void onFrame(float dt) override;
|
2015-02-07 03:05:28 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
bool exit() override { return false; }
|
2017-09-23 10:18:39 +00:00
|
|
|
|
2015-02-07 03:05:28 +00:00
|
|
|
private:
|
|
|
|
int mDays;
|
|
|
|
|
|
|
|
float mFadeTimeRemaining;
|
|
|
|
|
|
|
|
MyGUI::ScrollBar* mProgressBar;
|
|
|
|
|
|
|
|
void onJailProgressChanged(int cur, int total);
|
|
|
|
void onJailFinished();
|
|
|
|
|
|
|
|
TimeAdvancer mTimeAdvancer;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|