Gaming Health Modal #71

Closed
opened 2024-02-24 17:32:03 +00:00 by thepaperpilot · 0 comments
Collaborator

Track if the game is focused and the mouse moves, setting a flag to true. Store 8 of those bools, rotating every hour such that you have a history of "was the player active during this hour" for the last 8 hours. Then, if at least 6 of those flags are true, display a modal to the user based on this banner from the TMT forums:
image

Seeking feedback about the exact numbers, but "6 of 8" seems to be a reasonable value.

Allow users to select a "do not show this again" option (also settable in the settings modal) to suppress the modal. Also allow devs to disable the modal entirely for the project, inside of projInfo.

Track if the game is focused and the mouse moves, setting a flag to true. Store 8 of those bools, rotating every hour such that you have a history of "was the player active during this hour" for the last 8 hours. Then, if at least 6 of those flags are true, display a modal to the user based on this banner from the TMT forums: ![image](/attachments/c2fabf7b-0a38-4fe8-8974-7f4b7d182ebe) Seeking feedback about the exact numbers, but "6 of 8" seems to be a reasonable value. Allow users to select a "do not show this again" option (also settable in the settings modal) to suppress the modal. Also allow devs to disable the modal entirely for the project, inside of projInfo.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: profectus/Profectus#71
No description provided.