forked from mirror/openmw-tes3mp
Merge pull request #1231 from Allofich/tooltips
Show names on combat actors when RMB GUI is active
This commit is contained in:
commit
7075a3a99b
3 changed files with 3 additions and 3 deletions
|
@ -546,7 +546,7 @@ namespace MWClass
|
|||
|
||||
bool Creature::hasToolTip(const MWWorld::ConstPtr& ptr) const
|
||||
{
|
||||
if (!ptr.getRefData().getCustomData())
|
||||
if (!ptr.getRefData().getCustomData() || MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||
return true;
|
||||
|
||||
const CreatureCustomData& customData = ptr.getRefData().getCustomData()->asCreatureCustomData();
|
||||
|
|
|
@ -1007,7 +1007,7 @@ namespace MWClass
|
|||
|
||||
bool Npc::hasToolTip(const MWWorld::ConstPtr& ptr) const
|
||||
{
|
||||
if (!ptr.getRefData().getCustomData())
|
||||
if (!ptr.getRefData().getCustomData() || MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||
return true;
|
||||
|
||||
const NpcCustomData& customData = ptr.getRefData().getCustomData()->asNpcCustomData();
|
||||
|
|
|
@ -1039,7 +1039,7 @@ namespace MWWorld
|
|||
facedObject = getFacedObject(activationDistance, true);
|
||||
|
||||
if (!facedObject.isEmpty() && !facedObject.getClass().allowTelekinesis(facedObject)
|
||||
&& mDistanceToFacedObject > getMaxActivationDistance())
|
||||
&& mDistanceToFacedObject > getMaxActivationDistance() && !MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||
return 0;
|
||||
}
|
||||
return facedObject;
|
||||
|
|
Loading…
Reference in a new issue