mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
fixed gold pickup sound for international MW versions, fix npc tooltip
This commit is contained in:
parent
282f37b1b7
commit
c4825cdb43
@ -7,6 +7,7 @@
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
#include "../mwworld/actiontake.hpp"
|
||||
#include "../mwworld/world.hpp"
|
||||
#include "../mwworld/environment.hpp"
|
||||
|
||||
#include "../mwrender/objects.hpp"
|
||||
@ -90,7 +91,7 @@ namespace MWClass
|
||||
ESMS::LiveCellRef<ESM::Miscellaneous, MWWorld::RefData> *ref =
|
||||
ptr.get<ESM::Miscellaneous>();
|
||||
|
||||
if (ref->base->name =="Gold")
|
||||
if (ref->base->name == environment.mWorld->getStore().gameSettings.search("sGold")->str)
|
||||
{
|
||||
return std::string("Item Gold Up");
|
||||
}
|
||||
@ -102,7 +103,7 @@ namespace MWClass
|
||||
ESMS::LiveCellRef<ESM::Miscellaneous, MWWorld::RefData> *ref =
|
||||
ptr.get<ESM::Miscellaneous>();
|
||||
|
||||
if (ref->base->name =="Gold")
|
||||
if (ref->base->name == environment.mWorld->getStore().gameSettings.search("sGold")->str)
|
||||
{
|
||||
return std::string("Item Gold Down");
|
||||
}
|
||||
|
@ -158,7 +158,12 @@ IntSize ToolTips::getToolTipViaPtr ()
|
||||
/// \todo We don't want tooltips for NPCs in combat mode.
|
||||
ESMS::LiveCellRef<ESM::NPC, MWWorld::RefData>* ref = mFocusObject.get<ESM::NPC>();
|
||||
|
||||
tooltipSize = createToolTip(ref->base->name, "");
|
||||
std::string text;
|
||||
if (mFullHelp) {
|
||||
text += "\n Script: " + ref->base->script;
|
||||
}
|
||||
|
||||
tooltipSize = createToolTip(ref->base->name, text);
|
||||
}
|
||||
|
||||
// -------------------- Creature -------------------------------
|
||||
@ -167,7 +172,12 @@ IntSize ToolTips::getToolTipViaPtr ()
|
||||
/// \todo We don't want tooltips for Creatures in combat mode.
|
||||
ESMS::LiveCellRef<ESM::Creature, MWWorld::RefData>* ref = mFocusObject.get<ESM::Creature>();
|
||||
|
||||
tooltipSize = createToolTip(ref->base->name, "");
|
||||
std::string text;
|
||||
if (mFullHelp) {
|
||||
text += "\n Script: " + ref->base->script;
|
||||
}
|
||||
|
||||
tooltipSize = createToolTip(ref->base->name, text);
|
||||
}
|
||||
|
||||
// -------------------- Container -------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user