replaced last 'item #n' temporary text
This commit is contained in:
1 parent
6825eb4114
commit
6e634e13d2
4 files changed
+6
-5
No files matched your search
@@ -618,7 +618,7 @@ void CityDlg::offscreenPaint()
|
|||||||
for (int i = 0; i < Term::nCityEventPriority && line < messageCount; ++i)
|
for (int i = 0; i < Term::nCityEventPriority && line < messageCount; ++i)
|
||||||
checkMessage(Term::CityEventPriority[static_cast<std::size_t>(i)]);
|
checkMessage(Term::CityEventPriority[static_cast<std::size_t>(i)]);
|
||||||
} else {
|
} else {
|
||||||
s = QStringLiteral("City management: #%1").arg(optiType);
|
s = phrases.lookup(QStringLiteral("CITYMANAGETYPE"), optiType);
|
||||||
const int j = s.indexOf(QLatin1Char('\\'));
|
const int j = s.indexOf(QLatin1Char('\\'));
|
||||||
if (j < 0) {
|
if (j < 0) {
|
||||||
loweredTextOut(canvas, -1, *MainTexture, xmOpt + 40, ymOpt - 9, s);
|
loweredTextOut(canvas, -1, *MainTexture, xmOpt + 40, ymOpt - 9, s);
|
||||||
|
|||||||
@@ -80,8 +80,7 @@ QString phrase(const QString &key)
|
|||||||
|
|
||||||
QString phraseFeature(int code)
|
QString phraseFeature(int code)
|
||||||
{
|
{
|
||||||
// Feature names (StringTables.pas) aren't ported.
|
return phrases.lookup(QStringLiteral("FEATURES"), code);
|
||||||
return QStringLiteral("Feature #%1").arg(code);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString phraseCostDiff(int difficulty)
|
QString phraseCostDiff(int difficulty)
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
#include "Cevo/CevoScreenTools.h"
|
#include "Cevo/CevoScreenTools.h"
|
||||||
#include "Cevo/CevoTexture.h"
|
#include "Cevo/CevoTexture.h"
|
||||||
#include "ClientTools.h"
|
#include "ClientTools.h"
|
||||||
|
#include "Global.h"
|
||||||
#include "Help.h"
|
#include "Help.h"
|
||||||
#include "KeyBindings.h"
|
#include "KeyBindings.h"
|
||||||
#include "Term.h"
|
#include "Term.h"
|
||||||
@@ -63,7 +64,7 @@ QString phrase(const QString &key)
|
|||||||
|
|
||||||
QString terrainName(int terrType)
|
QString terrainName(int terrType)
|
||||||
{
|
{
|
||||||
return QStringLiteral("Terrain #%1").arg(terrType);
|
return phrases.lookup(QStringLiteral("TERRAIN"), terrType);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString enhanceLabel(const QString &terrainLabel, const QString &workTime)
|
QString enhanceLabel(const QString &terrainLabel, const QString &workTime)
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
#include "Cevo/CevoScreenTools.h"
|
#include "Cevo/CevoScreenTools.h"
|
||||||
#include "Cevo/CevoTexture.h"
|
#include "Cevo/CevoTexture.h"
|
||||||
#include "ClientTools.h"
|
#include "ClientTools.h"
|
||||||
|
#include "Global.h"
|
||||||
#include "Help.h"
|
#include "Help.h"
|
||||||
#include "Term.h"
|
#include "Term.h"
|
||||||
#include "Tribes.h"
|
#include "Tribes.h"
|
||||||
@@ -271,7 +272,7 @@ void WondersDlg::vpaint(Dpi::Canvas &canvas)
|
|||||||
if (selection < 0 || !MainTexture)
|
if (selection < 0 || !MainTexture)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QString s = QStringLiteral("Wonder #%1").arg(selection);
|
QString s = phrases.lookup(QStringLiteral("IMPROVEMENTS"), selection);
|
||||||
if (ClientTools::myRO->Wonder[selection].CityID != WonderDestroyed)
|
if (ClientTools::myRO->Wonder[selection].CityID != WonderDestroyed)
|
||||||
s = QStringLiteral("%1 (%2)").arg(s, Tribes::cityName(ClientTools::myRO->Wonder[selection].CityID));
|
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);
|
loweredTextOut(canvas, -1, *MainTexture, (width() - biColorTextWidth(canvas, s)) / 2, height() - 3 - 36 - 10, s);
|
||||||
|
|||||||
Reference in new issue
Block a user