Added PrettyPercent(numerator,denominator) Lua binding. Should probably add the two Commify bindings a bit later on...

This commit is contained in:
AJ Kelly
2011-08-16 22:28:06 -05:00
parent 6621b81aff
commit 54c6fd471f
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -8,6 +8,10 @@ ________________________________________________________________________________
StepMania 5.0 Preview 3 | 2011081?
--------------------------------------------------------------------------------
2011/08/16
----------
* Added PrettyPercent(numerator,denominator) Lua binding. [AJ]
2011/08/14
----------
* [Foreground] Restore Foreground Changes for use in gameplay. Note that it
+3 -1
View File
@@ -2247,8 +2247,10 @@ static RString MakeUpper( RString s ) { s.MakeUpper(); return s; }
LuaFunction( Uppercase, MakeUpper( SArg(1) ) )
LuaFunction( mbstrlen, (int)RStringToWstring(SArg(1)).length() )
LuaFunction( URLEncode, URLEncode( SArg(1) ) );
LuaFunction( PrettyPercent, PrettyPercent( FArg(1), FArg(2) ) );
//LuaFunction( IsHexVal, IsHexVal( SArg(1) ) );
//LuaFunction( UndocumentedFeature, sm_crash(SArg(1)) );
static bool UndocumentedFeature( RString s ){ sm_crash(s); return true; }
LuaFunction( UndocumentedFeature, UndocumentedFeature(SArg(1)) );
/*
* Copyright (c) 2001-2005 Chris Danford, Glenn Maynard