diff --git a/src/tiled/abstractobjecttool.cpp b/src/tiled/abstractobjecttool.cpp index f7ae64211d..5dd62adfb6 100644 --- a/src/tiled/abstractobjecttool.cpp +++ b/src/tiled/abstractobjecttool.cpp @@ -132,7 +132,7 @@ void AbstractObjectTool::mouseMoved(const QPointF &pos, const QPointF tilePosF = mapDocument()->renderer()->screenToTileCoords(offsetPos); const int x = qFloor(tilePosF.x()); const int y = qFloor(tilePosF.y()); - setStatusInfo(QString(QLatin1String("%1, %2 (%3, %4)")).arg(x).arg(y).arg(pixelPos.x()).arg(pixelPos.y())); + setStatusInfo(QString(QLatin1String("%1, %2 (%3, %4) %5 ")).arg(x).arg(y).arg(pixelPos.x()).arg(pixelPos.y()).arg(mToolInfo)); } void AbstractObjectTool::mousePressed(QGraphicsSceneMouseEvent *event) diff --git a/src/tiled/abstractobjecttool.h b/src/tiled/abstractobjecttool.h index 5970962257..e38635f60a 100644 --- a/src/tiled/abstractobjecttool.h +++ b/src/tiled/abstractobjecttool.h @@ -62,7 +62,7 @@ class AbstractObjectTool : public AbstractTool * an object group. */ void updateEnabledState() override; - + QString mToolInfo; MapScene *mapScene() const { return mMapScene; } ObjectGroup *currentObjectGroup() const; QList mapObjectsAt(const QPointF &pos) const; diff --git a/src/tiled/createellipseobjecttool.cpp b/src/tiled/createellipseobjecttool.cpp index 33c06e080b..014591b5bd 100644 --- a/src/tiled/createellipseobjecttool.cpp +++ b/src/tiled/createellipseobjecttool.cpp @@ -33,6 +33,7 @@ CreateEllipseObjectTool::CreateEllipseObjectTool(QObject *parent) icon.addFile(QLatin1String(":images/48x48/insert-ellipse.png")); setIcon(icon); Utils::setThemeIcon(this, "insert-ellipse"); + mToolInfo = tr("Place an ellipse by clicking-and-dragging in any direction. Holding Shift makes it circle and holding Ctrl snaps its size to the tile size."); languageChanged(); } diff --git a/src/tiled/createpointobjecttool.cpp b/src/tiled/createpointobjecttool.cpp index fe7ecf0b62..163d1933b2 100644 --- a/src/tiled/createpointobjecttool.cpp +++ b/src/tiled/createpointobjecttool.cpp @@ -37,6 +37,7 @@ CreatePointObjectTool::CreatePointObjectTool(QObject *parent) icon.addFile(QLatin1String(":images/48x48/insert-point.png")); setIcon(icon); Utils::setThemeIcon(this, "insert-point"); + mToolInfo = tr("Click on the map to position a point object."); languageChanged(); } diff --git a/src/tiled/createpolygonobjecttool.cpp b/src/tiled/createpolygonobjecttool.cpp index c09fccac8d..52926c5107 100644 --- a/src/tiled/createpolygonobjecttool.cpp +++ b/src/tiled/createpolygonobjecttool.cpp @@ -63,6 +63,11 @@ CreatePolygonObjectTool::CreatePolygonObjectTool(QObject *parent) icon.addFile(QLatin1String(":images/48x48/insert-polygon.png")); setIcon(icon); + mToolInfo = tr("First Click determines the location of object and first point of polygon. Right Click or press Enter to finish creating polygon. press Escape to cancel creation of polygon."); + + + mToolInfo = tr("First Click determines the location of object and first point of polygon. Right Click or press Enter to finish creating polygon. press Escape to cancel creation of polygon."); + languageChanged(); } diff --git a/src/tiled/createrectangleobjecttool.cpp b/src/tiled/createrectangleobjecttool.cpp index 26d7812aac..06e30f0af5 100644 --- a/src/tiled/createrectangleobjecttool.cpp +++ b/src/tiled/createrectangleobjecttool.cpp @@ -33,6 +33,7 @@ CreateRectangleObjectTool::CreateRectangleObjectTool(QObject *parent) icon.addFile(QLatin1String(":images/48x48/insert-rectangle.png")); setIcon(icon); Utils::setThemeIcon(this, "insert-rectangle"); + mToolInfo = tr("Place a rectangle by clicking-and-dragging in any direction. Holding Shift makes it square and holding Ctrl snaps its size to the tile size."); languageChanged(); } diff --git a/src/tiled/createtextobjecttool.cpp b/src/tiled/createtextobjecttool.cpp index 9292707bf1..3f90f46214 100644 --- a/src/tiled/createtextobjecttool.cpp +++ b/src/tiled/createtextobjecttool.cpp @@ -37,6 +37,7 @@ CreateTextObjectTool::CreateTextObjectTool(QObject *parent) icon.addFile(QLatin1String(":images/48x48/insert-text.png")); setIcon(icon); Utils::setThemeIcon(this, "insert-text"); + mToolInfo = tr("Click anywhere on the map to insert text. You can also hold Left mouse button to see default text while placing it on the map, release Left mouse button to place text on the map."); languageChanged(); } diff --git a/src/tiled/createtileobjecttool.cpp b/src/tiled/createtileobjecttool.cpp index 3708c53dab..52bfcb11f1 100644 --- a/src/tiled/createtileobjecttool.cpp +++ b/src/tiled/createtileobjecttool.cpp @@ -38,6 +38,7 @@ CreateTileObjectTool::CreateTileObjectTool(QObject *parent) icon.addFile(QLatin1String(":images/48x48/insert-image.png")); setIcon(icon); Utils::setThemeIcon(this, "insert-image"); + mToolInfo = tr("First select the tile to place in the Tilesets view. Hold Left mouse button on the map to move the object and release it to place object. Holding Ctrl snaps the object to grid."); languageChanged(); } diff --git a/src/tiled/editpolygontool.cpp b/src/tiled/editpolygontool.cpp index fb497a24ac..72f8b400e0 100644 --- a/src/tiled/editpolygontool.cpp +++ b/src/tiled/editpolygontool.cpp @@ -66,6 +66,7 @@ EditPolygonTool::EditPolygonTool(QObject *parent) , mClickedObject(nullptr) , mMode(NoMode) { + mToolInfo = tr("Click on a node to select it, hold Shift to select multiple nodes and holding Alt forces moving current selection."); } EditPolygonTool::~EditPolygonTool()