Bladeren bron

[added] Icon added to correctly display the masseuse job days and hours. Icon should be placed here: images\system\icons\status\masseuse.png

Malen 1 jaar geleden
bovenliggende
commit
0bca1b6718
1 gewijzigde bestanden met toevoegingen van 18 en 0 verwijderingen
  1. 18 0
      locations/stat_display.qsrc

+ 18 - 0
locations/stat_display.qsrc

@@ -1190,6 +1190,24 @@ if cheatStatusIcons = 0:
 
 	if work > 0: $statusIconBarTab += '<td><a href="exec: gt ''journal'', ''records''"><img title="You have a job. Click to find out more." height = <<set_siconht>> src="images/system/icons/status/work.png"></a></td>'
 
+	if masseuse['jobtype'] > 0:
+		if (masseuse['<<week>>_shift_1'] = 1 and hour <= 9) or (masseuse['<<week>>_shift_2'] = 1 and hour <= 13) or (masseuse['<<week>>_shift_3'] = 1 and hour <= 17):
+			$stat_masseuse_msg = 'You work at the beauty salon today, at '
+			if masseuse['<<week>>_shift_1'] = 1 and hour <= 9:
+				$stat_masseuse_msg += '9:00, '
+			end
+			if masseuse['<<week>>_shift_2'] = 1 and hour <= 13:
+				$stat_masseuse_msg += '13:00, '
+			end
+			if masseuse['<<week>>_shift_3'] = 1 and hour < 17:
+				$stat_masseuse_msg += '17:00, '
+			end
+			$stat_masseuse_msg += 'and you have worked <<masseuse[''shifts_worked'']>> of the required <<masseuse[''shifts_required'']>> shifts.'
+		
+			$statusIconBarTab += '<td><a href="exec: msg $stat_masseuse_msg"><img title="<<$stat_masseuse_msg>>" height = <<set_siconht>> src="images/system/icons/status/masseuse.png"></a></td>'
+		end
+	end
+
 	if model['icon'] = 1:
 		if model['status'] > 0 and model_week < (daystart - week) / 7 and model_job_week = 1:
 			$stat_model_msg = 'You can get paid for 1 more modeling job this week.'