Skip to content
Branch: master
Commits on Oct 18, 2019
  1. Scripting: Removed the deprecated startup.js loading

    bjorn committed Oct 18, 2019
    To make it easier to install single-file extensions, such files can now
    also be placed directly in the "extensions" directory, rather than
    needing to be placed in a sub-directory.
    Also made some documentation updates.
Commits on Oct 17, 2019
  1. Fixed potential crash in Property editor

    bjorn committed Oct 17, 2019
    A property change could result in the insertion of a null pointer, which
    could later get dereferenced because the map was not expected to contain
    null pointers.
    Closes #2200
  2. Fixed undo for terrain brush on previously empty area

    bjorn committed Oct 17, 2019
    Since change 6ca522e, the source tile
    layer used for TileLayer::setCells can have 0 width and height, but when
    a non-empty region is given alongside that means we want to erase that
    Now there exists two overloads for TileLayer::setCells, one that works
    as before based on the size of the given layer, and one that always sets
    all cells in the given area. There did not appear to be a use-case for
    doing the intersection.
Commits on Oct 9, 2019
  1. docs: tiled.executeCommand doesn't return anything

    bjorn committed Oct 9, 2019
    It may fail to find the command, but in that case it raises an error.
  2. Bumped version to 1.3.0 and updated file

    bjorn committed Oct 9, 2019
    This marks the start of the Tiled 1.3 Beta.
  3. Merge branch '1.2'

    bjorn committed Oct 9, 2019
  4. Bumped version to 1.2.5 and updated file

    bjorn committed Oct 9, 2019
Commits on Oct 8, 2019
  1. docs: Updated note about Python version on Linux

    bjorn committed Oct 8, 2019
    The situation didn't exactly become any better unfortunately...
  2. Scripting: Added TileMap.autoMap

    bjorn committed Oct 8, 2019
    This function enables manually triggering the AutoMap action with a
    specific region and/or rules file.
    Also made the rules file automatically reload when it changes due to
    saving the map to a different location.
  3. Worlds: Report pattern loading errors in the Issues and Console views

    bjorn committed Oct 8, 2019
    Previously these were warnings printed to standard output.
    Double-clicking the reported issues attempts to open the world file.
    Closes #2201
  4. Travis CI: Updated the versions of Qt and Qbs

    bjorn committed Oct 8, 2019
  5. Travis CI: Fixed the Linux AppImage

    bjorn committed Oct 8, 2019
    Due to a missing library the linuxdeployqt tool was aborting, causing
    many files to be missing from the package.
  6. Updated website links to use https

    bjorn committed Oct 8, 2019
  7. Qbs: Added instructions for generating VS 2017 projects

    bjorn committed Oct 8, 2019
    Closes #1956
Commits on Oct 7, 2019
  1. Added GitHub Sponsors funding option

    bjorn committed Oct 7, 2019
Commits on Oct 2, 2019
  1. Scripting: Made Map and Tileset modification API more complete

    bjorn committed Oct 2, 2019
    Added the following functions and property:
        * Tileset.addTile()
        * Tileset.removeTiles(tiles)
        * Tileset.setTileSize(width, height)
        * Tileset.image
        * Map.setTileSize(width, height)
    Made the following properties writable:
        * Tileset.tileWidth
        * Tileset.tileHeight
    Also made attempted Layer and Tileset modifications report read-only
    errors instead of silently doing nothing (in case of assets not loaded
    from a file).
    The API now finally enables implementing a reader for certain custom map
    Issue #949
  2. Scripting: Added ability to set the size of a map

    bjorn committed Oct 2, 2019
    Also refactored the EditableAsset and EditableMap a little, moving the
    undo stack back into Document and the 'resize' method back into
    MapDocument. This is to keep the "Editable" wrappers as small as
    possible since they are only meant to be used from the script.
    Issue #949
Commits on Oct 1, 2019
  1. Scripting: Added support for reading custom map files

    bjorn committed Oct 1, 2019
    Either binary or text files are supported. However, the scripting API
    is still severely lacking, so actually setting up the map in the read
    function is not possible yet.
    Problems due to missing API include:
    * Can't set the size of the map
    * Can't set up any tilesets, which means we can't assign any tiles unless
      we have the tileset already open in Tiled.
    Issue #949
  2. Scripting: Added support for custom binary map formats

    bjorn committed Sep 25, 2019
    The 'toString' member for scripted map formats has now been renamed to
    'write' and may return either a string or an ArrayBuffer object.
    When an error happens during export a backtrace is now reported in the
    Console and Issues views.
    Also, no longer fall back to "Export As" when triggering "Export" runs
    into an error. Turns out opening the file dialog after the error dialog
    is just annoying.
    Issue #949
