replaced last 'item #n' temporary text

This commit is contained in:
Geoffray Levasseur committed 2026-11-17 11:05:50 +01:00
1 parent 6825eb4114
commit 6e634e13d2
4 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -618,7 +618,7 @@ void CityDlg::offscreenPaint()
for (int i = 0; i < Term::nCityEventPriority && line < messageCount; ++i)
checkMessage(Term::CityEventPriority[static_cast<std::size_t>(i)]);
} else {
s = QStringLiteral("City management: #%1").arg(optiType);
s = phrases.lookup(QStringLiteral("CITYMANAGETYPE"), optiType);
const int j = s.indexOf(QLatin1Char('\\'));
if (j < 0) {
loweredTextOut(canvas, -1, *MainTexture, xmOpt + 40, ymOpt - 9, s);
+1 -2
View File
@@ -80,8 +80,7 @@ QString phrase(const QString &key)
QString phraseFeature(int code)
{
// Feature names (StringTables.pas) aren't ported.
return QStringLiteral("Feature #%1").arg(code);
return phrases.lookup(QStringLiteral("FEATURES"), code);
}
QString phraseCostDiff(int difficulty)
+2 -1
View File
@@ -32,6 +32,7 @@
#include "Cevo/CevoScreenTools.h"
#include "Cevo/CevoTexture.h"
#include "ClientTools.h"
#include "Global.h"
#include "Help.h"
#include "KeyBindings.h"
#include "Term.h"
@@ -63,7 +64,7 @@ QString phrase(const QString &key)
QString terrainName(int terrType)
{
return QStringLiteral("Terrain #%1").arg(terrType);
return phrases.lookup(QStringLiteral("TERRAIN"), terrType);
}
QString enhanceLabel(const QString &terrainLabel, const QString &workTime)
+2 -1
View File
@@ -32,6 +32,7 @@
#include "Cevo/CevoScreenTools.h"
#include "Cevo/CevoTexture.h"
#include "ClientTools.h"
#include "Global.h"
#include "Help.h"
#include "Term.h"
#include "Tribes.h"
@@ -271,7 +272,7 @@ void WondersDlg::vpaint(Dpi::Canvas &canvas)
if (selection < 0 || !MainTexture)
return;
QString s = QStringLiteral("Wonder #%1").arg(selection);
QString s = phrases.lookup(QStringLiteral("IMPROVEMENTS"), selection);
if (ClientTools::myRO->Wonder[selection].CityID != WonderDestroyed)
s = QStringLiteral("%1 (%2)").arg(s, Tribes::cityName(ClientTools::myRO->Wonder[selection].CityID));
loweredTextOut(canvas, -1, *MainTexture, (width() - biColorTextWidth(canvas, s)) / 2, height() - 3 - 36 - 10, s);