From 63e0d02356e76b64214aaa3bd630f81437908233 Mon Sep 17 00:00:00 2001
From: Pedy <admin@8ch.net>
Date: Fri, 24 Aug 2018 12:43:53 +0300
Subject: [PATCH] Hide menu when in cheat mode

---
 Degrees_of_Lewdity_mod.html    | 4 ++--
 src/cheat.tw                   | 2 +-
 src/menu elements/storyMenu.tw | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Degrees_of_Lewdity_mod.html b/Degrees_of_Lewdity_mod.html
index f3ca9f8..e4d1576 100644
--- a/Degrees_of_Lewdity_mod.html
+++ b/Degrees_of_Lewdity_mod.html
@@ -4776,7 +4776,7 @@ You stay for a bit longer, then pack up the picnic and walk back to the orphanag
 
 
 
-&lt;&lt;robinoptions&gt;&gt;</tw-passagedata><tw-passagedata pid="115" name="Cheats" tags="nobr" position="600,1475">&lt;&lt;clamp&gt;&gt;
+&lt;&lt;robinoptions&gt;&gt;</tw-passagedata><tw-passagedata pid="115" name="Cheats" tags="nobr" position="600,1475">&lt;&lt;clamp&gt;&gt;&lt;&lt;set $menu to 1&gt;&gt;
 
 &lt;&lt;if ($passageback isnot &quot;Cheats&quot;) and ($passageback isnot &quot;Semen and goo&quot;) and ($passageback isnot &quot;Char Stat&quot;) and ($passageback isnot &quot;Trait Stat&quot;)&gt;&gt;
 &lt;&lt;set $passagecopy to $passageback&gt;&gt;
@@ -10762,7 +10762,7 @@ The bell rings, signifying the end of the lesson. You leave the classroom.&lt;br
 &lt;&lt;/if&gt;&gt;</tw-passagedata><tw-passagedata pid="150" name="StoryMenu" tags="" position="1225,1850">&lt;&lt;if $intro is 0 and $menu is 0 and $dancing is 0 and $combat is 0&gt;&gt;[[Characteristics]]
 [[Statistics]]
 [[Traits]]
-[[Cheats][$passageback to passage()]]
+[[Cheats][$passageback to passage()]] //todo - maybe change the behavior
 &lt;&lt;endif&gt;&gt;</tw-passagedata><tw-passagedata pid="151" name="StoryCaption" tags="nobr" position="100,1975">&lt;&lt;if $intro is 0&gt;&gt;
 
 &lt;&lt;if $cheatsidebar is 1&gt;&gt;
diff --git a/src/cheat.tw b/src/cheat.tw
index 972c400..d22c1f8 100644
--- a/src/cheat.tw
+++ b/src/cheat.tw
@@ -1,5 +1,5 @@
 :: Cheats [nobr]
-<<clamp>>
+<<clamp>><<set $menu to 1>>
 
 <<if ($passageback isnot "Cheats") and ($passageback isnot "Semen and goo") and ($passageback isnot "Char Stat") and ($passageback isnot "Trait Stat")>>
 <<set $passagecopy to $passageback>>
diff --git a/src/menu elements/storyMenu.tw b/src/menu elements/storyMenu.tw
index 0f03a9e..2e616b1 100644
--- a/src/menu elements/storyMenu.tw	
+++ b/src/menu elements/storyMenu.tw	
@@ -2,7 +2,7 @@
 <<if $intro is 0 and $menu is 0 and $dancing is 0 and $combat is 0>>[[Characteristics]]
 [[Statistics]]
 [[Traits]]
-[[Cheats][$passageback to passage()]]
+[[Cheats][$passageback to passage()]] //todo - maybe change the behavior
 <<endif>>
 
 
-- 
GitLab