mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
minor update since records contains own id
This commit is contained in:
parent
5b9621bca5
commit
f818fa1ebf
1 changed files with 3 additions and 12 deletions
|
@ -120,19 +120,10 @@ namespace MWGui
|
||||||
setAttributeValues();
|
setAttributeValues();
|
||||||
|
|
||||||
// set class image
|
// set class image
|
||||||
const ESM::Class& playerClass = *MWBase::Environment::get().getWorld ()->getPlayer ().getClass ();
|
const ESM::Class *cls =
|
||||||
// retrieve the ID to this class
|
MWBase::Environment::get().getWorld ()->getPlayer ().getClass ();
|
||||||
std::string classId;
|
|
||||||
const MWWorld::Store<ESM::Class> &classes =
|
|
||||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>();
|
|
||||||
|
|
||||||
MWWorld::Store<ESM::Class>::iterator it = classes.begin();
|
mClassImage->setImageTexture ("textures\\levelup\\" + cls->mId + ".dds");
|
||||||
for (; it != classes.end(); ++it)
|
|
||||||
{
|
|
||||||
if (playerClass.mName == it->mName)
|
|
||||||
classId = it->mId;
|
|
||||||
}
|
|
||||||
mClassImage->setImageTexture ("textures\\levelup\\" + classId + ".dds");
|
|
||||||
|
|
||||||
/// \todo replace this with INI-imported texts
|
/// \todo replace this with INI-imported texts
|
||||||
int level = creatureStats.getLevel ()+1;
|
int level = creatureStats.getLevel ()+1;
|
||||||
|
|
Loading…
Reference in a new issue