Skip to content
Snippets Groups Projects
Commit 31760d1d authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'subDebugOption' into 'pregmod-master'

subDebugOption

See merge request pregmodfan/fc-pregmod!4801
parents f76d2121 a4d4a229
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 ...@@ -593,6 +593,14 @@ Assignment performance vignettes on the end week report are
<br> <br>
<<if ($debugMode == 1)>> <<if ($debugMode == 1)>>
Debug Mode is currently @@.cyan;ENABLED.@@ [[Disable|Options][$debugMode = 0]] 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>> <<else>>
Debug Mode is currently @@.red;DISABLED.@@ [[Enable|Options][$debugMode = 1]] Debug Mode is currently @@.red;DISABLED.@@ [[Enable|Options][$debugMode = 1]]
//This will add a Display Variables and Bug Report passage to the sidebar.// //This will add a Display Variables and Bug Report passage to the sidebar.//
......
...@@ -832,20 +832,22 @@ ...@@ -832,20 +832,22 @@
<</link>> <</link>>
<br> <br>
<<link "Bug Report">><<bugreport>><</link>> <<link "Bug Report">><<bugreport>><</link>>
<br> <<if $debugModeCustomFunction > 0>>
<<textarea "_customEvalCode" "">> <br>
<<link "Run Custom Function">> <<textarea "_customEvalCode" "">>
<<if _customEvalCode>> <<link "Run Custom Function">>
<<if _customEvalCode.charAt(0) != "(" || $nextLink == ")">> /* second condition is only there for sanityCheck */ <<if _customEvalCode>>
<<set _customEvalCode = "(" + _customEvalCode + ")">> <<if _customEvalCode.charAt(0) != "(" || $nextLink == ")">> /* second condition is only there for sanityCheck */
<</if>> <<set _customEvalCode = "(" + _customEvalCode + ")">>
<<if typeof eval(_customEvalCode) === "function">> <</if>>
<<run (eval(_customEvalCode))()>> <<if typeof eval(_customEvalCode) === "function">>
<<run (eval(_customEvalCode))()>>
<</if>>
<</if>> <</if>>
<</if>> <<goto _Pass>>
<<goto _Pass>> <</link>>
<</link>> <br>
<br> <</if>>
<<link "Dump Game State">><<run App.Debug.dumpGameState()>><</link>> <<link "Dump Game State">><<run App.Debug.dumpGameState()>><</link>>
<</if>> <</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