1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

fix town hints

This commit is contained in:
Laserlicht
2025-07-10 01:53:22 +02:00
parent 5f9cba59bc
commit 8ae7b96bba
2 changed files with 4 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ TownHintSelector::TownHintSelector(std::vector<rmg::ZoneOptions::CTownHints> & t
std::map<modes, QString> values = {
{ LIKE_ZONE, tr("Like Zone") },
{ NOT_LIKE_ZONE, tr("Not like zone (comma seperated)") },
{ NOT_LIKE_ZONE, tr("Not like zone (comma separated)") },
{ RELATED_TO_ZONE_TERRAIN, tr("Related to zone terrain") }
};
@@ -135,7 +135,7 @@ TownHintSelector::TownHintSelector(std::vector<rmg::ZoneOptions::CTownHints> & t
ui->tableWidgetTownHints->resizeColumnsToContents();
ui->tableWidgetTownHints->setColumnWidth(0, 300);
ui->tableWidgetTownHints->setColumnWidth(1, 100);
ui->tableWidgetTownHints->setColumnWidth(1, 150);
show();
}
@@ -169,6 +169,7 @@ void TownHintSelector::on_buttonBoxResult_accepted()
hint.relatedToZoneTerrain = values.at(0);
break;
}
townHints.push_back(hint);
}
close();

View File

@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>550</width>
<width>600</width>
<height>329</height>
</rect>
</property>