Add ThemeManager::GetMetric(LuaExpression)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 );
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user