mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 11:11:33 +00:00
Time played display setting
This commit is contained in:
parent
69729046bf
commit
d91f197119
2 changed files with 7 additions and 2 deletions
|
@ -376,9 +376,12 @@ namespace MWGui
|
||||||
text
|
text
|
||||||
<< mCurrentSlot->mProfile.mInGameTime.mDay << " "
|
<< mCurrentSlot->mProfile.mInGameTime.mDay << " "
|
||||||
<< MWBase::Environment::get().getWorld()->getMonthName(mCurrentSlot->mProfile.mInGameTime.mMonth)
|
<< MWBase::Environment::get().getWorld()->getMonthName(mCurrentSlot->mProfile.mInGameTime.mMonth)
|
||||||
<< " " << hour << " " << (pm ? "#{sSaveMenuHelp05}" : "#{sSaveMenuHelp04}")<< "\n";
|
<< " " << hour << " " << (pm ? "#{sSaveMenuHelp05}" : "#{sSaveMenuHelp04}");
|
||||||
|
|
||||||
text << "Time played: " << formatTimeplayed((int)floor(mCurrentSlot->mProfile.mTimePlayed));
|
if (Settings::Manager::getBool("timeplayed","Saves"))
|
||||||
|
{
|
||||||
|
text << "\n" << "Time played: " << formatTimeplayed((int)floor(mCurrentSlot->mProfile.mTimePlayed));
|
||||||
|
}
|
||||||
|
|
||||||
mInfoText->setCaptionWithReplacing(text.str());
|
mInfoText->setCaptionWithReplacing(text.str());
|
||||||
|
|
||||||
|
|
|
@ -177,6 +177,8 @@ show owned = 0
|
||||||
character =
|
character =
|
||||||
# Save when resting
|
# Save when resting
|
||||||
autosave = true
|
autosave = true
|
||||||
|
# display time played
|
||||||
|
timeplayed = false
|
||||||
|
|
||||||
[Windows]
|
[Windows]
|
||||||
inventory x = 0
|
inventory x = 0
|
||||||
|
|
Loading…
Reference in a new issue