Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection of different sized images tilemap - Bad placement in tilesets window #1241

Closed
twilson90 opened this issue Mar 28, 2016 · 3 comments
Assignees
Labels
usability Generally about making something more intuitive or efficient.

Comments

@twilson90
Copy link

2016-03-28 21_01_57-assetsthe one fla_

There must be a better way to organize the tiles for rare instances like mine where I require different sized tiles.
I've made my tileset so it consists of single piece wall objects, the image above shows a fence tile that is placed as a single tile.
Is there a simple hack I can do so that the tiles are sorted more appropriately?

@bjorn
Copy link
Member

bjorn commented Mar 28, 2016

The simple hack would be to group your tiles roughly by size while adding them to separate image collection tilesets.

On the Tiled side, a relatively simple solution would be to introduce a mode where each tile gets the same amount of space, like when showing thumbnails in a file manager.

@twilson90
Copy link
Author

The second option sounds ideal. Could you point me in the right direction as to which source file I should edit and how?

@bjorn
Copy link
Member

bjorn commented Mar 29, 2016

Sure, you'll have to adjust the TileDelegate in tilesetview.cpp:

https://github.com/bjorn/tiled/blob/master/src/tiled/tilesetview.cpp#L53

Adjusting its sizeHint and paint member functions according to your needs.

Directly modifying this code would be the quickest way. Of course, for integration back into Tiled, it will need to be implemented as an additional view mode. That will be quite a bit more work.

@bjorn bjorn added the usability Generally about making something more intuitive or efficient. label Oct 25, 2016
@bjorn bjorn self-assigned this Sep 11, 2019
@bjorn bjorn closed this as completed in 8c0ad00 Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability Generally about making something more intuitive or efficient.
Projects
None yet
Development

No branches or pull requests

2 participants