Development Updates

2017-02-03

Somehow I found some time on Friday to fix two more group-layer related issues:

  • 7106d93 Fixed the Show/Hide all Other Layers action for grouped layers
  • 86482b8 Fixed an issue with the Move Layer Down action on group layers

2017-02-06

  • 6f99802 Fixed the Move Layer Down action some more

I spent the rest of the day adding support for layer groups to the data model used for the Objects view, but I didn’t manage to finish it yet.

2017-02-07

Today I made a huge amount of progress on group layer support and eventually pushed it to the development snapshots. Highlights inlude:

  • 539989d Support group layers in the Objects view
  • d2771fc Fixed group layer handling in layer combo box
  • 38712a4 Used the standard directory icon for the group layers
  • 1b49e06 Fixed handling of group layer offset
  • f4b1f99 Added handling of group layers to tmxrasterizer

I also found some time for fun things like:

  • 1ecd50a Replaced include guards with #pragma once
  • 026e653 Updated copyright year in About dialog

2017-02-13

With the group layers mostly done (and still awaiting your feedback), I moved on to adding a Text object. This was not only a much requested feature (#193, #1429), but it even has a $100 bounty. I estimated it would take me only one day, but it turned out to be rather more work.

Some small changes committed today:

  • f0d8687 Tried to improve the readability of MapObject class a little
  • 5682582 Replaced more foreach with range-based for

2017-02-14

  • 468e606 QtPropertyBrowser: Font-property changes
  • 33e048b Added a Text object

The first change was necessary because the QtPropertyBrowser was using point size, whereas for Tiled to display text objects at the same size regardless of the DPI of the display, the font size needed to be specified in pixels.

Support for the new Text object isn’t entirely finished yet, since there is no way to change the alignment of the text yet. It could also be extended in various other ways, including possible support for bitmap fonts. However, it already has a lot of features including color, font style and word wrapping. Here’s a screenshot I made to show it off:

If you’re interested, please give it a try by using a development snapshot!