EgtExecutor 1.8g2 :

- EgtSetColor ora accetta anche il nome di un colore standard.
This commit is contained in:
Dario Sassi
2017-07-13 14:44:24 +00:00
parent 2f9333d29a
commit 96acc77e5c
2 changed files with 6 additions and 1 deletions
BIN
View File
Binary file not shown.
+6 -1
View File
@@ -320,7 +320,12 @@ LuaSetColor( lua_State* L)
INTVECTOR vId ;
LuaCheckParam( L, 1, vId)
Color cCol ;
LuaCheckParam( L, 2, cCol)
if ( ! LuaGetParam( L, 2, cCol)) {
string sColName ;
LuaCheckParam( L, 2, sColName)
if ( ! ExeStdColor( sColName, cCol))
return luaL_error( L, " Invalid Parameter # 2") ;
}
bool bSetAlpha = true ;
LuaGetParam( L, 3, bSetAlpha) ;
LuaClearStack( L) ;