From 47e29480ce9c46f5787885183537ef7774742656 Mon Sep 17 00:00:00 2001 From: Emmanuel Anne Date: Wed, 16 Sep 2015 16:04:25 +0200 Subject: [PATCH] show duration of light sources in tooltip I had forgotten light sources disappear after a while, this way at least you know it's normal ! --- apps/openmw/mwclass/light.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwclass/light.cpp b/apps/openmw/mwclass/light.cpp index c532b5d65..cbd051fdb 100644 --- a/apps/openmw/mwclass/light.cpp +++ b/apps/openmw/mwclass/light.cpp @@ -169,6 +169,7 @@ namespace MWClass std::string text; + text += "\nDuration: " + MWGui::ToolTips::toString(ptr.getClass().getRemainingUsageTime(ptr)); if (ref->mBase->mData.mWeight != 0) { text += "\n#{sWeight}: " + MWGui::ToolTips::toString(ref->mBase->mData.mWeight);