Add option to show playtime in hours instead of days (or even custom format) #554
Closed
1 task done
Labels
enhancement
New feature or request
Milestone
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
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
(frominstance.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:
%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"%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"%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:
"%d%d %h%h %m%min"
"%fh%h %m%min"
"%fhh% hours"
"%d% days and %h% hours"
"%fm% minutes"
"%d% days %h% hours (%fhhh%h)"
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.
The text was updated successfully, but these errors were encountered: