Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to show playtime in hours instead of days (or even custom format) #554

Closed
1 task done
victorleblais opened this issue Dec 5, 2022 · 0 comments · Fixed by #1536
Closed
1 task done
Labels
enhancement New feature or request
Milestone

Comments

@victorleblais
Copy link

victorleblais commented Dec 5, 2022

Role

I really like being able to see my playtime of each instance (and the total playtime), however I don't like seeing the playtime in terms of days

Suggestion

I would like to have the option (since I understand that people prefer the current setting) to show the playtime purely in hours instead of days.

Benefit

So that I can more easily understand/gauge the playtime and compare.

This suggestion is unique

  • I have searched the issue tracker and did not find an issue describing my suggestion, especially not one that has been rejected.

You may use the editor below to elaborate further.

To further expand, here is an example. Let's say my playtime on an instance is totalTimePlayed=275193 (from instance.cfg, time is stored in seconds).

Current UI shows my total play time as "3d 4h 26m" (sidenote, the units are incorrect, see #553).

I suggest that we could show the playtime as "76h 26min" which is a common way of showing playtime in most game launchers.

This setting would be located in Settings > Launcher > User Interface.

Ideally, there could be a third option to add a text input where the user can input a formatting string to customize the display however they want. Here's a suggestion of what codes could be available and what they would do:

  • Days:
    • %d%: full amount of days (rounded down). Example: "3"
    • %dd%: full amount of days, with 1 digit of precision. Example: "3.2"
    • %ddd%: full amount of days, with 2 digit of precision. Example: "3.18"
  • Hours:
    • %h%: amount of hours (full days deducted) (rounded down). Example: "4"
    • %hh%: amount of hours (full days deducted), with 1 digit of precision. Example: "4.4"
    • %hhh%: amount of hours (full days deducted), with 2 digit of precision. Example: "4.43"
    • %fh%: full amount of hours (rounded down). Example: "76"
    • %fhh%: full amount of hours, with 1 digit of precision. Example: "76.4"
    • %fhhh%: full amount of hours, with 2 digit of precision. Example: "76.43"
  • Minutes:
    • %m%: amount of minutes (full days and full hours deducted) Example: "26"
    • %fm%: full amount of minutes. Example: "4586"

And here's a bunch of examples for a playtime of 275193s:

Time string Output Notes
"%d%d %h%h %m%min" 3d 4h 26min Current format
"%fh%h %m%min" 76h 26min Suggested alternative format
"%fhh% hours" 76.4 hours
"%d% days and %h% hours" 3 days and 4 hours
"%fm% minutes" 4,586 minutes
"%d% days %h% hours (%fhhh%h)" 3 days 4 hours (76.43h)

From what I can see, this formatting is handled by MMCTime.cpp

Note: The closest issue I could find is #216 but I don't think this covers the same topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants