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

+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);