mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Temporary fix for vic/loss conditions string
This commit is contained in:
@@ -137,7 +137,7 @@ void LoseConditions::update(CMap & map)
|
||||
{
|
||||
map.triggeredEvents.push_back(standardDefeat);
|
||||
map.defeatIconIndex = 3;
|
||||
map.defeatMessage.appendTextID("core.lcdesc.0");
|
||||
map.defeatMessage = MetaString::createFromTextID("core.lcdesc.0");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -162,7 +162,7 @@ void LoseConditions::update(CMap & map)
|
||||
noneOf.expressions.push_back(cond);
|
||||
specialDefeat.onFulfill.appendTextID("core.genrltxt.251");
|
||||
specialDefeat.trigger = EventExpression(noneOf);
|
||||
map.defeatMessage.appendTextID("core.lcdesc.1");
|
||||
map.defeatMessage = MetaString::createFromTextID("core.lcdesc.1");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ void LoseConditions::update(CMap & map)
|
||||
noneOf.expressions.push_back(cond);
|
||||
specialDefeat.onFulfill.appendTextID("core.genrltxt.253");
|
||||
specialDefeat.trigger = EventExpression(noneOf);
|
||||
map.defeatMessage.appendTextID("core.lcdesc.2");
|
||||
map.defeatMessage = MetaString::createFromTextID("core.lcdesc.2");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ void LoseConditions::update(CMap & map)
|
||||
cond.value = expiredDate(loseValueWidget->text());
|
||||
specialDefeat.onFulfill.appendTextID("core.genrltxt.254");
|
||||
specialDefeat.trigger = EventExpression(cond);
|
||||
map.defeatMessage.appendTextID("core.lcdesc.3");
|
||||
map.defeatMessage = MetaString::createFromTextID("core.lcdesc.3");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@@ -42,7 +42,11 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="defeatMessageEdit"/>
|
||||
<widget class="QLineEdit" name="defeatMessageEdit">
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
@@ -186,7 +186,7 @@ void VictoryConditions::update(CMap & map)
|
||||
{
|
||||
map.triggeredEvents.push_back(standardVictory);
|
||||
map.victoryIconIndex = 11;
|
||||
map.victoryMessage.appendTextID(VLC->generaltexth->victoryConditions[0]);
|
||||
map.victoryMessage = MetaString::createFromTextID("core.vcdesc.0");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -198,7 +198,7 @@ void VictoryConditions::update(CMap & map)
|
||||
specialVictory.description.clear(); // TODO: display in quest window
|
||||
|
||||
map.victoryIconIndex = vicCondition;
|
||||
map.victoryMessage.appendTextID(VLC->generaltexth->victoryConditions[size_t(vicCondition) + 1]);
|
||||
map.victoryMessage = MetaString::createFromTextID("core.vcdesc." + std::to_string(vicCondition + 1));
|
||||
|
||||
switch(vicCondition)
|
||||
{
|
||||
@@ -301,7 +301,7 @@ void VictoryConditions::update(CMap & map)
|
||||
if(ui->standardVictoryCheck->isChecked())
|
||||
{
|
||||
map.victoryMessage.appendRawString(" / ");
|
||||
map.victoryMessage.appendTextID(VLC->generaltexth->victoryConditions[0]);
|
||||
map.victoryMessage.appendTextID("core.vcdesc.0");
|
||||
map.triggeredEvents.push_back(standardVictory);
|
||||
}
|
||||
map.triggeredEvents.push_back(specialVictory);
|
||||
|
@@ -42,7 +42,11 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="victoryMessageEdit"/>
|
||||
<widget class="QLineEdit" name="victoryMessageEdit">
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
Reference in New Issue
Block a user