Browse Source

[added] back the console cheat, changed it that the default is a visible console
[added] debug information and button to remove the annoying text

julzor 5 years ago
parent
commit
103c01c3a0
3 changed files with 21 additions and 1 deletions
  1. 14 0
      locations/Cheatmenu_din.qsrc
  2. 6 1
      locations/obj_din.qsrc
  3. 1 0
      locations/onobjsel.qsrc

+ 14 - 0
locations/Cheatmenu_din.qsrc

@@ -373,6 +373,17 @@ $cheatmenu['cumtrait_block'] = {
 	end
 }
 
+$cheatmenu['consolecheat'] = {
+	if cheatConsole = 0:
+		cheatConsole = 1
+		dynamic $cheatmenu['permanent']
+		exit
+	elseif cheatConsole = 1:
+		cheatConsole = 0
+		dynamic $cheatmenu['permanent']
+	end
+}
+
 $cheatmenu['timecheat'] = {
 	if cheatTime = 0:
 		cheatTime = 1
@@ -434,6 +445,8 @@ $cheatmenu['permanent'] = {
 	if cumeater_cheat = 1:$cheatcumtrait = 'Disabled'
 	if exhib_cheat = 0:$cheatexhib = 'Enabled'
 	if exhib_cheat = 1:$cheatexhib = 'Disabled'
+	if cheatConsole = 0:$cheatConsole = 'Visible'
+	if cheatConsole = 1:$cheatConsole = 'Hidden'
 	if cheatTime = 0:$cheatTime = 'Disabled'
 	if cheatTime = 1:$cheatTime = 'Enabled'
 
@@ -499,6 +512,7 @@ $cheatmenu['permanent'] = {
 		'No dream chance: <a href="exec:Enable_nodream=input(''Enter no dream chance (%)'') & dynamic $cheatmenu[''permanent'']">Currently OFF</a>'
 	end & !1.2.3 new function
 	*nl
+	'Hide Console input in objects window: <a href="exec:dynamic $cheatmenu[''consolecheat'']"><<$cheatConsole>></a>'
 	'Time Cheat in Objects window: <a href="exec:dynamic $cheatmenu[''timecheat'']"><<$cheatTime>></a>'
 	*nl
 

+ 6 - 1
locations/obj_din.qsrc

@@ -2635,7 +2635,7 @@ if $ARGS[0] = 'old':
 	addobj '<center>Refresh</center>'
 	!addobj '<center>Settings</center>'
 	!addobj '<center>Cheats</center>'
-	addobj '<center>Console</center>'
+	if cheatConsole = 0: addobj '<center>Console</center>'
 	! if disable_autosave = 1:
 		! addobj '<center><font color = red><b>[</b></font>Autosave<font color = red><b>]</b></font></center>'
 	! else
@@ -2647,6 +2647,11 @@ if $ARGS[0] = 'old':
 	end
 	addobj ''
 	addobj '<center><font color = red>Emergency</font></center>'
+	addobj ''
+	if debug_warning_closed = 0:
+		addobj '<center>This window is for debug only and can be safely closed.</center>'
+		addobj '<center>Remove debug info</center>'
+	end
 end
 
 if $ARGS[0] = 'wait':

+ 1 - 0
locations/onobjsel.qsrc

@@ -33,6 +33,7 @@ if $selobj = '<center>Console</center>':dynamic $cheatmenu['dynamic']
 if $selobj = '<center>-1 Hour</center>':gs 'obj_din', '-1 Hour'
 if $selobj = '<center>+1 Hour</center>':gs 'obj_din', '+1 Hour'
 if $selobj = '<center><font color = red>Emergency</font></center>':gs 'obj_din', 'emergency'
+if $selobj = '<center>Remove debug info</center>': debug_warning_closed = 1 & gs 'stat'
 
 !The old menu: end