From 8988bfa6793e2c6b6c0f5871d9fb523c27ff0cd0 Mon Sep 17 00:00:00 2001 From: fheinrich <fheinrich@techfak.uni-bielefeld.de> Date: Thu, 21 Mar 2024 13:46:05 +0100 Subject: [PATCH] Adjusted time of color change --- CHANGELOG.md | 1 + cooperative_cuisine/pygame_2d_vis/gui.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c62dca6a..1cfacd4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - Pathfinding in random agent - Level layouts from 2d-grid-overcooked-literature - Caching of graph recipe layouts +- Score label changes color when score changes ### Changed diff --git a/cooperative_cuisine/pygame_2d_vis/gui.py b/cooperative_cuisine/pygame_2d_vis/gui.py index 0b4e18cb..f6e9ca14 100644 --- a/cooperative_cuisine/pygame_2d_vis/gui.py +++ b/cooperative_cuisine/pygame_2d_vis/gui.py @@ -1432,7 +1432,7 @@ class PyGameGUI: if self.switch_score_color: self.count_frames_score_label += 1 - duration_color_change = 30 + duration_color_change = 40 if score > self.last_score: self.score_label.update_theming('{"colours": {"normal_text": "#00FF00"}}') self.count_frames_score_label = 0 -- GitLab