Created Def.LogDisplay for displaying messages in a log. Changed error reporting layer to use Def.LogDisplay. Changed engine error reporting to not clip errors to a single line.

This commit is contained in:
Kyzentun
2014-08-02 00:38:29 -07:00
committed by Jonathan Payne
parent 1ff292ad24
commit 8657d70fe1
8 changed files with 418 additions and 185 deletions
+1
View File
@@ -1824,6 +1824,7 @@
<Function name='Flush'/>
<Function name='GetThreadVariable'/>
<Function name='ReadFile'/>
<Function name='ReportScriptError'/>
<Function name='RunWithThreadVariables'/>
<Function name='Trace'/>
<Function name='Warn'/>
+4
View File
@@ -749,6 +749,10 @@ save yourself some time, copy this for undocumented things:
Tries to read the file at <code>sPath</code>. If successful, it returns the file's contents.
If unsuccessful, it returns two values: <code>nil</code> and <code>"error"</code>.
</Function>
<Function name='ReportScriptError' return='' arguments= 'string error, string error_type'>
Reports the error through the error reporting system. error_type is the type used for the dialog that is presented, a dialog will not appear for a type the user has chosen to ignore.<br/>
error is optional an defaults to "Script error occurred.". error_type is optional and defaults to "LUA_ERROR".
</Function>
<Function name='RunWithThreadVariables' return='int' arguments='function func, table t, ...'>
Calls <code>func(...)</code> with two LuaThreadVariables set, and returns the return values of <code>func()</code>.
</Function>
+2 -1
View File
@@ -26,6 +26,7 @@ GrooveRadar
HelpDisplay
HoldJudgment
InputList
LogDisplay
MemoryCardDisplay
MeterDisplay
Model
@@ -43,4 +44,4 @@ Sprite
StepsDisplay
StepsDisplayList
TextBanner
WorkoutGraph
WorkoutGraph