Sfoglia il codice sorgente

[added] "console" enable/disable in cheatmenu_din.
[changed] removed Christmas colours and extra spacing from hour +/-

3xpurt 5 anni fa
parent
commit
7e63aed89b
3 ha cambiato i file con 21 aggiunte e 6 eliminazioni
  1. 14 0
      locations/Cheatmenu_din.qsrc
  2. 5 4
      locations/obj_din.qsrc
  3. 2 2
      locations/onobjsel.qsrc

+ 14 - 0
locations/Cheatmenu_din.qsrc

@@ -337,6 +337,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
@@ -398,6 +409,8 @@ $cheatmenu['permanent'] = {
 	if cumeater_cheat = 1:$cheatcumtrait = 'Currently ON'
 	if exhib_cheat = 0:$cheatexhib = 'Currently OFF'
 	if exhib_cheat = 1:$cheatexhib = 'Currently ON'
+	if cheatConsole = 0:$cheatConsole = 'Currently OFF'
+	if cheatConsole = 1:$cheatConsole = 'Currently ON'
 	if cheatTime = 0:$cheatTime = 'Currently OFF'
 	if cheatTime = 1:$cheatTime = 'Currently ON'
 
@@ -463,6 +476,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
+	'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
 

+ 5 - 4
locations/obj_din.qsrc

@@ -2607,16 +2607,17 @@ if $ARGS[0] = 'old':
 	addobj '<center>Refresh</center>'
 	!addobj '<center>Settings</center>'
 	!addobj '<center>Cheats</center>'
-	addobj '<center>Console</center>'
+	if cheatConsole = 1:
+		addobj '<center>Console</center>'
+	end
 	! if disable_autosave = 1:
 		! addobj '<center><font color = red><b>[</b></font>Autosave<font color = red><b>]</b></font></center>'
 	! else
 		! addobj '<center><font color = green><b>[</b></font>Autosave<font color = green><b>]</b></font></center>'
 	! end
 	if cheatTime = 1:
-		addobj ''
-		addobj '<center><font color="red">-1 Hour</font></center>'
-		addobj '<center><font color="green">+1 Hour</font></center>'
+		addobj '<center>Hour -1</center>'
+		addobj '<center>Hour +1</center>'
 	end
 	addobj ''
 	addobj '<center><font color = red>Emergency</font></center>'

+ 2 - 2
locations/onobjsel.qsrc

@@ -30,9 +30,9 @@ if $selobj = '<center>Refresh</center>':gs '$menu_obnovit'
 	! if $selobj = '<center><font color = green><b>[</b></font>Autosave<font color = green><b>]</b></font></center>':gs 'obj_din', 'autosave'
 ! end
 if $selobj = '<center>Console</center>':dynamic $cheatmenu['dynamic']
+if $selobj = '<center>Hour -1</center>':gs 'obj_din', '-1 Hour'
+if $selobj = '<center>Hour +1</center>':gs 'obj_din', '+1 Hour'
 if $selobj = '<center><font color = red>Emergency</font></center>':gs 'obj_din', 'emergency'
-if $selobj = '<center><font color="red">-1 Hour</font></center>':gs 'obj_din', '-1 Hour'
-if $selobj = '<center><font color="green">+1 Hour</font></center>':gs 'obj_din', '+1 Hour'
 
 !The old menu: end