From 01ae30ddd9df2e1dd1d3e38f895d0d662e641123 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 17 Feb 2005 06:09:08 +0000 Subject: [PATCH] Add ThemeManager::GetMetric(LuaExpression) --- stepmania/src/ThemeManager.cpp | 5 +++++ stepmania/src/ThemeManager.h | 1 + 2 files changed, 6 insertions(+) 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 ); //