Add a wrapper function to get the Top Screen's name. Useful for debugging when you don't want to pull in ScreenManager.h.
This commit is contained in:
@@ -874,6 +874,11 @@ public:
|
||||
LUA_REGISTER_CLASS( ScreenManager )
|
||||
// lua end
|
||||
|
||||
RString StepMania::GetTopScreenName()
|
||||
{
|
||||
return SCREENMAN->GetTopScreen()->GetName();
|
||||
}
|
||||
|
||||
/*
|
||||
* (c) 2001-2003 Chris Danford, Glenn Maynard
|
||||
* All rights reserved.
|
||||
|
||||
@@ -12,6 +12,11 @@ struct Menu;
|
||||
struct lua_State;
|
||||
class InputEventPlus;
|
||||
|
||||
// For debugging where you don't want to pull in ScreenManager.h.
|
||||
namespace StepMania
|
||||
{
|
||||
RString GetTopScreenName();
|
||||
}
|
||||
|
||||
class ScreenManager
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user