diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index 60401a42fe..23c9affb54 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -817,6 +817,11 @@ void ThemeManager::GetMetric( const CString &sClassName, const CString &sValueNa valueOut = GetMetricA( sClassName, sValueName ); } +void ThemeManager::GetMetric( const CString &sClassName, const CString &sValueName, LuaExpression &valueOut ) +{ + CString sValue = GetMetricRaw( sClassName, sValueName ); + valueOut.SetFromExpression( sValue ); +} // lua start #include "LuaBinding.h" diff --git a/stepmania/src/ThemeManager.h b/stepmania/src/ThemeManager.h index 4f5f628a53..6fa30ff61d 100644 --- a/stepmania/src/ThemeManager.h +++ b/stepmania/src/ThemeManager.h @@ -74,6 +74,7 @@ public: void GetMetric( const CString &sClassName, const CString &sValueName, bool &valueOut ) { valueOut = GetMetricB( sClassName, sValueName ); } void GetMetric( const CString &sClassName, const CString &sValueName, RageColor &valueOut ) { valueOut = GetMetricC( sClassName, sValueName ); } void GetMetric( const CString &sClassName, const CString &sValueName, Command &valueOut ); + void GetMetric( const CString &sClassName, const CString &sValueName, LuaExpression &valueOut ); void GetMetric( const CString &sClassName, const CString &sValueName, apActorCommands &valueOut ); //