From 7161102c465dceed125837ae48ff957342551378 Mon Sep 17 00:00:00 2001 From: Brotcrunsher Date: Thu, 23 Nov 2023 10:46:22 +0100 Subject: [PATCH] No longer playing the "new task" sound when manually moving task to now. --- Examples/ExampleMother/ExampleMother.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Examples/ExampleMother/ExampleMother.cpp b/Examples/ExampleMother/ExampleMother.cpp index d105b809..b4b64978 100644 --- a/Examples/ExampleMother/ExampleMother.cpp +++ b/Examples/ExampleMother/ExampleMother.cpp @@ -6,6 +6,9 @@ //TODO: GATW: kill (?) Time Wasters Processes during working hours and while still tasks are open. //TODO: Add "fixed date" tasks. "Every month/year at this and that date". Useful e.g. for Taxes. //TODO: Make .dll unnecessary for OpenAL when deploying .exe +//TODO: Serializer List: Move paranoia copies to its own directory. +//TODO: Bracket Arguments for AssetStore https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#bracket-argument +//TODO: Github Pipeline currently broken #define WM_SYSICON (WM_USER + 1) #define ID_EXIT 1002 @@ -104,6 +107,7 @@ struct Task } void execMoveToNow() { + armedToPlaySound = false; nextExecution = bbe::TimePoint(); } @@ -297,9 +301,7 @@ class MyGame : public bbe::Game HICON getCurrentTrayIcon() { bbe::List& trayIcons = getTrayIcons(); - HICON retVal = trayIcons[trayIconIndex]; - trayIconIndex += 7; - if (trayIconIndex >= trayIcons.getLength()) trayIconIndex = 0; + HICON retVal = trayIcons[((int)(getTimeSinceStartSeconds() * 400)) % trayIcons.getLength()]; return retVal; }