Skip to content
Snippets Groups Projects
Commit a4d4a229 authored by Blank's avatar Blank Committed by Pregmodder
Browse files

subDebugOption

parent f76d2121
No related branches found
No related tags found
No related merge requests found
......@@ -593,6 +593,14 @@ Assignment performance vignettes on the end week report are
<br>
<<if ($debugMode == 1)>>
Debug Mode is currently @@.cyan;ENABLED.@@ [[Disable|Options][$debugMode = 0]]
<<if ndef $debugModeCustomFunction>> <<set $debugModeCustomFunction = 0>> <</if>>
<br>The custom function part of debug mode is currently
<<if $debugModeCustomFunction > 0>>
@@.cyan;ENABLED.@@ [[Disable|Options][$debugModeCustomFunction = 0]]
<<else>>
@@.red;DISABLED.@@ [[Disable|Options][$debugModeCustomFunction = 1]]
<</if>>
<br>
<<else>>
Debug Mode is currently @@.red;DISABLED.@@ [[Enable|Options][$debugMode = 1]]
//This will add a Display Variables and Bug Report passage to the sidebar.//
......
......@@ -832,20 +832,22 @@
<</link>>
<br>
<<link "Bug Report">><<bugreport>><</link>>
<br>
<<textarea "_customEvalCode" "">>
<<link "Run Custom Function">>
<<if _customEvalCode>>
<<if _customEvalCode.charAt(0) != "(" || $nextLink == ")">> /* second condition is only there for sanityCheck */
<<set _customEvalCode = "(" + _customEvalCode + ")">>
<</if>>
<<if typeof eval(_customEvalCode) === "function">>
<<run (eval(_customEvalCode))()>>
<<if $debugModeCustomFunction > 0>>
<br>
<<textarea "_customEvalCode" "">>
<<link "Run Custom Function">>
<<if _customEvalCode>>
<<if _customEvalCode.charAt(0) != "(" || $nextLink == ")">> /* second condition is only there for sanityCheck */
<<set _customEvalCode = "(" + _customEvalCode + ")">>
<</if>>
<<if typeof eval(_customEvalCode) === "function">>
<<run (eval(_customEvalCode))()>>
<</if>>
<</if>>
<</if>>
<<goto _Pass>>
<</link>>
<br>
<<goto _Pass>>
<</link>>
<br>
<</if>>
<<link "Dump Game State">><<run App.Debug.dumpGameState()>><</link>>
<</if>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment