Browse Source

[added] Too Risqué option to filters for stores

Kevin_Smarts 2 years ago
parent
commit
5f11612e1f
1 changed files with 22 additions and 2 deletions
  1. 22 2
      locations/clothing_QV.qsrc

+ 22 - 2
locations/clothing_QV.qsrc

@@ -1653,6 +1653,13 @@ if $ARGS[0] = 'shop_filter_header':
 		$Headerstring += '<a href="exec:clothingfilter[''risque''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/risque_off.png"></a></TD>'
 	end
 
+	$Headerstring += '<TD>'
+	if clothingfilter['too_risque'] = 0:
+		$Headerstring += '<a href="exec:clothingfilter[''too_risque''] = 1 & clothingfilter[''too_risque_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/too risque.png"></a></TD>'
+	else
+		$Headerstring += '<a href="exec:clothingfilter[''too_risque''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/too risque_off.png"></a></TD>'
+	end
+
 	$Headerstring += '<TD>'
 	if clothingfilter['loose'] = 0:
 		$Headerstring += '<a href="exec:clothingfilter[''loose''] = 1 & clothingfilter[''loose_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/loose.png"></a></TD>'
@@ -1726,6 +1733,13 @@ if $ARGS[0] = 'shop_filter_header':
 		$Headerstring[1] += '<a href="exec:clothingfilter[''risque_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/risque.png"></a></TD>'
 	end
 
+	$Headerstring[1] += '<TD>'
+	if clothingfilter['too_risque_only'] = 0:
+		$Headerstring[1] += '<a href="exec:clothingfilter[''too_risque_only''] = 1 & clothingfilter[''too_risque''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/too risque_off.png"></a></TD>'
+	else
+		$Headerstring[1] += '<a href="exec:clothingfilter[''too_risque_only''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/too risque.png"></a></TD>'
+	end
+
 	$Headerstring[1] += '<TD>'
 	if clothingfilter['loose_only'] = 0:
 		$Headerstring[1] += '<a href="exec:clothingfilter[''loose_only''] = 1 & clothingfilter[''loose''] = 0 & gt $loc, $loc_arg"><img src="images/system/icons/clothing/loose_off.png"></a></TD>'
@@ -1741,7 +1755,7 @@ if $ARGS[0] = 'shop_filter_header':
 	end
 
 
-	$Headerstring[2] = '<TH></TH><TH></TH><TH></TH><TH>Include</TH><TH></TH><TH></TH><TH></TH><TH></TH><TH>Sort by</TH><TH></TH>'
+	$Headerstring[2] = '<TH></TH><TH></TH><TH></TH><TH>Include</TH><TH></TH><TH></TH><TH></TH><TH></TH><TH></TH><TH>Sort by</TH><TH></TH>'
 
 	$Headerstring[3] = '<TH></TH><TH></TH><TH></TH><TH>Only show</TH>'
 
@@ -1771,6 +1785,9 @@ if $ARGS[0] = 'shop_filter':
 	if clothingfilter['risque'] = 1 and (CloInhibit > pcs_inhib - 10) and (CloInhibit <= pcs_inhib):
 		clothingfilter['inc'] = 0
 	end
+	if clothingfilter['too_risque'] = 1 and CloInhibit > pcs_inhib:
+		clothingfilter['inc'] = 0
+	end
 	if clothingfilter['loose'] = 1 and CloStyle = 5:
 		clothingfilter['inc'] = 0
 	end
@@ -1796,6 +1813,9 @@ if $ARGS[0] = 'shop_filter':
 	if clothingfilter['risque_only'] = 1 and (CloInhibit > pcs_inhib - 10) and (CloInhibit <= pcs_inhib):
 		clothingfilter['only'] += 1
 	end
+	if clothingfilter['too_risque_only'] = 1 and CloInhibit > pcs_inhib:
+		clothingfilter['inc'] = 0
+	end
 	if clothingfilter['loose_only'] = 1 and CloStyle = 5:
 		clothingfilter['only'] += 1
 	end
@@ -1803,7 +1823,7 @@ if $ARGS[0] = 'shop_filter':
 		clothingfilter['only'] += 1
 	end
 	!!Check total count to make sure it fits all groups selected
-	if clothingfilter['only'] = clothingfilter['prost_only'] + clothingfilter['stripper_only'] + clothingfilter['bimbo_only'] + clothingfilter['conservative_only'] + clothingfilter['risque_only'] + clothingfilter['loose_only'] + clothingfilter['school_only']:
+	if clothingfilter['only'] = clothingfilter['prost_only'] + clothingfilter['stripper_only'] + clothingfilter['bimbo_only'] + clothingfilter['conservative_only'] + clothingfilter['risque_only'] + clothingfilter['too_risque_only'] + clothingfilter['loose_only'] + clothingfilter['school_only']:
 		clothingfilter['only'] = 1
 	else
 		clothingfilter['only'] = 0