Playnite Forums
Friendly Set Playtime | Set playtime in hours and minutes - Printable Version

+- Playnite Forums (https://playnite.link/forum)
+-- Forum: Extension Database (https://playnite.link/forum/forum-3.html)
+--- Forum: Generic Extensions (https://playnite.link/forum/forum-6.html)
+--- Thread: Friendly Set Playtime | Set playtime in hours and minutes (/thread-948.html)



Friendly Set Playtime | Set playtime in hours and minutes - erys - 11-09-2021

This is my first extension and my first time working in C# (I'm a backend java developer, so the syntax wasn't too bad but the xaml was a challenge). This extension is pretty simple, but useful. It adds an option in the game menu to set the time for a game in hours and minutes. While doing this you can also change the completion status of the game. 
[Image: Menu_Option.png]
[Image: Set_Time_Window.png]

GitHub

Download the extension file here and drag and drop into playnite to install or install from the add on menu.
[attachment=2012]

Planned:
For me, I have two main uses for this extension:
1. Setting initial playtime for games imported from libraries where the playtime isn't imported.
2. Updating playtime for games I play elsewhere (i.e. consoles). 

For both of these use cases, I'd also like to update the last played date. Because of use 2, I'd like to include both a date picker and a quick way to set last played to the current day. I'm planning to add this for my next release. I also want to add localization framework before 1.0.

Another feature I want to add is the ability to set the playtime in hours and minutes from the advanced tab of the game edit window (probably with a button that opens a new window, but ideal would be text boxes right on the edit window, but I'm not sure that's possible). This is much more complicated, but hopefully I'll figure it out eventually.

Changelog:
11/9/2021 - v0.2
  - initial public release, keeping below 1.0 because it's missing some basic features I want to include.


RE: Friendly Set Playtime | Set playtime in hours and minutes - DonkeyOatay - 01-08-2022

Thanks a lot for this. Only being able to add time played in total seconds and having to work out how that translated into hours and minutes was a bit of a pain, so this is something I'd hoped would be added for ages.


RE: Friendly Set Playtime | Set playtime in hours and minutes - Indeep - 10-08-2022

thx! Work Fine