Moved error reporting to ScreenSystemLayer error.lua. ScreenSystemLayer overlay/default.lua restored to previous. Error messages are now broadcast with the ScriptError message instead of SystemMessage. Added show/hide error messages toggle and clear error messages to debug menu. Nuked ScreenConsoleOverlay for being unfinished and duplicating ScreenSystemLayer. Changed Actor:tween and Tween::CreateFromStack to use ReportScriptError on invalid tween params. Changed some OptionRowList things to use ReportScriptError on invalid metrics.
This commit is contained in:
+4
-1
@@ -97,7 +97,10 @@ ITween *ITween::CreateFromStack( Lua *L, int iStackPos )
|
||||
luaL_checktype( L, iStackPos+1, LUA_TTABLE );
|
||||
int iArgs = lua_objlen( L, iStackPos+1 );
|
||||
if( iArgs != 4 && iArgs != 8 )
|
||||
RageException::Throw( "CreateFromStack: table argument must have 4 or 8 entries" );
|
||||
{
|
||||
LuaHelpers::ReportScriptErrorFmt("Tween::CreateFromStack: table argument must have 4 or 8 entries");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
float fC[8];
|
||||
for( int i = 0; i < iArgs; ++i )
|
||||
|
||||
Reference in New Issue
Block a user