|
|
@@ -531,7 +531,7 @@ void Inspector::setProperty(CGPandoraBox * o, const QString & key, const QVarian
|
|
|
if(!o) return;
|
|
|
|
|
|
if(key == "Message")
|
|
|
- o->message.appendTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("guards", o->instanceName, "message"), value.toString().toStdString()));
|
|
|
+ o->message = MetaString::createFromTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("guards", o->instanceName, "message"), value.toString().toStdString()));
|
|
|
}
|
|
|
|
|
|
void Inspector::setProperty(CGEvent * o, const QString & key, const QVariant & value)
|
|
|
@@ -561,7 +561,7 @@ void Inspector::setProperty(CGSignBottle * o, const QString & key, const QVarian
|
|
|
if(!o) return;
|
|
|
|
|
|
if(key == "Message")
|
|
|
- o->message.appendTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("sign", o->instanceName, "message"), value.toString().toStdString()));
|
|
|
+ o->message = MetaString::createFromTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("sign", o->instanceName, "message"), value.toString().toStdString()));
|
|
|
}
|
|
|
|
|
|
void Inspector::setProperty(CGMine * o, const QString & key, const QVariant & value)
|
|
|
@@ -577,7 +577,7 @@ void Inspector::setProperty(CGArtifact * o, const QString & key, const QVariant
|
|
|
if(!o) return;
|
|
|
|
|
|
if(key == "Message")
|
|
|
- o->message.appendTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("guards", o->instanceName, "message"), value.toString().toStdString()));
|
|
|
+ o->message = MetaString::createFromTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("guards", o->instanceName, "message"), value.toString().toStdString()));
|
|
|
|
|
|
if(o->storedArtifact && key == "Spell")
|
|
|
{
|
|
|
@@ -646,7 +646,7 @@ void Inspector::setProperty(CGCreature * o, const QString & key, const QVariant
|
|
|
if(!o) return;
|
|
|
|
|
|
if(key == "Message")
|
|
|
- o->message.appendTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("monster", o->instanceName, "message"), value.toString().toStdString()));
|
|
|
+ o->message = MetaString::createFromTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("monster", o->instanceName, "message"), value.toString().toStdString()));
|
|
|
if(key == "Character")
|
|
|
o->character = CGCreature::Character(value.toInt());
|
|
|
if(key == "Never flees")
|
|
|
@@ -664,11 +664,11 @@ void Inspector::setProperty(CGSeerHut * o, const QString & key, const QVariant &
|
|
|
if(key == "Mission type")
|
|
|
o->quest->missionType = CQuest::Emission(value.toInt());
|
|
|
if(key == "First visit text")
|
|
|
- o->quest->firstVisitText.appendTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("quest", o->instanceName, "firstVisit"), value.toString().toStdString()));
|
|
|
+ o->quest->firstVisitText = MetaString::createFromTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("quest", o->instanceName, "firstVisit"), value.toString().toStdString()));
|
|
|
if(key == "Next visit text")
|
|
|
- o->quest->nextVisitText.appendTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("quest", o->instanceName, "nextVisit"), value.toString().toStdString()));
|
|
|
+ o->quest->nextVisitText = MetaString::createFromTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("quest", o->instanceName, "nextVisit"), value.toString().toStdString()));
|
|
|
if(key == "Completed text")
|
|
|
- o->quest->completedText.appendTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("quest", o->instanceName, "completed"), value.toString().toStdString()));
|
|
|
+ o->quest->completedText = MetaString::createFromTextID(mapRegisterLocalizedString("map", *map, TextIdentifier("quest", o->instanceName, "completed"), value.toString().toStdString()));
|
|
|
}
|
|
|
|
|
|
|