many sparse changes
This commit is contained in:
1 parent
2c26c6f795
commit
7aa4ea4425
23 files changed
+1317
-290
No files matched your search
@@ -87,9 +87,6 @@ if(CEVO_WITH_APP)
|
||||
|
||||
set(PROJECT_SOURCES
|
||||
main.cpp
|
||||
game/mainwindow.cpp
|
||||
game/mainwindow.h
|
||||
game/mainwindow.ui
|
||||
game/Back.cpp
|
||||
game/Back.h
|
||||
game/Brain.cpp
|
||||
|
||||
+81
-12
@@ -28,37 +28,106 @@
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
#include "Cevo/CevoGraphicSet.h"
|
||||
#include "Cevo/CevoScreenTools.h"
|
||||
#include "Cevo/CevoTexture.h"
|
||||
#include <QDebug>
|
||||
|
||||
namespace Cevo {
|
||||
|
||||
bool fullScreen = false;
|
||||
bool musicEnabled = true;
|
||||
bool generateNames = true;
|
||||
|
||||
QString getGraphicsDir()
|
||||
namespace {
|
||||
// The CEVO_RESOURCE_DIR environment variable overrides the compile-time
|
||||
// install location, to run a build-tree binary against the source resources/.
|
||||
QString resourceDir()
|
||||
{
|
||||
const QByteArray fromEnvironment = qgetenv("CEVO_RESOURCE_DIR");
|
||||
if (!fromEnvironment.isEmpty())
|
||||
return QString::fromLocal8Bit(fromEnvironment);
|
||||
#ifdef CEVO_RESOURCE_DIR
|
||||
return QStringLiteral(CEVO_RESOURCE_DIR "/Graphics");
|
||||
return QStringLiteral(CEVO_RESOURCE_DIR);
|
||||
#else
|
||||
return QString();
|
||||
#endif
|
||||
}
|
||||
} // namespace
|
||||
|
||||
QString getGraphicsDir()
|
||||
{
|
||||
const QString dir = resourceDir();
|
||||
return dir.isEmpty() ? QString() : dir + QStringLiteral("/Graphics");
|
||||
}
|
||||
|
||||
QString getMusicDir()
|
||||
{
|
||||
#ifdef CEVO_RESOURCE_DIR
|
||||
return QStringLiteral(CEVO_RESOURCE_DIR "/Music");
|
||||
#else
|
||||
return QString();
|
||||
#endif
|
||||
const QString dir = resourceDir();
|
||||
return dir.isEmpty() ? QString() : dir + QStringLiteral("/Music");
|
||||
}
|
||||
|
||||
QString localizedFilePath(const QString &path)
|
||||
{
|
||||
#ifdef CEVO_RESOURCE_DIR
|
||||
return QStringLiteral(CEVO_RESOURCE_DIR "/") + path;
|
||||
#else
|
||||
return path;
|
||||
#endif
|
||||
const QString dir = resourceDir();
|
||||
return dir.isEmpty() ? path : dir + QLatin1Char('/') + path;
|
||||
}
|
||||
|
||||
StringTable phrases;
|
||||
StringTable phrases2;
|
||||
bool phrases2FallenBackToEnglish = false;
|
||||
|
||||
void loadPhrases()
|
||||
{
|
||||
phrases2FallenBackToEnglish = false;
|
||||
if (!phrases.loadFromFile(localizedFilePath(QStringLiteral("Language.txt"))))
|
||||
qWarning("Language.txt not found in %s", qPrintable(localizedFilePath(QString())));
|
||||
if (!phrases2.loadFromFile(localizedFilePath(QStringLiteral("Language2.txt"))))
|
||||
qWarning("Language2.txt not found in %s", qPrintable(localizedFilePath(QString())));
|
||||
}
|
||||
|
||||
void loadAssets()
|
||||
{
|
||||
graphicsDir = getGraphicsDir();
|
||||
loadPhrases();
|
||||
loadFonts(localizedFilePath(QStringLiteral("Fonts.txt")));
|
||||
|
||||
Templates = loadGraphicSet(QStringLiteral("Templates") + QLatin1String(PngExt), false);
|
||||
HGrSystem = loadGraphicSet(QStringLiteral("System") + QLatin1String(PngExt));
|
||||
HGrSystem2 = loadGraphicSet(QStringLiteral("System2") + QLatin1String(PngExt));
|
||||
|
||||
static Dpi::Bitmap colorsBitmap;
|
||||
static Dpi::Bitmap bigImpBitmap;
|
||||
static Texture mainTexture;
|
||||
colorsBitmap.loadFromFile(graphicsDir + QStringLiteral("/Colors") + QLatin1String(PngExt));
|
||||
paper.loadFromFile(graphicsDir + QStringLiteral("/Paper") + QLatin1String(JpgExt));
|
||||
bigImpBitmap.loadFromFile(graphicsDir + QStringLiteral("/Icons") + QLatin1String(PngExt));
|
||||
Colors = &colorsBitmap;
|
||||
bigImp = &bigImpBitmap;
|
||||
MainTexture = &mainTexture;
|
||||
}
|
||||
|
||||
QString phraseToQtFormat(const QString &text)
|
||||
{
|
||||
QString converted;
|
||||
int argNumber = 0;
|
||||
for (int i = 0; i < text.length(); ++i) {
|
||||
if (text.at(i) == QLatin1Char('%') && i + 1 < text.length()) {
|
||||
const QChar next = text.at(i + 1);
|
||||
if (next == QLatin1Char('d') || next == QLatin1Char('s')) {
|
||||
converted += QLatin1Char('%') + QString::number(++argNumber);
|
||||
++i;
|
||||
continue;
|
||||
}
|
||||
if (next == QLatin1Char('%')) {
|
||||
converted += QLatin1Char('%');
|
||||
++i;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
converted += text.at(i);
|
||||
}
|
||||
return converted;
|
||||
}
|
||||
|
||||
} // namespace Cevo
|
||||
@@ -28,6 +28,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Cevo/CevoStringTables.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace Cevo {
|
||||
@@ -70,6 +72,23 @@ QString getMusicDir();
|
||||
// fallback branch the original always takes once no localized file exists.
|
||||
QString localizedFilePath(const QString &path);
|
||||
|
||||
// ScreenTools.pas's `Phrases`/`Phrases2` string tables (Language.txt /
|
||||
// Language2.txt) and `Phrases2FallenBackToEnglish`; filled by loadPhrases().
|
||||
extern StringTable phrases;
|
||||
extern StringTable phrases2;
|
||||
extern bool phrases2FallenBackToEnglish;
|
||||
// ScreenTools.pas's LoadPhrases(): (re)loads the two tables.
|
||||
void loadPhrases();
|
||||
// Converts a Language.txt Pascal Format() string (%d/%s/%%) to QString::arg()
|
||||
// style numbered placeholders (%1, %2, ...) in order of appearance.
|
||||
QString phraseToQtFormat(const QString &text);
|
||||
|
||||
// ScreenTools.pas's UnitInit()/LoadAssets(): points the widget layer at the
|
||||
// graphics directory and loads the phrases, fonts, system graphic sets,
|
||||
// colour palette, paper/icon bitmaps and the main texture. Call once after
|
||||
// the QApplication exists; safe to call again to reload.
|
||||
void loadAssets();
|
||||
|
||||
// Equivalent of a user-settings `GenerateNames` flag (Start.pas - not
|
||||
// ported - whether cities get tribe-script-generated names or plain
|
||||
// "Founder.Index" numeric ones).
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
// prepare()/offscreenPaint()/line() render a plain single-paragraph
|
||||
// placeholder per page instead of the original's full icon-rich,
|
||||
// per-TextFormat layout engine (pkAdvIcon/pkBigIcon/pkTer/pkModel/...),
|
||||
// because that engine's actual CONTENT comes from Help/Help.txt via
|
||||
// StringTables.pas, which isn't ported (StringTable below is a disclosed
|
||||
// stub). waterSign()/paintTerrIcon() (cosmetic pixel effects) are no-ops.
|
||||
// Extend this file (not a new one) if StringTables.pas is ever ported.
|
||||
// because that engine's actual CONTENT comes from Help/Help.txt (loaded
|
||||
// through the real StringTable, but the file isn't shipped in resources/
|
||||
// yet). waterSign()/paintTerrIcon() (cosmetic pixel effects) are no-ops.
|
||||
// Extend this file (not a new one) to port the real layout engine.
|
||||
|
||||
#include "Help.h"
|
||||
#include "ui_Help.h"
|
||||
@@ -401,13 +401,11 @@ void HelpDlg::searchBtnClicked()
|
||||
void HelpDlg::search(const QString &searchString)
|
||||
{
|
||||
searchResult.clear();
|
||||
// Real full-text search needs Help/Help.txt's content via
|
||||
// StringTables.pas (not ported) - the StringTable stub's search()
|
||||
// always returns false, so this never finds anything yet.
|
||||
// The result list isn't built yet (needs the Help.txt layout engine):
|
||||
// the matches are found but not recorded.
|
||||
int handle = -1;
|
||||
int index = -1;
|
||||
while (helpText.search(searchString, handle, index)) {
|
||||
// unreachable with the current StringTable stub
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-28
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "Cevo/CevoBaseWin.h"
|
||||
#include "Cevo/CevoPVScrollBar.h"
|
||||
#include "Cevo/CevoStringTables.h"
|
||||
|
||||
#include <QColor>
|
||||
#include <QString>
|
||||
@@ -103,34 +104,6 @@ struct HistItem {
|
||||
QString searchContent;
|
||||
};
|
||||
|
||||
// Minimal stand-in for StringTables.pas's TStringTable (not ported) - a
|
||||
// key->text lookup with handle-based indirection and full-text search.
|
||||
// Since Help/Help.txt's real content isn't available without a
|
||||
// StringTables.pas port, every lookup returns a disclosed placeholder and
|
||||
// search() never matches anything.
|
||||
class StringTable {
|
||||
public:
|
||||
void loadFromFile(const QString &fileName) { Q_UNUSED(fileName); }
|
||||
QString operator[](const QString &key) const { return key; }
|
||||
int getHandle(const QString &key) const
|
||||
{
|
||||
Q_UNUSED(key);
|
||||
return -1;
|
||||
}
|
||||
QString lookupByHandle(int handle) const
|
||||
{
|
||||
Q_UNUSED(handle);
|
||||
return QString();
|
||||
}
|
||||
bool search(const QString &searchString, int &handle, int &index) const
|
||||
{
|
||||
Q_UNUSED(searchString);
|
||||
Q_UNUSED(handle);
|
||||
Q_UNUSED(index);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
// THelpDlg equivalent: the in-game encyclopedia/hypertext browser. UI built
|
||||
// from Help.ui (adapted from the original's Help.lfm). The real content
|
||||
// (Help/Help.txt via StringTables.pas) isn't available, so prepare()/
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace Term {
|
||||
|
||||
MainScreen::MainScreen(QWidget *parent) : DrawDlg(parent)
|
||||
{
|
||||
mainScreen = this;
|
||||
IsoEngine::init([](int emix) { return initEnemyModel(emix); });
|
||||
|
||||
mainScreenZoomToCity = [this](int loc, bool nextUnitOnClose, int showEvent) {
|
||||
@@ -73,7 +74,11 @@ MainScreen::MainScreen(QWidget *parent) : DrawDlg(parent)
|
||||
};
|
||||
}
|
||||
|
||||
MainScreen::~MainScreen() = default;
|
||||
MainScreen::~MainScreen()
|
||||
{
|
||||
if (mainScreen == this)
|
||||
mainScreen = nullptr;
|
||||
}
|
||||
|
||||
Wonders::WondersDlg &MainScreen::wondersDlg()
|
||||
{
|
||||
@@ -250,14 +255,15 @@ void MainScreen::arrangeDialogs()
|
||||
}
|
||||
|
||||
namespace {
|
||||
// Original: `if G.RO[DipMem[Me].pContact] <> nil then ApplyToVisibleForms
|
||||
// (faClose) else begin if CityDlg.Visible ... end;` - the ApplyToVisibleForms
|
||||
// branch is multiplayer/hotseat-only (closes every dialog so the next
|
||||
// player's turn starts clean) and isn't reachable without the full
|
||||
// GRO[]/hotseat machinery; simplified to always take the single-player
|
||||
// "close CityDlg/UnitStatDlg if open" path, disclosed.
|
||||
// Closes every dialog for the next (hot-seat) player when the contacted
|
||||
// nation is also locally controlled, otherwise just the city/unit dialogs.
|
||||
void closeDialogsForNextPlayer(MainScreen &mainScreen)
|
||||
{
|
||||
const int pContact = dipMem[static_cast<std::size_t>(ClientTools::me)].pContact;
|
||||
if (pContact >= 0 && ClientTools::g.RO[pContact] != nullptr) {
|
||||
applyToVisibleForms(FormAction::Close);
|
||||
return;
|
||||
}
|
||||
if (mainScreen.cityDlg().isVisible())
|
||||
mainScreen.cityDlg().close();
|
||||
if (mainScreen.unitStatDlg().isVisible())
|
||||
@@ -535,6 +541,19 @@ void MainScreen::showEnemyShipChange(const TShowShipChange &change)
|
||||
dlg.showModal();
|
||||
}
|
||||
|
||||
void MainScreen::initModule()
|
||||
{
|
||||
initAdvIcons();
|
||||
unusedTribeFiles.clear();
|
||||
Tribes::hGrStdUnits = loadGraphicSet(QStringLiteral("StdUnits") + QLatin1String(PngExt));
|
||||
initSmallImp();
|
||||
}
|
||||
|
||||
void MainScreen::doneModule()
|
||||
{
|
||||
unusedTribeFiles.clear();
|
||||
}
|
||||
|
||||
void MainScreen::rememberPeaceViolation()
|
||||
{
|
||||
myData->peaceEvaHappened = 0;
|
||||
|
||||
@@ -113,6 +113,10 @@ public:
|
||||
// Picks (at random among the best) the unused tribe whose colour differs most from the tribes in play.
|
||||
int chooseUnusedTribe();
|
||||
void showEnemyShipChange(const TShowShipChange &showShipChange);
|
||||
// Term.pas's InitModule()/DoneModule(): one-time asset/table setup
|
||||
// (advance icons, StdUnits graphics, smallImp).
|
||||
void initModule();
|
||||
void doneModule();
|
||||
|
||||
private:
|
||||
std::unique_ptr<Wonders::WondersDlg> m_wondersDlg;
|
||||
|
||||
+58
-21
@@ -68,9 +68,8 @@ QString turnToString(int turn)
|
||||
if (!generateNames)
|
||||
return QString::number(turn);
|
||||
const int year = turnToYear(turn);
|
||||
// Phrases['BC']/['AD'] (StringTables.pas) aren't ported; disclosed
|
||||
// plain-English fallback format.
|
||||
return year < 0 ? QStringLiteral("%1 BC").arg(-year) : QStringLiteral("AD %1").arg(year);
|
||||
return phraseToQtFormat(phrases.lookup(year < 0 ? QStringLiteral("BC") : QStringLiteral("AD")))
|
||||
.arg(std::abs(year));
|
||||
}
|
||||
|
||||
void impImage(Dpi::Canvas &canvas, int x, int y, int iix, int government, bool isControl)
|
||||
@@ -145,6 +144,57 @@ std::array<int, nAdv> advIcon = [] {
|
||||
result.fill(-1);
|
||||
return result;
|
||||
}();
|
||||
void initAdvIcons()
|
||||
{
|
||||
for (int i = 0; i < nAdv; ++i) {
|
||||
int &icon = advIcon[static_cast<std::size_t>(i)];
|
||||
if (IsFutureTech(i)) {
|
||||
icon = 96 + i - futResearchTechnology;
|
||||
continue;
|
||||
}
|
||||
icon = -1;
|
||||
for (int domain = 0; domain < nDomains; ++domain) {
|
||||
for (int j = 0; j < nUpgrade; ++j) {
|
||||
if (Upgrade[domain][j].Preq == i)
|
||||
icon = icon >= 0 ? 85 : 86 + domain;
|
||||
}
|
||||
}
|
||||
for (int j = 0; j < nFeature; ++j) {
|
||||
if (Feature[j].Preq != i)
|
||||
continue;
|
||||
for (int domain = 0; domain < nDomains; ++domain) {
|
||||
if (Feature[j].Domains & (1 << domain))
|
||||
icon = (icon >= 0 && icon != 86 + domain) ? 85 : 86 + domain;
|
||||
}
|
||||
}
|
||||
for (int j = nWonder; j < nImp; ++j) {
|
||||
if (Imp[j].Preq == i)
|
||||
icon = j;
|
||||
}
|
||||
for (int j = nWonder; j < nImp; ++j) {
|
||||
if (Imp[j].Preq == i && Imp[j].Kind != ikCommon)
|
||||
icon = j;
|
||||
}
|
||||
for (int j = 0; j < nJob; ++j) {
|
||||
if (i == JobPreq[j])
|
||||
icon = 84;
|
||||
}
|
||||
for (int j = 0; j < nWonder; ++j) {
|
||||
if (Imp[j].Preq == i)
|
||||
icon = j;
|
||||
}
|
||||
if (icon < 0)
|
||||
icon = ClientTools::advValue[static_cast<std::size_t>(i)] < 1000
|
||||
? -7
|
||||
: 24 + ClientTools::advValue[static_cast<std::size_t>(i)] / 1000;
|
||||
for (int j = 2; j < nGov; ++j) {
|
||||
if (GovPreq[j] == i)
|
||||
icon = j - 8;
|
||||
}
|
||||
}
|
||||
advIcon[adConscription] = 86 + dGround;
|
||||
}
|
||||
|
||||
std::array<int, nPl * nMmax> lostArmy{};
|
||||
int nLostArmy = 0;
|
||||
|
||||
@@ -330,8 +380,8 @@ void tellNewModels()
|
||||
if (dlg) {
|
||||
if (ClientTools::myModel[told].Kind == mkSelfDeveloped)
|
||||
dlg->openSound = QStringLiteral("NEWMODEL_%1").arg(age);
|
||||
// TODO: Phrases['MODELAVAILABLE'] (StringTables.pas not ported) - plain English fallback.
|
||||
dlg->messageText = QStringLiteral("New units are ready for production.");
|
||||
// Phrases['MODELAVAILABLE']
|
||||
dlg->messageText = phrases.lookup(QStringLiteral("MODELAVAILABLE"));
|
||||
if (gameMode == cMovie) {
|
||||
dlg->kind = MessageKind::OkHelp; // doesn't matter
|
||||
dlg->messageText += QLatin1Char('\\') + myTribe.modelNameAt(told);
|
||||
@@ -384,23 +434,10 @@ const std::array<QString, 16> CityEventSoundItem = {
|
||||
|
||||
QString cityEventName(int i)
|
||||
{
|
||||
// TODO: needs Phrases/Phrases2 (StringTables.pas not ported) - plain
|
||||
// English fallback descriptions per event index.
|
||||
static const std::array<QString, 16> fallback = {
|
||||
QStringLiteral("Civil disorder"), QStringLiteral("Population grows"),
|
||||
QStringLiteral("Population declines"), QStringLiteral("Unit lost"),
|
||||
QStringLiteral("Improvement lost"), QStringLiteral("Production sabotaged"),
|
||||
QStringLiteral("No growth without aqueduct/sewer"), QStringLiteral("Pollution"),
|
||||
QStringLiteral("City under siege"), QStringLiteral("Wonder obsolete"),
|
||||
QStringLiteral("Settler production delayed"), QStringLiteral("City founded"),
|
||||
QStringLiteral("City founded"), QStringLiteral(""),
|
||||
QStringLiteral("All improvements built"), QStringLiteral(""),
|
||||
};
|
||||
if (i == 14) // chAllImpsMade
|
||||
return fallback[14];
|
||||
if (i >= 0 && i < static_cast<int>(fallback.size()))
|
||||
return fallback[static_cast<std::size_t>(i)];
|
||||
return QString();
|
||||
return phrases2FallenBackToEnglish ? phrases.lookup(QStringLiteral("CITYEVENTS"), 1)
|
||||
: phrases2.lookup(QStringLiteral("CITYEVENT_ALLIMPSMADE"));
|
||||
return phrases.lookup(QStringLiteral("CITYEVENTS"), i);
|
||||
}
|
||||
|
||||
void helpOnTerrain(int loc, WindowMode newMode)
|
||||
|
||||
@@ -234,8 +234,7 @@ constexpr int chTypeDel = 0x8000;
|
||||
constexpr int nCityEventPriority = 16;
|
||||
extern const std::array<int, nCityEventPriority> CityEventPriority;
|
||||
extern const std::array<QString, 16> CityEventSoundItem;
|
||||
// TODO: needs Phrases/Phrases2 (StringTables.pas not ported) - falls back
|
||||
// to a plain English description per event index.
|
||||
// Term.pas's CityEventName(): the description of city event index i.
|
||||
QString cityEventName(int i);
|
||||
|
||||
// Term.pas's HelpOnTerrain(): opens the help dialog on the terrain-info
|
||||
@@ -316,6 +315,9 @@ bool createTribe(int p, QString fileName, bool original);
|
||||
void tellNewContacts();
|
||||
void tellNewModels();
|
||||
|
||||
// Term.pas's InitModule() `AdvIcon` table setup (the icon displayed with each advance).
|
||||
void initAdvIcons();
|
||||
|
||||
// Term.pas's `UnusedTribeFiles` (name + colour of every tribe file not yet in play).
|
||||
struct UnusedTribe {
|
||||
QString fileName;
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
#include <QHash>
|
||||
#include <QTextStream>
|
||||
|
||||
#include <limits>
|
||||
@@ -358,50 +357,7 @@ QString Tribe::tString(QString templateText) const
|
||||
|
||||
QString Tribe::tPhrase(const QString &item) const
|
||||
{
|
||||
// Phrases/Phrases2 (StringTables.pas) aren't ported; these are
|
||||
// disclosed plain-English placeholders for the keys looked up via
|
||||
// Tribe::TPhrase() across this file and Diplomacy.pas, run through
|
||||
// TString() for the tribe's own #x name-template substitution.
|
||||
static const QHash<QString, QString> table = {
|
||||
{QStringLiteral("GENCITY"), QStringLiteral("City %1")},
|
||||
{QStringLiteral("SHORTNAME"), QStringLiteral("#A")},
|
||||
{QStringLiteral("PRICE_CIVIL"), QStringLiteral("our civil report")},
|
||||
{QStringLiteral("PRICE_MIL"), QStringLiteral("our military report")},
|
||||
{QStringLiteral("PRICE_MAP"), QStringLiteral("our map")},
|
||||
{QStringLiteral("PRICE_ALLTECH"), QStringLiteral("all our advances")},
|
||||
{QStringLiteral("PRICE_ALLMODEL"), QStringLiteral("all our unit designs")},
|
||||
{QStringLiteral("FRACCEPTTREATY"), QStringLiteral("We accept your treaty proposal.")},
|
||||
{QStringLiteral("FRACCEPTDEMAND_STRONG"), QStringLiteral("As you wish.")},
|
||||
{QStringLiteral("FRACCEPTPRESENT"), QStringLiteral("We gladly accept your gift.")},
|
||||
{QStringLiteral("FRACCEPTOFFER"), QStringLiteral("We accept your offer.")},
|
||||
{QStringLiteral("FRBREAK"), QStringLiteral("We break off negotiations.")},
|
||||
{QStringLiteral("FRNOTACCEPTTREATY"), QStringLiteral("We do not accept this treaty.")},
|
||||
{QStringLiteral("FRNOTACCEPTDEMAND_STRONG"), QStringLiteral("We refuse your demand.")},
|
||||
{QStringLiteral("FRNOTACCEPTPRESENT"), QStringLiteral("We decline your gift.")},
|
||||
{QStringLiteral("FRBYE"), QStringLiteral("Farewell.")},
|
||||
{QStringLiteral("FRNOTACCEPTOFFER"), QStringLiteral("We do not accept this offer.")},
|
||||
{QStringLiteral("FRNEWNATION"), QStringLiteral("We have contact to #n now.")},
|
||||
{QStringLiteral("SHIPBUILT"), QStringLiteral("#N have completed a part of their transstellar colony ship.")},
|
||||
{QStringLiteral("SHIPBITRADE1"), QStringLiteral("#S and")},
|
||||
{QStringLiteral("SHIPBITRADE2"), QStringLiteral("#s are exchanging colony ship parts.")},
|
||||
{QStringLiteral("SHIPUNITRADE1"), QStringLiteral("#N receive")},
|
||||
{QStringLiteral("SHIPUNITRADE2"), QStringLiteral("colony ship parts from #s.")},
|
||||
{QStringLiteral("SHIPCAPTURE1"), QStringLiteral("#N take control of the")},
|
||||
{QStringLiteral("SHIPCAPTURE2"), QStringLiteral("#a colony ship!")},
|
||||
{QStringLiteral("SHIPDESTROYED"), QStringLiteral("#N lost control of their colony ship.")},
|
||||
{QStringLiteral("FRPEACE"), QStringLiteral("we propose a peace treaty")},
|
||||
{QStringLiteral("FRFRIENDLY"), QStringLiteral("we propose friendly relations")},
|
||||
{QStringLiteral("FRALLIANCE"), QStringLiteral("we propose an alliance")},
|
||||
{QStringLiteral("FRDEMAND_STRONG"), QStringLiteral("we demand %1")},
|
||||
{QStringLiteral("FRPRESENT"), QStringLiteral("we offer you %1 as a gift")},
|
||||
{QStringLiteral("FRSTART_NOTREATY"), QStringLiteral("Greetings.")},
|
||||
{QStringLiteral("FRSTART_PEACE"), QStringLiteral("Greetings, friend.")},
|
||||
{QStringLiteral("WONDEROWNER"), QStringLiteral("built by the #A")},
|
||||
{QStringLiteral("GENMODEL"), QStringLiteral("Model #%1")},
|
||||
{QStringLiteral("OWNED"), QStringLiteral("%1 (owned)")},
|
||||
};
|
||||
const auto it = table.constFind(item);
|
||||
return tString(it != table.constEnd() ? it.value() : item);
|
||||
return tString(phraseToQtFormat(phrases.lookup(item)));
|
||||
}
|
||||
|
||||
void Tribe::initAge(int age)
|
||||
|
||||
@@ -104,9 +104,8 @@ public:
|
||||
QString getCityName(int i) const;
|
||||
void setCityName(int i, const QString &newName);
|
||||
QString tString(QString templateText) const;
|
||||
// Phrases/Phrases2 (StringTables.pas) aren't ported; falls back to a
|
||||
// plain-English template for the one phrase this file needs (city-name
|
||||
// generation past the end of a tribe's scripted name list).
|
||||
// TString(Phrases[item]) with the %d/%s placeholders turned into
|
||||
// QString::arg() style %1, %2, ...
|
||||
QString tPhrase(const QString &item) const;
|
||||
void setModelPicture(const ModelPictureInfo &info, bool isNew);
|
||||
bool chooseModelPicture(ModelPictureInfo &picture, int code, int turn, bool forceNew);
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
// This file is part of c-evo-evo.
|
||||
//
|
||||
// This software is governed by the CeCILL license under French law and
|
||||
// abiding by the rules of distribution of free software. You can use,
|
||||
// modify and/or redistribute the software under the terms of the CeCILL
|
||||
// license as circulated by CEA, CNRS and INRIA at the following URL
|
||||
// "http://www.cecill.info".
|
||||
//
|
||||
// As a counterpart to the access to the source code and rights to copy,
|
||||
// modify and redistribute granted by the license, users are provided only
|
||||
// with a limited warranty and the software's author, the holder of the
|
||||
// economic rights, and the successive licensors have only limited
|
||||
// liability.
|
||||
//
|
||||
// In this respect, the user's attention is drawn to the risks associated
|
||||
// with loading, using, modifying and/or developing or reproducing the
|
||||
// software by the user in light of its specific status of free software,
|
||||
// that may mean that it is complicated to manipulate, and that also
|
||||
// therefore means that it is reserved for developers and experienced
|
||||
// professionals having in-depth computer knowledge. Users are therefore
|
||||
// encouraged to load and test the software's suitability as regards their
|
||||
// requirements in conditions enabling the security of their systems and/or
|
||||
// data to be ensured and, more generally, to use and operate it in the
|
||||
// same conditions as regards security.
|
||||
//
|
||||
// The fact that you are presently reading this means that you have had
|
||||
// knowledge of the CeCILL license and that you accept its terms.
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "./ui_mainwindow.h"
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
, ui(new Ui::MainWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
// This file is part of c-evo-evo.
|
||||
//
|
||||
// This software is governed by the CeCILL license under French law and
|
||||
// abiding by the rules of distribution of free software. You can use,
|
||||
// modify and/or redistribute the software under the terms of the CeCILL
|
||||
// license as circulated by CEA, CNRS and INRIA at the following URL
|
||||
// "http://www.cecill.info".
|
||||
//
|
||||
// As a counterpart to the access to the source code and rights to copy,
|
||||
// modify and redistribute granted by the license, users are provided only
|
||||
// with a limited warranty and the software's author, the holder of the
|
||||
// economic rights, and the successive licensors have only limited
|
||||
// liability.
|
||||
//
|
||||
// In this respect, the user's attention is drawn to the risks associated
|
||||
// with loading, using, modifying and/or developing or reproducing the
|
||||
// software by the user in light of its specific status of free software,
|
||||
// that may mean that it is complicated to manipulate, and that also
|
||||
// therefore means that it is reserved for developers and experienced
|
||||
// professionals having in-depth computer knowledge. Users are therefore
|
||||
// encouraged to load and test the software's suitability as regards their
|
||||
// requirements in conditions enabling the security of their systems and/or
|
||||
// data to be ensured and, more generally, to use and operate it in the
|
||||
// same conditions as regards security.
|
||||
//
|
||||
// The fact that you are presently reading this means that you have had
|
||||
// knowledge of the CeCILL license and that you accept its terms.
|
||||
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
Vendored
-60
@@ -1,60 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
This file is part of c-evo-evo.
|
||||
|
||||
This software is governed by the CeCILL license under French law and
|
||||
abiding by the rules of distribution of free software. You can use,
|
||||
modify and/or redistribute the software under the terms of the CeCILL
|
||||
license as circulated by CEA, CNRS and INRIA at the following URL
|
||||
"http://www.cecill.info".
|
||||
|
||||
As a counterpart to the access to the source code and rights to copy,
|
||||
modify and redistribute granted by the license, users are provided only
|
||||
with a limited warranty and the software's author, the holder of the
|
||||
economic rights, and the successive licensors have only limited
|
||||
liability.
|
||||
|
||||
In this respect, the user's attention is drawn to the risks associated
|
||||
with loading, using, modifying and/or developing or reproducing the
|
||||
software by the user in light of its specific status of free software,
|
||||
that may mean that it is complicated to manipulate, and that also
|
||||
therefore means that it is reserved for developers and experienced
|
||||
professionals having in-depth computer knowledge. Users are therefore
|
||||
encouraged to load and test the software's suitability as regards their
|
||||
requirements in conditions enabling the security of their systems and/or
|
||||
data to be ensured and, more generally, to use and operate it in the
|
||||
same conditions as regards security.
|
||||
|
||||
The fact that you are presently reading this means that you have had
|
||||
knowledge of the CeCILL license and that you accept its terms.
|
||||
-->
|
||||
<ui version="4.0">
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>600</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>MainWindow</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget"/>
|
||||
<widget class="QMenuBar" name="menubar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
@@ -26,7 +26,7 @@
|
||||
// The fact that you are presently reading this means that you have had
|
||||
// knowledge of the CeCILL license and that you accept its terms.
|
||||
|
||||
#include "game/mainwindow.h"
|
||||
#include "game/Global.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QLocale>
|
||||
@@ -35,6 +35,7 @@
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
Cevo::loadAssets();
|
||||
|
||||
QTranslator translator;
|
||||
const QStringList uiLanguages = QLocale::system().uiLanguages();
|
||||
@@ -45,7 +46,5 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
}
|
||||
}
|
||||
MainWindow w;
|
||||
w.show();
|
||||
return a.exec();
|
||||
}
|
||||
@@ -33,6 +33,10 @@
|
||||
# load it from CMAKE_INSTALL_RESOURCEDIR (see CEVO_RESOURCE_DIR, defined for
|
||||
# the c-evo-evo target in the top-level CMakeLists.txt).
|
||||
|
||||
install(DIRECTORY Graphics Music Sounds Localization
|
||||
install(DIRECTORY Graphics Music Sounds Localization Tribes
|
||||
DESTINATION ${CMAKE_INSTALL_RESOURCEDIR}
|
||||
)
|
||||
# English (default) texts; localized ones live in Localization/<locale>/.
|
||||
install(FILES Language.txt Language2.txt Fonts.txt
|
||||
DESTINATION ${CMAKE_INSTALL_RESOURCEDIR}
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
#NORMAL
|
||||
Times New Roman, 18
|
||||
|
||||
#SMALL
|
||||
Times New Roman, 15B
|
||||
|
||||
#TINY
|
||||
Times New Roman, 13B
|
||||
|
||||
#CAPTION
|
||||
Times New Roman, 21
|
||||
|
||||
#BUTTON
|
||||
Times New Roman, 17B
|
||||
@@ -0,0 +1,970 @@
|
||||
#GAME Book %d
|
||||
#MAP Map %d
|
||||
#BC %d BC
|
||||
#AD %d AD
|
||||
#SHARE %d/%d
|
||||
#SHORTNAME #S
|
||||
#OWNED #A %s
|
||||
#GENCITY #S %d
|
||||
#GENMODEL #A Model %d
|
||||
|
||||
'City Screen Text
|
||||
#HAPPINESS Morale
|
||||
#CONTROL Control
|
||||
#FAITH Faith
|
||||
#UNREST Unrest
|
||||
#HAPPINESSDEMAND Population
|
||||
#HAPPINESSPLUS Surplus
|
||||
#STORAGE Storage
|
||||
#FOOD Food
|
||||
#DEMAND Population
|
||||
#SURPLUS Surplus
|
||||
#LACK Lack
|
||||
#MATERIAL Material
|
||||
#PROD Production
|
||||
#POLL Pollution
|
||||
#SUPPORT Units
|
||||
#PROFIT Profit
|
||||
#TRADE Trade
|
||||
#CORR Corruption
|
||||
#SCIENCE Research
|
||||
#TAX Tax
|
||||
#LUX Wealth
|
||||
#DUMP Dump
|
||||
#SUPUNITS Supported Units
|
||||
|
||||
'Class Screen Text
|
||||
#UNITOWNER #A
|
||||
#UNITSPEED Speed
|
||||
#UNITSTRENGTH Strength
|
||||
#UNITTRANSPORT Transport
|
||||
#UNITCOST Cost
|
||||
#UNITBUILT Built
|
||||
#UNITINTRO Introduced
|
||||
#UNITADOPT Adopted
|
||||
#UNITLOST Lost in combat
|
||||
#UNITDESTROYED Defeated
|
||||
#UNITAVAILABLE Available
|
||||
#UNITINPROD In production
|
||||
#UNITKNOWN Known active
|
||||
#UNITSPECIAL Special Unit
|
||||
|
||||
'Diplomacy Screen Text
|
||||
#FRSTATGOV Government: %s
|
||||
#FRSTATPOP Population: %d
|
||||
#FRSTATTER Territory: %d
|
||||
#FRSTATTECH Technology: %d%%
|
||||
#FRSTATEXP Exploration: %d%%
|
||||
#FRLASTCONTACT Last visit:
|
||||
#FRNOCONTACT No contact, just legends
|
||||
#FRNOVISIT No visit yet
|
||||
#FROLDCIVILREP (Old dossier dating from %s)
|
||||
#FRNOCIVILREP (No dossier available)
|
||||
#FREXTINCT Extinct in
|
||||
#FRTREATY Relation:
|
||||
#FRAND ,
|
||||
#FRCREDIBILITY (%d%% credibility)
|
||||
#FRTREASURY Treasury: %d%%c
|
||||
#FRRELATIONS Foreign relations:
|
||||
|
||||
'Other Dialog Text
|
||||
#PRESENT Units present
|
||||
#SHOWSTRENGTH Strength: %d/%d
|
||||
#RIVER River
|
||||
#INITUNIT Military Research
|
||||
#TECHFOCUS Focus: %s
|
||||
#NEXUS Stop Research
|
||||
#SCIENCEREPORT_EXTINCT %s (fallen)
|
||||
#MODELDRAFT New unit design (%s)
|
||||
#TAXRATE Tax Rate
|
||||
#MONEYGAINPOS +%d%%c
|
||||
#MONEYGAINNEG %d%%c
|
||||
#TECHGAIN +%d%%r
|
||||
#TECHWAIT %s (%d Turns)
|
||||
#COSTDIFF1 Difficulty Level: -25%
|
||||
#COSTDIFF2 Difficulty Level: ±0
|
||||
#COSTDIFF3 Difficulty Level: +25%
|
||||
#NATEXISTS (%s)
|
||||
#CONSCRIPTS Conscript %s
|
||||
#WONDEROF %s of %s
|
||||
#WONDEROWNER (#A)
|
||||
#EXPIRED (expired)
|
||||
#DESTROYED (destroyed)
|
||||
#NOWONDER No wonders built yet
|
||||
#BUILDORDER Building order for
|
||||
#BUILDREST Not scheduled:
|
||||
#ENHANCE %s: %s MP
|
||||
#SHIPCOMP Components
|
||||
#SHIPPOW Power
|
||||
#SHIPHAB Habitation
|
||||
#SEARCH Search
|
||||
#RANMAP Random Map
|
||||
#TWOTERRAINS %s / %s
|
||||
#MPMAP Multi Player
|
||||
#NOGAMES No books yet
|
||||
#AIT_ROUND Round %d,
|
||||
|
||||
'Dialog Titles
|
||||
#TITLE_TRIBE Choose Your Tribe
|
||||
#TITLE_GOV Choose Government
|
||||
#TITLE_TECHSELECT What Do We Research Now?
|
||||
#TITLE_FARTECH Set Focus of Research
|
||||
#TITLE_CITIES #A Cities
|
||||
#TITLE_EVENTS City Events in %s
|
||||
#TITLE_MODELS #A Units
|
||||
#TITLE_DIAGRAMS Charts
|
||||
#TITLE_SHIPS Colony Ships
|
||||
#TITLE_SHIP #A Colony Ship
|
||||
#TITLE_EMODELS Foreign Unit Designs
|
||||
#TITLE_RATES Economy
|
||||
#TITLE_DRAFT Military Research
|
||||
#TITLE_WONDERS The Wonders of the World
|
||||
#TITLE_ENHANCE Terrain Enhancement
|
||||
#TITLE_CITYTYPES City Types
|
||||
#TITLE_PROJECT What shall we build here?
|
||||
#TITLE_CITYNAME City Name
|
||||
#TITLE_MODELNAME Unit Design Name
|
||||
#TITLE_ERROR Error
|
||||
#TITLE_SCIENCE Research Report
|
||||
#TITLE_OFFERDELIVER Add Offer
|
||||
#TITLE_OFFERCOST Add Demand
|
||||
#TITLE_NUMBER Number
|
||||
#TITLE_AMOUNT Amount
|
||||
#TITLE_CHOOSETECH Choose Advance
|
||||
#TITLE_CHOOSEMODEL Choose Unit Design
|
||||
#TITLE_CHOOSESHIPPART Choose Kind
|
||||
#TITLE_CHOOSECITY Choose City
|
||||
#TITLE_BOOKNAME Name of the Book
|
||||
#TITLE_MAPNAME Name of the Map
|
||||
#TITLE_NATION #N
|
||||
#TITLE_SPYMISSION Covert Operation
|
||||
#TITLE_SUICIDE Suicide Mission
|
||||
#TITLE_MESSAGE Message
|
||||
#FRMILREP Military Report
|
||||
|
||||
'Message Text
|
||||
#NOALTAI No other AIs installed.\Download alternative AI modules from the C-evo homepage or build your own.
|
||||
#REVOLUTION Are we going to leave the #a empire to anarchy so that we can establish a new form of administration after the chaos is overcome?
|
||||
#AUTOREVOLUTION There is a new government form open to us:\%s\\In order to
|
||||
change to this form of administration, we'd have to depose the present
|
||||
government and get over a period of anarchy. Start the Revolution?
|
||||
#NOALTGOVS A revolution will let us change the form of our government. Currently, this doesn't make sense because we have not learned yet about other government forms than despotism.
|
||||
#AGE1 = %s =\Our ancestor's knowledge is incomplete and flawed. Many questions can't be
|
||||
answered correctly from the library. We parted with dogmatism, and we will evolve our view
|
||||
of the world by precisely observing things. We call it science.
|
||||
#AGE2 = %s =\After the achievement of mass production, for the first time in
|
||||
history wealth is no more the privilege of a minority. The consequences reach
|
||||
far. The mass market allows investments of a previously unknown dimension,
|
||||
leading into a new technological era.
|
||||
#AGE3 = %s =\An old human dream might turn to reality. We have now the
|
||||
technology to start the colonization of remote solar systems. Studies indicate
|
||||
that special metals will be the key to this gigantic project.
|
||||
#ENDTURN No units waiting for commands this turn.\End turn to continue with no action.
|
||||
#CREDUP Our credibility has risen to "%s".
|
||||
#CREDDOWN Our credibility has fallen to "%s".
|
||||
#CAPTURE #N are capturing the city of %s!
|
||||
#BOMBARD #N are bombarding the unprotected city of %s!
|
||||
#EXPEL Units have been expelled from #a territory.
|
||||
#DISPOSE %s\\Shall we rebuild this building?
|
||||
#SPDESTRUCTQUERY \(Note: We will lose control of our colony ship when we dismantle the space port!)
|
||||
#SELL %s\\Shall we sell this building?
|
||||
#LOSEMAT A complete change in project type means to start a new project. %d%%p will be sold for %d%%c.
|
||||
#LOSEMAT3 Changing the project will result in a loss of 1/3 of the material collected for the project. Continue?
|
||||
#DOUBLESTATEIMP %s\\This state improvement already exists in the city of %s. Shall we move it to this city and sell the former building when finished?
|
||||
#READY The project will be completed next turn.
|
||||
#NOMONEY We don't have enough money\to complete this project next turn.\(%d%%c needed, %d%%c available)
|
||||
#BUY Should we spend %d%%c to complete this project next turn?
|
||||
#EMIGRATE Emigration may cause the city's collapse. Shall we delay the completion of this unit until the city has enough population to subsist?
|
||||
#ADDTOMAXSIZE This city has reached its maximum size.
|
||||
#CITYMANAGEOFF Turn off automatic population management?
|
||||
#GLIDERLOST Our glider was lost at sea.
|
||||
#PLANELOST Our aircraft has run out of fuel.
|
||||
#DAMAGED_UTILIZE Utilizing a damaged unit has reduced benefit. Continue?
|
||||
#NOBB We lack the technology of building bridges across rivers.
|
||||
#NOCITY This type of terrain is not suitable for settlement. We should look for terrain that allows irrigation.
|
||||
#NOCAPTURER Civil units can not capture cities.
|
||||
#NOBOMBARDER Bombarding cities requires attack power.
|
||||
#ZOC This type of unit can not move within zones under foreign control.
|
||||
#FASTATTACK Attack with %d%% power?
|
||||
#NOTIMELOADGROUND This type of unit requires %s movement points to be loaded onto a transport or unloaded from one.
|
||||
#NOTIMELOADAIR An aircraft requires 100 movement points to be loaded onto a carrier or unloaded from one.
|
||||
#NOTIMEBOMBARD Bombarding a city requires 100 movement points.
|
||||
#NOTIMEEXPEL Expelling a unit requires 100 movement points.
|
||||
#NOROAD This unit can only move along roads and railroads.
|
||||
#NONAV This ship has no navigation capability.
|
||||
#NOTRANSPORT This ship has no transport capability.
|
||||
#FULLTRANSPORT This transport is fully loaded.
|
||||
#LOWFUEL This aircraft is now low on fuel. If it moves farther, it won't be able to return to a city or military base. Continue?
|
||||
#LOWFUEL_GLIDER This unit needs to return to the ground in the end of the turn. If it moves farther, it will be lost. Continue?
|
||||
#UNREST_FOREIGN %s\\This is #a territory. Moving there will increase unrest in the unit's home city. Continue anyway?
|
||||
#UNREST_NOTOWN %s\\Leaving #s will increase unrest in the unit's home city. Continue anyway?
|
||||
#NOATTACKER This is a civil unit which can not attack.
|
||||
#ATTACKSUB We can't locate this foreign submarine.
|
||||
#ATTACKSTEALTH We can't locate this foreign stealth plane.
|
||||
#PEACE_NOATTACK We signed a peace treaty with #n.
|
||||
#PEACE_NOMOVE We signed a peace treaty with #n. We are not allowed to enter their territory.
|
||||
#PEACE_NOWORK This is #a territory!\We are bound by a peace treaty.
|
||||
#NOFOREIGNINFO No new information could be found.
|
||||
#FOREIGNINFO Mission has gained us new information about:
|
||||
#DOSSIER_PREPARED The #a dossier is now availabe, including the #a charts and the current level of their scientific development.
|
||||
#VIOLATION Our forces are violating #a territory!\#N grant us time until %s to withdraw them.
|
||||
#EVIOLATION #N apologize for violating the peace treaty. They have agreed to withdraw their troops until %s.
|
||||
#WITHDRAW Our troops have been forced to withdraw from #a territory.
|
||||
#WONDERBUILT #N have completed one of the\wonders of the world:\%s
|
||||
#WONDERBUILTEXP A wonder has been built by another nation:\%s\\This is an ancient wonder which gives no benefits nowadays.
|
||||
#WONDERBUILTOWN We have completed one of the\wonders of the world:\%s
|
||||
#WONDERCAPT #N captured one of the\wonders of the world:\%s
|
||||
#WONDERCAPTOWN We have captured one of the\wonders of the world:\%s
|
||||
#WONDEREXP The effect of one of the wonders of the world has expired:\%s
|
||||
#WONDERDEST One of the wonders of the world has been destroyed:\%s
|
||||
#COLDWAR With the mutual threat of a nuclear war, the diplomatic positions of all parties have become entrenched. Negotiations are useless. The Cold War has began.
|
||||
#COLDWAREND The Cold War has ended.
|
||||
#SHIPBUILT #N have completed a part of their transstellar colony ship.
|
||||
#SHIPBITRADE1 #S and
|
||||
#SHIPBITRADE2 #s are exchanging colony ship parts.
|
||||
#SHIPUNITRADE1 #N receive
|
||||
#SHIPUNITRADE2 colony ship parts from #s.
|
||||
#SHIPCAPTURE1 #N take control of the
|
||||
#SHIPCAPTURE2 #a colony ship!
|
||||
#SHIPDESTROYED #N lost control of their colony ship.
|
||||
#LOWFUNDS Funds are running low. If we don't respond, we might be forced to sell city improvements.\Do you intend to continue anyway?
|
||||
#DISORDER %s will fall to civil disorder.\Do you intend to continue anyway?
|
||||
#DISORDER_UNREST %s will fall to civil disorder because of massive unrest.\Do you intend to continue anyway?
|
||||
#FAMINE %s is in danger of famine.\Do you intend to continue anyway?
|
||||
#FAMINE_TILES %s is in danger of famine. Too few fertile tiles are available to this city.\Do you intend to continue anyway?
|
||||
#FAMINE_UNREST %s is in danger of famine. Parts of the population had to be drafted for police service in order to get unrest under control. This weakening of the economy has now come to a degree that food production isn't sufficient anymore.\\Do you intend to continue anyway?
|
||||
#LOWSUPPORT %s does not produce enough material to support its units.\Do you intend to continue anyway?
|
||||
#LOWSUPPORT_TILES %s does not produce enough material to support its units. Too few productive tiles are available to this city.\Do you intend to continue anyway?
|
||||
#LOWSUPPORT_UNREST %s does not produce enough material to support its units. Parts of the population had to be drafted for police service in order to get unrest under control. This weakening of the economy has now come to a degree that material production isn't sufficient anymore.\\Do you intend to continue anyway?
|
||||
#RESIGN You're going to close this book.\Do you wish to save it?
|
||||
#ENDTOUR Do you wish to save this round as a book so that you can open it in Supervisor mode?
|
||||
#MODELAVAILABLE New units are ready for production.
|
||||
#RESEARCH_GENERAL We have researched %s!
|
||||
#GRLIB_GENERAL We have acquired %s from the Great Library!
|
||||
#ORACLEINCOME Income: %d%%c
|
||||
#NOSELLAGAIN %s\\A city can't sell or rebuild more than one building a turn.
|
||||
#OUTOFCONTROL %s\\This city is not under control yet.
|
||||
#NOCHANGEINANARCHY We are in anarchy, all city functions are paralysed.
|
||||
#EXTINCT = %s =\The empire of #n has fallen. Only legends will remind us of their great culture.
|
||||
#EXTINCTALL \\We are now the only nation in existence on earth.
|
||||
#GAMEOVER #N have lost all cities.\\GAME OVER.
|
||||
#TIMEUP The time is up.\Even though #n made it to considerable prosperity and great technology, and even though they maintained an important position among the nations of the world, they did not master the ultimate challenge of civilization.\\GAME OVER.
|
||||
#TIMEUPSUPER The time is up.\No nation managed to complete its colony ship.
|
||||
#SPACESHIP1 #N have launched their\transstellar colony ship.\
|
||||
#SPACESHIP2 The completion of this project has provided the proof of their superiority in every aspect of civilization.\\GAME OVER.
|
||||
#MYSPACESHIP After ages of poverty and crisis, ages of threats and bleeding military disputes, ages of radical change and incredible progress, we have finally made that old dream of mankind come true. Our ship has been launched for a world far in space to make it a new home for life.\\YOU WIN.
|
||||
#SHAREDWIN (Victory shared with: %s)
|
||||
#SHAREDWIN_CONCAT %s, %s
|
||||
#NOAI No AI installed!
|
||||
#FILENOTFOUND File "%s" was not found.
|
||||
#AIEXCEPTION Unhandled exception in AI module %s!
|
||||
#LOADERR This book is not compatible with this version of C-evo.
|
||||
#NOFILENAME The name of the book must be a valid filename. The '%s' character is not allowed.
|
||||
#DLLERROR Could not load %s.
|
||||
#AIERROR AI module %s was not found.
|
||||
#MISSDEACT Player %d terminated without valid deactivation.
|
||||
#CLIENTERROR Could not find client of %s.
|
||||
#LOADERROR This book contains an internal problem, and it may be impossible to continue playing with it.\\You can contribute to the quality of this game by sending the file to the developer.\Go to the bug reporting website now?
|
||||
#NOSTARTPOS This map has no starting positions defined. You can not play it.
|
||||
#TOOFEWTRIBES The number of competitors can not exceed the number of nations installed.
|
||||
#DELETEQUERY The book will be removed.
|
||||
#MAPDELETEQUERY The map will be removed.
|
||||
#TURN #N\%s
|
||||
#SUPERTURN Supervisor\%s
|
||||
#FRNEWNATION We have contact to #n now.
|
||||
#FRCONTACT An emissary of #n wishes to\speak to us. Will we receive him?
|
||||
#FRREJECTED #N did not receive our emissaries.
|
||||
#FRCANCELQUERY_PEACE Shall we declare war on them?
|
||||
#FRCANCELQUERY_FRIENDLY Shall we end our friendship with them?
|
||||
#FRCANCELQUERY_ALLIANCE Shall we cancel our alliance with them?
|
||||
#FRCANCELBYREJECT_PEACE #A emissary:\Our patience is exhausted.\Prepare for war!
|
||||
#FRCANCELBYREJECT_FRIENDLY #A emissary:\This is the end of our friendship!
|
||||
#FRCANCELBYREJECT_ALLIANCE #A emissary:\We cannot maintain an alliance with a nation
|
||||
that is not willing to cooperate. You leave us no choice but to cancel this pact.
|
||||
#FRMYALLIANCE1 #N have declared war on our allies,
|
||||
#FRMYALLIANCE2 #n. We are free to support the #a empire against this aggression.
|
||||
#FRENEMYALLIANCE #N have decided to support their allies against us. Our agreements with them are voided.
|
||||
#FRANARCHY The #a empire is in anarchy. Our emissaries didn't find a settled administration to speak to.
|
||||
#FRMYANARCHY We are in anarchy. Diplomatic activities require a settled administration.
|
||||
#FRCOLDWAR We are in the Cold War. There is no receptivity for negotiation.
|
||||
#MAX2WANTS You can't combine more than two wants in one proposal.
|
||||
#MAX2OFFERS You can't combine more than two offers in one proposal.
|
||||
#NOOFFER This proposal is invalid!
|
||||
#CANCELTREATYRUSH Cancelling more than one treaty with the same nation within 3 turns is not allowed.
|
||||
#NOSPACEPORT We do not have a space port, so we'd lose all colony ship parts that we receive. Continue anyway?
|
||||
#SUICIDE Shall we send these\men to death?
|
||||
#RATES What shall we orient\our economy towards?
|
||||
#NORATES Statue of Liberty\is active.
|
||||
|
||||
'Diplomatic Statements, do not use '\'!
|
||||
#FRSTART_NOTREATY Listen to what #n are offering.
|
||||
#FRSTART_PEACE Kind greetings from #n, there are concerns to speak about.
|
||||
#FRCANCELTREATY_PEACE We declare war on you.
|
||||
#FRCANCELTREATY_FRIENDLY We're ending our friendship now.
|
||||
#FRCANCELTREATY_ALLIANCE We don't see a sense in our alliance anymore. Take this pact for cancelled.
|
||||
#FRNOTICE Don't think we will tolerate your capriciousness for ever more.
|
||||
#FRBREAK This debate is a waste of time. Maybe we'll get on better some day after you thought your position over.
|
||||
#FROFFER We offer\-%s\in exchange of\-%s
|
||||
#FRPRESENT We offer you a present:\-%s
|
||||
#FRDEMAND_STRONG Give us\-%s\or you'll have to face the consequences!
|
||||
#FRDONE Is there anything else you wish to speak about?
|
||||
#FRPEACE We have prepared a permanent peace treaty to end the aggression between our two peoples and to fix our mutual borders. Will you sign it?
|
||||
#FRFRIENDLY We have great respect for the #a culture and technology. Let us stay in friendly contact to learn more about each other.
|
||||
#FRALLIANCE We see great opportunities for cooperation between our two peoples. Will you join an alliance with us, that we may present a united front against our mutual enemies?
|
||||
#FRACCEPTTREATY We accept. Might this agreement usher in a new era of relationship between our peoples.
|
||||
#FRNOTACCEPTTREATY We have no interest in that at present.
|
||||
#FRACCEPTOFFER This seems a fair offer. We accept.
|
||||
#FRACCEPTPRESENT #N gratefully accept this present.
|
||||
#FRACCEPTDEMAND_STRONG For the sake of our good relations, we decided to comply with your wishes.
|
||||
#FRNOTACCEPTOFFER This suggestion doesn't seem advantageous to us.
|
||||
#FRNOTACCEPTPRESENT #N have no need for presents like this.
|
||||
#FRNOTACCEPTDEMAND_STRONG You are demanding too much.
|
||||
#FRDELCHOICE We are interested in\-%s\What can we offer in exchange?
|
||||
#FRCOSTCHOICE Is there something you could offer us in exchange of\-%s?
|
||||
#FRBYE Not at the moment, so may this discussion end here. Goodbye.
|
||||
#PRICE_CHOOSE A price of choice
|
||||
#PRICE_CIVIL A dossier about #n
|
||||
#PRICE_MIL Military information about #n
|
||||
#PRICE_MAP The #a world map
|
||||
#PRICE_SHIPCOMP %d Colony Ship Components
|
||||
#PRICE_SHIPPOW %d Power Modules
|
||||
#PRICE_SHIPHAB %d Habition Modules
|
||||
#PRICE_ALLTECH All #a scientific knowledge
|
||||
#PRICE_ALLMODEL All #a unit design papers
|
||||
#PRICE_CONCAT %s\-%s
|
||||
#PRICECAT_ALLTECH All advances
|
||||
#PRICECAT_ALLMODEL All unit designs
|
||||
|
||||
'Button Captions
|
||||
#BTN_OK OK
|
||||
#BTN_CANCEL Cancel
|
||||
#BTN_YES Yes
|
||||
#BTN_NO No
|
||||
#BTN_INFO Info
|
||||
#BTN_RESET Reset
|
||||
|
||||
'Button Tooltips
|
||||
#BTN_SELECT Select
|
||||
#BTN_PAGE Next Page
|
||||
#BTN_SUPPORT Show Support
|
||||
#BTN_IMPRS Improvements
|
||||
#BTN_CLASSES Units
|
||||
#BTN_WONDERS Wonders
|
||||
#BTN_BUY Buy
|
||||
#BTN_DELETE Delete
|
||||
#BTN_RENAME Rename
|
||||
#BTN_OBSOLETE Obsolete
|
||||
#BTN_NONOBSOLETE Production Allowed
|
||||
#BTN_ALLOWCONSCRIPTS Consripts Allowed
|
||||
#BTN_NOCONSCRIPTS No Consripts
|
||||
#BTN_ENDTURN End Turn!
|
||||
#BTN_SKIP Skip Showing Foreign Moves
|
||||
#BTN_NOAUTOMOVE Don't Continue Our Moves
|
||||
#BTN_STOP Stop
|
||||
#BTN_NEGO Back to Negotiation
|
||||
#BTN_DIALOG Contact this nation!
|
||||
#BTN_BREAK Break Negotiation
|
||||
#BTN_PASS Offer Nothing
|
||||
#BTN_CNTREATY Cancel Treaty
|
||||
#BTN_ACCEPT Accept Proposal
|
||||
#BTN_NOTICE Decision Noticed
|
||||
#BTN_REPLAY Replay
|
||||
#BTN_RENGAME Rename Book
|
||||
#BTN_DELGAME Remove Book
|
||||
#BTN_RENMAP Rename Map
|
||||
#BTN_DELMAP Remove Map
|
||||
#BTN_CONTENTS Contents
|
||||
#BTN_BACK Back
|
||||
#BTN_SEARCH Search
|
||||
#BTN_WANTPEACE Want peace
|
||||
#BTN_OFFERPEACE Offer peace
|
||||
#BTN_WANTFRIENDLY Want friendship
|
||||
#BTN_OFFERFRIENDLY Offer friendship
|
||||
#BTN_WANTALLIANCE Want alliance
|
||||
#BTN_OFFERALLIANCE Offer alliance
|
||||
#BTN_NEGOEARLIER Earlier Part
|
||||
#BTN_NEGOLATER Latter Part
|
||||
|
||||
'Morphing Menu Entries
|
||||
#SUPER Supervisor
|
||||
#HUMAN Local Player
|
||||
#AIT AI Tournament
|
||||
#RANDOMAI Pick random AIs
|
||||
#NOMOD (None)
|
||||
#BTN_FOUND Settle Down
|
||||
#BTN_ADD Add to City
|
||||
#BTN_SETHOME Support From Here
|
||||
#BTN_MOVEHOME Return to Nearest City
|
||||
#BTN_BUILDROAD Build Road
|
||||
#BTN_BUILDBRIDGE Build Bridge
|
||||
#BTN_BUILDRR Build Railroad
|
||||
#BTN_BUILDRRBRIDGE Build Railroad Bridge
|
||||
#BTN_CLEAR Clear Forest
|
||||
#BTN_DRAIN Drain Swamp
|
||||
#BTN_UNDESERT Change to Plains
|
||||
#FARTECH Set Focus
|
||||
#NOFARTECH No Focus
|
||||
#UTILIZE Utilize
|
||||
#INTEGRATE Integrate
|
||||
#NETWORK_SERVER Network Server
|
||||
#NETWORK_CLIENT Network Client
|
||||
|
||||
'Busy Messages
|
||||
#BUSY_START Creating the World...
|
||||
#BUSY_MOD Loading %s...
|
||||
#BUSY_MODLH Loading Graphics and Sounds...
|
||||
#BUSY_INIT Initializing AI...
|
||||
#BUSY_LOAD Loading Saved Data...
|
||||
|
||||
'Map Editor
|
||||
#MAP_START Starting Position
|
||||
#MAP_PREFSTART Preferred Starting Position
|
||||
#MAP_RANDOM Do you want to dismiss this map and replace it by an automatically generated random map?
|
||||
#MAP_FILL Do you want to dismiss this map and replace it by an automatically filled map?
|
||||
#MAP_CLOSE You're going to close this map.\Do you wish to save it?
|
||||
|
||||
#STARTCONTROLS
|
||||
Quit
|
||||
Start
|
||||
Open
|
||||
New Book
|
||||
Earlier Books
|
||||
World Size:
|
||||
Land Mass:
|
||||
Free Player Setup
|
||||
Year:
|
||||
Difficulty for %s
|
||||
End:
|
||||
Map
|
||||
Editor
|
||||
*
|
||||
Difficulty:
|
||||
Foreign Nations:
|
||||
Controlled By:
|
||||
|
||||
#AUTODIFF
|
||||
Beginner
|
||||
Easy
|
||||
Moderate
|
||||
Hard
|
||||
Insane
|
||||
|
||||
#CONTROLS
|
||||
Cancel Commands
|
||||
Close
|
||||
Economy and Tax
|
||||
Great Wall Coverage
|
||||
Bare Terrain
|
||||
Wonders of the World
|
||||
Manual
|
||||
Test
|
||||
Military Report
|
||||
View Log
|
||||
City Types
|
||||
Center
|
||||
Go On
|
||||
Unit Commands
|
||||
Unit Class Info
|
||||
Build Military Base
|
||||
Transform
|
||||
Clean up Pollution
|
||||
Pillage
|
||||
Build Fortress
|
||||
Charts
|
||||
Stay Here
|
||||
Build Canal
|
||||
Load to Transport
|
||||
Wait
|
||||
No Orders
|
||||
Show Location Codes
|
||||
Terrain Improvement
|
||||
Options
|
||||
Unit Movement
|
||||
*
|
||||
Wait at End of Turn
|
||||
Shade Unobserved Areas
|
||||
City Report Options
|
||||
City Names
|
||||
Borders
|
||||
City Report
|
||||
Research Report
|
||||
Enhance
|
||||
Terrain Enhancement
|
||||
Colony Ships
|
||||
Macro Management
|
||||
Build Irrigation
|
||||
Build Farmland
|
||||
Afforest
|
||||
Build Mine
|
||||
Create Unit
|
||||
Grid
|
||||
AI Debug Map
|
||||
Foreign Unit Designs
|
||||
Political Map
|
||||
Attacks and Captures Only
|
||||
Don't Show
|
||||
Jump 20 Turns
|
||||
Nations
|
||||
Manipulation
|
||||
Get All Advances
|
||||
Projects Complete Each Turn
|
||||
Research Complete Each Turn
|
||||
Cities Grow Each Turn
|
||||
See Everything
|
||||
Nations Know Each Other
|
||||
Run to End of Game
|
||||
Foreign Cities
|
||||
City Report List
|
||||
City Report Screens
|
||||
Names
|
||||
No Modern Resources Needed
|
||||
Recover
|
||||
Unload
|
||||
Random Map
|
||||
Disband
|
||||
Load to This Transport
|
||||
Enemy Movement
|
||||
Slow
|
||||
Fast
|
||||
Real Fast
|
||||
Slow
|
||||
Fast
|
||||
Sound
|
||||
Off
|
||||
On (Default Implementation)
|
||||
On (Alternative Implementation)
|
||||
Scrolling
|
||||
Slow
|
||||
Fast
|
||||
Off
|
||||
Open C-evo Website
|
||||
START REVOLUTION!
|
||||
Ally Movement
|
||||
Slow
|
||||
Fast
|
||||
Don't Show
|
||||
Patrols, Attacks and Captures Only
|
||||
Patrols, Attacks and Captures Only
|
||||
Tile Size
|
||||
Small
|
||||
Medium
|
||||
Big
|
||||
Previous Unit
|
||||
Next Unit
|
||||
Filled Map
|
||||
Music
|
||||
On
|
||||
Off
|
||||
|
||||
#ADVANCES
|
||||
Advanced Flight
|
||||
Amphibious Warfare
|
||||
Astronomy
|
||||
Atomic Theory
|
||||
Automobile
|
||||
Ballistics
|
||||
Banking
|
||||
Bridge Building
|
||||
Bronze Working
|
||||
Ceremonial Burial
|
||||
Chemistry
|
||||
Chivalry
|
||||
Composites
|
||||
Code of Laws
|
||||
Combined Arms
|
||||
Combustion Engine
|
||||
Communism
|
||||
Computers
|
||||
Conscription
|
||||
Construction
|
||||
The Corporation
|
||||
Space Flight
|
||||
Currency
|
||||
Democracy
|
||||
Economics
|
||||
Electricity
|
||||
Electronics
|
||||
Engineering
|
||||
Environmentalism
|
||||
The Wheel
|
||||
Explosives
|
||||
Flight
|
||||
Intelligence
|
||||
Gunpowder
|
||||
Horseback Riding
|
||||
Impulse Drive
|
||||
Industrialization
|
||||
Smart Weapons
|
||||
Invention
|
||||
Iron Working
|
||||
The Laser
|
||||
Nuclear Power
|
||||
Literature
|
||||
The Internet
|
||||
Magnetism
|
||||
Map Making
|
||||
Masonry
|
||||
Mass Production
|
||||
Mathematics
|
||||
Medicine
|
||||
Metallurgy
|
||||
Miniaturization
|
||||
Mobile Warfare
|
||||
Monarchy
|
||||
Mysticism
|
||||
Navigation
|
||||
Nuclear Fission
|
||||
Philosophy
|
||||
Physics
|
||||
Plastics
|
||||
Poetry
|
||||
Pottery
|
||||
Radio
|
||||
Recycling
|
||||
Refrigeration
|
||||
Monotheism
|
||||
The Republic
|
||||
Robotics
|
||||
Rocketry
|
||||
Railroad
|
||||
Sanitation
|
||||
Science
|
||||
Writing
|
||||
Seafaring
|
||||
Self-Contained Environment
|
||||
Stealth
|
||||
Steam Engine
|
||||
Steel
|
||||
Synthetic Food
|
||||
Tactics
|
||||
Theology
|
||||
Theory of Gravity
|
||||
Trade
|
||||
Transstellar Colonization
|
||||
University
|
||||
Advanced Rocketry
|
||||
Warrior Code
|
||||
Alphabet
|
||||
Polytheism
|
||||
Refining
|
||||
Computing Technology
|
||||
Nano Technology
|
||||
Material Technology
|
||||
Artificial Intelligence
|
||||
|
||||
#IMPROVEMENTS
|
||||
The Pyramids
|
||||
The Temple of Zeus
|
||||
The Hanging Gardens
|
||||
The Colossus
|
||||
The Lighthouse
|
||||
The Great Library
|
||||
The Oracle
|
||||
Sun Tzu's War Academy
|
||||
Leonardo's Workshop
|
||||
Magellan's Expedition
|
||||
Michelangelo's Chapel
|
||||
*
|
||||
Newton's College
|
||||
Bach's Cathedral
|
||||
*
|
||||
The Statue of Liberty
|
||||
The Eiffel Tower
|
||||
The Hoover Dam
|
||||
The Shinkansen Express
|
||||
The Manhattan Project
|
||||
MIR Space Station
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
Trade Goods
|
||||
Barracks
|
||||
Granary
|
||||
Temple
|
||||
Marketplace
|
||||
Library
|
||||
Courthouse
|
||||
City Walls
|
||||
Aqueduct
|
||||
Bank
|
||||
Cathedral
|
||||
University
|
||||
Harbor
|
||||
Theater
|
||||
Factory
|
||||
Manufacturing Plant
|
||||
Recycling Center
|
||||
Power Station
|
||||
Hydroelectric Dam
|
||||
Nuclear Plant
|
||||
Offshore Platform
|
||||
Town Hall
|
||||
Sewer System
|
||||
Supermarket
|
||||
Superhighways
|
||||
Research Lab
|
||||
SAM Missile Battery
|
||||
Coastal Fortress
|
||||
Airport
|
||||
Dockyard
|
||||
Palace
|
||||
Great Wall
|
||||
Colosseum
|
||||
Observatory
|
||||
Military Academy
|
||||
Command Bunker
|
||||
Algae Plant
|
||||
Stock Exchange
|
||||
Space Port
|
||||
Colony Ship Component
|
||||
Power Module
|
||||
Habitation Module
|
||||
|
||||
#FEATURES
|
||||
Weapons
|
||||
Armor
|
||||
Mobility
|
||||
Sea Transport
|
||||
Carrier
|
||||
Turbines
|
||||
Bombs
|
||||
Fuel
|
||||
Air Transport
|
||||
Navigation
|
||||
Radar / Sonar
|
||||
Submarine
|
||||
Artillery
|
||||
Alpine
|
||||
Supply Ship
|
||||
Overweight
|
||||
Air Defence
|
||||
Spy Plane
|
||||
Steam Power
|
||||
Nuclear Power
|
||||
Jet Engines
|
||||
Stealth
|
||||
Fanatic
|
||||
First Strike
|
||||
Power of Will
|
||||
Academy Training
|
||||
Line Production
|
||||
|
||||
#TERRAIN
|
||||
Ocean
|
||||
Coast
|
||||
Grassland
|
||||
Desert
|
||||
Prairie
|
||||
Tundra
|
||||
Arctic
|
||||
Swamp
|
||||
Jungle
|
||||
Forest
|
||||
Hills
|
||||
Mountains
|
||||
*
|
||||
Fish
|
||||
Plains
|
||||
Oasis
|
||||
Wheat
|
||||
Gold
|
||||
Ivory
|
||||
Peat
|
||||
Fruit
|
||||
Game
|
||||
Wine
|
||||
Iron
|
||||
*
|
||||
Manganese
|
||||
*
|
||||
Oil
|
||||
Bauxite
|
||||
Gas
|
||||
*
|
||||
*
|
||||
Ebony
|
||||
Mineral Water
|
||||
Coal
|
||||
Diamonds
|
||||
Dead Lands
|
||||
Cobalt
|
||||
Uranium
|
||||
Mercury
|
||||
|
||||
#DOMAIN
|
||||
Ground
|
||||
Naval
|
||||
Air
|
||||
|
||||
#EXPERIENCE
|
||||
Green
|
||||
Disciplined
|
||||
Hardened
|
||||
Veteran
|
||||
Elite
|
||||
|
||||
#UNITSTATUS
|
||||
Fortified
|
||||
Bomber armed
|
||||
Moving in mountains
|
||||
Conscripts
|
||||
Withdrawn
|
||||
*
|
||||
*
|
||||
*
|
||||
Loaded
|
||||
Causes unrest
|
||||
Stay here
|
||||
*
|
||||
Move to mark
|
||||
Enhance terrain
|
||||
Recover
|
||||
|
||||
#GOVERNMENT
|
||||
Anarchy
|
||||
Despotism
|
||||
Monarchy
|
||||
Republic
|
||||
Fundamentalism
|
||||
Communism
|
||||
Democracy
|
||||
Future Society
|
||||
|
||||
#TREATY
|
||||
No Treaty
|
||||
*
|
||||
Peace
|
||||
Friendship
|
||||
Alliance
|
||||
|
||||
#HAVETREATY
|
||||
Contact with #n
|
||||
*
|
||||
In peace with #n
|
||||
Friendship with #n
|
||||
Allied with #n
|
||||
|
||||
#CREDIBILITY
|
||||
Mendacious
|
||||
Unpredictable
|
||||
Isolationistic
|
||||
Respectable
|
||||
|
||||
#CITYEVENTS
|
||||
Civil disorder
|
||||
Production complete
|
||||
Population growth
|
||||
Population decrease
|
||||
Unit disbanded
|
||||
Improvement sold
|
||||
Production sabotaged
|
||||
Maximum size reached
|
||||
Pollution
|
||||
City under siege
|
||||
Wonder already exists
|
||||
Emigration delayed
|
||||
City founded
|
||||
Takeover complete
|
||||
Captured
|
||||
City type no longer valid
|
||||
|
||||
#CITYTYPE
|
||||
Common city
|
||||
Science city
|
||||
Industrial city
|
||||
Metropolis
|
||||
|
||||
#DIAGRAM
|
||||
Population
|
||||
Territory
|
||||
Military Power
|
||||
Technology
|
||||
Exploration
|
||||
Cultivation
|
||||
|
||||
#JOBRESULT
|
||||
*
|
||||
Road
|
||||
Railroad
|
||||
Clear Forest
|
||||
Irrigation
|
||||
Farmland
|
||||
Afforest
|
||||
Mine
|
||||
Canal
|
||||
Transform
|
||||
Fortress
|
||||
Clean Up
|
||||
Military Base
|
||||
Pillage
|
||||
Settle Down
|
||||
Bridge
|
||||
Railroad Bridge
|
||||
Clear
|
||||
Plains
|
||||
Drain
|
||||
|
||||
#ARMYLOST
|
||||
#A army destroyed.
|
||||
#A fleet destroyed.
|
||||
#A group destroyed.
|
||||
|
||||
#SPYMISSION
|
||||
Sabotage production
|
||||
Steal maps
|
||||
Collect third nation knowledge
|
||||
Prepare dossier
|
||||
Prepare military report
|
||||
|
||||
#WANT
|
||||
Want dossier
|
||||
Want military information
|
||||
Want world map
|
||||
*
|
||||
Want advance
|
||||
Want unit design
|
||||
Want payment
|
||||
*
|
||||
*
|
||||
*
|
||||
Want colony ship parts
|
||||
Let them offer something
|
||||
|
||||
#OFFER
|
||||
Offer dossier
|
||||
Offer military information
|
||||
Offer world map
|
||||
*
|
||||
Offer advance
|
||||
Offer unit design
|
||||
Offer payment
|
||||
*
|
||||
*
|
||||
*
|
||||
Offer colony ship parts
|
||||
Let them want something
|
||||
|
||||
#CITYMANAGETYPE
|
||||
Full Control
|
||||
Maximize\Research
|
||||
Hurry\Research
|
||||
Maximize\Growth
|
||||
Hurry\Production
|
||||
Maximize\Production
|
||||
|
||||
#SETTINGS
|
||||
Full screen
|
||||
Gamma
|
||||
Restart is needed to apply changes
|
||||
Primary
|
||||
Secondary
|
||||
Languages
|
||||
Key bindings
|
||||
Custom DPI
|
||||
DPI
|
||||
Music
|
||||
Volume
|
||||
@@ -0,0 +1,71 @@
|
||||
#BELONG #A
|
||||
|
||||
'Controls
|
||||
#SHIFTCLICK Shift+Click on item for info
|
||||
#MAPPROP %d%% Size, %d Players
|
||||
#MENU_ADVTREE Tree of Advances
|
||||
#MENU_VIEWPOINT Viewpoint
|
||||
#MENU_DEBUGMAPOFF Off
|
||||
#MENU_TELLAI Tell AI
|
||||
#BTN_MENU Main Menu
|
||||
#BTN_MANAGE Empire Management
|
||||
|
||||
'Tooltips
|
||||
#TIP_WORKING Citizens assigned to economy
|
||||
#TIP_CIVIL Citizens assigned to civil service
|
||||
#TIP_PRIMACY Primacy selector
|
||||
#TIP_PROJECT Currently producing
|
||||
#TIP_SUPUNITS Show supported units
|
||||
#TIP_TREASURY Treasury
|
||||
|
||||
'Advance Tree Legend
|
||||
#ADVTREE_UP0 Ground unit upgrade
|
||||
#ADVTREE_UP1 Naval unit upgrade
|
||||
#ADVTREE_UP2 Air unit upgrade
|
||||
#ADVTREE_GOV Enables government form
|
||||
#ADVTREE_OTHER Other effect
|
||||
|
||||
'Start Dialog
|
||||
#ACTIONHEADER_CONFIG Configuration
|
||||
#ACTION_CONFIG Change language, key bindings, audio
|
||||
#ACTIONHEADER_MANUAL Manual
|
||||
#ACTION_MANUAL Rules and user interface in detail
|
||||
#ACTIONHEADER_CREDITS Credits
|
||||
#ACTION_CREDITS See who contributed to this game
|
||||
#ACTIONHEADER_AIDEV AI Development
|
||||
#ACTION_AIDEV Learn how to code your own AI for this game
|
||||
#ACTIONHEADER_WEB On the web: %s
|
||||
|
||||
'Message Text
|
||||
#BUSY_DEINIT Deinitializing %s...
|
||||
#AGE0 = %s =\We built a permanent settlement in order to do farming, which is a much more efficient way to feed than hunting and gathering. Excess food has an effect largely unknown to our nomadic ancestors: growth.
|
||||
#DISPOSE2 %s\\Shall we rebuild this building for %d%%p?
|
||||
#SELL2 %s\\Shall we sell this building for %d%%c?
|
||||
#SHIP_UTILIZE Freight can't be utilized for colony ship production.
|
||||
|
||||
'City Events
|
||||
#CITYEVENT_ALLIMPSMADE All improvements made
|
||||
|
||||
'Diplomatic Statements, do not use '\'!
|
||||
#FRDEMAND_SOFT We shall be very pleased if you let us have\-%s
|
||||
#FRNOTACCEPTANYOFFER We are sorry, but nothing you could offer is of appropriate value.
|
||||
#FRNOTACCEPTANYWANT We see no value in your offer.
|
||||
|
||||
'help.txt additions
|
||||
#HELP_WONDERMORALE1 Additional effect: +2%m in this city (does not expire).
|
||||
#HELP_WONDERMORALE2 Additional effect: +2%m in this city.
|
||||
|
||||
'future use
|
||||
#BTN_MAPPROJECT City Projects
|
||||
#CITYPRIO Give top priority to this city
|
||||
|
||||
#DRAFTDOMAIN
|
||||
Ground Unit
|
||||
Naval Unit
|
||||
Air Unit
|
||||
|
||||
#AITSTAT
|
||||
No. of rounds colony ship was completed
|
||||
No. of rounds all other nations were erased
|
||||
No. of rounds own nation was erased
|
||||
Share of total calculation time
|
||||
@@ -77,6 +77,10 @@ GraphicSet *loadGraphicSet(const QString &name, bool transparency = true);
|
||||
|
||||
enum class FontType { Normal, Small, Tiny, Caption, Button, Count };
|
||||
|
||||
// ScreenTools.pas's LoadFonts(): fills UniFont[] from a Fonts.txt script
|
||||
// ("#SECTION" lines followed by "Name, <pixel height>[B][I]" lines).
|
||||
void loadFonts(const QString &scriptFileName);
|
||||
|
||||
// Fonts, the main background texture and the system sprite sheets are
|
||||
// populated by the application's asset-loading step (ScreenTools.pas's
|
||||
// UnitInit/LoadAssets in the original, not ported here); null/default until
|
||||
|
||||
@@ -42,10 +42,8 @@ public:
|
||||
Texture();
|
||||
|
||||
int age() const { return m_age; }
|
||||
// Updates the palette colors from Cevo::Colors; does not (re)load the
|
||||
// per-age background image, that stays an application-level concern
|
||||
// (Directories::getGraphicsDir() + image()->loadFromFile() is not
|
||||
// ported here). Call image().loadFromFile() explicitly afterwards.
|
||||
// Loads the age's background image ("Texture<age+1>.jpg" from
|
||||
// Cevo::graphicsDir) and updates the palette colors from Cevo::Colors.
|
||||
void setAge(int value);
|
||||
|
||||
int width() const { return m_image.width(); }
|
||||
|
||||
@@ -29,9 +29,11 @@
|
||||
#include "Cevo/CevoScreenTools.h"
|
||||
#include "Cevo/CevoGraphicSet.h"
|
||||
#include "Cevo/CevoTexture.h"
|
||||
#include "Dpi/DpiCommon.h"
|
||||
#include "Dpi/DpiPixelPointer.h"
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QFile>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
@@ -59,6 +61,48 @@ void drawBufferEnsureSize(int width, int height)
|
||||
drawBuffer.canvas().end();
|
||||
}
|
||||
|
||||
void loadFonts(const QString &scriptFileName)
|
||||
{
|
||||
QFile file(scriptFileName);
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
|
||||
return;
|
||||
FontType section = FontType::Normal;
|
||||
while (!file.atEnd()) {
|
||||
const QString line = QString::fromUtf8(file.readLine()).trimmed();
|
||||
if (line.isEmpty())
|
||||
continue;
|
||||
if (line.at(0) == QLatin1Char('#')) {
|
||||
if (line == QLatin1String("#SMALL"))
|
||||
section = FontType::Small;
|
||||
else if (line == QLatin1String("#TINY"))
|
||||
section = FontType::Tiny;
|
||||
else if (line == QLatin1String("#CAPTION"))
|
||||
section = FontType::Caption;
|
||||
else if (line == QLatin1String("#BUTTON"))
|
||||
section = FontType::Button;
|
||||
else
|
||||
section = FontType::Normal;
|
||||
continue;
|
||||
}
|
||||
const int comma = line.indexOf(QLatin1Char(','));
|
||||
if (comma <= 0)
|
||||
continue;
|
||||
Dpi::Font &font = UniFont[static_cast<std::size_t>(section)];
|
||||
font.setName(line.left(comma).trimmed());
|
||||
int size = 0;
|
||||
for (int i = comma + 1; i < line.length(); ++i) {
|
||||
const QChar c = line.at(i);
|
||||
if (c >= QLatin1Char('0') && c <= QLatin1Char('9'))
|
||||
size = size * 10 + c.digitValue();
|
||||
else if (c == QLatin1Char('B') || c == QLatin1Char('b'))
|
||||
font.setBold(true);
|
||||
else if (c == QLatin1Char('I') || c == QLatin1Char('i'))
|
||||
font.setItalic(true);
|
||||
}
|
||||
font.setHeight(Dpi::scaleToNative(size)); // the script gives pixel heights
|
||||
}
|
||||
}
|
||||
|
||||
QColor colorFromDelphi(int value)
|
||||
{
|
||||
return QColor(value & 0xFF, (value >> 8) & 0xFF, (value >> 16) & 0xFF);
|
||||
|
||||
@@ -38,6 +38,9 @@ void Texture::setAge(int value)
|
||||
if (m_age == value)
|
||||
return;
|
||||
m_age = value;
|
||||
if (!graphicsDir.isEmpty())
|
||||
m_image.loadFromFile(graphicsDir + QStringLiteral("/Texture") + QString::number(m_age + 1) +
|
||||
QStringLiteral(".jpg"));
|
||||
if (!Colors)
|
||||
return;
|
||||
QImage &palette = Colors->image();
|
||||
|
||||
Reference in new issue
Block a user