change default notification duration

This commit is contained in:
otavepto 2024-06-21 21:53:53 +03:00
parent bd5c9bae58
commit b67cb48f38
3 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,8 @@
## 2024/6/21
* fix the conditions for achievement progress indication when a game updates a stat which is tied to an achievement
now the user achievements will be updated and saved, and an overlay notification will be triggered
now the user achievements will be updated and saved, and an overlay notification will be triggered.
works with `Achievement Watcher by xan105` and the built-in overlay.
you need `stats.txt` and `achievements.json` inside your local `steam_settings` folder for this feature to work properly
* fix an old problem where games would crash on exit if the overlay was enabled, more prominent in `DirectX 12` games, also set the overlay hook procedure to an empty function before cleaning up the overlay
* remove an invalid condition when resetting stats, only write to disk and share values with any gameserver if the stat value isn't already the default
@ -14,9 +15,9 @@
* allow specifying various notifications durations for the overlay, these are the new values in `configs.overlay.ini`
```ini
# duration of achievement progress indication
Notification_Duration_Progress=3.5
Notification_Duration_Progress=6.0
# duration of achievement unlocked
Notification_Duration_Achievement=5.0
Notification_Duration_Achievement=7.0
# duration of friend invitation
Notification_Duration_Invitation=8.0
# duration of chat message

View File

@ -133,8 +133,8 @@ struct Overlay_Appearance {
float notification_margin_y = 5.0f; // vertical margin
uint32 notification_animation = 350; // sliding animation duration (millisec)
uint32 notification_duration_progress = 3500; // achievement progress indication duration (millisec)
uint32 notification_duration_achievement = 5000; // achievement unlocked duration (millisec)
uint32 notification_duration_progress = 6000; // achievement progress indication duration (millisec)
uint32 notification_duration_achievement = 7000; // achievement unlocked duration (millisec)
uint32 notification_duration_invitation = 8000; // friend invitation duration (millisec)
uint32 notification_duration_chat = 4000; // sliding animation duration duration (millisec)

View File

@ -64,9 +64,9 @@ Notification_Margin_y=5.0
# duration of notification animation in seconds. Set to 0 to disable
Notification_Animation=0.35
# duration of achievement progress indication
Notification_Duration_Progress=3.5
Notification_Duration_Progress=6.0
# duration of achievement unlocked
Notification_Duration_Achievement=5.0
Notification_Duration_Achievement=7.0
# duration of friend invitation
Notification_Duration_Invitation=8.0
# duration of chat message