mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
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
@ -42,6 +42,13 @@ void CSVWorld::ReferenceableCreator::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)
|
||||
{
|
||||
CSVWorld::GenericCreator::toggleWidgets(active);
|
||||
|
@ -23,6 +23,10 @@ namespace CSVWorld
|
||||
const CSMWorld::UniversalId& id);
|
||||
|
||||
virtual void reset();
|
||||
|
||||
virtual void cloneMode (const std::string& originId,
|
||||
const CSMWorld::UniversalId::Type type);
|
||||
|
||||
virtual void toggleWidgets(bool active = true);
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user