mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 05:10:26 +00:00
durations in tooltips : use "show effect duration" setting
This commit is contained in:
parent
b0d373f7e6
commit
29a84452ab
3 changed files with 24 additions and 18 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include <components/esm/loadligh.hpp>
|
#include <components/esm/loadligh.hpp>
|
||||||
#include <components/esm/objectstate.hpp>
|
#include <components/esm/objectstate.hpp>
|
||||||
|
#include <components/settings/settings.hpp>
|
||||||
|
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
#include "../mwbase/world.hpp"
|
#include "../mwbase/world.hpp"
|
||||||
|
@ -169,6 +170,7 @@ namespace MWClass
|
||||||
|
|
||||||
std::string text;
|
std::string text;
|
||||||
|
|
||||||
|
if (Settings::Manager::getBool("show effect duration","Game"))
|
||||||
text += "\n#{sDuration}: " + MWGui::ToolTips::toString(ptr.getClass().getRemainingUsageTime(ptr));
|
text += "\n#{sDuration}: " + MWGui::ToolTips::toString(ptr.getClass().getRemainingUsageTime(ptr));
|
||||||
if (ref->mBase->mData.mWeight != 0)
|
if (ref->mBase->mData.mWeight != 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include <MyGUI_ImageBox.h>
|
#include <MyGUI_ImageBox.h>
|
||||||
|
|
||||||
#include <components/esm/loadmgef.hpp>
|
#include <components/esm/loadmgef.hpp>
|
||||||
|
#include <components/settings/settings.hpp>
|
||||||
|
|
||||||
#include "../mwbase/world.hpp"
|
#include "../mwbase/world.hpp"
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
|
@ -134,7 +135,8 @@ namespace MWGui
|
||||||
MWBase::Environment::get().getWindowManager()->getGameSettingString("spoint", "") );
|
MWBase::Environment::get().getWindowManager()->getGameSettingString("spoint", "") );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (effectIt->mRemainingTime > -1) {
|
if (effectIt->mRemainingTime > -1 &&
|
||||||
|
Settings::Manager::getBool("show effect duration","Game")) {
|
||||||
sourcesDescription += " #{sDuration}: ";
|
sourcesDescription += " #{sDuration}: ";
|
||||||
float duration = effectIt->mRemainingTime;
|
float duration = effectIt->mRemainingTime;
|
||||||
if (duration > 3600) {
|
if (duration > 3600) {
|
||||||
|
|
|
@ -175,6 +175,8 @@ difficulty = 0
|
||||||
#2: tint crosshair
|
#2: tint crosshair
|
||||||
#3: both
|
#3: both
|
||||||
show owned = 0
|
show owned = 0
|
||||||
|
# Show the remaining duration of magic effects and lights
|
||||||
|
show effect duration = false
|
||||||
|
|
||||||
[Saves]
|
[Saves]
|
||||||
character =
|
character =
|
||||||
|
|
Loading…
Reference in a new issue