From 8f441235a377dafe8e986188d73b8e47310b6ca1 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 24 Jun 2006 03:29:56 +0000 Subject: [PATCH] Add Lua binding for current StyleType. --- stepmania/src/GameState.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 36fb2622d7..1d3f093b5e 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -2000,6 +2000,11 @@ public: return vpStepsToShow.size()*2; } + static int GetCurrentStyleType( T* p, lua_State *L ) + { + lua_pushstring( L, StyleTypeToString(p->GetCurrentStyle()->m_StyleType) ); + return 1; + } static void Register(lua_State *L) @@ -2066,6 +2071,7 @@ public: ADD_METHOD( GetEditLocalProfileID ); ADD_METHOD( GetEditLocalProfile ); ADD_METHOD( GetCurrentStepsCredits ); + ADD_METHOD( GetCurrentStyleType ); Luna::Register( L );