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:
Steve Checkoway
2007-08-15 06:17:41 +00:00
parent d536ea6e35
commit 2f672bca45
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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.
+5
View File
@@ -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
{