Bladeren bron

[Added] an Icon in stats to remind you that nerd game night is tonight

Alaratt 3 jaren geleden
bovenliggende
commit
972c6fa026
1 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. 10 0
      locations/stat_display.qsrc

+ 10 - 0
locations/stat_display.qsrc

@@ -319,6 +319,14 @@ if SchoolBlock = 0:
 	if $stat_school_msg ! '': $stat_school_icon_msg = $stat_school_msg + $stat_school_schedule
 end
 
+if nerd_game['game_day'] = daystart and hour < 20:
+    $stat_game_night_msg = 'Game night starts tonight at 20:00 at the Community Center'
+	$stat_game_night_tooltip = 'Nerd Game Night'
+else
+    $stat_game_night_msg = ''
+	$stat_game_night_tooltip = ''
+end
+
 $stat_bra_msg = ''
 $stat_bra_text = ''
 
@@ -1040,6 +1048,8 @@ if cheatStatusIcons = 0:
 
 	if $stat_school_icon_msg ! '' and SchoolBlock = 0: $statusIconBarTab += '<td><a href="exec:msg $stat_school_icon_msg"><img title="<<$stat_school_tooltip>>" height = <<set_siconht>> src="images/system/icons/status/school.png"></a></td>'
 
+	if $stat_game_night_msg ! '': $statusIconBarTab += '<td><a href="exec:msg $stat_game_night_msg"><img title="<<$stat_game_night_tooltip>>" height = <<set_siconht>> src="images/system/icons/status/game_night.png"></a></td>'
+
 	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 model['icon'] = 1: