Explorar o código

[fixed] Default sets should go to last one used and not back to sports each time

Kevin_Smarts %!s(int64=2) %!d(string=hai) anos
pai
achega
e8ac2bb6d8
Modificáronse 2 ficheiros con 6 adicións e 4 borrados
  1. 3 2
      locations/clothing.qsrc
  2. 3 2
      locations/wardrobe.qsrc

+ 3 - 2
locations/clothing.qsrc

@@ -143,13 +143,14 @@ if $ARGS[0] = 'tresize':
 end
 
 if $ARGS[0] = 'view_clothing_list':
+	if $wloc = '': $wloc = 'default1'
 	!! ARGS 0 - view_clothing_list
 	!! ARGS 1 - action type (wardrobe, resize)
 	!! ARGS 2 - Shop name (kats, moncheri, gm, etc)
 	
 	if $ARGS[1] = 'wardrobe':
 		$ward_list_page = $ARGS[1]
-		'<center><table><TH><a href="exec:gt ''wardrobe'', ''main''"><img src="images/system/icons/clothing/clothes.png" height="50"></TH><TH><a href="exec:gt ''wardrobe'', ''default''"><img src="images/system/icons/clothing/default.png" height="50"></a></TH><TH><b>Your Wardrobe</b></TH></table></center>'
+		'<center><table><TH><a href="exec:gt ''wardrobe'', ''main''"><img src="images/system/icons/clothing/clothes.png" height="50"></TH><TH><a href="exec:gt ''wardrobe'', $wloc"><img src="images/system/icons/clothing/default.png" height="50"></a></TH><TH><b>Your Wardrobe</b></TH></table></center>'
 	elseif $ARGS[1] = 'resize':
 		$ward_list_page = $ARGS[1]
 		'<h3><center><b><font color="maroon">Choose item/s to resize</font></b></center></h3>'
@@ -206,7 +207,7 @@ if $ARGS[0] = 'view_clothing_list':
 
 	act 'Leave': killvar '$ward_list_store' & gt $loc, $loc_arg
 	act 'Your Clothes': gt 'wardrobe', 'main'
-	act 'Your sets': gt 'wardrobe', 'default'
+	act 'Your sets': gt 'wardrobe', $wloc
 end
 
 if $ARGS[0] = 'clothing_list':

+ 3 - 2
locations/wardrobe.qsrc

@@ -1,6 +1,7 @@
 # wardrobe
 
 if $ARGS[0] = 'start':
+	if $wloc = '': $wloc = 'default1'
 	killvar 'clothingfilter'
 	'<center><font color="maroon">Please select an option</font></center>'
 	*nl
@@ -10,7 +11,7 @@ if $ARGS[0] = 'start':
 	*nl
 	*nl
 	*nl
-	'<center><a href="exec:gt ''wardrobe'', ''default''"><img src="images/system/icons/clothing/default.png" height="150"></a></center>'
+	'<center><a href="exec:gt ''wardrobe'', $wloc"><img src="images/system/icons/clothing/default.png" height="150"></a></center>'
 	*nl
 	*nl
 	*nl
@@ -41,7 +42,7 @@ if $ARGS[0] = 'main':
 		gs 'clothing', 'strip'
 	end
 	if ward_img_hgt = 0:ward_img_hgt = 150
-	'<center><table><TH><b>Your Clothes</b></TH><TH><a href="exec:gt ''wardrobe'', ''default''"><img src="images/system/icons/clothing/default.png" height="50"></a></TH><TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe''"><img src="images/system/icons/clothing/organize.png" height="50"></a></TH></table></center>'
+	'<center><table><TH><b>Your Clothes</b></TH><TH><a href="exec:gt ''wardrobe'', $wloc"><img src="images/system/icons/clothing/default.png" height="50"></a></TH><TH><a href="exec:gt ''clothing'', ''view_clothing_list'', ''wardrobe''"><img src="images/system/icons/clothing/organize.png" height="50"></a></TH></table></center>'
 
 	if $pursepantytype ! '' or $pursebratype ! '':
 		'<center>You put the '+iif($pursepantytype ! '','panties','')+iif($pursepantytype ! '' and $pursebratype ! '',' and ','')+iif($pursebratype ! '','bra','')+' from your purse back in the wardrobe.</center><br>'