move color() into RageTypes
This commit is contained in:
@@ -703,17 +703,6 @@ LuaFunction( scale, scale(FArg(1), FArg(2), FArg(3), FArg(4), FArg(5)) );
|
|||||||
|
|
||||||
LuaFunction( clamp, clamp(FArg(1), FArg(2), FArg(3)) );
|
LuaFunction( clamp, clamp(FArg(1), FArg(2), FArg(3)) );
|
||||||
|
|
||||||
#include "RageTypes.h"
|
|
||||||
int LuaFunc_color( lua_State *L )
|
|
||||||
{
|
|
||||||
RString sColor = SArg(1);
|
|
||||||
RageColor c;
|
|
||||||
c.FromString( sColor );
|
|
||||||
c.PushTable( L );
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
static LuaFunctionList g_color( "color", LuaFunc_color ); /* register it */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (c) 2004-2006 Glenn Maynard, Steve Checkoway
|
* (c) 2004-2006 Glenn Maynard, Steve Checkoway
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
@@ -72,6 +72,16 @@ static const char *ZTestModeNames[] =
|
|||||||
XToString2( ZTestMode );
|
XToString2( ZTestMode );
|
||||||
LuaXType( ZTestMode );
|
LuaXType( ZTestMode );
|
||||||
|
|
||||||
|
int LuaFunc_color( lua_State *L )
|
||||||
|
{
|
||||||
|
RString sColor = SArg(1);
|
||||||
|
RageColor c;
|
||||||
|
c.FromString( sColor );
|
||||||
|
c.PushTable( L );
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
static LuaFunctionList g_color( "color", LuaFunc_color ); /* register it */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 Glenn Maynard
|
* Copyright (c) 2006 Glenn Maynard
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|||||||
Reference in New Issue
Block a user