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
@@ -1458,7 +1458,10 @@ public:
|
||||
return 0;
|
||||
}
|
||||
ITween *pTween = ITween::CreateFromStack( L, 2 );
|
||||
p->BeginTweening(fTime, pTween);
|
||||
if(pTween != NULL)
|
||||
{
|
||||
p->BeginTweening(fTime, pTween);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
static int stoptweening( T* p, lua_State * ) { p->StopTweening(); return 0; }
|
||||
|
||||
Reference in New Issue
Block a user