This commit is contained in:
Glenn Maynard
2005-05-29 02:21:24 +00:00
parent e0a604fd43
commit f5dc5d75f3
9 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ static const CString DifficultyNames[] = {
XToString( Difficulty, NUM_DIFFICULTIES );
XToThemedString( Difficulty, NUM_DIFFICULTIES );
LuaFunction_Int( DifficultyToThemedString, DifficultyToThemedString((Difficulty)a1) );
LuaFunction( DifficultyToThemedString, DifficultyToThemedString((Difficulty) IArg(1)) );
/* We prefer the above names; recognize a number of others, too. (They'l
* get normalized when written to SMs, etc.) */
@@ -73,7 +73,7 @@ XToString( CourseDifficulty, NUM_DIFFICULTIES );
XToThemedString( CourseDifficulty, NUM_DIFFICULTIES );
StringToX( CourseDifficulty );
LuaFunction_Int( CourseDifficultyToThemedString, CourseDifficultyToThemedString((CourseDifficulty)a1) );
LuaFunction( CourseDifficultyToThemedString, CourseDifficultyToThemedString((CourseDifficulty)IArg(1)) );
CourseDifficulty GetNextShownCourseDifficulty( CourseDifficulty cd )
{
+1 -1
View File
@@ -253,7 +253,7 @@ StringToX( PeakComboAward );
#define LuaXToString(X) \
CString Lua##X##ToString( int n ) \
{ return X##ToString( (X) n ); } \
LuaFunction_Int( X##ToString, Lua##X##ToString(a1) ); /* register it */
LuaFunction( X##ToString, Lua##X##ToString( IArg(1) ) );
#define LuaStringToX(X) \
X LuaStringTo##X( CString s ) \
+1 -1
View File
@@ -7,7 +7,7 @@
#include "LuaManager.h"
#include "LuaFunctions.h"
LuaFunction_Int( GradeToString, GradeToString((Grade)a1) )
LuaFunction( GradeToString, GradeToString((Grade)IArg(1)) )
CString GradeToThemedString( Grade g )
{
+1 -1
View File
@@ -415,7 +415,7 @@ static bool Trace( const CString &sString )
return true;
}
LuaFunction_Str( Trace, Trace(str) );
LuaFunction( Trace, Trace(SArg(1)) );
/*
* (c) 2004 Glenn Maynard
+1 -1
View File
@@ -872,7 +872,7 @@ LuaFunction_NoArgs( IsNetConnected, NSMAN->useSMserver )
LuaFunction_NoArgs( IsNetSMOnline, NSMAN->isSMOnline )
static bool ReportStyle() { NSMAN->ReportStyle(); return true; }
LuaFunction_NoArgs( ReportStyle, ReportStyle() )
LuaFunction_Int( IsSMOnlineLoggedIn, NSMAN->isSMOLoggedIn[a1] )
LuaFunction( IsSMOnlineLoggedIn, NSMAN->isSMOLoggedIn[IArg(1)] )
/*
* (c) 2003-2004 Charles Lohr, Joshua Allen
+1 -1
View File
@@ -148,7 +148,7 @@ CString PercentageDisplay::FormatPercentScore( float fPercentDancePoints )
return s;
}
LuaFunction_Float( FormatPercentScore, PercentageDisplay::FormatPercentScore(a1) )
LuaFunction( FormatPercentScore, PercentageDisplay::FormatPercentScore( FArg(1) ) )
/*
+1 -1
View File
@@ -438,7 +438,7 @@ float PlayerStageStats::GetPercentageOfTaps( TapNoteScore tns ) const
}
LuaFunction_Float( GetGradeFromPercent, PlayerStageStats::GetGradeFromPercent(a1) )
LuaFunction( GetGradeFromPercent, PlayerStageStats::GetGradeFromPercent( FArg(1) ) )
// lua start
+1 -1
View File
@@ -149,7 +149,7 @@ CString SecondsToMSSMsMs( float fSecs )
#include "LuaFunctions.h"
#include "LuaManager.h"
LuaFunction_Float( SecondsToMSSMsMs, SecondsToMSSMsMs(a1) )
LuaFunction( SecondsToMSSMsMs, SecondsToMSSMsMs( FArg(1) ) )
CString SecondsToMMSSMsMsMs( float fSecs )
{
+1 -1
View File
@@ -271,7 +271,7 @@ LuaFunction_NoArgs( GetBestGrade, GetBestGrade() );
LuaFunction_NoArgs( GetWorstGrade, GetWorstGrade() );
LuaFunction_NoArgs( OnePassed, STATSMAN->m_CurStageStats.OnePassed() );
LuaFunction_NoArgs( AllFailed, STATSMAN->m_CurStageStats.AllFailed() );
LuaFunction_Str( Grade, StringToGrade(str) );
LuaFunction( Grade, StringToGrade( SArg(1) ) );
const StageStats *GetStageStatsN( int n )
{