2 Achegas 5a024dd190 ... 94e836d2e4

Autor SHA1 Mensaxe Data
  Lusticon 94e836d2e4 [added] cheat menu var cleanup hai 5 meses
  Lusticon c46dcfdaf4 [changed] text display layout hai 5 meses

+ 48 - 60
locations/Cheatmenu_din.qsrc

@@ -1,6 +1,9 @@
 # Cheatmenu_din
 if settingmode = 0: settingmode = 69
 menu_off = 1
+$cheatmenu['table_start'] = '<center><table width="80%" cellspacing="0" cellpadding="20" valign="top"><tr><td width="500" cellspacing="0" cellpadding="20" valign="top">'
+$cheatmenu['table_second'] = '</td><td width="500" cellspacing="0" cellpadding="20" valign="top">'
+$cheatmenu['table_end'] = '</td></tr></table></center>'
 cla & *clr
 
 $cheatmenu['empty'] = {
@@ -29,8 +32,7 @@ $cheatmenu['setting'] = {
 	if $theme['name'] = 'Custom': gs 'themes', 'check_custom_vars' & gs 'themes', 'set_custom' & gs '$menu_obnovit'
 	gs 'obj_din', 'settingtabs'
 	'<center><h1>Gameplay Settings</h1></center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 
 	'AutoSave: <a href="exec:									disable_autosave					= iif(disable_autosave, 0, 1)					& dynamic $cheatmenu[$cheatmenu[''this_menu'']]"><<iif(disable_autosave						, ''Disabled'', ''Enabled'')>></a>'
 	'Music: <a href="exec:												dynamic $cheatmenu[''music'']												& dynamic $cheatmenu[$cheatmenu[''this_menu'']]"><<iif(music_on								, ''Enabled'', ''Disabled'')>></a>'
@@ -65,7 +67,7 @@ $cheatmenu['setting'] = {
 	'<li>set to ' + iif($temp_diff = 'hardcore', 'hardcore', '<a href="exec:		FUNC(''_difficulty'',''setdifficulty'',''hardcore'')		& dynamic $cheatmenu[$cheatmenu[''this_menu'']]">hardcore</a>') + '</li>'
 	'</ul>'
 	killvar '$temp_diff'
-	'</tr></table></b></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -235,8 +237,7 @@ $cheatmenu['index'] = {
 	cla & *clr
 	gs 'obj_din', 'cheattabs'
 	'<center><h1>Cheat Menu - Index</h1></center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td width="50%" cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	'<a href="exec:dynamic $cheatmenu[''dynamic'']">Dynamic Input Command</a>'
 	'<a href="exec:gs ''fertility'',''cum_arrcheat''">OOX Debug</a>'
 	'Right now <<$week[week]>> <<$month>> <<day>> <<year>> <<hour>>:<<minut>>'
@@ -255,7 +256,7 @@ $cheatmenu['index'] = {
 	if blackmailQW['stage'] ! 0: 'Purge the "Blackmailer" questline: <a href="exec: gs ''blackmailer'', ''purge_all'' & dynamic $cheatmenu[$cheatmenu[''this_menu'']]">Permanently reset the entire questline!</a>'
 	*nl
 	'<a href="exec:dynamic $cheatmenu[''vartracker'']"><b>Variable tracker</b></a>'
-	'</tr></table></b></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -369,8 +370,7 @@ $cheatmenu['permanent'] = {
 
 	'<center><h1>Cheat Menu - Recurrent Cheats</h1></center>'
 	'<center><font color="red"><b>WARNING!</b></font>: Disabling states may cause some events not to trigger. Use at your own risk!</center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td width="90%" cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 
 	'Willpower cost always zero: <a href="exec:					cheatVars[''willpower'']			= iif(cheatVars[''willpower''], 0, 1)				& dynamic $cheatmenu[$cheatmenu[''this_menu'']]"><<iif(cheatVars[''willpower'']				, ''Enabled'', ''Disabled'')>></a>'
 	'Infinite willpower: <a href="exec:							cheatVars[''inf_willpower'']		= iif(cheatVars[''inf_willpower''], 0, 1)			& dynamic $cheatmenu[$cheatmenu[''this_menu'']]"><<iif(cheatVars[''inf_willpower'']			, ''Enabled'', ''Disabled'')>></a>'
@@ -417,7 +417,7 @@ $cheatmenu['permanent'] = {
 
 	*nl
 	'<font color="red"><b>WARNING!</b></font>: Disabling states may cause some events not to trigger. Use at your own risk!'
-	'</tr></table></b></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -526,8 +526,7 @@ $cheatmenu['state'] = {
 	'<center><h1>Cheat Menu - Character State Changes</h1></center>'
 	'<center><font color="red"><b>WARNING!</b></font>: Using cheats can cause bugs and break your save. Cheats manipulating pregnancy or the menstrual cycle are'
 	'especially dangerous unless you know what you''re doing. When reporting bugs, please mention any cheats you used.</center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td width="50%" cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	'Set alcohol levels:'
 	'<a href="exec:alko = 0 & dynamic $cheatmenu[''state''] & gs ''stat''">Sober</a> <a href="exec:alko = 2 & dynamic $cheatmenu[''state''] & gs ''stat''">Tipsy</a> <a href="exec:alko = 4 & dynamic $cheatmenu[''state''] & gs ''stat''">Drunk</a> <a href="exec:alko = 7 & dynamic $cheatmenu[''state''] & gs ''stat''">Wasted</a> <a href="exec:alko = 11 & dynamic $cheatmenu[''state''] & gs ''stat''">Barely coherent</a>'
 	*nl
@@ -593,7 +592,7 @@ $cheatmenu['state'] = {
 	end
 	*nl
 	'<a href="exec:dynamic $cheatmenu[''therapist_reset'']">Reset therapist states</a>'
-	'</tr></table></b></center>'
+	$cheatmenu['table_end']
 }
 
 $cheatmenu['set_preg_body'] = {
@@ -617,8 +616,7 @@ $cheatmenu['bodyMod'] = {
 	act 'Return to last menu': dynamic $cheatmenu['state']
 
 	'<center><h1>Cheat Menu - Body Modification</h1></center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td width="50%" cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	'<center><b><font color="red">WARNING!</font></b></center>'
 	'Changing body shape does not resize clothes.'
 	'May cause adverse interactions, use at your own risk!'
@@ -699,7 +697,7 @@ $cheatmenu['bodyMod'] = {
 		killvar 'bs_temp_bs_class'
 	end
 
-	'</tr></table></b></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -781,8 +779,7 @@ $cheatmenu['looks'] = {
 	'<center><h1>Cheat Menu - Character Appearance</h1></center>'
 	'<center><font color="red"><b>WARNING!</b></font>: Using cheats can cause bugs and break your save, use them with care. When reporting bugs, please mention any cheats you used.</center>'
 	*nl
-	'<center><table  width="90%" cellspacing="0" cellpadding="0" valign="top">'
-	'<tr><td width="33%" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	'<<$pcs_firstname>> <<$pcs_lastname>> (<<$pcs_nickname>>). <a href="exec:dynamic $cheatmenu[''rename'']">Rename</a>'
 
 
@@ -860,7 +857,7 @@ $cheatmenu['looks'] = {
 		'<a href="exec:dounsplkil = 2 & gs ''body'', ''hardreset''">Hard Reset body shape</a>'
 	end
 
-	'</td><td width="33%" cellpadding="20" valign="top">'
+	*nl
 	'<<$pcs_vag>>'
 	if pcs_vag > 0:'<a href="exec:pcs_vag = 0 & dynamic $cheatmenu[''looks'']">Reinstate virginity</a>'
 	if stat['think_virgin'] < 1:'<a href="exec:stat[''vaginal''] = 0 & stat[''vaginal_fist''] = 0 & stat[''vaginal_dildo''] = 0 & stat[''vaginal_strap''] = 0 & dynamic $cheatmenu[''looks'']">Make Sveta believe she is a virgin again (resets the related sex stats)</a>'
@@ -894,8 +891,7 @@ $cheatmenu['looks'] = {
 	end
 	*nl
 	'<a href="exec:dynamic $cheatmenu[''tatoo'']">Tattoo removal</a>'
-
-	'</td><td width="33%" cellpadding="20" valign="top">'
+	*nl
 	'<<$hair>>'
 	if pcs_haircol = 0:
 		'Your hair is now (prev) <<$pcs_haircol>> <a href="exec:pcs_haircol +=1 & dynamic $cheatmenu[''looks''] & nathcol = pcs_haircol">(next)</a>'
@@ -934,7 +930,7 @@ $cheatmenu['looks'] = {
 	elseif pcs_eyecol >= 3:
 		'Your eyes are now <a href="exec:pcs_eyecol -=1 & dynamic $cheatmenu[''looks'']">(prev)</a> <<$pcs_eyecol>> (next)'
 	end
-	'</td></tr></table></center>'
+	$cheatmenu['table_end']
 }
 
 $cheatmenu['change_avatar_path'] = {
@@ -1277,8 +1273,7 @@ $cheatmenu['stats'] = {
 	'<center><h1>Cheat Menu - Attributes and Skills</h1></center>'
 	'<center><font color="red"><b>WARNING!</b></font>: Using cheats can cause bugs and break your save, use them with care. When reporting bugs, please mention any cheats you used.</center>'
 	*nl
-	'<center><table  width="90%" cellspacing="0" cellpadding="0" valign="top">'
-	'<tr><td width="50%" cellpadding="10" valign="top">'
+	$cheatmenu['table_start']
 	*pl'<b>Attributes</b> (values 0 - 100):'
 	*pl '<a href="exec:dynamic $cheatmenu[''setAttrs''], 100" >Max Attributes</a>    <a href="exec:dynamic $cheatmenu[''setAttrs''], 0" >Min Attributes</a>'
 	*p 'Strength (<<stren_lvl>>): ' & dynamic $cheatmenu['printStatLinks'], 'stren', 'Strength'
@@ -1335,7 +1330,7 @@ $cheatmenu['stats'] = {
 	*p 'Pool (<<pool_lvl>>) - Total (<<pcs_pool>>): ' & dynamic $cheatmenu['printStatLinks'], 'pool', 'Pool'
 	*p 'Heels (<<pcs_heels>>) - Total (<<pcs_heels>>): ' & dynamic $cheatmenu['printStatLinks'], 'heels', 'Heels'
 	if $start_type[1] ! 'nomagic': *p 'Spell Casting (<<splcstng_lvl>>) - Total (<<pcs_splcstng>>): ' & dynamic $cheatmenu['printStatLinks'], 'splcstng', 'Spellcasting'
-	'</td><td width="50%" cellpadding="10" valign="top">'
+	*nl
 	*pl'<b>Combat:</b>'
 	*p 'Jabs (<<jab_lvl>>)- Total (<<pcs_jab>>): ' & dynamic $cheatmenu['printStatLinks'], 'jab', 'Jabs'
 	*p 'Power Strikes (<<punch_lvl>>) - Total (<<pcs_punch>>): ' & dynamic $cheatmenu['printStatLinks'], 'punch', 'Power Strikes'
@@ -1371,7 +1366,7 @@ $cheatmenu['stats'] = {
 	*p 'Modeling (<<mdlng_lvl>>) - Total (<<pcs_mdlng>>): ' & dynamic $cheatmenu['printStatLinks'], 'mdlng', 'Modeling'
 	*p 'Medicine (<<medcn_lvl>>) - Total (<<pcs_medcn>>): ' & dynamic $cheatmenu['printStatLinks'], 'medcn', 'Medicine'
 	*p 'Cleaning (<<cleaning_lvl>>) - Total (<<pcs_cleaning>>): ' & dynamic $cheatmenu['printStatLinks'], 'cleaning', 'Cleaning'
-	'</tr></table></b></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -1385,8 +1380,7 @@ $cheatmenu['reputation'] = {
 	'<center><h1>Cheat Menu - Relationships and Renown</h1></center>'
 	'<center>Relationship values are from 0 - 100.</center>'
 	'<center>If they exceed this limit they will be reset overnight.</center>'
-	'<center><table  width="90%" cellspacing="0" cellpadding="0" valign="top">'
-	'<tr><td width="50%" cellpadding="10" valign="top">'
+	$cheatmenu['table_start']
 	*nl
 	'Relationships in Pavlovsk'
 	*nl
@@ -1525,11 +1519,7 @@ $cheatmenu['reputation'] = {
 			'<<$npc_firstname[''A138'']>> <<$npc_lastname[''A138'']>>: <<npc_rel[''A138'']>>  <a href="exec:npc_rel[''A138''] += 10 & dynamic $cheatmenu[''reputation'']">+10</a> <a href="exec:npc_rel[''A138''] -= 10 & dynamic $cheatmenu[''reputation'']">-10</a>'
 		end
 	end
-	*nl
-	'<font color="blue"><b>Nicholas'' Family</b></font>'
-	'<a href="exec:gt ''nichUtil'', ''debug''">Storyline Debug Menu</a>'
-	'</td><td width="50%" cellpadding="10" valign="top">'
-	*nl
+	$cheatmenu['table_second']
 	'Miscellaneous relationships'
 	*nl
 	'<font color="blue"><b>Others</b></font>'
@@ -1585,6 +1575,9 @@ $cheatmenu['reputation'] = {
 			'Martin: <<npc_rel[''A216'']>>	<a href="exec:npc_rel[''A216''] += 10 & dynamic $cheatmenu[''reputation'']">+10</a> <a href="exec:npc_rel[''A216''] -= 10 & dynamic $cheatmenu[''reputation'']">-10</a>'
 		end
 	end
+	*nl
+	'<font color="blue"><b>Nicholas'' Family</b></font>'
+	'<a href="exec:gt ''nichUtil'', ''debug''">Storyline Debug Menu</a>'
 
 	if pcs_lovers[0] = 1:
 		*nl
@@ -1675,7 +1668,7 @@ $cheatmenu['reputation'] = {
 			'You''ve been expelled from school. <a href="exec:SchoolBlock = 0 & schoolPredupr = 0 & schoolprogul = 0 & pcs_grades = 50 & dynamic $cheatmenu[''reputation'']">Clear</a>.'
 		end
 	end
-	'</td></tr></table></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -1687,9 +1680,7 @@ $cheatmenu['documents'] = {
 	cla & *clr
 	gs 'obj_din', 'cheattabs'
 	'<center><h1>Cheat Menu - Diplomas, Licences, and Certificates</h1></center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td width="33%" cellspacing="0" cellpadding="20" valign="top">'
-	'<td width="50%" cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	if SchoolAtestat = 0: '<a href="exec:SchoolAtestat = 1 & dynamic $cheatmenu[''documents'']">Get School Certificate</a>'
 	if mid($start_type,1,2) = 'sg' and SchoolAtestat = 0: '<font color="red"><b>WARNING!</b></font>: This will end your school year!' & *nl
 	if SchoolAtestat = 1:'Already have a School Certificate'
@@ -1704,7 +1695,7 @@ $cheatmenu['documents'] = {
 	if masseuse['certification'] >= 10:'You already have a Masseuse Certificate'
 	if prava = 0:'<a href="exec:prava = 1 & dynamic $cheatmenu[''documents'']">Get Driving Licence</a>'
 	if prava = 1:'You already have Driving Licence'
-	'</td></tr></table></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -1814,8 +1805,7 @@ $cheatmenu['time'] = {
 	'<center><h1>Cheat Menu - Manipulate Time and Weather</h1></center>'
 	'<center><font color="red"><b>WARNING!</b></font>: Using cheats to manipulate time can <b>easily</b> break quests and cause bugs. Do not use them unless'
 	'you know what you''re doing. When reporting bugs, please mention any cheats you used.</center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td width="50%" cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	if temp_minut > 9:
 		if temp_hour > 9: $temptime = '<b><<temp_hour>>:<<temp_minut>></b>' else $temptime = '<b>0<<temp_hour>>:<<temp_minut>></b>'
 	else
@@ -1883,7 +1873,7 @@ $cheatmenu['time'] = {
 	*nl
 	'<a href="exec:day = temp_day & $month = $temp_month & month = temp_month & year = temp_year & hour = temp_hour & minut = temp_minut & currtimecheck = 1 & dynamic $cheatmenu[''time'']">Accept target date & time</a>'
 	'<a href="exec:temp_day = day & $temp_month = $month & temp_month = month & temp_year = year & temp_hour = hour & temp_minut = minut & dynamic $cheatmenu[''time'']">Reset target date & time</a>'
-	'</td></tr></table></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -1996,6 +1986,7 @@ $cheatmenu['magic'] = {
 	cla & *clr
 	gs 'obj_din', 'cheattabs'
 	'<center><h1>Cheat Menu - Magic</h1></center>'
+	$cheatmenu['table_start']
 	'<center>Is magical: <a href="exec:pcs_magik += 1 & dynamic $cheatmenu[''magic'']">+1<<pcs_magik>></a></center>'
 	if succubusflag = 1:
 		'<center><a href="exec:dynamic $cheatmenu[''succubreset'']"><b>Remove & Reset Succubus status</b></a></center>'
@@ -2035,6 +2026,7 @@ $cheatmenu['magic'] = {
 
 	*pl func('cleanHTML',$SpellListStr)
 
+	$cheatmenu['table_end']
 	killvar 'i'
 	killvar '$ThisLocation'
 	killvar '$spellFlipper'
@@ -2050,7 +2042,7 @@ $cheatmenu['display'] = {
 	cla & *clr
 	gs 'obj_din', 'settingtabs'
 	'<center><h1>Display Setting</h1></center>'
-	*p '<center><table cellspacing="0" cellpadding="20" valign="top"><tr><td cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	if usePopUps = 1:
 		'Allow Popup Pictures: Currently ON - <a href="exec:usePopUps = 0 & dynamic $cheatmenu[''display'']">Turn OFF</a>'
 	else
@@ -2114,7 +2106,7 @@ $cheatmenu['display'] = {
 	else
 		'Show Debug window on save load: Currently ON - <a href="exec:loadg_show_debug = 0 & debug_warning_closed = 1 & showobjs 0 & dynamic $cheatmenu[''display'']">Turn OFF</a>'
 	end
-	*p '</td></tr></table></center>'
+	$cheatmenu['table_end']
 }
 
 $cheatmenu['theme_customize_input'] = {
@@ -2377,7 +2369,7 @@ $cheatmenu['theme_customize'] = {
 	!!  --- LOREM IPSUM ---
 	$icon_selector = iif(theme['is_dark'] = 0, '_b', '_w')
 	icon_height = fsize * 15 / 10
-	*p '<td width="50%" cellspacing="0" cellpadding="20" valign="top">'
+	*p '<td width="500" cellspacing="0" cellpadding="20" valign="top">'
 
 	*p '"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."'
 
@@ -2426,8 +2418,7 @@ $cheatmenu['status'] = {
 	cla & *clr
 	gs 'obj_din', 'settingtabs'
 	'<center><h1>Status Window Settings</h1></center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	if disable_LoadSave = 0:
 		'Save/Load Buttons: Currently Image - <a href="exec:disable_LoadSave = 2 & dynamic $cheatmenu[''status''] & gs ''stat''">Select Text</a>'
 	elseif disable_LoadSave = 1:
@@ -2564,7 +2555,7 @@ $cheatmenu['status'] = {
 	end
 
 	!<a href="exec:gs ''Cheatmenu_din'' & dynamic $cheatmenu[''status''] & gs ''stat''"><img src="images/system/phone/theme/<<$phonetheme_name[pcs_phonetheme]>>/icon_settings.png"></a>
-	'</tr></table></b></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -2575,7 +2566,7 @@ $cheatmenu['theme'] = {
 	cla & *clr
 	gs 'obj_din', 'settingtabs'
 	'<center><h1>Phone Theme Menu</h1></center>'
-	'<center><table width="90%" cellspacing="0" cellpadding="20" valign="top"><tr>'
+	$cheatmenu['table_start']
 	*nl
 	if pcs_phonetheme = 0: $phoneNameTemp = 'Standard'
 	if pcs_phonetheme = 1: $phoneNameTemp = 'Bimbo'
@@ -2617,7 +2608,7 @@ $cheatmenu['theme'] = {
 	elseif i <= ARRSIZE('phonetheme') and i > 12 and i <= 15:
 		jump 'phonethemeloop'
 	end
-	'</tr></table></b></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -2666,8 +2657,7 @@ $cheatmenu['pain'] = {
 	'<center><h1>Cheat Menu - Pain Management</h1></center>'
 	'<center><a href="exec:killvar ''pain'' & dynamic $cheatmenu[''pain'']">No pain</a></center>'
 	*nl
-	'<center><table  width="90%" cellspacing="0" cellpadding="0" valign="top">'
-	'<tr><td width="50%" cellpadding="10" valign="top">'
+	$cheatmenu['table_start']
 	'pain[head] = <<pain[''head'']>> <a href="exec:pain[''head''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''head''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
 	'pain[hair] = <<pain[''hair'']>> <a href="exec:pain[''hair''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''hair''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
 	'pain[ears] = <<pain[''ears'']>> <a href="exec:pain[''ears''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''ears''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
@@ -2687,7 +2677,7 @@ $cheatmenu['pain'] = {
 	'pain[thighs] = <<pain[''thighs'']>> <a href="exec:pain[''thighs''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''thighs''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
 	'pain[left leg] = <<pain[''legL'']>> <a href="exec:pain[''legL''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''legL''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
 	'pain[right leg] = <<pain[''legR'']>> <a href="exec:pain[''legR''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''legR''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
-	'</td><td width="50%" cellpadding="10" valign="top">'
+	$cheatmenu['table_second']
 	'pain[feet] = <<pain[''feet'']>> <a href="exec:pain[''feet''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''feet''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
 	'pain[toes] = <<pain[''toes'']>> <a href="exec:pain[''toes''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''toes''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
 	'pain[shoulders] = <<pain[''shoulders'']>> <a href="exec:pain[''shoulders''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''shoulders''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
@@ -2706,7 +2696,7 @@ $cheatmenu['pain'] = {
 	'pain[clitoris] = <<pain[''clitoris'']>> <a href="exec:pain[''clitoris''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''clitoris''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
 	'pain[urethra] = <<pain[''urethra'']>> <a href="exec:pain[''urethra''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''urethra''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
 	'pain[cervix] = <<pain[''cervix'']>> <a href="exec:pain[''cervix''] -= 10 & dynamic $cheatmenu[''pain'']">-10</a> <a href="exec:pain[''cervix''] += 10 & dynamic $cheatmenu[''pain'']">+10</a>'
-	'</td></tr></table></center>'
+	$cheatmenu['table_end']
 	*nl
 	'You may still have pain from gaping or having been spanked, you can clear these using "Cure all ailments." in "Cheat Menu - Character State Changes"'
 	'You currently have vaginal gaping of <<vgape>>'
@@ -2743,8 +2733,7 @@ $cheatmenu['DNA'] = {
 	cla & *clr
 	gs 'obj_din', 'cheattabs'
 	'<center><h1>Cheat Menu - DNA Generation</h1></center>'
-	'<center><table width="90%" cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	'<center>DNA string generation<br>If parents are not in game, leave the respective IDs empty</center>'
 	*nl
 	if $cheatDNAC ! '':
@@ -2917,7 +2906,7 @@ $cheatmenu['DNA'] = {
 	killvar '$tempDNAM'
 	killvar '$tempDNAC'
 	killvar 'cheatDNAgenerated'
-	'</td></tr></table></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -3258,8 +3247,7 @@ $cheatmenu['bdimmain'] = {
 	cla & *clr
 	gs 'obj_din', 'cheattabs'
 	'<center><h1>Cheat Menu - Body Image Sets</h1></center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
-	'<td width="50%" cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	'<center><b>Body Image Controls</b></center>'
 	*nl
 	'You are currently using set: <<$bodimgsets[((bodset * 10) + 9)]>>'
@@ -3321,7 +3309,7 @@ $cheatmenu['bdimmain'] = {
 		'<a href="exec:dynamic $cheatmenu[''bdimcstadd'']"><b>Add new set</b></a>'
 		*nl
 	end
-	'</td></tr></table></center>'
+	$cheatmenu['table_end']
 }
 
 !!----------------------------------------------------------------------------------------------------------------------------
@@ -3335,12 +3323,12 @@ $cheatmenu['about'] = {
 	gs 'saveg'
 	gs 'addbuilddate'
 	'<center><h1>About Window</h1></center>'
-	'<center><table cellspacing="0" cellpadding="20" valign="top">'
+	$cheatmenu['table_start']
 	'<tr><td><h3><center>Girl Life version <<version_major+"."+version_minor+"."+version_revision+"."+version_patch+iif($git_hash ! "", "<br>"+$git_hash+" (dev build)", "")>></center></h3></td></tr>'
 	'<tr><td><h3><center>built on <<$builddate>></center></h3></td></tr>'
 	'<tr><td><h5><center>if loaded so it was the save from</center></h5></td></tr>'
 	'<tr><td cellspacing="0" cellpadding="20" valign="top"><center><<$version>></center></td></tr>'
-	'</table></center>'
+	$cheatmenu['table_end']
 	killvar '$tmp'
 }
 

+ 6 - 0
locations/nichUtil.qsrc

@@ -24,6 +24,12 @@ if $ARGS[0] = '' or $ARGS[0] = 'start':
 	'This page should never appear. Please report this bug including a description of how you got here.'
 
 elseif $ARGS[0] = 'debug':
+	!reset cheat menu
+	if settingmode > 0:
+		killvar 'settingmode'
+		killvar 'menu_off'
+	end
+
 	if $ARGS[1] = 'debugToggle':
 		nichDebug = 1 - nichDebug
 	elseif $ARGS[1] = 'galaTrainingToggle':

+ 1 - 1
locations/npc_finder.qsrc

@@ -2,7 +2,7 @@
 
 *clr
 gs 'obj_din', 'cheattabs'
-'<a href="exec: gt ''npc_finder'', ''finder''">Enter the ID of the character.</a>'
+'<center><a href="exec: gt ''npc_finder'', ''finder''">Enter the ID of the character.</a></center>'
 if $ARGS[0] = 'finder':
     $looking = input ('ID (like <i>A17</i>)')
     gt 'npc_finder'

+ 2 - 0
locations/stat_explanations.qsrc

@@ -10,6 +10,7 @@ if $ARGS[0] = 'start':
 	menu_off = 1
 	gs 'stat'
 	'<center><b><font color="maroon">Glossary</font></b></center>'
+	'<center><table width="80%" cellspacing="0" cellpadding="20" valign="top"><tr><td width="500" cellspacing="0" cellpadding="20" valign="top">'
 	'Here we want to explain the different stats your player character has, and give other useful information about the play mechanics.'
 	*nl
 	'The glossary is divided over several pages explaining different aspect of the character stats. For a new player we recommend going true them in the order presented, but if you need some specific information, just go to the page containing it.'
@@ -21,6 +22,7 @@ if $ARGS[0] = 'start':
 	'<a href="exec:gt ''stat_explanations'', ''skill''">The third page</a> includes information about the skills the player character have.'
 	*nl
 	'<a href="exec:gt ''stat_explanations'', ''status''">The fourth page</a> includes information about the different status effects like mood, hunger, and willpower the player character have.'
+	'</td></tr></table></center>'
 end
 
 if $ARGS[0] = 'icons':