فهرست منبع

add a translation of the name of the notice_board picture.

rachels 3 سال پیش
والد
کامیت
debb615486
1فایلهای تغییر یافته به همراه18 افزوده شده و 2 حذف شده
  1. 18 2
      locations/noticeboard.qsrc

+ 18 - 2
locations/noticeboard.qsrc

@@ -30,14 +30,30 @@ if $ARGS[0] = 'look':
 	$noticeboardmap += '<area shape="rect" coords="<<$advert5>>" href="exec:gt ''noticeboard'', ''advert5''" alt="--5--">'
 	$noticeboardmap += '<area shape="rect" coords="<<$advert6>>" href="exec:gt ''noticeboard'', ''advert6''" alt="--6--">'
 	$noticeboardmap += '</map>'
-	$noticeboardmap += '<center><img <<$set_imgh>> src="images/locations/shared/notboard/noticeboard_<<$loc>>.jpg" USEMAP="#noticemap"></center>'
+
+	if $loc = 'pav_commercial':
+		$name_of_the_picure = 'noticeboard_pavcommercial'
+	elseif $loc = 'city_residential':
+		$name_of_the_picure = 'noticeboard_street'
+	elseif $loc = 'torgcentr':
+		$name_of_the_picure = 'noticeboard_torgcentr'
+	elseif $loc = 'city_industrial':
+		$name_of_the_picure = 'noticeboard_nord'
+	else
+		$name_of_the_picure = 'noticeboard'
+	end
+
+	$noticeboardmap += '<center><img <<$set_imgh>> src="images/locations/shared/notboard/<<$name_of_the_picure>>.jpg" USEMAP="#noticemap"></center>'
 
 	*pl $noticeboardmap
 	killvar '$noticeboardmap'
 	if NumberOfNewAdverts = 0: *nl 'There are no interesting adverts at the board.'
 	if NumberOfNewAdverts = 1: *nl 'There is one interesting advert at the board.'
 	if NumberOfNewAdverts > 1: *nl 'There are <<NumberOfNewAdverts>> interesting adverts at the board.'
-	act 'Leave the board': gt 'restoreposition'
+	act 'Leave the board': 
+		killvar '$noticeboardmap'
+		gt 'restoreposition'
+	end
 end