- added a callback to menu items for when a new menu gets created.

- added a StartSlideshow ACS and ZScript command and extended the functionality to specify the slideshow's name when starting it.

This is for triggering any kind of intermission definition in the middle of a level - keep in mind that this may not be set up to loop!
This commit is contained in:
Christoph Oelckers 2017-03-14 10:41:13 +01:00
commit 6db355a947
8 changed files with 37 additions and 3 deletions

View file

@ -62,6 +62,7 @@
#include "r_sky.h"
#include "gstrings.h"
#include "gi.h"
#include "g_game.h"
#include "sc_man.h"
#include "c_bind.h"
#include "info.h"
@ -4961,6 +4962,7 @@ enum EACSFunctions
ACSF_Round,
ACSF_Ceil,
ACSF_ScriptCall,
ACSF_StartSlideshow,
// OpenGL stuff
@ -6808,6 +6810,10 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
case ACSF_ScriptCall:
return ScriptCall(argCount, args);
case ACSF_StartSlideshow:
G_StartSlideshow(FName(FBehavior::StaticLookupString(args[0])));
break;
default:
break;
}