LuaExpression -> LuaReference
This commit is contained in:
@@ -16,7 +16,7 @@ protected:
|
||||
virtual void ShiftSubActors( int iDist );
|
||||
virtual void ConfigureActor( Actor *pActor, int iItem );
|
||||
|
||||
LuaExpression m_LoadFunction;
|
||||
LuaReference m_LoadFunction;
|
||||
};
|
||||
|
||||
class DynamicActorScrollerAutoDeleteChildren: public DynamicActorScroller
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
RString m_sPreferredModifiers;
|
||||
RString m_sStageModifiers;
|
||||
RString m_sScreen;
|
||||
LuaExpression m_LuaFunction;
|
||||
LuaReference m_LuaFunction;
|
||||
Song* m_pSong;
|
||||
Steps* m_pSteps;
|
||||
Course* m_pCourse;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
LuaExpressionTransform::LuaExpressionTransform()
|
||||
{
|
||||
m_pexprTransformFunction = new LuaExpression;
|
||||
m_pexprTransformFunction = new LuaReference;
|
||||
m_iNumSubdivisions = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#define LuaExpressionTransform_H
|
||||
|
||||
#include "Actor.h"
|
||||
class LuaExpression;
|
||||
class LuaReference;
|
||||
#include <map>
|
||||
|
||||
class LuaExpressionTransform
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
LuaExpression *m_pexprTransformFunction; // params: self,offset,itemIndex,numItems
|
||||
LuaReference *m_pexprTransformFunction; // params: self,offset,itemIndex,numItems
|
||||
int m_iNumSubdivisions; // 1 == one evaluation per position
|
||||
struct PositionOffsetAndItemIndex
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ protected:
|
||||
|
||||
BitmapText m_text[NUM_MENU_TIMER_TEXTS];
|
||||
|
||||
LuaExpression m_exprFormatText[NUM_MENU_TIMER_TEXTS];
|
||||
LuaReference m_exprFormatText[NUM_MENU_TIMER_TEXTS];
|
||||
|
||||
RageSound m_soundBeep;
|
||||
|
||||
|
||||
@@ -726,10 +726,10 @@ class OptionRowHandlerListSongsInCurrentSongGroup: public OptionRowHandlerList
|
||||
class OptionRowHandlerLua : public OptionRowHandler
|
||||
{
|
||||
public:
|
||||
LuaExpression *m_pLuaTable;
|
||||
LuaReference *m_pLuaTable;
|
||||
LuaReference m_EnabledForPlayersFunc;
|
||||
|
||||
OptionRowHandlerLua() { m_pLuaTable = new LuaExpression; Init(); }
|
||||
OptionRowHandlerLua() { m_pLuaTable = new LuaReference; Init(); }
|
||||
virtual ~OptionRowHandlerLua() { delete m_pLuaTable; }
|
||||
void Init()
|
||||
{
|
||||
|
||||
@@ -42,7 +42,7 @@ private:
|
||||
BitmapText m_textPercent;
|
||||
BitmapText m_textPercentRemainder;
|
||||
|
||||
LuaExpression m_Format;
|
||||
LuaReference m_Format;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -151,7 +151,7 @@ void Player::Init(
|
||||
//
|
||||
// Init judgment positions
|
||||
//
|
||||
LuaExpression expr;
|
||||
LuaReference expr;
|
||||
expr.SetFromExpression( THEME->GetMetric(sType,"JudgmentTransformCommandFunction") );
|
||||
|
||||
bool bPlayerUsingBothSides = GAMESTATE->GetCurrentStyle()->m_StyleType==ONE_PLAYER_TWO_SIDES;
|
||||
|
||||
@@ -1001,7 +1001,7 @@ void ThemeManager::GetMetric( const RString &sClassName, const RString &sValueNa
|
||||
}
|
||||
#endif
|
||||
|
||||
void ThemeManager::GetMetric( const RString &sClassName, const RString &sValueName, LuaExpression &valueOut )
|
||||
void ThemeManager::GetMetric( const RString &sClassName, const RString &sValueName, LuaReference &valueOut )
|
||||
{
|
||||
RString sValue = GetMetricRaw( g_pLoadedThemeData->iniMetrics, sClassName, sValueName );
|
||||
valueOut.SetFromExpression( "function(self) " + sValue + "end" );
|
||||
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
void GetMetric( const RString &sClassName, const RString &sValueName, float &valueOut ) { valueOut = GetMetricF( sClassName, sValueName ); }
|
||||
void GetMetric( const RString &sClassName, const RString &sValueName, bool &valueOut ) { valueOut = GetMetricB( sClassName, sValueName ); }
|
||||
void GetMetric( const RString &sClassName, const RString &sValueName, RageColor &valueOut ) { valueOut = GetMetricC( sClassName, sValueName ); }
|
||||
void GetMetric( const RString &sClassName, const RString &sValueName, LuaExpression &valueOut );
|
||||
void GetMetric( const RString &sClassName, const RString &sValueName, LuaReference &valueOut );
|
||||
#if !defined(SMPACKAGE)
|
||||
void GetMetric( const RString &sClassName, const RString &sValueName, apActorCommands &valueOut );
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user