Commits on Sep 24, 2019
  1. Scripting: Set a parent for scripted dialogs

    bjorn committed Sep 24, 2019
    The tiled.alert, tiled.confirm and tiled.prompt dialogs now have the
    main window as parent, which fixes their icon and positioning.
  2. Scripting: Resolved garbage collection issues

    bjorn committed Sep 24, 2019
    If a QObject that was passed to the JavaScript engine is still alive,
    that does not mean that it can always still be turned into a non-null
    QJSValue. Hence, before we return a cached QObject instance, we need to
    check for this.
    Also explicitly set QQmlEngine::JavaScriptOwnership on these objects,
    because when they are returned from a Q_PROPERTY the ownership would
    otherwise default to CppOwnership and the object would never get deleted
    (which resulted in tileset instances still being around on shutdown).
  3. Scripting: Added a few new ways to interact with the UI

    bjorn committed Sep 24, 2019
        MapView.centerOn(x, y)
  4. Removed usage of a deprecated QDir assignment operator

    bjorn committed Sep 24, 2019
    The operator for assigning QString to QDir was deprecated in Qt 5.13.
  5. Tileset view: Made sure there is always at least 1 column

    bjorn committed Sep 24, 2019
    Without this, columnCount would get set to 0 when even 1 column would
    not fit, which was causing the column count in non-dynamic wrapping mode
    to be used instead.
    Also made sure the tiles are at least 1 pixel regardless of the scale.
  6. GitHub Actions: Run an 'apt update' before the install

    bjorn committed Sep 24, 2019
    Hopefully avoids running into 404s while installing packages.
Commits on Sep 23, 2019
  1. Removed unused and accidentally added header file

    bjorn committed Sep 23, 2019
    That was one approach I tried to exposing enums to the scripts.
Commits on Sep 19, 2019
  1. Compile using GitHub Actions (#2193)

    bjorn committed Sep 19, 2019
    Compile Tiled on the latest version of Ubuntu.
Commits on Sep 18, 2019
  1. Fixed compile against Qt < 5.8

    bjorn committed Sep 18, 2019
  2. Scripting: Added TileMap.merge for applying tile layer edits

    bjorn committed Sep 18, 2019
    This function makes it possible to prepare a TileMap() instance in
    advance and then to apply changes to multiple layers at once to the
    target map.
    It is mainly useful to apply the changes that have already been made
    visible through the ScriptedTool.preview.
    Issue #949
  3. Simplified and optimized the PaintTileLayer command

    bjorn committed Sep 18, 2019
    With infinite tile layers, there no longer was a need for the command to
    resize and shift around the tile layers that kept track of the old and
    new tile layer contents.
    Also simplified memory management with std::unique_ptr.
  4. Scripting: Added initial access to tile stamp and tile edit preview

    bjorn committed Sep 18, 2019
    The current tile stamp can now be accessed via the
    MapEditor.currentBrush property. If the tile stamp has multiple
    variations, this property returns the first one. To change the tile
    stamp, a map can be assigned to this property. Support for stamps with
    multiple variations may be added later.
    A scripted tool can now set a tile edit preview via the
    ScriptedTool.preview property. Soon it will also be possible to
    conveniently merge the preview to actually apply the change.
    Issue #949
  5. Use std::unique_ptr some more

    bjorn committed Sep 18, 2019
    * Return std::unique_ptr for Map::clone and TileLayer::copy
    * Use std::unique_ptr for ownership of layers in AutoMapperWrapper
Commits on Sep 11, 2019
  1. Made the shortcuts of some Tileset Editor actions configurable

    bjorn committed Sep 11, 2019
    They were not registered yet with the action manager.
  2. Fixed ability to create new tilesets

    bjorn committed Sep 11, 2019
    The connection to the Save As / OK button was broken since it previously
    relied on connecting to a private slot by string.
You can’t perform that action at this time.