mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-02 00:10:22 +02:00
Added translatable strings for roads & rivers, for use in editor
This commit is contained in:
parent
4f3ea0d1d9
commit
c6d62c6297
@ -2,6 +2,7 @@
|
||||
"waterRiver":
|
||||
{
|
||||
"index": 1,
|
||||
"text" : "Water river",
|
||||
"shortIdentifier": "rw", //must be 2 characters
|
||||
"tilesFilename": "clrrvr",
|
||||
"delta": "clrdelt"
|
||||
@ -9,6 +10,7 @@
|
||||
"iceRiver":
|
||||
{
|
||||
"index": 2,
|
||||
"text" : "Ice river",
|
||||
"shortIdentifier": "ri",
|
||||
"tilesFilename": "icyrvr",
|
||||
"delta": "icedelt"
|
||||
@ -16,6 +18,7 @@
|
||||
"mudRiver":
|
||||
{
|
||||
"index": 3,
|
||||
"text" : "Mud river",
|
||||
"shortIdentifier": "rm",
|
||||
"tilesFilename": "mudrvr",
|
||||
"delta": "muddelt"
|
||||
@ -23,6 +26,7 @@
|
||||
"lavaRiver":
|
||||
{
|
||||
"index": 4,
|
||||
"text" : "Lava river",
|
||||
"shortIdentifier": "rl",
|
||||
"tilesFilename": "lavrvr",
|
||||
"delta": "lavdelt"
|
||||
|
@ -2,6 +2,7 @@
|
||||
"dirtRoad":
|
||||
{
|
||||
"index": 1,
|
||||
"text" : "Dirt road",
|
||||
"shortIdentifier": "pd", //must be 2 characters
|
||||
"tilesFilename": "dirtrd",
|
||||
"moveCost": 75
|
||||
@ -9,6 +10,7 @@
|
||||
"gravelRoad":
|
||||
{
|
||||
"index": 2,
|
||||
"text" : "Gravel road",
|
||||
"shortIdentifier": "pg",
|
||||
"tilesFilename": "gravrd",
|
||||
"moveCost": 65
|
||||
@ -16,6 +18,7 @@
|
||||
"cobblestoneRoad":
|
||||
{
|
||||
"index": 3,
|
||||
"text" : "Cobblestone road",
|
||||
"shortIdentifier": "pc",
|
||||
"tilesFilename": "cobbrd",
|
||||
"moveCost": 50
|
||||
|
@ -557,7 +557,7 @@ void MainWindow::loadObjectsTree()
|
||||
//adding roads
|
||||
for(auto & road : VLC->roadTypeHandler->objects)
|
||||
{
|
||||
QPushButton *b = new QPushButton(QString::fromStdString(road->tilesFilename));
|
||||
QPushButton *b = new QPushButton(QString::fromStdString(road->getNameTranslated()));
|
||||
ui->roadLayout->addWidget(b);
|
||||
connect(b, &QPushButton::clicked, this, [this, road]{ roadOrRiverButtonClicked(road->getIndex(), true); });
|
||||
}
|
||||
@ -566,7 +566,7 @@ void MainWindow::loadObjectsTree()
|
||||
//adding rivers
|
||||
for(auto & river : VLC->riverTypeHandler->objects)
|
||||
{
|
||||
QPushButton *b = new QPushButton(QString::fromStdString(river->tilesFilename));
|
||||
QPushButton *b = new QPushButton(QString::fromStdString(river->getNameTranslated()));
|
||||
ui->riverLayout->addWidget(b);
|
||||
connect(b, &QPushButton::clicked, this, [this, river]{ roadOrRiverButtonClicked(river->getIndex(), false); });
|
||||
}
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <QGraphicsScene>
|
||||
#include <QStandardItemModel>
|
||||
#include "mapcontroller.h"
|
||||
//#include "../lib/TerrainHandler.h"
|
||||
#include "resourceExtractor/ResourceConverter.h"
|
||||
|
||||
class ObjectBrowser;
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "maphandler.h"
|
||||
#include "mapview.h"
|
||||
#include "../lib/mapping/CMap.h"
|
||||
//#include "../lib/TerrainHandler.h"
|
||||
|
||||
class MainWindow;
|
||||
class MapController
|
||||
|
Loading…
Reference in New Issue
Block a user