forked from mirror/openmw-tes3mp
fixed referenceable cloning (and as a side-effect enabled showing the type of the refereceable in the clone UI)
This commit is contained in:
parent
90ad3f332a
commit
b39cdb7645
2 changed files with 11 additions and 0 deletions
|
@ -42,6 +42,13 @@ void CSVWorld::ReferenceableCreator::reset()
|
||||||
GenericCreator::reset();
|
GenericCreator::reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSVWorld::ReferenceableCreator::cloneMode (const std::string& originId,
|
||||||
|
const CSMWorld::UniversalId::Type type)
|
||||||
|
{
|
||||||
|
GenericCreator::cloneMode (originId, type);
|
||||||
|
mType->setCurrentIndex (mType->findData (static_cast<int> (type)));
|
||||||
|
}
|
||||||
|
|
||||||
void CSVWorld::ReferenceableCreator::toggleWidgets(bool active)
|
void CSVWorld::ReferenceableCreator::toggleWidgets(bool active)
|
||||||
{
|
{
|
||||||
CSVWorld::GenericCreator::toggleWidgets(active);
|
CSVWorld::GenericCreator::toggleWidgets(active);
|
||||||
|
|
|
@ -23,6 +23,10 @@ namespace CSVWorld
|
||||||
const CSMWorld::UniversalId& id);
|
const CSMWorld::UniversalId& id);
|
||||||
|
|
||||||
virtual void reset();
|
virtual void reset();
|
||||||
|
|
||||||
|
virtual void cloneMode (const std::string& originId,
|
||||||
|
const CSMWorld::UniversalId::Type type);
|
||||||
|
|
||||||
virtual void toggleWidgets(bool active = true);
|
virtual void toggleWidgets(bool active = true);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue