LuaFunction_NoArgs -> LuaFunction
This commit is contained in:
@@ -948,10 +948,10 @@ LuaFunction( ConnectToServer, ConnectToServer( ( RString(SArg(1)).length()==
|
|||||||
|
|
||||||
static bool ReportStyle() { NSMAN->ReportStyle(); return true; }
|
static bool ReportStyle() { NSMAN->ReportStyle(); return true; }
|
||||||
|
|
||||||
LuaFunction( IsSMOnlineLoggedIn, NSMAN->isSMOLoggedIn[IArg(1)] )
|
LuaFunction( IsSMOnlineLoggedIn, NSMAN->isSMOLoggedIn[IArg(1)] )
|
||||||
LuaFunction_NoArgs( IsNetConnected, NSMAN->useSMserver )
|
LuaFunction( IsNetConnected, NSMAN->useSMserver )
|
||||||
LuaFunction_NoArgs( IsNetSMOnline, NSMAN->isSMOnline )
|
LuaFunction( IsNetSMOnline, NSMAN->isSMOnline )
|
||||||
LuaFunction_NoArgs( ReportStyle, ReportStyle() )
|
LuaFunction( ReportStyle, ReportStyle() )
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (c) 2003-2004 Charles Lohr, Joshua Allen
|
* (c) 2003-2004 Charles Lohr, Joshua Allen
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ void ScreenDimensions::ReloadScreenDimensions()
|
|||||||
LUA->SetGlobal( "SCREEN_CENTER_Y", (int) SCREEN_CENTER_Y );
|
LUA->SetGlobal( "SCREEN_CENTER_Y", (int) SCREEN_CENTER_Y );
|
||||||
}
|
}
|
||||||
|
|
||||||
LuaFunction_NoArgs( GetScreenAspectRatio, PREFSMAN->m_fDisplayAspectRatio );
|
LuaFunction( GetScreenAspectRatio, PREFSMAN->m_fDisplayAspectRatio );
|
||||||
LuaFunction_NoArgs( GetThemeAspectRatio, ScreenDimensions::GetThemeAspectRatio() );
|
LuaFunction( GetThemeAspectRatio, ScreenDimensions::GetThemeAspectRatio() );
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -275,9 +275,9 @@ LUA_REGISTER_CLASS( StatsManager )
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "LuaFunctions.h"
|
#include "LuaFunctions.h"
|
||||||
LuaFunction_NoArgs( OnePassed, STATSMAN->m_CurStageStats.OnePassed() );
|
LuaFunction( OnePassed, STATSMAN->m_CurStageStats.OnePassed() );
|
||||||
LuaFunction_NoArgs( AllFailed, STATSMAN->m_CurStageStats.AllFailed() );
|
LuaFunction( AllFailed, STATSMAN->m_CurStageStats.AllFailed() );
|
||||||
LuaFunction( Grade, StringToGrade( SArg(1) ) );
|
LuaFunction( Grade, StringToGrade( SArg(1) ) );
|
||||||
|
|
||||||
const StageStats *GetStageStatsN( int n )
|
const StageStats *GetStageStatsN( int n )
|
||||||
{
|
{
|
||||||
@@ -313,7 +313,7 @@ Grade GetBestFinalGrade()
|
|||||||
}
|
}
|
||||||
return top_grade;
|
return top_grade;
|
||||||
}
|
}
|
||||||
LuaFunction_NoArgs( GetBestFinalGrade, GetBestFinalGrade() );
|
LuaFunction( GetBestFinalGrade, GetBestFinalGrade() );
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user