- made intermissions work as screenjob.

This commit is contained in:
Christoph Oelckers 2022-04-22 14:01:08 +02:00
parent 082daccd2d
commit aabe59c533
2 changed files with 6 additions and 5 deletions

View file

@ -938,7 +938,7 @@ bool DIntermissionController::Responder (FInputEvent *ev)
return false;
}
void DIntermissionController::Ticker ()
bool DIntermissionController::Ticker ()
{
if (mAdvance)
{
@ -953,8 +953,10 @@ void DIntermissionController::Ticker ()
mAdvance = false;
if (!NextPage())
{
return false;
}
}
return true;
}
void DIntermissionController::Drawer ()
@ -1031,14 +1033,13 @@ DEFINE_ACTION_FUNCTION(DIntermissionController, Responder)
DEFINE_ACTION_FUNCTION(DIntermissionController, Ticker)
{
PARAM_SELF_PROLOGUE(DIntermissionController);
self->Ticker();
ACTION_RETURN_BOOL(true);
ACTION_RETURN_BOOL(self->Ticker());
}
DEFINE_ACTION_FUNCTION(DIntermissionController, Drawer)
{
PARAM_SELF_PROLOGUE(DIntermissionController);
self->Ticker();
self->Drawer ();
return 0;
}

View file

@ -303,7 +303,7 @@ public:
DIntermissionController(FIntermissionDescriptor *mDesc = NULL, bool mDeleteDesc = false);
bool Responder (FInputEvent *ev);
void Ticker ();
bool Ticker ();
void Drawer ();
void OnDestroy() override;
bool NextPage();